ESP8266 Source Code and Web App Source Code ( HTML5 ) https://github.com/anunpanya/tutorialNETPIE-SmartPlug About ESP8266 Code and Web App Code You need register and login to get APPID, APPKEY and APPSECRET. Then Use them to your code. ESP8266 Code
ESP8266 WiFi Development kit connect TFT LCD Display
Wiring Diagram
TFT LCD Pin VCC
TFT LCD Pin GND
TFT LCD Pin CS to GPIO_5
TFT LCD Pin RST to RST
TFT LCD Pin DC to GPIO_2
TFT LCD Pin MOSI to GPIO_13
TFT LCD Pin CLK to GPIO_14
TFT LCD Pin LED to +3.3 V.
TFT LCD Pin MISO ( not use )
Hardware
1.ESP8266 WiFi Module ( ESP8266 DevKit or NodeMCU )
2.TFT LCD 2.2 Inch : TFT01-2.2SP from Electrofreak (SPI Bus )
Software Test on Arduino IDE
Goto Menu Files => Examples => Adafriut ILI9341 => graphictest
If you don't have that examples. Must Include Library First Goto Menu Sketch => Include Library => Manage Library
Input "Adafruit ILI9341" in Filter your Search...
Your will find Adafruit ILI9341 Then Install it.
Now.Your will have Adafruit ILI9341 Examples.
Open Code and edit some pin Changes #define TFT_DC 9 to 2 #define TFT_CS 10 to 5
Arduino IoT Send Sensor Data to IBM Bluemix ( IBM Internet of Things Foundation )
IoT Technology has many tools for developers or makers.
IBM Bluemix is a tool for IoT. I've try to use IBM Bluemix and share my project to you.
Project Concept is show in System Diagram Picture.
System Diagram
Hardware 1.Arduino UNO Board ( or Other Arduino Board ) 2.Ethernet Shield 3.DHT11 Temperature and Humidity Sensor Wiring Diagram
DHT11 pin 2 (Data ) to Arduino PIN D8
Arduino Code Original code form IBM developWorks MQTT_IOT_SENSORS.ino http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=982620&filename=MQTT_IOT_SENSORS.ino&method=http&locale=
What is IOT Bluemix and IBM Internet of Things Foundation?
IBM Bluemix is an open-standards, cloud platform for building, running, and managing applications.
With Bluemix, developers can focus on building excellent user experiences with flexible compute options, choice of DevOps tooling, and a powerful set of IBM and third-party APIs and services.
IBM Internet of Things (IoT) Foundation and the capabilities for IoT development that are part of IBM Bluemix.
How to Send Sensor Data to IoT IBM Bluemix.
Do you have seen this video yet?
Edit some Arduino code Your Mac Addressxx xx xx xx xx xx Your Internet Gateway 123.456.x.xxx Your IP Address 123.456.x.xxx
Test your Arduino Code
Open Serial Monitor on Arduino IDE
Read temperature and humidity OK.
connect to d:quickstart:arduino:deedbafefeed OK.
Software 1.ESP8266 firmware 2.Arduino Code 3.ThingSpeak.com ESP8266 firmware
You need to upload new firmware to your ESP8266 Module. Download Firmware from ESPDUINO https://github.com/tuanpmt/espduino
Firmware is in folder espduino-master/esp8266/release/
It has 2 files . 0x00000.bin 0x40000.bin
Arduino ESP8266 Sent Sensor data to IoT ThingSpeak
( Internet of Things )
A major component of or rather the very concept, Internet of Things, is about how to connect various devices to the network so that they can both send data and receive commands. Various technologies to address the last mile connectivity, such as Bluetooth, WiFi, NFC, etc... already exist, but most of these are complicated to deploy and often need additional hardware such as a local control server or appliance.
System Diagram
Hardware
Arduino Board or compatible board
ESP8266 WiFi Module ( ESP-01 ) with Flash New Firmware.
What is Thingspeak?
ThingSpeak is an open source “Internet of Things” application and API to store and retrieve data from things using HTTP over the Internet or via a Local Area Network. With ThingSpeak, you can create sensor logging applications, location tracking applications, and a social network of things with status updates.
Then we use ThingSpeak Channel to store and show your sensor data over Internet HTTP.