|Table of Contents|
1. Component list
- 1× ESP8266-07
- 1x CP2102 usb to uart bridge
- 1x Bread Board Power Supply
- 1x 12V AC-DC Power Adaptor
- 2x 400pin Breadboard Wires
- 1× DHT11 temperature/Humidity sensor
- 1x 10k resistor
- 1x mini push button
2. Overall idea
We have discussed on one of other tutorial, how to use Raspberry Pi to monitor temperature/humidity using the GadgetKeeper.(Temperature monitoring with Raspberry Pi and DHT11/22 temperature and humidity sensor), and also how to use Arduino board instead of Raspberry Pi (Arduino Weather Station). But this time wi will use ESP8266 WiFi SoC as standalone device without Arduino to send data to GadgetKeeper Cloud.
3. Prepare the hardware
|Reset||via push button to gnd|
|GPIO12||DHT11 data pin|
NOTE: to upload code to ESP8266 first connect GPIO0 pin to ground, reset the ESP8266 WiFi module (I have done it via push button connected to ESP8266 reset pin and GND) then upload code. After uploading code GPIO0 can be disconnected again.
4. Configure Arduino IDE
into Additional Board Manager URLs field.
Click OK and go to Sketch -> Include Library -> Manage Libraries to open Board manager
In Boards Manager search for esp8266 and install the ESP8266 package.
5. Add required additional Arduino libraries
The required libraries can be downloaded from following link:
Installing Additional Arduino Libraries guidelines can be found on official Arduino site.
6. Configure GadgetKeeper
|Follow Create Event And Trigger tutorial if you need detailed "point and click" UI instructions.|
|For more information see "GadgetKeeper API" on GadgetKeeper Documentation.|
7. Arduino sketch
This is the esp8266 sketch for uploading temperature and humidity values to the GadgetKeeper. It can be also downloaded form github esp_weather_station.