+ All Categories
Home > Software > Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Date post: 16-Apr-2017
Category:
Upload: thomas-conte
View: 590 times
Download: 2 times
Share this document with a friend
14
Meetup Node.JS Paris Tessel, Project Oxford, Azure IoT Thomas Conté Technical Evangelist, Microsoft @tomconte
Transcript
Page 1: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Meetup Node.JS ParisTessel, Project Oxford,

Azure IoT

Thomas ContéTechnical Evangelist,

Microsoft@tomconte

Page 2: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

The Tessel is tiny

Page 3: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Its modules too

Page 4: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford
Page 5: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Modules

▪ Accelerometer▪ Ambient Light +

Sound▪ Audio▪ Bluetooth Low

Energy▪ Camera▪ Climate▪ GPS

▪ GPRS▪ Infrared▪ MicroSD Card▪ nRF24 Module▪ Relay▪ RFID▪ Servo

Page 6: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Node.JS for IoT

▪ Lots of projects around controlling hardware in Node.JS– Real-time event processing– Simpler than C/C++– Native connectivity– Lots of modules to reuse

▪ Some examples– https://

github.com/rwaldron/johnny-five – http://node-ardx.org/ – http://nodebots.io/ – http://www.espruino.com/

Page 7: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford
Page 8: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

http://blog.technical.io/post/98257815497/how-tessel-works-the-basics

Page 9: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Listen for Ambient module events

var tessel = require('tessel');

var ambientlib = require('ambient-attx4');

var ambient = ambientlib.use(tessel.port['A']);

ambient.on('ready', function () {

ambient.setLightTrigger(0.5);

ambient.on('light-trigger', function(data) {

console.log("Our light trigger was hit:", data);

});

});

Page 10: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

function upload_picture(name, image) { var options = { hostname: blob_host, port: 443, path: '/' + blob_container + '/' + name + blob_sas, method: 'PUT', headers: { 'Content-Length' : image.length, 'x-ms-blob-type' : 'BlockBlob', 'Content-Type' : 'image/jpeg' } };   var req = https.request(options, function(res) { res.on('data', function(d) { process.stdout.write(d); }); });

Page 11: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Face Detection with Project Oxford

• Tessel + Camera module• Take a picture on button press• Upload the picture to Azure

Blob Storage• Query Project Oxford Face API,

using Blob URL• Get a response back with face

attributes like gender and age• Identify faces!

Page 12: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Connect your devices to Azure

Field gateway

Cloud protocolgateway

IP-c

apab

lePA

N-de

vice

s

Event processing and insight(e.g., hot and cold paths)

Device business logic,connectivity monitoring

Application device provisioning and management

cloudfield

IoT Hub

Page 13: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

github.com/Azure/azure-iot-sdks

▪ Device-facing– For devices and field gateway

▪ Platforms– RTOS (FreeRTOS)– Linux (Ubuntu, Debian, Fedora,

Raspbian, Angstrom)– Windows 7/8/10– ARM mbed– Android– iOS– …

▪ Languages– C, Java, C#, JavaScript

▪ Service-facing– For back-ends and cloud

gateway▪ Languages

– .NET C#, Java, Node

Page 14: Node.JS Paris Meetup - the Tessel microcontroller, Azure and Project Oxford

Thank you


Recommended