Instead of running with ESP-12E, you can instead run the Temperature sensor with the very basic module ESP-01.

The reason for doing this is that that ESP-12E consumes more power than the ESP-01 so for this kind of project, ESP-01 makes sense.

So, if you want to create the same ThingSpeak temperature sensor logger with ESP-01 read on… Otherwise, continue to How to connect the Temperature logger to your Google Home.

This is an image and the pin outline of the ESP-01:

Screenshot from 2017-01-23 12-28-52.png                    Screenshot from 2017-01-23 12-30-06.png

Continue to learn how to build the Temperature logger using ESP-01.

Connections

CP2102 (on 3.3V setting):

  • CP2102 RXD -> ESP-01 TXD
  • CP2102 TXD -> ESP-01 RXD
  • CP2102 GND -> Breadboard GND
  • CP2102 3.3V -> Breadboard VCC
  • Breadboard GND ->  220 µF capacitor minus
  • Breadboard VCC ->  220 µF capacitor plus

DHT-22:

  • DHT-22 PIN 1 VCC -> 3.3 VCC
  • DHT-22 PIN 2 -> ESP-01 GPIO2
  • DHT-22 PIN 4 GND -> Breadboard GND

ESP-01:

  • ESP-01 RXD -> CP2102 TXD
  • ESP-01 TXD -> CP2102 RXD
  • ESP-01 VCC -> Breadboard VCC
  • ESP-01 GND -> Breadboard GND
  • ESP-01 GPIO0 -> Top Right Pin on Mini switch (Program button)
  • ESP-01 RST -> Top right pin on Mini switch (Reset button)
  • ESP-01 GPIO2 -> DHT-22 PIN 2
  • ESP-01 CH_PD -> Breadboard VCC

Switch button (Program button):

  • Top left pin -> ESP-01 GPIO0
  • Top left pin -> 10KOhm resistor and then to Breadboard VCC
  • Top right pin -> Breadboard GND

Switch button (Reset button):

  • Top left pin -> ESP-01 RST
  • Top left pin -> 10KOhm resistor and then to Breadboard VCC
  • Top right pin -> Breadboard GND

Fritzing

ESP8266-ESP01-Temperature-logger-to-ThingSpeak-with-reset_bb.png

The rest is basically the same as with ESP-12E so take that from here:

ThingSpeak battery driven temperature logger intro (ESP8266/ESP-12E) Part 1

Note that you need to change the “#define DhtPin 4” to “#define DhtPin 2” as the ESP-01 runs with pin 2.

Now its time to move on to how to get the Google Home to read out the temperature to you when you ask it “What is the temperature in my Kitchen?”.

Read on… ThingSpeak battery driven temperature logger – Part 3: Connecting Google Home

Advertisements