Slide 1

Slide 1 text

monsters, brievenbussen en andere onzin

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

een nieuw huis

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

10 meter

Slide 8

Slide 8 text

het huis 
 van de toekomst

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

IoT is zo ongelofelijk saai

Slide 11

Slide 11 text

433MHz

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

mesh networking

Slide 17

Slide 17 text

afstand mesh rechtstreeks 2-weg standaard ̣ ✔ ✔ ✔ ̣̣ ✱ ✔ ✔ ✔ 433 MHz ̣̣̣ ✱ ̣̣̣̣ ✔ ✔ ✱ ̣̣̣̣ ✔ ✔ ✔

Slide 18

Slide 18 text

raspberry pi met domoticz

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

kippenverwarming

Slide 22

Slide 22 text

brrrr!

Slide 23

Slide 23 text

kippenwaterdrinkbak

Slide 24

Slide 24 text

kippenwaterdrinkbakverwarmingselement

Slide 25

Slide 25 text

kippenwaterdrinkbakverwarmingselementschakelaar

Slide 26

Slide 26 text

kippenwaterdrinkbakverwarmingselementschakelaarthermometer

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

rfxcom

Slide 29

Slide 29 text

elke 30 seconden een “ping” met de temperatuur

Slide 30

Slide 30 text

temperatuur onder nul, zet de verwarming aan

Slide 31

Slide 31 text

zet klikaanklikuit schakelaar aan

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

The “S” in IoT stands for security

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

de vurige 
 heksenpot

Slide 36

Slide 36 text

Doe-het-zelf IoT

Slide 37

Slide 37 text

brains (oftewel microcontrollers)

Slide 38

Slide 38 text

Arduino Uno
 ATmega238
 16 Mhz
 2 KB RAM
 32 KB Flash

Slide 39

Slide 39 text

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


Slide 40

Slide 40 text

NodeMCU
 ESP 8266
 80 Mhz
 128 KB RAM
 4 MB Flash


Slide 41

Slide 41 text

NodeMCU

Slide 42

Slide 42 text

Neopixel
 24 serieel 
 geschakelde 
 WS2812 RGB 
 LEDs

Slide 43

Slide 43 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 44

Slide 44 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 45

Slide 45 text

?! JavaScript? En C?
 Zo'n beetje hetzelfde. Ongeveer.
 Niet helemaal. Nee.

Slide 46

Slide 46 text

IKEA SOMMAR 2017 theelichthouder

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

WiFi is vast heel moeilijk…

Slide 52

Slide 52 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 53

Slide 53 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 54

Slide 54 text

homebridge homebridge-better-http-rgb

Slide 55

Slide 55 text

siri

Slide 56

Slide 56 text

pixel monsters

Slide 57

Slide 57 text

Prolight 12W plafondlamp

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

Neopixel
 64 serieel 
 geschakelde 
 WS2812 RGB 
 LEDs

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

SD card Opslag van monsters Buzzer Piepjes voor een notificatie Lichtgevoelige weerstand Nachtstand

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

No content

Slide 66

Slide 66 text

progressive
 web app

Slide 67

Slide 67 text

http:/ /pixel.local

Slide 68

Slide 68 text

http:/ /pixel.local

Slide 69

Slide 69 text

No content

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

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 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

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 74

Slide 74 text

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

Slide 75

Slide 75 text

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

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

het mysterie 
 van de 
 spookbrievenbus

Slide 82

Slide 82 text

brieven bus

Slide 83

Slide 83 text

magneetcontact

Slide 84

Slide 84 text

bij openen van de deksel een signaal

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

oplossing #1 magneetcontact
 combineren met een 
 bewegingsdetector?

Slide 90

Slide 90 text

oplossing #2 magneetcontact
 uitzetten bij 
 harde westenwind?

Slide 91

Slide 91 text

oplossing #3

Slide 92

Slide 92 text

de wispelturige
 wasmachine

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

Standby verbruik
 4,6 watt Wasmachine uit
 0,3 watt Begin programma
 24,9 watt

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

De was is klaar!

Slide 98

Slide 98 text

De was is klaar! De was is klaar! De was is klaar! De was is klaar!

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

De was is klaar! De was is klaar! De was is klaar! De was is klaar!

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

De was is klaar!

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

vragen?