Here is a picture of it all boxed up. I added a couple features since the last update:
-
I added a pot so that it can be used as a lamp. I had initially used the double-tap detection of the accelerometer to turn on the LEDs, but a pot is more intuitive and works better (the pot is read by an analog pin, and the brightness is controlled by PWM).
-
I also added the downward-facing optical sensor (RPR220). When the clock is lifted, it goes right into the alarm setting mode. I like how this works, but it wastes a lot of power: it went from ~30ma to 50ma current. Perhaps different resistor choices would improve this.
I think it is pretty much done as far as hardware is concerned (I think I have used all of the pins...). I too have a few issues to fix, though. The buzzer is 'clicking' occasionally for some reason, and I still have to finish writing all of the code. I also want to upgrade from one 3w LED to three 3w LEDs.
