LED Clock

The millis() function in the ESP32 is so accurate, it's been more than a week since i last set the time, and it has only drifted 10 seconds. I've actually made this clock in the 1st of April, and it's been my go-to clock to know the time ever since. Some details: The code uses no libraries, all code is written by yours truly. Each digit's common ground is driven by a 2n2222 transistor because the GPIO pins in the ESP32 cannot drive that much current. The entire clock is 3D Printed, and there are holes in the digits to hold the LED, similar to a PCB. Sadly I can't show the circuitry because i'll have to remove the clock from the wall in order to that and the clock is hot glued to the wall.
No description
2 Replies
Greeniac
GreeniacOP4w ago
This is the code if anyone wants to look at it (it's not that well written, but it works 🤷‍♂️ )

Did you find this page helpful?