The WS2812B, also known as Neopixels, are RGB LEDs with an internal control IC that can be cascaded and controlled separately via a single data pin. When an offer for 15-inch-circuits with 15 of these LEDs popped up in my feed, the plan quickly became clear: 4 1/4-circuits with 15 LEDs each makes 60 LEDs. Perfect for a clock. Let's see if it works.
A DS3231 is used to keep the time – an I²C chip specifically designed for clocks and more accurate than the internal clocks of conventional microcontrollers.
Contents:
00:00 LED modules & assembly plan
08:22 LED test with Adafruit library
12:32 Why RTC instead of system clock / millis()?
5:05 PM Look at the software
34:13 in action
Links:
Code:
https://gist.github.com/adlerweb/a515...
Arduino repair:
https://www.adlerweb.info/blog/2017/0...
WS2812B datasheet
https://cdn-shop.adafruit.com/datashe...
DS3231 datasheet
https://datasheets.maximintegrated.co...
WS2812B library (also in the Library Manager)
https://github.com/adafruit/Adafruit_...
DS3231 library (also in the library manager)
https://github.com/Makuna/Rtc/
Library Timezone
https://github.com/JChristensen/Timezone
Library time
https://www.pjrc.com/teensy/td_libs_T...