Fairy Lights
A set of miniature fairy lights for a very small Christmas tree controlled by an ATtiny2313 microcontroller.
![Animation showing twinkling fairy lights](/products/fairylights/fairylights.gif)
Download the schematic and source code
I purchased a very small Christmas tree from my local supermarket as I thought it would be a fun project to try to assemble a miniature set of fairy lights for it. The final product works quite well, and has the following specifications:
- 32 warm white LEDs arranged in four individually-controllable strings of eight LEDs each.
- Five different animated effects that can be cycled through by pressing a button.
- Holding the button switches to the "random" mode which switches to a different randomly-selected effect every so often.
- Holding the button again switches to the "static" mode that allows you to keep all of the LEDs switched on at one of eight different brightness levels.
For more details please see the schematic and source code in the package linked above.
Video demonstration
Additional images
![Inside the driver box](/products/fairylights/circuit-inside-case.jpg)
The circuit board that is used to drive the LEDs.
![Christmas tree with lights](/products/fairylights/tree.jpg)
The Christmas tree in all its glory.
![Charge pump test](/products/fairylights/charge-pump-test.jpg)
The prototype for the Dickson charge pump used to boost the voltage to drive eight white LEDs in series was based around an ATtiny13 rather than the ATtiny2313 used in the final design.
![LED jig made from cardboard](/products/fairylights/led-jig.jpg)
A cardboard jig made soldering all of the LEDs together much easier.