Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
  • Wires

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

...

ESP8266 Wiring

PIN nameConnection
Resetvia push button to gnd
GPIO12DHT11 data pin
VCC3V3
TXDCP2102 TXD
RXDCP2102 RXD
GPIO0GND
GNDGND

...

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

...

Download Arduino IDE from Arduino.cc (1.6.4 or greater) - don't use 1.6.2! You can use your existing IDE if you have already installed it

...

into Additional Board Manager URLs field.

Image Modified

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.

Image Modified

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

...

Tip
Follow Create Event And Trigger tutorial if you need detailed "point and click" UI instructions.

...

Tip
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.

...