SlideShare a Scribd company logo
Nov 19, 2016
Sofia
var title = “IoT, Computer Intelligence
and JavaScript in the Physical World”;
var info = {
name: “Ivelin Andreev”,
otherOptional: “…”
};
Nov 19, 2016
About me
• Project Manager @
o 14 years professional experience
o .NET Web Development MCPD
• External Expert Horizon 2020
• External Expert Eurostars
• Business Interests
o Web Development, SOA, Integration
o Security & Performance Optimization
o IoT, Computer Intelligence
• Contact
o ivelin.andreev@icb.bg
o www.linkedin.com/in/ivelin
o www.slideshare.net/ivoandreev
agenda();
Nov 19, 2016
• What IoT IS and IS NOT?
• Computer Intelligence
• Azure Cognitive Services
• Demo
• Tessel v2 “Thing”
• Node.js for “Things”
• “Thing” in Action
Nov 19, 2016
What is (NOT) IoT
• A $1.5 trillion market by 2020
“… A network of networks
of uniquely identifiable endpoints (‘things’)
that communicate locally or globally
using IP connectivity
without human interaction …”
International Data Corporation (IDC)
• A “Thing”?
o IP is not enough
o Does not require human interaction
o Often w/o display
o Machine makes a decision rather than human
Nov 19, 2016
Collect – Communicate – Analyse – Act
Nov 19, 2016
IoT would not work w/o AI
• How to make IoT?
• More sensors = Seas of data
• Just data has no value
AI provides tools to go beyond
trivial real-time IoT use cases
AI Engines are:
• Sophisticated
• Time consuming
• Expensive
How to make IoT work?
Nov 19, 2016
Microsoft Cognitive Services
• Give your applications a human side
o Intelligent APIs and SDKs
o On top of Microsoft Machine Learning API
• Initially “Project Oxford”
o Announced on “Build 2015”
• Pricing
o All APIs have free plans available
• Samples & Documentation
o https://www.microsoft.com/cognitive-services/en-us/apis
Nov 19, 2016
Vision API
Allows computers to understand images and video
• Computer Vision
• Emotion
• Face
o Recognize faces and emotions
o Group faces that are alike
o Verify two faces are the same
o Computer vision
Nov 19, 2016
Cognitive Services (Highlights)
• Speech
o Convert Audio (Mic, File) <-> Text (28 languages)
o Speaker Verification & Identification
• Language
o Language Understanding (Intent)
o Sentiment Analysis
o Topic detection
• Knowledge
o Entity Linking
o Recommendations – Frequently bought together, Item to Item recommendations
Nov 19, 2016
DEMO
• Microsoft Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/apis
Nov 19, 2016
IoT Challenges?
• Non-proprietary technologies
• Keep costs reasonable
• CPU revolution
• Network revolution
• Battery revolution ?
Nov 19, 2016
IoT from Cloud to Fog
• Cloud Computing
o Complex services accessible over the web
o Rent resources (storage, power, processes)
o Minimal management effort
• Cloud computing issues?
• Fog Computing
o Lower cost of HW
o Cloud services moved to the ground
• Fogging advantages
o Lower latency
o Better QoS and UX
o Improved security
• Smart Gateways
Nov 19, 2016
Hardware built for the web
Nov 19, 2016
• By Technical Machine (2013)
• Crowd funded at Dragon Innovation platform
It is…
• 2nd gen Internet connected microcontroller
• Programmable in JavaScript
• compatible
• WiFi programmable
• Open source HW and SW
Nov 19, 2016
Tessel 2 at a glance
2 Tessel Module/Sensor Ports
2 USB Ports (Audio, Camera, 3G)
802.11 bgn WiFi (300Mbps, programmable)
10/100 Ethernet port
580MHz Mediatek CPU
48MHz ARM co-proc. (realtime I/O)
64MB DDR2 & 32 MB Flash
Micro USB (power, tethered programming)
• Lightweight OS
o OpenWRT Linux
• Engine
o IO.js (V8 Node.js 4 fork)
Nov 19, 2016
Plug & play modules
• Literally Plug - NPM Install - Play
Nov 19, 2016
Competitors
Raspberry PI 3 Tessel 2
Cost $38 ($5 PI Zero on black market- $25) $45
Dealership Local International Shipping
WiFi Built-in
Supported languages C/C++, Java, Ruby, Python, Perl,
C# (Mono), JS (Node.js)
JS, Rust, Python
CPU 1.2Ghz Quad 580Mhz
Secondary GPU Co-processor
Apps • PI Store (Not anymore)
• https://www.hackster.io/raspberry-pi https://tessel.hackster.io/
Setup Raspbian Linux OS + apt-get No setup
Power consumption 2.5A supply, 1.2-3.8W, Gets warm 0.85W
Software deployment Wi-Fi USB and Wi-Fi
Storage SD card slot 32MB Built-in + SD card module
Built-in
Nov 19, 2016
Production or just Playing?
• Costs add up in scale
o Element14(PI), Seeed Studio (Tessel) allow mass production customizations
• Availability and quantity
• Support and maintenance
• Reliability & Security
o SD card (PI) – system may not boot, card can be replaced
o What is the worst thing to happen if controller stops?
o Heat, moisture, dust, vibration, power loss…
• Programmable logic controller (PLC)
o Designed for rougher environments
o Have 2-5x longer lifespan
o Tight tolerance on performance
o Non-popular programming languages
Nov 19, 2016
JavaScript for IoT
• Widely used
o Strong community and ecosystem
o Standardized (ECMAScript 5, 6, 7)
• High-level language
o More productive
• Suited to embedded devices
o Asynchronous function calls and I/O
o Event-driven
• High performance engines
o Chrome V8 is nearly as fast as C++
o The fastest “high-level” language available
• Platforms available
o Johnny-Five Robotics & IoT Platform
o CyclonJS
Nov 19, 2016
JavaScript is not the same
Node.js JavaScript
• Designed for server-side
o No GUI by default
• Async and event-driven
• Variety of protocols (n/o HTTP)
• No built-in sandbox
• Focus on functionality
• Automatic download-install
• Community driven modules
HTML JavaScript
• Designed for client-side
o Generate and control UI
• Control browser (window)
• HTTP (+ HTML5 WebSocket)
• Sandboxed
• Focus on security
• Manual download
• Limited HW support
o Browser specific (GPS, webcam)
Nov 19, 2016
Node.js for IoT
• Strong ecosystem and package management
o 320’000+ packages, Growth 400+/day, npm package manager
o 48% of IoT developers use Node.js
• Programming model suites from embedded to servers
o Event-driven model, Asynch functions
o Support for C/C++ libraries (SWIG, node-ffi)
• Completeness of Node.js
o End-to-End solution (client-server)
• Supported HW
o Tessel 2, Raspberry PI, Intel Edison, Intel Galileo
• Good documentation (Does not apply to modules)
o https://nodejs.org/api/
Nov 19, 2016
The right tools, the right time!
Video URL: https://www.facebook.com/leopard.not.a/videos/10153985089504545/
Nov 19, 2016
IO.js
• Node.js problems
o Lack of active contributors
o Lack of releases
• IO.js is a Node.js fork (2014)
o JavaScript platform built on Google V8 engine
o Started by Node.js primary contributors
o Open source
o Compatible with most npm modules
o More active developers than Node.js
o Indefinitely backward compatible
• Merged to Node.js again 
Nov 19, 2016
Tessel in Action (Demo)
• require('tessel')
• require('tessel-av')
o https://github.com/tessel/tessel-av
• require('servo-pca9685')
o https://github.com/tessel/servo-pca9685
• require('http'); require('https')
o https://nodejs.org/api/http.html, https://nodejs.org/api/https.html
• require('request‘)
o https://github.com/request/request
• require('os')
o https://nodejs.org/api/os.html
Nov 19, 2016
Making it work
• Install Node.js (v4.4.3 LTS or later) https://tessel.github.io/t2-start/
• Install Tessel CLI
• Plugin Tessel to USB & Boot (30s)
• Verify Tessel connection
• Connect to WiFi
• Run
npm install -g t2-cli
t2 list
t2 wifi –n NetworkName –p password
t2 init
… edit index.js …
t2 run index.js
Nov 19, 2016
Developers need to Know!
• Pricing
o Board: $44.45 (was $35 on preorder)
o 10-pin Modules: $25-50 + common USB modules
• Tessel Community and Projects
o https://tessel.hackster.io/, https://tessel.io/community
• Tessel Support
o https://forums.tessel.io/
• JavaScript IoT Projects and Platforms
o http://www.postscapes.com/javascript-and-the-internet-of-things/
o J5 Robotics & IoT Platform (http://johnny-five.io/examples/)
o CyclonJS (https://cylonjs.com/documentation/platforms/)
Nov 19, 2016
Thanks to our Sponsors:
General Sponsor:
Gold Sponsors:
Media Partners:
Technological Partners:
Hosting Partner:

More Related Content

PDF
Bringing Data to the Edge
PPTX
IoT interoperability
PDF
05 internet-of-things-io t-cloudcomputing
PPTX
Closing Keynote
PPTX
Cloud-centric Internet of Things
PPTX
Introduction to Neo4j
PDF
SIMA AZ: Emerging Information Technology Innovations & Trends 11/15/17
PDF
IEEE CS Phoenix - Internet of Things Innovations & Megatrends Update
Bringing Data to the Edge
IoT interoperability
05 internet-of-things-io t-cloudcomputing
Closing Keynote
Cloud-centric Internet of Things
Introduction to Neo4j
SIMA AZ: Emerging Information Technology Innovations & Trends 11/15/17
IEEE CS Phoenix - Internet of Things Innovations & Megatrends Update

What's hot (20)

PDF
Mainflux - Hyperscalable Unified IoT Platform
PDF
IoT Architecture - are traditional architectures good enough?
PPT
ISO 18876
PPTX
Hyperscalable Unified IoT Platform - Janko Isidorovic - Codemotion Amsterdam ...
PPTX
Neo4j GraphTalks - Introduction to GraphDatabases and Neo4j
PDF
Next generation Polyglot Architectures using Neo4j by Stefan Kolmar
PPTX
Green Compute and Storage - Why does it Matter and What is in Scope
PPTX
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
PPTX
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
PDF
VP of WW Partners by Alan Chhabra
PPTX
re:Invent re:Cap - Big Data & IoT at Any Scale
PDF
Web Services for the Internet of Things
PDF
Hyper-Converged Infrastructure: Big Data and IoT opportunities and challenges...
PPTX
Neo4j Import Webinar
PPTX
Making sense of IoT, M2M and Big Data
PPTX
IoT Analytics from Edge to Cloud - using IBM Informix
PDF
Openhab Grafana and Influxdb
PDF
How Crosser Built a Modern Industrial Data Historian with InfluxDB and Grafana
PPTX
Neo4j GraphTalks Oslo - Graph Your Business - Rik Van Bruggen, Neo4j
PPTX
platform for Machine Learning
Mainflux - Hyperscalable Unified IoT Platform
IoT Architecture - are traditional architectures good enough?
ISO 18876
Hyperscalable Unified IoT Platform - Janko Isidorovic - Codemotion Amsterdam ...
Neo4j GraphTalks - Introduction to GraphDatabases and Neo4j
Next generation Polyglot Architectures using Neo4j by Stefan Kolmar
Green Compute and Storage - Why does it Matter and What is in Scope
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
VP of WW Partners by Alan Chhabra
re:Invent re:Cap - Big Data & IoT at Any Scale
Web Services for the Internet of Things
Hyper-Converged Infrastructure: Big Data and IoT opportunities and challenges...
Neo4j Import Webinar
Making sense of IoT, M2M and Big Data
IoT Analytics from Edge to Cloud - using IBM Informix
Openhab Grafana and Influxdb
How Crosser Built a Modern Industrial Data Historian with InfluxDB and Grafana
Neo4j GraphTalks Oslo - Graph Your Business - Rik Van Bruggen, Neo4j
platform for Machine Learning
Ad

Similar to IoT, computer intelligence and javascript in the physical world (20)

PDF
Arduino, Open Source and The Internet of Things Landscape
PDF
IT in 2017
PDF
Hacking with the Raspberry Pi and Windows 10 IoT Core
PDF
Industrial IoT with Azure and Open Source
PDF
IoT Session Thomas More
PDF
Cc internet of things @ Thomas More
PDF
Easy IoT with JavaScript
PDF
Internet Of Things: Hands on: YOW! night
PPTX
NET !!! A must have tool under your belt
PDF
Володимир Шиманський “Роль спільноти і OpenSource в IoT бізнесі” {R0boCamp}
ODP
Inovasi teknologi-untuk-kemajuan-bangsa
PDF
Internet of Things 101 - For software engineers
PPTX
Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...
PDF
201311 - Middleware
PPTX
The fight for surviving in the IoT world
PDF
The fight for surviving in the IoT world - Radu Vunvulea
PDF
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
PDF
Unity: What does it take to port a browser title to mobiles
PPTX
Technology and AI sharing - From 2016 to Y2017 and Beyond
PDF
Pre meetup intel® roadshow london
Arduino, Open Source and The Internet of Things Landscape
IT in 2017
Hacking with the Raspberry Pi and Windows 10 IoT Core
Industrial IoT with Azure and Open Source
IoT Session Thomas More
Cc internet of things @ Thomas More
Easy IoT with JavaScript
Internet Of Things: Hands on: YOW! night
NET !!! A must have tool under your belt
Володимир Шиманський “Роль спільноти і OpenSource в IoT бізнесі” {R0boCamp}
Inovasi teknologi-untuk-kemajuan-bangsa
Internet of Things 101 - For software engineers
Artificial Intelligence in practice - Gerbert Kaandorp - Codemotion Amsterdam...
201311 - Middleware
The fight for surviving in the IoT world
The fight for surviving in the IoT world - Radu Vunvulea
BYOD Revisited: Build Your Own Device (Embedded Linux Conference 2014)
Unity: What does it take to port a browser title to mobiles
Technology and AI sharing - From 2016 to Y2017 and Beyond
Pre meetup intel® roadshow london
Ad

More from Ivo Andreev (20)

PDF
Multi-Agent Era will Define the Future of Software
PDF
LLM-based Multi-Agent Systems to Replace Traditional Software
PDF
LLM Security - Smart to protect, but too smart to be protected
PDF
What are Phi Small Language Models Capable of
PDF
Autonomous Control AI Training from Data
PDF
Autonomous Systems for Optimization and Control
PDF
Cybersecurity and Generative AI - for Good and Bad vol.2
PDF
Architecting AI Solutions in Azure for Business
PDF
Cybersecurity Challenges with Generative AI - for Good and Bad
PDF
JS-Experts - Cybersecurity for Generative AI
PDF
How do OpenAI GPT Models Work - Misconceptions and Tips for Developers
PDF
OpenAI GPT in Depth - Questions and Misconceptions
PDF
Cutting Edge Computer Vision for Everyone
PDF
Collecting and Analysing Spaceborn Data
PDF
Collecting and Analysing Satellite Data with Azure Orbital
PDF
Language Studio and Custom Models
PDF
CosmosDB for IoT Scenarios
PDF
Forecasting time series powerful and simple
PDF
Constrained Optimization with Genetic Algorithms and Project Bonsai
PDF
Azure security guidelines for developers
Multi-Agent Era will Define the Future of Software
LLM-based Multi-Agent Systems to Replace Traditional Software
LLM Security - Smart to protect, but too smart to be protected
What are Phi Small Language Models Capable of
Autonomous Control AI Training from Data
Autonomous Systems for Optimization and Control
Cybersecurity and Generative AI - for Good and Bad vol.2
Architecting AI Solutions in Azure for Business
Cybersecurity Challenges with Generative AI - for Good and Bad
JS-Experts - Cybersecurity for Generative AI
How do OpenAI GPT Models Work - Misconceptions and Tips for Developers
OpenAI GPT in Depth - Questions and Misconceptions
Cutting Edge Computer Vision for Everyone
Collecting and Analysing Spaceborn Data
Collecting and Analysing Satellite Data with Azure Orbital
Language Studio and Custom Models
CosmosDB for IoT Scenarios
Forecasting time series powerful and simple
Constrained Optimization with Genetic Algorithms and Project Bonsai
Azure security guidelines for developers

Recently uploaded (20)

PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Nekopoi APK 2025 free lastest update
PDF
System and Network Administration Chapter 2
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
top salesforce developer skills in 2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
history of c programming in notes for students .pptx
PPTX
assetexplorer- product-overview - presentation
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
ai tools demonstartion for schools and inter college
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
medical staffing services at VALiNTRY
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
2025 Textile ERP Trends: SAP, Odoo & Oracle
Nekopoi APK 2025 free lastest update
System and Network Administration Chapter 2
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
CHAPTER 2 - PM Management and IT Context
top salesforce developer skills in 2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
history of c programming in notes for students .pptx
assetexplorer- product-overview - presentation
PTS Company Brochure 2025 (1).pdf.......
Design an Analysis of Algorithms II-SECS-1021-03
ai tools demonstartion for schools and inter college
L1 - Introduction to python Backend.pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
medical staffing services at VALiNTRY
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Wondershare Filmora 15 Crack With Activation Key [2025

IoT, computer intelligence and javascript in the physical world

  • 1. Nov 19, 2016 Sofia var title = “IoT, Computer Intelligence and JavaScript in the Physical World”; var info = { name: “Ivelin Andreev”, otherOptional: “…” };
  • 2. Nov 19, 2016 About me • Project Manager @ o 14 years professional experience o .NET Web Development MCPD • External Expert Horizon 2020 • External Expert Eurostars • Business Interests o Web Development, SOA, Integration o Security & Performance Optimization o IoT, Computer Intelligence • Contact o ivelin.andreev@icb.bg o www.linkedin.com/in/ivelin o www.slideshare.net/ivoandreev
  • 3. agenda(); Nov 19, 2016 • What IoT IS and IS NOT? • Computer Intelligence • Azure Cognitive Services • Demo • Tessel v2 “Thing” • Node.js for “Things” • “Thing” in Action
  • 4. Nov 19, 2016 What is (NOT) IoT • A $1.5 trillion market by 2020 “… A network of networks of uniquely identifiable endpoints (‘things’) that communicate locally or globally using IP connectivity without human interaction …” International Data Corporation (IDC) • A “Thing”? o IP is not enough o Does not require human interaction o Often w/o display o Machine makes a decision rather than human
  • 5. Nov 19, 2016 Collect – Communicate – Analyse – Act
  • 6. Nov 19, 2016 IoT would not work w/o AI • How to make IoT? • More sensors = Seas of data • Just data has no value AI provides tools to go beyond trivial real-time IoT use cases AI Engines are: • Sophisticated • Time consuming • Expensive How to make IoT work?
  • 7. Nov 19, 2016 Microsoft Cognitive Services • Give your applications a human side o Intelligent APIs and SDKs o On top of Microsoft Machine Learning API • Initially “Project Oxford” o Announced on “Build 2015” • Pricing o All APIs have free plans available • Samples & Documentation o https://www.microsoft.com/cognitive-services/en-us/apis
  • 8. Nov 19, 2016 Vision API Allows computers to understand images and video • Computer Vision • Emotion • Face o Recognize faces and emotions o Group faces that are alike o Verify two faces are the same o Computer vision
  • 9. Nov 19, 2016 Cognitive Services (Highlights) • Speech o Convert Audio (Mic, File) <-> Text (28 languages) o Speaker Verification & Identification • Language o Language Understanding (Intent) o Sentiment Analysis o Topic detection • Knowledge o Entity Linking o Recommendations – Frequently bought together, Item to Item recommendations
  • 10. Nov 19, 2016 DEMO • Microsoft Cognitive Services https://www.microsoft.com/cognitive-services/en-us/apis
  • 11. Nov 19, 2016 IoT Challenges? • Non-proprietary technologies • Keep costs reasonable • CPU revolution • Network revolution • Battery revolution ?
  • 12. Nov 19, 2016 IoT from Cloud to Fog • Cloud Computing o Complex services accessible over the web o Rent resources (storage, power, processes) o Minimal management effort • Cloud computing issues? • Fog Computing o Lower cost of HW o Cloud services moved to the ground • Fogging advantages o Lower latency o Better QoS and UX o Improved security • Smart Gateways
  • 13. Nov 19, 2016 Hardware built for the web
  • 14. Nov 19, 2016 • By Technical Machine (2013) • Crowd funded at Dragon Innovation platform It is… • 2nd gen Internet connected microcontroller • Programmable in JavaScript • compatible • WiFi programmable • Open source HW and SW
  • 15. Nov 19, 2016 Tessel 2 at a glance 2 Tessel Module/Sensor Ports 2 USB Ports (Audio, Camera, 3G) 802.11 bgn WiFi (300Mbps, programmable) 10/100 Ethernet port 580MHz Mediatek CPU 48MHz ARM co-proc. (realtime I/O) 64MB DDR2 & 32 MB Flash Micro USB (power, tethered programming) • Lightweight OS o OpenWRT Linux • Engine o IO.js (V8 Node.js 4 fork)
  • 16. Nov 19, 2016 Plug & play modules • Literally Plug - NPM Install - Play
  • 17. Nov 19, 2016 Competitors Raspberry PI 3 Tessel 2 Cost $38 ($5 PI Zero on black market- $25) $45 Dealership Local International Shipping WiFi Built-in Supported languages C/C++, Java, Ruby, Python, Perl, C# (Mono), JS (Node.js) JS, Rust, Python CPU 1.2Ghz Quad 580Mhz Secondary GPU Co-processor Apps • PI Store (Not anymore) • https://www.hackster.io/raspberry-pi https://tessel.hackster.io/ Setup Raspbian Linux OS + apt-get No setup Power consumption 2.5A supply, 1.2-3.8W, Gets warm 0.85W Software deployment Wi-Fi USB and Wi-Fi Storage SD card slot 32MB Built-in + SD card module Built-in
  • 18. Nov 19, 2016 Production or just Playing? • Costs add up in scale o Element14(PI), Seeed Studio (Tessel) allow mass production customizations • Availability and quantity • Support and maintenance • Reliability & Security o SD card (PI) – system may not boot, card can be replaced o What is the worst thing to happen if controller stops? o Heat, moisture, dust, vibration, power loss… • Programmable logic controller (PLC) o Designed for rougher environments o Have 2-5x longer lifespan o Tight tolerance on performance o Non-popular programming languages
  • 19. Nov 19, 2016 JavaScript for IoT • Widely used o Strong community and ecosystem o Standardized (ECMAScript 5, 6, 7) • High-level language o More productive • Suited to embedded devices o Asynchronous function calls and I/O o Event-driven • High performance engines o Chrome V8 is nearly as fast as C++ o The fastest “high-level” language available • Platforms available o Johnny-Five Robotics & IoT Platform o CyclonJS
  • 20. Nov 19, 2016 JavaScript is not the same Node.js JavaScript • Designed for server-side o No GUI by default • Async and event-driven • Variety of protocols (n/o HTTP) • No built-in sandbox • Focus on functionality • Automatic download-install • Community driven modules HTML JavaScript • Designed for client-side o Generate and control UI • Control browser (window) • HTTP (+ HTML5 WebSocket) • Sandboxed • Focus on security • Manual download • Limited HW support o Browser specific (GPS, webcam)
  • 21. Nov 19, 2016 Node.js for IoT • Strong ecosystem and package management o 320’000+ packages, Growth 400+/day, npm package manager o 48% of IoT developers use Node.js • Programming model suites from embedded to servers o Event-driven model, Asynch functions o Support for C/C++ libraries (SWIG, node-ffi) • Completeness of Node.js o End-to-End solution (client-server) • Supported HW o Tessel 2, Raspberry PI, Intel Edison, Intel Galileo • Good documentation (Does not apply to modules) o https://nodejs.org/api/
  • 22. Nov 19, 2016 The right tools, the right time! Video URL: https://www.facebook.com/leopard.not.a/videos/10153985089504545/
  • 23. Nov 19, 2016 IO.js • Node.js problems o Lack of active contributors o Lack of releases • IO.js is a Node.js fork (2014) o JavaScript platform built on Google V8 engine o Started by Node.js primary contributors o Open source o Compatible with most npm modules o More active developers than Node.js o Indefinitely backward compatible • Merged to Node.js again 
  • 24. Nov 19, 2016 Tessel in Action (Demo) • require('tessel') • require('tessel-av') o https://github.com/tessel/tessel-av • require('servo-pca9685') o https://github.com/tessel/servo-pca9685 • require('http'); require('https') o https://nodejs.org/api/http.html, https://nodejs.org/api/https.html • require('request‘) o https://github.com/request/request • require('os') o https://nodejs.org/api/os.html
  • 25. Nov 19, 2016 Making it work • Install Node.js (v4.4.3 LTS or later) https://tessel.github.io/t2-start/ • Install Tessel CLI • Plugin Tessel to USB & Boot (30s) • Verify Tessel connection • Connect to WiFi • Run npm install -g t2-cli t2 list t2 wifi –n NetworkName –p password t2 init … edit index.js … t2 run index.js
  • 26. Nov 19, 2016 Developers need to Know! • Pricing o Board: $44.45 (was $35 on preorder) o 10-pin Modules: $25-50 + common USB modules • Tessel Community and Projects o https://tessel.hackster.io/, https://tessel.io/community • Tessel Support o https://forums.tessel.io/ • JavaScript IoT Projects and Platforms o http://www.postscapes.com/javascript-and-the-internet-of-things/ o J5 Robotics & IoT Platform (http://johnny-five.io/examples/) o CyclonJS (https://cylonjs.com/documentation/platforms/)
  • 27. Nov 19, 2016 Thanks to our Sponsors: General Sponsor: Gold Sponsors: Media Partners: Technological Partners: Hosting Partner: