A while ago I posted light sensing LED which used the arduino board now it is the same project but using a PICAXE microcontroller.This is the simplest circuit you might have ever seen it only uses a PICAXE microcontroller,a resistor and a LED.A LED not only lights up when power is applied but also produces a tiny voltage when exposed to light.Based on this principle we are going to make our "light sensing LED".A single LED is used to take a reading and light up when it is dark.This is a fun to do project which requires minimal parts.

This instructable will explain how to create your own light sensing LED,making some changes,programming the microcontroller,makingit on a breadboard and soldering the circuit.

A short video of it in action:

Step 1: How Can The LED Sense Light?

An LED can be used for light detection as well as emission.LED is a simple diode which has been adopted to emit light.Therefore if it is inserted into the circuit the same way as the photodiode it will serve the same function of sensing light

The LEDs will be sensitive to the light which has the wavelength equal to it or lesser than it.

When light falls on the LED a small voltage is produced this voltage produced can be fed to a microcontroller which can read it and follow the further instructions.
<p>Actually pin 5 or input C.2</p>
<p>Hello,</p><p>I had trouble duplicating your interesting project. I tried to derive a schematic by going back and forth between your images but kept finding, for me at least, contradictions. By making some changes to your schematic and code, I was finally able to get the assembled parts to work as a &quot;dark detector.&quot; If you search for &quot;PicAxe LED dark detector&quot; in Instructables, you will see the details of what I did. You will notice that I didn't attempt any kind of fancy &quot;Fritzing&quot; but simply drew my schematic in pencil and then took a picture of it. More than a few people with electronics experience will relate better to a simple schematic rather than some kind of pictorial Fritzing that isn't clear enough to identify the parts...</p><p>Dave Kruschke</p>
&quot;Sketch&quot;???? I thought you were in the PICAXE world? :-) <br> <br>Good wee instructable. Thanks.
you can do it with a LM339 too.<br>but you will need much more res.
Thanks for posting this. This concept is included in some other instructables, I think, but I like that this one focuses on one concept. This could be incorporated into more complicated projects in interesting ways. I like the picaxe too (cheap AND easy), and I hope to see more projects on here soon. I'm working on a couple myself.
I do not know if it will make any difference but the 08M2 can have its speed adjusted from 4MHz to 32MHz with<br><br>setfreq M32<br><br>
<strong>&nbsp;</strong><br> There is only part of a program here.<br> What about the 'readadc' to get the b0 value and the code to tie those snippets together?
Sorry forgot to include that! btw how did you like the instructable?
That's better.<br> I'd have written the program as:<br> <br> do <div> &nbsp;&nbsp;&nbsp; readadc 2,b0</div> &nbsp;&nbsp;&nbsp; if b0 &lt; 10 then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; high 2<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pause 1000<br> &nbsp;&nbsp;&nbsp; end if<br> loop<br> <br> but either way works.<br> <br> How about putting in spaces after full stops in your text?&nbsp; It would make it a lot easier to read.&nbsp; Also, you mention the schematic in your text but I can't see it there.&nbsp; It's a very simple circuit but that would make things a lot clearer.&nbsp; All in all though, a good start.<br> <br> There is <a href="http://www.user.dccnet.com/wrigter/picaxe/darksensingLEDflasher.gif" rel="nofollow">another way of doing this</a> which is more sensitive.&nbsp; The LED junction is first 'charged' and then the state of an input pin checked after a time.&nbsp; The discharge rate is related to the light level so can be used as a dark / light switch.&nbsp;<br> <br> <sub>P.S. It's not a good idea to display your e-mail address like that unless you want all sorts of spam turning up in your mailbox.</sub><br> <br>
I have added the schematic and I not received any spam from anyone actually I have not received any email from anyone

About This Instructable


93 favorites


Bio: Preapering for my medical entrance exams
More by Bot1398: 555 Crriter Repellent Solar Powered Clock Hack DIY Astronomy Flashlight
Add instructable to: