Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Run your JavaScript app for years on a coin cell - JSConf.asia 2016

1.678 visualizaciones

Publicado el

Jan Jongboom - Run your JS app for years on a coin cell. Presentation given during JSConf.asia 2016 in Singapore about mbed, JerryScript, IoT, Johnny Five and JavaScript.

Publicado en: Internet
  • Sé el primero en comentar

Run your JavaScript app for years on a coin cell - JSConf.asia 2016

  1. 1. Running your JS app JSConf.asia 25 November 2016 for years on a coin cell
  2. 2. Developer Evangelist Internet of Things
  3. 3. JavaScript inside
  4. 4. We're using quad-core machines to run a temperature sensor
  5. 5. 0.137 mA 220 mARaspberry Pi 3 (idle) One year on AA battery
  6. 6. YES, WE CAN!
  7. 7. microcontrollers
  8. 8. mbed Unify microcontroller development > 100 boards supported Lot of APIs / libaries / community But... in C++ Developed by Samsung JS VM for constrained devices Can run in 64K of RAM Written in C++ JavaScript on mbed
  9. 9. JS on mbed - Best of both worlds • Runs on > 40 boards already • Drivers, OS, critical paths in C++ • Deep sleep built-in • Big library ecosystem, and many connectivity methods • Application code can run in JS, and interop with C++
  10. 10. $ git clone https://github.com/armmbed/mbed-js-example $ gulp --target=NRF52_DK # Drag file onto board (mounts as mass storage) 1 var led = DigitalOut(LED1); 2 3 setInterval(function() { 4 led.write(lead.read() ? 0 : 1); 5 }, 1000);
  11. 11. www.microbit.co.uk
  12. 12. Abstracting away many microcontroller 'problems' Thread management, interrupts, context switching, power management
  13. 13. 0.137 mA 220 mARaspberry Pi 3 (idle) One year on AA battery 0.020 mAJS on mbed beacon 1s interval, lowest power mode, nRF52-DK
  14. 14. Current state • > 40 boards supported (from 9$) • Need C++ / JS bindings for libraries • Apache 2.0 licensed • Very beta... But please help us! http://mbed.com/js
  15. 15. Thank you! http://mbed.com/js @janjongboom

×