arduino for developers by steve robinson

12
Arduino for Developers Steve Robinson 23 rd Dec 2013 @stev4nity | github.com/steverob © Spritle Software Private Limited | http://www.spritle.com

Upload: spritle-software-private-limit-ed

Post on 28-Jan-2015

106 views

Category:

Technology


3 download

DESCRIPTION

Arduino for developers Intro and sample demo

TRANSCRIPT

Page 1: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Arduino for Developers

Steve Robinson23rd Dec 2013

@stev4nity | github.com/steverob

Page 2: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

What in the world is an Arduino?

• Open Source Electronics Prototyping Platform

• Just a Microcontroller (eg. ATMega328 in an Arduino Uno) and other components fabricated onto a single board allowing very simple interfacing and programming!

Page 3: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Agenda

• Intro• Some history• Sample demos• Questions

Page 4: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Glance It

Page 5: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

What can I do with it?

• Do Physical Computing!– sense the physical world (light, temperature,

pressure, etc) and do stuff with the data!• Build cool mechanical systems driven by code

(like Robots, cars etc.)• You got the idea!

Page 6: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

What makes an Arduino stand out?

• Inexpensive• Cross-platform• Simple, clear programming environment • Open and extensible software• Open and extensible hardware

Page 7: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

SAMPLE DEMOSTime to wakeup

Page 8: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Lets get our hands dirty, shall we?

• Arduino comes with a neat IDE that allows you to write, verify and upload code onto it.

• Programs are written in Processing.– some code-ffee to keep you from sleeping.. -– Make an LED blink (Req: Arduino, LED)

http://goo.gl/SP9VI1– Make some music (Req: Arduino, Piezo Sounder)

http://goo.gl/eeq2lC

Page 9: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Meet Johnny five!

• Program the Arduino with NodeJS + Firmata

• github: rwaldron/johnny-five

Page 10: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

More Samples

• Setting Up Johnny-Five– Install Node: http://goo.gl/GI0zBW – $ npm install johnny-five

• Setting up Firmata– Open Examples -> Firmata -> Standard Firmata in

the Arduino IDE• Connect the Arduino and Upload!

Page 11: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Some More Samples

• Blinking (again!?) with Johnny-five– http://goo.gl/i48ymQ

• Adjust computer display brightness based on ambient lighting (Req: Arduino, 10k Ohm resistor, photoresistor)– http://goo.gl/m3J9cF

Page 12: Arduino for developers by Steve Robinson

© Spritle Software Private Limited | http://www.spritle.com

Questions?

Thank you