Its an introductory slide that explains how we can use javascript in internet of things (IOT) space. It has an example of blinking an LED with Arduino UNO board. An npm module Johnny Five is, thats is used for this. It uses a protocol named Firmata.
2. 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
3. Why Javascript in IoT?
Wonderful Community
🏘
🚀Easy Onboard for existing devs
🏘Established Eco System
🚥Event Driven
5. 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
7. 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();
});
});