+ All Categories
Home > Devices & Hardware > Home Automation with LinkSprite IO

Home Automation with LinkSprite IO

Date post: 13-Apr-2017
Category:
Upload: jingfeng-liu
View: 1,261 times
Download: 2 times
Share this document with a friend
23
Open Source Home Automation With LinkSprite.IO Jingfeng Liu
Transcript
Page 1: Home Automation with LinkSprite IO

Open Source Home Automation With

LinkSprite.IO

Jingfeng Liu

Page 2: Home Automation with LinkSprite IO

LinkSprite IO

Page 3: Home Automation with LinkSprite IO

LinkSprite IO

Page 4: Home Automation with LinkSprite IO
Page 5: Home Automation with LinkSprite IO
Page 6: Home Automation with LinkSprite IO
Page 7: Home Automation with LinkSprite IO
Page 8: Home Automation with LinkSprite IO
Page 9: Home Automation with LinkSprite IO
Page 11: Home Automation with LinkSprite IO
Page 12: Home Automation with LinkSprite IO
Page 13: Home Automation with LinkSprite IO

LinkNode R4

Page 15: Home Automation with LinkSprite IO
Page 16: Home Automation with LinkSprite IO

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

Software Arduino IDE with ESP8266

hardware package Android SDK and Java

Page 18: Home Automation with LinkSprite IO
Page 19: Home Automation with LinkSprite IO

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

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

Zigbee pcDuino based Home Automation

Page 23: Home Automation with LinkSprite IO

Thank you!


Recommended