Makes IoT Prototyping Fun

Jen Tong

Google Cloud Platform Developer Advocate

@MimmingCodes
mimming.com

How many of you...

  • Are EEs?
  • Know JavaScript better than C?
  • Own a dusty Arduino or Raspberry Pi?

Bits & Volts

0 Bit

1 Bit

Analog

PWM

Components

Kind of like Legos... But, sometimes they dance, sometimes they catch fire

The Recipe



Components

Arduino Uno

Raspberry Pi

Johnny-Five

Firebase


Diagrams made in Fritzing

Johnny-Five

Firebase

Goodies to make app dev easier


Realtime Data

Authentication

Hosting

Firebase Realtime Database


Realtime is where your bus is

https://wherebus.firebaseapp.com

Realtime is collaborative drawing

https://firesketch.firebaseapp.com

Some JavaScript code


Connect


var firebase = require("firebase");
firebase.initializeApp({
  apiKey: "AIcorrectHorseBatteryStapler2141",
  projectId: "espbutton", ...
});
var ref = firebase.database().ref();


Write Data


  ref.set("Hello, Developers!");


Read Data


ref.on("value", function (snapshot) {
  console.log(snapshot.val());
});

Time to build something



The "Hello, World" of electronics: an LED Button

Silly Demos

Another Silly Demo

https://firesketch.firebaseapp.com

Parting Words

  • Isn't that easy?
  • Let projects guide your hacking
  • Experiment!
  • Celebrate the first thing you burn up

Now go build cool stuff