- Real Time Clock Module (http://www.sparkfun.com/products/99)
- 24xAssorted LEDs (In my case: 3UV, 2 Blue, 4 Red, 3 Yellow, 12 White)
- 24xResistors, 220ohm
- Solderless Breadboard
- Assorted wires
- 3x74HC595 shift registers
- A Shadow Display Box
- Frosting Spray
To put this thing together I used Elco's ShiftPWM Library to control the 24 LEDs. You could go bigger, but I wanted this to all fit into the box.
Personally, I had some PCBs from a previous project that I could fashion to make the LEDs easier to mount.
Everything is hooked up like in the schematic:
The "To SCL" and "To SDA" lines go to the Real Time Clock Module.
Load the program below in and you can set the time on the clock with the following command in serial monitor:
You can then set the alarm with a command:
The alarm will attempt to be done with the cycle at the appropriate time set, so it will start with the UV LEDs and move through the progression fading the LEDs in and out as indicated in the arrays at the top of the program.
Frost both sides of the glass for good distribution of light, then cut away the side of the box so that you can power the Arduino with it mounted inside the box.
This is a very sped up version of the alarm sequence looks like this... the lights at the beginning are part of the power up sequence of the Arduino.