JS in Arduino using Johnny Five Raj Bharath Kannan rajbharath rbrajbharath1
What makes Internet of Things(IoT) Collection of objects that can • send/receive data • respond to the input • learn on the go and build its intelligence
Why Javascript in IoT? Wonderful Community 🏘 🚀Easy Onboard for existing devs 🏘Established Eco System 🚥Event Driven
Some popular boards for JS Tessel Espruino Raspberry pi
Johnny Five • JS library • For boards that can not run os/node on its own and understands Firmata protocol • Need node for executing Johnny 5 script
Architecture Firmata Firmata J5
var five = require("johnny-five"); var board = new five.Board(); // The board's pins will not be accessible until // the board has reported that it is ready board.on("ready", function() { console.log("Ready!"); var led = new five.Led(12); led.blink(500); this.on('exit', function(){ led.off(); }); });
Links • https://github.com/rwaldron/johnny-five • http://firmata.org/wiki/Main_Page • https://github.com/firmata/protocol • http://johnny-five.io/api/

JS in Arduino Uno