Creating the Internet of Things with JavaScript @sh1mmer
The rise of the CPU
Moore’s Law
Rise of the network
Neilsen’s Law of Internet bandwidth
source: http://www.useit.com
The rise of the battery
The rise of the battery
Rechargeable Battery Capacity, Wh/Kg 400 New Li Tech 300 200 Li-ion/Poly NiMH 100 NiCd 0 1970 80 90 2000 10 Sources: The Economist, Avicenne Dashed lines denotes forecast data
Koomey’s Law
Processor Network Batteries Faster Faster & & Meh. Cheaper Cheaper
Network most drain CPU 2 nd most drain
Cost of power Server Internet Device Sensors Amount of Data
Sensors 10k /sec Device 1 /sec Server 1 /min
Hello, I am a chair.
Hello, I am still a chair.
Hello, I am a chair.
Hello, I’m Chair McClure. You may remember me from such slides as “I am a chair”.
Minimize amount of data Maximize usefulness
Event Driven Programming
object.on('event', function callback(data){ //stuff });
It got dark in here.
Can you turn yourself on please?
I turned myself on.
Please turn yourself off.
It turned myself off.
Data in/out Commands in/out
Processing on device reduces transmitted data by only sending interesting Events.
Events reduce the cost of listening for commands on the device
JavaScript applications are dynamic and can be updated over the network.
Easy JavaScript Internet of Things for You
BeagleBone
BeagleBone • Micro linux • Ships with • Node • Cloud 9 IDE • APIs to interact with hardware
NinjaBlocks
NinjaBlocks • BeagleBone • Pre-made sensors • Connects to cloud service
Tom Hughes-Croucher @sh1mmer

Creating the Internet of Things with JavaScript - Fluent Conf