building iot devices for fun and profit - mobile era 2016
TRANSCRIPT
![Page 1: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/1.jpg)
Building IoT devices
Mobile Era 4 November 2016
for fun and profit
![Page 2: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/2.jpg)
@janjongboom
Developer EvangelistInternet of Things
![Page 3: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/3.jpg)
Developers
![Page 4: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/4.jpg)
From the internet of humans to the internet of devices
![Page 5: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/5.jpg)
![Page 6: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/6.jpg)
![Page 7: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/7.jpg)
![Page 8: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/8.jpg)
Who is making decisions when it comes to IoT?
![Page 9: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/9.jpg)
NO
![Page 10: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/10.jpg)
![Page 11: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/11.jpg)
Real life example - Telenor
▪ Big telecom company
▪ Owns 4,000 buildings in Norway
▪ Toilet cleaning schedule made by 'hand'
Less people needed Automatic planningRealtime insight
![Page 12: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/12.jpg)
Real life example - Telenor
▪ Big telecom company
▪ Owns 4,000 buildings in Norway
▪ Toilet cleaning schedule made by 'hand'
Less people needed Automatic planningRealtime insight
![Page 13: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/13.jpg)
Internet of Things issensors + data intelligence
![Page 14: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/14.jpg)
Three problemsHow to build smart devices?
How to discover devices?
How to interact with devices?
![Page 15: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/15.jpg)
Discovering devices
![Page 16: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/16.jpg)
Physical WebWalk up and use anything
![Page 17: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/17.jpg)
![Page 18: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/18.jpg)
BLE beacons31 bytes per packet
1 packet per second
7 years on an AA battery
![Page 19: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/19.jpg)
Eddystone protocol
![Page 21: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/21.jpg)
![Page 22: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/22.jpg)
![Page 23: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/23.jpg)
Retail $4, Chipset $2
![Page 24: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/24.jpg)
Interactivity
![Page 25: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/25.jpg)
BLE is more than beacons
Battery service Heartrate service
Percentage
Capacity
Current HR
Max. detectable HR
![Page 26: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/26.jpg)
Flying serviceDirection and height characteristics
![Page 27: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/27.jpg)
nRF Master Control Panel
![Page 28: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/28.jpg)
![Page 29: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/29.jpg)
![Page 30: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/30.jpg)
![Page 31: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/31.jpg)
![Page 32: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/32.jpg)
Programming devices
![Page 33: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/33.jpg)
One year on AA battery 0.137 mA
220 mARaspberry Pi 3 (idle)
![Page 34: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/34.jpg)
microcontrollersPain to program against (C, ASM)
Little code re-use
No code sharing
![Page 35: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/35.jpg)
(since 2009)
mbed
![Page 36: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/36.jpg)
Online IDE
Code sharing
Hardware Abstraction Layer
![Page 37: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/37.jpg)
> 100 boards supported
~200 staff working on it
1.3 mio compiles / month
![Page 38: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/38.jpg)
![Page 39: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/39.jpg)
nRF51822Nordic Semiconductors
![Page 40: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/40.jpg)
![Page 41: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/41.jpg)
Developing for mbedC / C++ (not as scary as it sounds)
Large set of libraries
Solid Bluetooth stack
https://developer.mbed.org/blog/entry/Bringing-JavaScript-to-mbed-OS/
![Page 42: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/42.jpg)
![Page 43: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/43.jpg)
One year on AA battery 0.137 mA
220 mARaspberry Pi 3 (idle)
0.020 mAmbed OS 5 beaconEddystone, 1s interval, lowest power mode
![Page 44: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/44.jpg)
Let's build some demo's!
![Page 45: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/45.jpg)
Get hacking!
![Page 46: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/46.jpg)
Thank you!http://janjongboom.com
@janjongboom
![Page 47: Building IoT devices for fun and profit - Mobile Era 2016](https://reader031.vdocument.in/reader031/viewer/2022012919/5872c7411a28ab0c718b6713/html5/thumbnails/47.jpg)
Links• Juggling demo: https://github.com/web-bluetooth/juggling
• Lights demo: https://github.com/janjongboom/codefest-ru
• Google Eddystone lib: https://github.com/roywant/EddystoneBeacon
• JavaScript on mbed: https://developer.mbed.org/blog/entry/Bringing-JavaScript-to-mbed-OS/
• mbed Developer site: http://developer.mbed.org