SlideShare une entreprise Scribd logo
1  sur  11
Node.js for IoT
Giorgio Cerruti
@infobeinnova
giorgio.cerruti@beinnova.it
Sommario
➔Piccola introduzione IoT
➔Node.js
➔Arduino
➔Demo
➔Altre Soluzioni
➔Contatti
INTRODUZIONE - IoT
INTRODUZIONE – Node.js
Node.js è una piattaforma costruita sulla
runtime JavaScript di Chrome (V8) per
sviluppare facilmente network appllications
veloci e scalabili. Node.js usa un modello
event-driven non-blocking I/O che lo rende
leggero, efficiente, perfetto per applicazioni in
tempo reale con altissima intensità di dati.
ARDUINIO
Arduino è una scheda elettronica di piccole dimensioni
con un microcontrollore e circuiteria di contorno, utile per
creare rapidamente prototipi e per scopi hobbistici e
didattici.
WIKIPEDIA
DEMO - UMIDITÀ TERRENO
DEMO - ARDUINO CODE
CONSTANS
SETUP LOOP
DEMO - Node.js CODE
SOLUZIONI ALTERNATIVE - HW
Tessel 2 is a development platform you can
embed in a product. Build fast with
Node.js/io.js, then optimize the hardware and
build thousands.
BeagleBone ia a credit-card-sized Linux
computer that connects to the Internet and
runs software such as Android 4.0 and
Ubuntu. With plenty of I/O...
The Raspberry Pi is a low cost, credit-card
sized computer that plugs into a computer
monitor or TV, and uses a standard keyboard
and mouse
SOLUZIONI ALTERNATIVE - Node.js
Cylon.js is a JavaScript framework for robotics, physical computing, and the Internet
of Things. It makes it incredibly easy to command robots and devices.
Johnny-Five is an Open Source, Firmata Protocol based, IoT and Robotics
programming framework, developed at Bocoup. Johnny-Five programs can be written
for Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino
One, Pinoccio, pcDuino3, Raspberry Pi, Spark Core, TI Launchpad and more!
LINKS
Git: http://goo.gl/X4qFHD
Docker: http://goo.gl/Y1DUCq
NPM MODULES
MQTT.js (thx Matteo Collina):http://goo.gl/h8F9W7
SERIALPORT: http://goo.gl/IdrvKt

Contenu connexe

En vedette

[16.01.05] node.js & mqtt
[16.01.05] node.js & mqtt[16.01.05] node.js & mqtt
[16.01.05] node.js & mqttNa-yeon Park
 
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.Nat Weerawan
 
Internet das coisas (IoT) com Raspberry, Python e Node.js
Internet das coisas (IoT) com Raspberry, Python e Node.jsInternet das coisas (IoT) com Raspberry, Python e Node.js
Internet das coisas (IoT) com Raspberry, Python e Node.jsOtávio Calaça Xavier
 
Building the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiBuilding the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiNeil Broers
 
An introduction to workflow-based programming with Node-RED
An introduction to workflow-based programming with Node-REDAn introduction to workflow-based programming with Node-RED
An introduction to workflow-based programming with Node-REDBoris Adryan
 
Nodejs Event Driven Concurrency for Web Applications
Nodejs Event Driven Concurrency for Web ApplicationsNodejs Event Driven Concurrency for Web Applications
Nodejs Event Driven Concurrency for Web ApplicationsGanesh Iyer
 
[IoT] MAKE with Open H/W + Node.JS - 1st
[IoT] MAKE with Open H/W + Node.JS - 1st[IoT] MAKE with Open H/W + Node.JS - 1st
[IoT] MAKE with Open H/W + Node.JS - 1stPark Jonggun
 
Sistemi domotici integrati per la gestione intelligente d’ambiente
Sistemi domotici integrati per la gestione intelligente d’ambienteSistemi domotici integrati per la gestione intelligente d’ambiente
Sistemi domotici integrati per la gestione intelligente d’ambientefreedomotic
 
Nodejs Explained with Examples
Nodejs Explained with ExamplesNodejs Explained with Examples
Nodejs Explained with ExamplesGabriele Lana
 
