Home Automation with LinkSprite IO
-
Upload
jingfeng-liu -
Category
Devices & Hardware
-
view
1.262 -
download
2
Transcript of Home Automation with LinkSprite IO
![Page 1: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/1.jpg)
Open Source Home Automation With
LinkSprite.IO
Jingfeng Liu
![Page 2: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/2.jpg)
LinkSprite IO
![Page 3: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/3.jpg)
LinkSprite IO
![Page 4: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/4.jpg)
![Page 5: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/5.jpg)
![Page 6: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/6.jpg)
![Page 7: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/7.jpg)
![Page 8: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/8.jpg)
![Page 9: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/9.jpg)
![Page 11: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/11.jpg)
![Page 12: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/12.jpg)
![Page 13: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/13.jpg)
LinkNode R4
![Page 14: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/14.jpg)
LinkNode D1 based Home Automation
![Page 15: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/15.jpg)
![Page 16: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/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: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/17.jpg)
Software Arduino IDE with ESP8266
hardware package Android SDK and Java
![Page 18: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/18.jpg)
![Page 19: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/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: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/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: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/22.jpg)
Zigbee pcDuino based Home Automation
![Page 23: Home Automation with LinkSprite IO](https://reader036.fdocuments.in/reader036/viewer/2022070521/58ef2c8d1a28ab32258b4589/html5/thumbnails/23.jpg)
Thank you!