AR-171IntermediatePremium
UNO R4 WiFi Internet Clock: NTP and Matrix
A clock you never have to set: the UNO R4 WiFi joins Wi-Fi, gets the time from an NTP server on the internet and sets the RTC (real-time clock) inside the board. Hours and minutes scroll across the 12x8 LED matrix and the bottom row shows the seconds as a filling bar. The clock is corrected from the internet every 6 hours; unplug it, plug it back in and it finds the right time again by itself. No extra parts.
0.0(0)

Clocks blink after a power cut? Not this one. As soon as the UNO R4 WiFi starts, it joins Wi-Fi, asks a time server on the internet for the time and writes the answer into the clock inside the board. Hours and minutes scroll across the matrix, and the bar at the bottom lights one more LED every five seconds. Learning: getting the time over the internet with NTP, sending and reading a UDP packet, seconds since 1900 and 1970, time zone offsets, the R4's built-in RTC and drawing text with ArduinoGraphics.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