Raspberry pi - Node js - Drupal
Raspberry pi - Node js - DrupalRaspberry pi - Node js - Drupal
Raspberry pi - Node js - DrupalMark Corben
 

En vedette (11)

[16.01.05] node.js & mqtt
[16.01.05] node.js & mqtt[16.01.05] node.js & mqtt
[16.01.05] node.js & mqtt
 
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.
Create connected home devices using a Raspberry Pi, Siri and ESPNow for makers.
 
Raspbeery PI IoT
Raspbeery PI IoTRaspbeery PI IoT
Raspbeery PI IoT
 
Internet das coisas (IoT) com Raspberry, Python e Node.js
Internet das coisas (IoT) com Raspberry, Python e Node.jsInternet das coisas (IoT) com Raspberry, Python e Node.js
Internet das coisas (IoT) com Raspberry, Python e Node.js
 
Building the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry PiBuilding the Internet of Things with Raspberry Pi
Building the Internet of Things with Raspberry Pi
 
An introduction to workflow-based programming with Node-RED
An introduction to workflow-based programming with Node-REDAn introduction to workflow-based programming with Node-RED
An introduction to workflow-based programming with Node-RED
 
Nodejs Event Driven Concurrency for Web Applications
Nodejs Event Driven Concurrency for Web ApplicationsNodejs Event Driven Concurrency for Web Applications
Nodejs Event Driven Concurrency for Web Applications
 
[IoT] MAKE with Open H/W + Node.JS - 1st
[IoT] MAKE with Open H/W + Node.JS - 1st[IoT] MAKE with Open H/W + Node.JS - 1st
[IoT] MAKE with Open H/W + Node.JS - 1st
 
Sistemi domotici integrati per la gestione intelligente d’ambiente
Sistemi domotici integrati per la gestione intelligente d’ambienteSistemi domotici integrati per la gestione intelligente d’ambiente
Sistemi domotici integrati per la gestione intelligente d’ambiente
 
Nodejs Explained with Examples
Nodejs Explained with ExamplesNodejs Explained with Examples
Nodejs Explained with Examples
 
Raspberry pi - Node js - Drupal
Raspberry pi - Node js - DrupalRaspberry pi - Node js - Drupal
Raspberry pi - Node js - Drupal
 

Node.js for IoT - Torino JS

  • 1. Node.js for IoT Giorgio Cerruti @infobeinnova giorgio.cerruti@beinnova.it
  • 4. INTRODUZIONE – Node.js Node.js è una piattaforma costruita sulla runtime JavaScript di Chrome (V8) per sviluppare facilmente network appllications veloci e scalabili. Node.js usa un modello event-driven non-blocking I/O che lo rende leggero, efficiente, perfetto per applicazioni in tempo reale con altissima intensità di dati.
  • 5. ARDUINIO Arduino è una scheda elettronica di piccole dimensioni con un microcontrollore e circuiteria di contorno, utile per creare rapidamente prototipi e per scopi hobbistici e didattici. WIKIPEDIA
  • 6. DEMO - UMIDITÀ TERRENO
  • 7. DEMO - ARDUINO CODE CONSTANS SETUP LOOP
  • 9. SOLUZIONI ALTERNATIVE - HW Tessel 2 is a development platform you can embed in a product. Build fast with Node.js/io.js, then optimize the hardware and build thousands. BeagleBone ia a credit-card-sized Linux computer that connects to the Internet and runs software such as Android 4.0 and Ubuntu. With plenty of I/O... The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse
  • 10. SOLUZIONI ALTERNATIVE - Node.js Cylon.js is a JavaScript framework for robotics, physical computing, and the Internet of Things. It makes it incredibly easy to command robots and devices. Johnny-Five is an Open Source, Firmata Protocol based, IoT and Robotics programming framework, developed at Bocoup. Johnny-Five programs can be written for Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, pcDuino3, Raspberry Pi, Spark Core, TI Launchpad and more!
  • 11. LINKS Git: http://goo.gl/X4qFHD Docker: http://goo.gl/Y1DUCq NPM MODULES MQTT.js (thx Matteo Collina):http://goo.gl/h8F9W7 SERIALPORT: http://goo.gl/IdrvKt