building iot devices for fun and profit - mobile era 2016

47
Building IoT devices Mobile Era 4 November 2016 for fun and prot

Upload: jan-jongboom

Post on 09-Jan-2017

143 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Building IoT devices for fun and profit - Mobile Era 2016

Building IoT devices

Mobile Era 4 November 2016

for fun and profit

Page 2: Building IoT devices for fun and profit - Mobile Era 2016

@janjongboom

Developer EvangelistInternet of Things

Page 3: Building IoT devices for fun and profit - Mobile Era 2016

Developers

Page 4: Building IoT devices for fun and profit - Mobile Era 2016

From the internet of humans to the internet of devices

Page 5: Building IoT devices for fun and profit - Mobile Era 2016
Page 6: Building IoT devices for fun and profit - Mobile Era 2016
Page 7: Building IoT devices for fun and profit - Mobile Era 2016
Page 8: Building IoT devices for fun and profit - Mobile Era 2016

Who is making decisions when it comes to IoT?

Page 9: Building IoT devices for fun and profit - Mobile Era 2016

NO

Page 10: Building IoT devices for fun and profit - Mobile Era 2016
Page 11: Building IoT devices for fun and profit - Mobile Era 2016

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

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

Internet of Things issensors + data intelligence

Page 14: Building IoT devices for fun and profit - Mobile Era 2016

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

Discovering devices

Page 16: Building IoT devices for fun and profit - Mobile Era 2016

Physical WebWalk up and use anything

Page 17: Building IoT devices for fun and profit - Mobile Era 2016
Page 18: Building IoT devices for fun and profit - Mobile Era 2016

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

Eddystone protocol

Page 20: Building IoT devices for fun and profit - Mobile Era 2016

Movie poster

http://cinema/3281

Page 21: Building IoT devices for fun and profit - Mobile Era 2016
Page 22: Building IoT devices for fun and profit - Mobile Era 2016
Page 23: Building IoT devices for fun and profit - Mobile Era 2016

Retail $4, Chipset $2

Page 24: Building IoT devices for fun and profit - Mobile Era 2016

Interactivity

Page 25: Building IoT devices for fun and profit - Mobile Era 2016

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

Flying serviceDirection and height characteristics

Page 27: Building IoT devices for fun and profit - Mobile Era 2016

nRF Master Control Panel

Page 28: Building IoT devices for fun and profit - Mobile Era 2016
Page 29: Building IoT devices for fun and profit - Mobile Era 2016
Page 30: Building IoT devices for fun and profit - Mobile Era 2016
Page 31: Building IoT devices for fun and profit - Mobile Era 2016
Page 32: Building IoT devices for fun and profit - Mobile Era 2016

Programming devices

Page 33: Building IoT devices for fun and profit - Mobile Era 2016

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

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

(since 2009)

mbed

Page 36: Building IoT devices for fun and profit - Mobile Era 2016

Online IDE

Code sharing

Hardware Abstraction Layer

Page 37: Building IoT devices for fun and profit - Mobile Era 2016

> 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
Page 39: Building IoT devices for fun and profit - Mobile Era 2016

nRF51822Nordic Semiconductors

Page 40: Building IoT devices for fun and profit - Mobile Era 2016
Page 41: Building IoT devices for fun and profit - Mobile Era 2016

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
Page 43: Building IoT devices for fun and profit - Mobile Era 2016

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

Let's build some demo's!

Page 45: Building IoT devices for fun and profit - Mobile Era 2016

Get hacking!

Page 46: Building IoT devices for fun and profit - Mobile Era 2016

Thank you!http://janjongboom.com

@janjongboom

Page 47: Building IoT devices for fun and profit - Mobile Era 2016

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