ds1305

[Kalle Hyvönen] just finished building his own aquarium lights. He used four powerful soft-white LEDs, mounting them on a pair of heat sinks to keep things cool. Now he could have just connected them to the power supply and plugged it into the wall, but instead he included is own controller. An Arduino drives the switch-mode power supply, offering dimming thanks to PWM, and the ability to automatically switch the light on and off using an RTC chip with a battery backup. The sketch includes the ability to alter the lighting schedule and other variables by sending serial commands through a USB connection. This protocol is detailed with comments in his sketch.