The electronics maker movement has led a massive shift in how people are re-engineering the world around them through rapid hardware prototyping. With the rise of inexpensive, wifi and bluetooth low energy enabled electronics, this hardware revolution is internet and mobile controlled, all through simple bridges to build the electronics intelligence in familiar web languages.
In this session, we will play with Arduino microcontrollers and JavaScript to take a first dive into the world of internet controlled electronics, exploring topics such as:
- Setting up an Arduino to be controlled through web APIs
- Using JavaScript language bridges on the Arduino
- The future of web controlled hardware prototyping
16. Fetching the Arduino IDE
http://arduino.cc/en/main/software
Twitter: @jcleblanc | Hashtag: #ATO2014
17. Priming the Board with Firmata
Twitter: @jcleblanc | Hashtag: #ATO2014
18. Installing Johnny 5
npm install johnny-five
git clone git://github.com/rwldrn/johnny-five.git
cd johnny-five
npm install
Twitter: @jcleblanc | Hashtag: #ATO2014
19. var five = require("johnny-five"),
board = new five.Board();
board.on("ready", function() {
//board is ready to use
});
Enabling the Board
Twitter: @jcleblanc | Hashtag: #ATO2014
Picking the right version of the arduino software
http://arduino.cc/en/main/software
Upload the firmata program to the board
Crap that was hard…
Created by Sebastian Müller
Alternate framework: Noduino (http://semu.github.io/noduino/) – accessing arduino from web applications (HTML5 / JS / Node)
Download Noduino
Upload Duino to board (the communications bridge)
Also: https://github.com/voodootikigod/node-serialport (Node Serialport)