Internet for the weather data, then
messaged the data into a small
enough package that it could be
transferred to the microcontroller
weather station for display. In other
words, the microcontroller based
system was just a display for the
previously digested weather data.
I took this as somewhat of a
challenge to see if I could combine
both weather data acquisition and
display using a single ESP8266
device and — while I was at it —
see if I could include the NTP
clock functionality as well.
I’m pleased to say that I was
able to pull this off. If you have
ever wanted to build a mini
weather station/clock for your
home or business, I don’t believe
you will find a simpler or cheaper
solution than the one presented
As mentioned, the weather
clock uses the same hardware as
incorporated in my ESP8266 NTP clock. To save you from
going back and (re)reading the previous article, the
hardware information is repeated here, starting with the
minimalist Parts List.
Figure 1 shows a Fritzing connection
diagram/schematic for the weather clock. Figure 2 shows
the design wired up and working on a breadboard. NOTE:
There isn’t a wire color correlation between Figures 1 and
2. As shown, the weather clock is powered via a USB
cable and a USB power supply module.
The wire by wire connections are shown in Table 1
because they might not be clear from the Fritzing diagram.
The GPIO designations are shown in Table 1 as that is
how these digital I/O lines are referred to in the Arduino
code. The Adafruit LCD display has a micro-SD memory
card connector and interface which can be used with the
ESP8266, although they were not needed for this project.
The software for the ESP8266 weather clock was
developed using the Arduino IDE (integrated development
environment). Refer to my previous articles and/or the
Resources section for how to set up the Arduino IDE on
your computer for targeting ESP8266 type devices. Make
sure to select “NodeMCU 1.0 (ESP-12E Module)” as the
board type in the tools menu.
The ESP8266 weather clock software is available at
NodeMCU LUA Amica R2 Module Electrodragon.com
1.8” TFT SPI LCD Display (black tab) Adafruit.com; Product ID 358
Pushbutton Switch SPST RadioShack or anywhere else
USB Cable — USB A to USB Micro B RadioShack or anywhere else
USB Power Supply RadioShack or anywhere else
(capable of at least one amp at five volts)
Hook-up wire and breadboard RadioShack or anywhere else
■ FIGURE 1.
■ FIGURE 2. The design wired up and working on a
November 2016 23