Needless to say, she thought they were pretty cool, and that we should make some.
Needless to say, I thought they were a good idea, but weren't over-engineered enough. Two hours of hacking source code later, I had an ATtiny 2313 programmed to twinkle 8 LEDs. The eventual result only used 5 of the channels, due to space limitations.
Parts list:
- 1 - ATtiny 2313 programmed with custom twinkle code. I used a MiniPOV3 to program the ATtiny. Porting this to another controller, like the Arduino, would be trivial.
- 1 - 7805 linear voltage regulator
- 1 - 1N4002 diode to protect from reverse polarity on the power supply (optional)
- 1 - 10μF electrolytic capacitor to filter the 5V from the 7805
- 1 - 10kΩ pull-up resistor connected to the reset pin in the ATtiny (didn't actually bother to check if this is actually needed. Saw no reason not to just stick it in).
- 5 - Bright white LEDs
- 5 - 330Ω current limiting resistors. These are a little big for a 5V and bright whites, but the result was still a little too bright, so pick some value you're happy with.
- Lots of wire and beads.
Finally, a very dark video of the five of them to give you an idea of what my twinkle algorithm looks like:
Any questions, or ideas on how to improve this, aesthetically or functionally, are certainly welcome in the comments. Merry Christmas!
wow. cool! it would be really elegant if they could fade in and out instead of just blink
ReplyDelete