WiFi Clock
Posted: Tue Jun 02, 2015 1:57 am
Combining an ESP8266 module with a cheap 4-digit LED display can result in a WiFi connected clock that will always show the correct time.
I've written a library to control the 4-digit LED displays that are based on the TM1637 LED display driver chip. Unlike the MAX7219, the TM1637 can be run from 3.3V. Do a search on ebay or aliexpress for "TM1637 Display" and you'll find dozens of offerings for the module for prices under $1.50US. The LED display needs to connect to two pins of the ESP8266 for communication. These pin are set inside the code.
In addition to the Display library, I've converted the Time_NTP.pde example bundled with the Time library to a library for the ESP8266.
Now we have the makings for a WiFi clock, which is the example I've included with the NTP library.
Pick them up at GitHub.
Be sure to install the Time library mentioned above.
I've written a library to control the 4-digit LED displays that are based on the TM1637 LED display driver chip. Unlike the MAX7219, the TM1637 can be run from 3.3V. Do a search on ebay or aliexpress for "TM1637 Display" and you'll find dozens of offerings for the module for prices under $1.50US. The LED display needs to connect to two pins of the ESP8266 for communication. These pin are set inside the code.
In addition to the Display library, I've converted the Time_NTP.pde example bundled with the Time library to a library for the ESP8266.
Now we have the makings for a WiFi clock, which is the example I've included with the NTP library.
Pick them up at GitHub.
Be sure to install the Time library mentioned above.