Fiber-optic Christmas tree RGB LED upgrade

2011-12-25_18-20-14_580

Just before Christmas my mother asked me about fixing an old fiber-optic Christmas tree that she had. I opened it up to discover that the color wheel had already been replaced with a mirror, a 12v 20W halogen, and a non-original color wheel.
2011-12-25_14-45-31_527

It was also evident that it had been hot enough in the past to partially melt the housing.
2011-12-25_14-45-38_498

I told her that I could probably not fix it for this year but after Christmas I would look at upgrading it to LEDs. I then proceeded to research a simple RGB LED driver circuit. I settled on an ATtiny13 and some transistors I had laying around. I found several example circuits and firmware, todbot and unixbigot. Both of these are very similar, however my final design is based on the second and uses his firmware.

2011-12-25_16-43-31_837

Once I had a prototype on a breadboard I decided to do a quick layout in Kicad to help position the components on the perfboard. I then used a 1:1 printout to mark the locations of the components.

2011-12-25_16-31-29_416

To power the project I wanted to use the existing barrel jack connector since it already fit in the housing.

2011-12-25_22-21-37_529

This worked well as common 5.5mm x 2.1mm plugs fit. The next problem was that I lost the 7805 chips that I had, so I tried using a LM317 this worked however it gets very hot. So I ordered some new 7805 chips and wired that up to regulate the wall adapter to 5v.

2011-12-30_16-00-37_858

2011-12-30_22-23-13_189

There are more pictures here

Continue reading