Slide 1

Slide 1 text

monsters, mailboxes and other non-sense

Slide 2

Slide 2 text

a new home

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

10 meter

Slide 6

Slide 6 text

the house 
 of the future

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

433MHz

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

IoT is actually incredibly boring

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

raspberry pi with domoticz

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

chicken thermostat

Slide 20

Slide 20 text

brrrr!

Slide 21

Slide 21 text

kippenwaterdrinkbak (chicken water trough)

Slide 22

Slide 22 text

kippenwaterdrinkbakverwarmingselement (chicken water trough heater)

Slide 23

Slide 23 text

kippenwaterdrinkbakverwarmingselementschakelaar (chicken water trough heater switch)

Slide 24

Slide 24 text

kippenwaterdrinkbakverwarmingselementschakelaarthermometer (chicken water trough heater switch thermometer)

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

rfxcom

Slide 27

Slide 27 text

every 30 seconds a “ping” with the temperature

Slide 28

Slide 28 text

temperature below zero, turn on the heater

Slide 29

Slide 29 text

turn klikaanklikuit switch on

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

The “S” in IoT stands for security

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

the fiery
 witches kettle

Slide 34

Slide 34 text

Do-it-yourself IoT

Slide 35

Slide 35 text

brains (or microcontrollers)

Slide 36

Slide 36 text

Arduino Uno
 ATmega238
 16 Mhz
 2 KB RAM
 32 KB Flash

Slide 37

Slide 37 text

ESP-01
 ESP 8266 
 80 Mhz
 128 KB RAM
 512 KB Flash


Slide 38

Slide 38 text

NodeMCU
 ESP 8266
 80 Mhz
 128 KB RAM
 4 MB Flash


Slide 39

Slide 39 text

NodeMCU

Slide 40

Slide 40 text

Neopixel
 24 serial 
 connected 
 WS2812 RGB 
 LEDs

Slide 41

Slide 41 text

#include #define PIN D1 #define PIXELS 24 Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup(void) { strip.begin(); strip.setBrightness(255); strip.setPixelColor(0, strip.Color(0, 0, 255)); strip.show(); } void loop(void) { }

Slide 42

Slide 42 text

int i = 0; void setup(void) { strip.begin(); strip.setBrightness(255); } void loop(void) { i = (i + 1) % PIXELS; strip.setPixelColor(i % PIXELS, strip.Color(0, 0, 0)); strip.setPixelColor((i + 1) % PIXELS, strip.Color(0, 0, 63)); strip.setPixelColor((i + 2) % PIXELS, strip.Color(0, 0, 127)); strip.setPixelColor((i + 3) % PIXELS, strip.Color(0, 0, 195)); strip.setPixelColor((i + 4) % PIXELS, strip.Color(0, 0, 255)); strip.show(); delay(8); }

Slide 43

Slide 43 text

?! JavaScript? And C?
 Kinda the same. Just about.
 Not quite. No.

Slide 44

Slide 44 text

IKEA SOMMAR 2017 lantern

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

WiFi must be very complicated…

Slide 50

Slide 50 text

const char* ssid = "........"; const char* password = "........"; ESP8266WebServer server(80); void setup(void) { WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) delay(500); server.on("/on", [](){ server.send(200, "text/plain", "on"); }); server.on("/off", [](){ server.send(200, "text/plain", "off"); }); server.begin(); } void loop(void) { server.handleClient(); }

Slide 51

Slide 51 text

http:/ /sparkle.local/api?command=power&status
 command=power&on
 command=power&off command=brightness&status
 command=brightness&set=50 command=color&status
 command=color&set=f34d0d

Slide 52

Slide 52 text

homebridge homebridge-better-http-rgb

Slide 53

Slide 53 text

siri

Slide 54

Slide 54 text

siri

Slide 55

Slide 55 text

pixel monsters

Slide 56

Slide 56 text

Prolight 12W ceiling lamp

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Neopixel
 64 serial 
 connected 
 WS2812 RGB 
 LEDs

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

SD card Storage of monsters Buzzer Beeps for notifications Lightsensitive resistor Night-mode

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

progressive
 web app

Slide 66

Slide 66 text

http:/ /pixel.local

Slide 67

Slide 67 text

http:/ /pixel.local

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

editor.addEventListener('touchstart', handleTouch); editor.addEventListener('touchmove', handleTouch); function handleTouch(e) { for (var i = 0; i < e.changedTouches.length; i++) { let elem = document.elementFromPoint( e.changedTouches[i].pageX, e.changedTouches[i].pageY ); if (elem.tagName && elem.tagName == 'TD' && 
 editor.contains(elem)) 
 { drawPixel(elem); } } e.preventDefault(); }

