Our flickering LED circuit combined two known circuit, and certainly wasn’t graceful because of it. [sprite_tm] saw quite a few areas where the circuit could be reduced. He ended up taking it down to just two LEDs, a battery, and an ATtiny13. The first step was getting rid of the current limiting resistors. The datasheet shows that with a 3V supply the AVR will limit the current well below the maximum current. The light sensor was removed next. [sprite_tm] referenced an earlier post on sensing with LEDs. He measures the voltage across one of the LEDs while it is off to see how much light is hitting it. The current draw while on is 10mA and 50uA while off.
[aballen] wanted to light the jack-o’-lantern this year with something that didn’t actually require fire. After searching for a project that was cheap and yielded decent results, he ended up just making his own. This project utilizes an ATtiny13 and two LEDs, red and orange. The overall build is quick and simple with some very basic code for the flickering. If you really want it more enclosed, there is this similar project using a cheap electric candle. Of course, not everyone has the time or desire to make one that is this realistic. You could always just go the easy way, no microcontroller required.
Why limit it to just lighting up your pumpkin though? Lets take a stroll through Evil Mad Scientist Laboratories hallways and see the Snap O Lantern or the dark detecting pumpkin and the Cyclonolantern.
Instructables user [cedtlab] has posted an interesting LED project that simulates birthday candles. The circuit runs on an AVR ATTiny45, and is powered by 4 AA or AAA batteries. By using a Charliplexing technique, they are able to drive all 20 LEDs with only 5 pins of the ATTiny. A thermistor is used for detecting breath by measuring temperature changes, and then blocks of LEDs turn off depending on the change detected. They have provided schematics and source code for everything. Make sure to check out the video of the “ficticious birthday party” after the break.