Dot Matrix Clock

Simple dot matrix (8x32) clock that syncs with NTP server. I used MD_MAX72XX module using SPI protocol. Using time.google.com as NTP server is recommended because it syncs faster than pool.ntp.org by few milliseconds. Using millis() function, NodeMCU syncs every one hour to eliminate Wi-Fi usage, so it won't disturb other Wi-Fi devices. To make display more interactive, I added "|" animation as "connecting to NTP server" indicator and "." animation that blinks every second. To ensure that formatted time, date, and day fit the display, I modified some functions in NTPClient.cpp but if you have a bigger display resolution (bigger than 8x32), you can use original NTPClient.cpp library.


.ino

Modified NTPClient.cpp

Return to Home