Slide 70

Slide 70 text

editor.addEventListener('touchstart', handleTouch); editor.addEventListener('touchmove', handleTouch); function handleTouch(e) { for (var i = 0; i < e.changedTouches.length; i++) { let elem = document.elementFromPoint( e.changedTouches[i].pageX, e.changedTouches[i].pageY ); if (elem.tagName && elem.tagName == 'TD' && 
 editor.contains(elem)) 
 { drawPixel(elem); } } e.preventDefault(); }

Slide 71

Slide 71 text

let socket = new WebSocket( "ws://" + window.location.host + "/ws" ); function drawPixel(elem) { if (elem.dataset.color != currentColor) { elem.dataset.color = currentColor; elem.style.backgroundColor = '#' + currentColor; socket.send(JSON.stringify({ command: "draw", x: elem.dataset.x, y: elem.dataset.y, color: currentColor })); } }

Slide 72

Slide 72 text

let socket = new WebSocket( "ws://" + window.location.host + "/ws" ); function drawPixel(elem) { if (elem.dataset.color != currentColor) { elem.dataset.color = currentColor; elem.style.backgroundColor = '#' + currentColor; socket.send(JSON.stringify({ command: "draw", x: elem.dataset.x, y: elem.dataset.y, color: currentColor })); } }

Slide 73

Slide 73 text

{
 "command": "draw",
 "x": 5,
 "y": 5,
 "color": "ffffff"
 }

Slide 74

Slide 74 text

{
 "command": "draw",
 "x": 5,
 "y": 5,
 "color": "ffffff"
 }

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

socket.onmessage = function(msg) { let data = JSON.parse(msg.data); if (data.command == "draw") { let elem = document.querySelector( 'td[data-x=' + data.x + ']' + 
 '[data-y=' + data.y + ']' ); elem.dataset.color = data.color; elem.style.backgroundColor = '#' + data.color }; } }

Slide 79

Slide 79 text

socket.onmessage = function(msg) { let data = JSON.parse(msg.data); if (data.command == "draw") { let elem = document.querySelector( 'td[data-x=' + data.x + ']' + 
 '[data-y=' + data.y + ']' ); elem.dataset.color = data.color; elem.style.backgroundColor = '#' + data.color }; } }

Slide 80

Slide 80 text

demo

Slide 81

Slide 81 text

the mystery
 of the 
 haunted mailbox

Slide 82

Slide 82 text

mail box

Slide 83

Slide 83 text

magnetic contact

Slide 84

Slide 84 text

when the mailbox opens it sends a signal

Slide 85

Slide 85 text

http:/ /pixel.local/api?command=notify&icon=mailbox

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

solution #1 combine the 
 magnetic contact 
 with a motion sensor?

Slide 90

Slide 90 text

solution #2 turn off the
 magnetic contact with
 strong westerly winds?

Slide 91

Slide 91 text

solution #3

Slide 92

Slide 92 text

the fickle
 washing machine

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

Standby usage
 4,6 watt Washing machine off
 0,3 watt Start program
 24,9 watt

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

Laundry is done

Slide 98

Slide 98 text

Laundry is done Laundry is done Laundry is done Laundry is done

Slide 99

Slide 99 text

No content

Slide 100

Slide 100 text

2000 watt

Slide 101

Slide 101 text

20 - 200 watt

Slide 102

Slide 102 text

2 - 5 watt

Slide 103

Slide 103 text

Laundry is done Laundry is done Laundry is done Laundry is done

Slide 104

Slide 104 text

No content

Slide 105

Slide 105 text

commandArray = {} if (uservariables['WasmachineBezig'] == 2) then s = uservariables_lastupdate['WasmachineBezig'] lastUpdate = os.time{ year=string.sub(s, 1, 4), month=string.sub(s, 6, 7), day=string.sub(s, 9, 10), hour=string.sub(s, 12, 13), min=string.sub(s, 15, 16), sec=string.sub(s, 18, 19) } difference = os.difftime (os.time(), lastUpdate) if (difference > 300) then commandArray['Variable:WasmachineBezig'] = '0' commandArray['OpenURL'] = 'pixel.local/api?command=notify&icon=shirt' end end return commandArray

Slide 106

Slide 106 text

Laundry is done

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

questions?