Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Home Automation with LinkSprite IO

2,042 views

Published on

Home Automation with LinkSprite IO

Published in: Devices & Hardware
  • Be the first to comment

  • Be the first to like this

Home Automation with LinkSprite IO

  1. 1. Open Source Home Automation With LinkSprite.IO Jingfeng Liu
  2. 2. LinkSprite IO
  3. 3. LinkSprite IO
  4. 4. $9 WiFi Arduino: LinkNode D1
  5. 5. LinkNode R4
  6. 6. LinkNode D1 based Home Automation
  7. 7. 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
  8. 8. Software  Arduino IDE with ESP8266 hardware package  Android SDK and Java
  9. 9. 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");  }
  10. 10. 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 +=""rn";  postStr +="}";  postStr +="}";   client.print("POST /api/http HTTP/1.1n");  client.print("Host: ");  client.print(server);  client.print("nContent-Type: application/jsonn");  client.print("Content-Length: ");  client.print(postStr.length());  client.print("nn");  client.print(postStr);
  11. 11. Zigbee pcDuino based Home Automation
  12. 12. Thank you!

×