An led not only lights when power is applied, but also generates a tiny voltage when light is applied. A PICAXE microcontroller can be used to monitor this voltage. I will show you how to make a electronic candle that will flicker an led when it gets dark.

Step 1: Assemble the "candle"

The candle part of the circuit is a piece of perf board with a green led, 220 ohm resistor, diode,capacitor and a M08 picaxe. I used molex connectors to make the perf board detachable from "power stalk" made from twisted 18 gauge enameled wire. You can use insulated solid wire such as building wire for the stalk. You can also use a yellow or red led. White and blue leds don't work well as light sensors. The diode protects from reverse polarity and allows using alkaline cells by dropping the voltage to the picaxe a bit. Nicad cells work well with picaxes.
YAY PICAXE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! go picaxe!!!go picaxe!!!go picaxe!!!go picaxe!!!go picaxe!!!go picaxe!!! nice idea, i like the way the led is the input AND output!!!! i like picaxe!!!
This looks really cool but I cant help but think a photoresister would be easier
Oh sure, you could use a photo resistor, a resistor and a transistor to eliminate the pic too. This is just a way to demonstrate the dual function of the led with a programmable device such as a pic. By changing the program, you can make it blink, flicker or come on when light is present. Easier is welcomed, but not always better.
go picaxe! go picaxe! woo hoo! great 'ible
Great idea to use the LED as a sensor too.
Very well done.
Wow!<br/>This Instructable is:<br/><ul class="curly"><li>Very nicely done.</li><li>Very neatly done.</li><li>Great job!</li><li>Great pictures.</li><li>Great detail.</li><li>Great everything.</li><br/></ul>You did everything just <em>fantastic</em>, and I hope to see more, this Instructable is <em>really</em> and I mean <em>really</em> good.<br/><br/>Great job.<br/>+1 rating.<br/>
Well thanks!, it good to share.
I love it. Q: How long will this run on a set of batteries? And how dark does it need to be before it is triggered?
The picaxe is low current, It should run for days on a set of batteries. You can adjust the theshold of turning on in the software. Mine goes out in a partly lit room. Does not need complete darkness. Somewhere I have a light meter, thats a good thing to measure and graph.

About This Instructable




Bio: I like to tinker and experiment with electronics, robotics, programming, and photography. Along with my latest interest in Steampunk.
More by botronics:Convert 3-AAA Flashlite to Lithium Pole Grenade Prop Steampunk Vacuum Tube Night Light 
Add instructable to: