JavaScript and Internet Controlled Hardware Prototyping
-
Upload
all-things-open -
Category
Technology
-
view
141 -
download
1
Transcript of JavaScript and Internet Controlled Hardware Prototyping
JavaScript & Internet
Controlled Hardware
Prototyping
Jonathan LeBlanc
(@jcleblanc)
Head of Global Developer
Evangelism at Braintree /
PayPal
Arduino / Raspberry Pi / Leap Motion / etc.
Hardware Toolbox
Rasperry Pi
Arduino
Twitter: @jcleblanc | Hashtag: #ATO2014
Standard
Firmata
How Johnny 5 Comms Work
Arduino
Microcontroller
Node.js
Script
Twitter: @jcleblanc | Hashtag: #ATO2014
npm install johnny-five
Installing Johnny 5
git clone git://github.com/rwldrn/johnny-five.git
cd johnny-five
npm install
Twitter: @jcleblanc | Hashtag: #ATO2014
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
Controlling LEDs with JavaScripthttp://bit.ly/js-arduino-led
Twitter: @jcleblanc | Hashtag: #ATO2014
Joystick Controlled Servo Motorhttp://bit.ly/js-arduino-joystick
Twitter: @jcleblanc | Hashtag: #ATO2014