open source home automation with linksprite.io
TRANSCRIPT
![Page 1: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/1.jpg)
Open Source Home Automation With
LinkSprite.IO
Jingfeng Liu
![Page 2: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/2.jpg)
LinkSprite IO
![Page 3: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/3.jpg)
LinkSprite IO
![Page 4: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/4.jpg)
![Page 5: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/5.jpg)
![Page 6: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/6.jpg)
![Page 7: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/7.jpg)
![Page 8: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/8.jpg)
![Page 9: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/9.jpg)
![Page 11: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/11.jpg)
![Page 12: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/12.jpg)
![Page 13: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/13.jpg)
LinkNode R4
![Page 14: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/14.jpg)
LinkNode D1 based Home Automation
![Page 15: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/15.jpg)
![Page 16: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/16.jpg)
Hardware List LinkNode D1 Linker Base for D1 Llnker Oxygen Sensor Linker temperature & humidity sensor Linker relay module Linker LED module IR distance sensor Servo 1602 LCD
![Page 17: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/17.jpg)
Software Arduino IDE with ESP8266
hardware package Android SDK and Java
![Page 18: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/18.jpg)
![Page 19: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/19.jpg)
Arduino Code for WiFi include <ESP8266WiFi.h> #include <WString.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> void linksprite_io_init() { WiFiManager wifiManager; wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1),
IPAddress(10,0,1,1), IPAddress(255,255,255,0)); wifiManager.autoConnect("LinkNodeAP"); Serial.print("WiFi Connected ...\n"); Serial.println("WiFi connected"); }
![Page 20: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/20.jpg)
json format to LinkSpriteIO using HTTP post request
if (client.connect(server,80)) { String postStr ="{"; postStr +="\"action\":\"update\","; postStr +="\"apikey\":\""; postStr += apikey; postStr +="\","; postStr +="\"deviceid\":\""; postStr += deviceID; postStr +="\","; postStr +="\"params\":"; postStr +="{"; ... postStr +="\"humidity\":\""; itoa(h,hum,10); postStr +=hum; postStr +="\"\r\n"; postStr +="}"; postStr +="}"; client.print("POST /api/http HTTP/1.1\n"); client.print("Host: "); client.print(server); client.print("\nContent-Type: application/json\n"); client.print("Content-Length: "); client.print(postStr.length()); client.print("\n\n"); client.print(postStr);
![Page 22: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/22.jpg)
Zigbee pcDuino based Home Automation
![Page 23: Open Source Home Automation with LinkSprite.IO](https://reader035.vdocuments.mx/reader035/viewer/2022070519/58ef2cf91a28abcc268b463b/html5/thumbnails/23.jpg)
Thank you!