arduino for developers by steve robinson
DESCRIPTION
Arduino for developers Intro and sample demoTRANSCRIPT
© Spritle Software Private Limited | http://www.spritle.com
Arduino for Developers
Steve Robinson23rd Dec 2013
@stev4nity | github.com/steverob
© 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!
© Spritle Software Private Limited | http://www.spritle.com
Agenda
• Intro• Some history• Sample demos• Questions
© Spritle Software Private Limited | http://www.spritle.com
Glance It
© 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!
© 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
© Spritle Software Private Limited | http://www.spritle.com
SAMPLE DEMOSTime to wakeup
© 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
© Spritle Software Private Limited | http://www.spritle.com
Meet Johnny five!
• Program the Arduino with NodeJS + Firmata
• github: rwaldron/johnny-five
© 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!
© 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
© Spritle Software Private Limited | http://www.spritle.com
Questions?
Thank you