
My girlfriend and I have been together for more than seven years, and this year I finally had a great Valentineโs idea! Iโve combined a strip of WS2812B addressable RGB LEDs with an Arduino, a real-time clock and a beautiful heart-shaped boutique paper box to make an ornament for my wonderful Valentine.
It displays the time, in seconds, in binary, since we metโฆ (of course, itโs slightly approximate โ I forget the precise second we met, but I think I know to within about 30 minutes!) For good measure, thereโs some subtle color-cycling going on in the background, and I have added some โspecial featuresโ to make it more exciting and allow it to be used as a rudimentary clock as well:
- Every 5 minutes (xx:05, xx:10, xx:20, xx:25, xx:35, xx:40, xx:50, xx:55), the pattern rotates around the perimeter of the heart 5 times, and disappears down the bottom of the heart (as if it has circled a plughole and drained away) before reappearing as usual.
- Every 10 minutes (xx:10, xx:20, xx:40, xx:50), if itโs a special occasion (Valentineโs Day or our anniversary) itโll have red lights in chaser/fader/wipe patterns instead of the normal 5 minute patterns, making the heart glow red.
- Every 15 minutes (xx:15, xx:45), thereโs a static rainbow pattern displayed on the LEDs.
- Every 30 minutes (xx:30), thereโs a beautiful cycling rainbow pattern, that projects a rotating colour wheel onto the surface of the heart.
- Every hour (on the hour), thereโs a faster chasing rainbow pattern.
- Every 24 hours (atย midnight), thereโs a carnival of patterns, to celebrate another day together.
The Arduino & RTC will (of course) be tidied up and mounted in the main box, behind the display that is mounted in the lid, to make it look prettier.
Iโm really proud of it, and the photos donโt really do it justice, but I hope you like it, and I *really* hope she likes it!
ADVERTISEMENT