presentation

Yesterday, Internet changed
our life. Today IoT is doing it
all over again..
22 Billions of devices are expected to
be part of IoT by 2020 – Gartner
Game Changers
Is this enough to get there?
Hack the IoT world with JavaScript
Sajan John | Twitter:@sajanjohn
Idea Source: http://www.odetocode.com
Idea Source: http://www.odetocode.com
Why JavaScript?
1.
Most popular language in the world
today!
2.
JavaScript is everywhere now!
3.
Asynchronous
4.
Easy learning curve
5.
Only language that can be used at
back/middle/front-end layers
6.
Light foot print
7.
Efficient Memory Management
8.
Node.Js and NPM
Node.js + arduino = magic!
Node.js + arduino + Gestures = Fun!
Frameworks for hardware programming
Johnny-Five.js
Cylon.js
Ever growing community
Write your own framework
Using Node Serial Port and Node
Web Socket.
 Write in JS and control Arduino
 Use Firmata Protocol to communicate
with Arduino
Johnny-Five
 Can be used with Accelerometer, Button,
Compass, Led, Joystick, Motor,
(Ultrasonic) Ping, Proximity IR, Range
IR, Sensor, Servo, Sonar
 Running on a node.js server
 Excellent for internet and cloud
programming
Demo – 1 : Let there be light!
 Install Arduino IDE
 Install Node.js
 npm install johnny-five
 Upload Firmata to your arduino
 Open Arudino IDE
 Go to File > Examples > Firmata >
StandardFirmata
Johnny-Five Demo
var five = require("johnny-five"), led, board;
board = new five.Board();
board.on("ready", function(){
led = new five.Led(12)
led.strobe(1000);
})
Road Ahead
ES 6
-
Classes
-
Modules
-
Lexical block scope (let, constant)
-
Concise method
-
Lambada operator
-
Mobile Controlled
-
NUI driven – Gesture / Voice
-
Wearable
-
Listening Walls
-
Learning Algorithms
IoT
- Binary and Octal literals
Demo – 2 : Smart Home concept
Thank You