PICclock June 2015
My fishkeeping hobby has influenced me in making my own "real-time" clock timer, because I wanted to remove the hassle of annual replacement of T8 fluorescent lamps that quickly degrade and have harmful effects of UV spectrum. Furthermore, AC power line timers with relays have failed on me multiple times because of mechanical relay contacts. Therefore an idea of creating a custom timer and perfect spectrum LED lights for aquarium was born.
PCB design
Since I have some leftovers of PICs from my Helipad project, I decided to use them also in PICclock design. This brought all the hassle of using Assembly with limited MCU functionality (2-level stack, 12-bit counter, no interrupts...), but the project could be executed quickly and with available components.
The circuit's schematics and layout were drawn in KiCad, which was a huge improvement over the Eagle with open-source base and no feature limitation.
2 MCUs were used, one for dual channel timer control, 6 LEDs to display hours, minutes or seconds and 2 buttons to select mode and increase clock/change display. The second MCU was used to generate light transition on ON/OFF signal from the channel by PWM output MOSFETs. The schematic and layout are shown in Figures 1 and 2.