Meetup Node.JS Paris
Tessel, Project Oxford, Azure IoT
Thomas Conté
Technical Evangelist, Microsoft
@tomconte
The Tessel is tiny
Its modules too
Modules
▪ Accelerometer
▪ Ambient Light + Sound
▪ Audio
▪ Bluetooth Low Energy
▪ Camera
▪ Climate
▪ GPS
▪ GPRS
▪ Infrared
▪ MicroSD Card
▪ nRF24 Module
▪ Relay
▪ RFID
▪ Servo
Node.JS for IoT
▪ Lots of projects around controlling
hardware in Node.JS
– Real-time event processing
– Simpler thanC/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/
http://blog.technical.io/post/98257815497/how-tessel-works-the-basics
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);
});
});
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);
});
});
Face Detection with Project Oxford
• Tessel + Camera module
• Take a picture on button press
• Upload the picture to Azure Blob
Storage
• Query Project Oxford FaceAPI,
using Blob URL
• Get a response back with face
attributes like gender and age
• Identify faces!
Connect your devices to Azure
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
Thank you

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

  • 1.
    Meetup Node.JS Paris Tessel,Project Oxford, Azure IoT Thomas Conté Technical Evangelist, Microsoft @tomconte
  • 2.
  • 3.
  • 5.
    Modules ▪ Accelerometer ▪ AmbientLight + Sound ▪ Audio ▪ Bluetooth Low Energy ▪ Camera ▪ Climate ▪ GPS ▪ GPRS ▪ Infrared ▪ MicroSD Card ▪ nRF24 Module ▪ Relay ▪ RFID ▪ Servo
  • 6.
    Node.JS for IoT ▪Lots of projects around controlling hardware in Node.JS – Real-time event processing – Simpler thanC/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/
  • 8.
  • 9.
    Listen for Ambientmodule 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); }); });
  • 10.
    function upload_picture(name, image) { varoptions = { 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); }); });
  • 11.
    Face Detection withProject Oxford • Tessel + Camera module • Take a picture on button press • Upload the picture to Azure Blob Storage • Query Project Oxford FaceAPI, using Blob URL • Get a response back with face attributes like gender and age • Identify faces!
  • 12.
  • 13.
    github.com/Azure/azure-iot-sdks ▪ Device-facing – Fordevices 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
  • 14.

Editor's Notes

  • #11 Using these advanced boards, you also access other Azure services.