LEDs are great for making light, but they can sense light too!

I recently stumbled upon this site which mentions, "In 1977, Forrest M. Mims reminds us in one of his "Engineer's Notebooks" that LEDs can also be used as photodiodes... " The page features a LED matrix being used as a multi-touch input but offers very little information. I still have no idea how to make his project, but I did learn how to use LEDs as light sensors.

This instructable goes over my experimenting with different kinds of LEDs as light sensors and making a dark activated night light using LEDs as sensors.

Step 1: What You Will Need

  • random assortment of LEDs
  • current limiting resistors for LEDs
  • multimeter
  • breadboard
  • bright flashlight
  • microcontroller (I used Arduino)
Nice experiment! I came across this about 20 years ago - my then Boss pointed me at it as a sensor for a low level light meter - there wasn't enough output :-( Don't think I've never seen it used in a product. Out of the companys collection of LEDs I remember the high bright red LEDs ( clear case ) worked best. It also got a mention in the April copy of Elektor Mag this year I believe - there was a follow up letter asking if it was an "April Fool". There was no consensus as to which type of LED gave the best output. I've just tried it with a Hyper brite red LED in a water clear case - its about a year old, and I'm sorry I can't tell the Manu or Model. I stuck it under a halogen desk lamp, 20 Watt, not diffused, about 1 foot / 300mm above. Got about 600mV or about 0.7uA peak on a cheap DVM. Readings dithered a bit. Not sure why - may have been poor contact with crock clips etc.
How much Current do the LED's output under light?
My multimeter read .000, so not a lot. I knew I forgot something, thanks. I'll put in step 4.
I connect 30 green LEDs in parallel. They generate 1.3V under a lamp. The current I get is 1.1 uA or 0.0011 mA. But the connection test of my multimeter doesn't beep when I test them.<br />
Do the LEDs need some kind of voltage running through them
Nice job dude
Wow. Some mad efficiency we got here. :P<br />
Hmm...That is Unusual.
leds use silicon, also used in solar cells<br />
<p>I've tested some LED i had laying around. I tested with a low-consuption 9W bulb, moving from 10-15cm to almost touching the LED, and tapping it with my hand or something opaque.</p><p>Normal Red LED: 40mV-60mV full exposure. Tapped, 6mW or lower. Reacts really slow, similar to LDR</p><p>Normal Green LED: 500mV-1200mV full exposure. Tapped, oscillates until 40mV. Reacts fast on changes.</p><p>Normal Yellow LED: similar values but slighty lower to green. Equal reaction.</p><p>Crystal ultra luminosity Green LED: values similar to normal red LED</p><p>The best performance was achieved with the normal green led.</p><p>I hope this helps.</p>
<p>I forgot i also had some IR LEDs (clear and coloured). In both cases i got the same results: 20mV to 550mV full exposure, response is fast.</p><p>Notice that LEDs also detect light around them, so even when you tap them with your hand or similar, they will show high values. That is why even placing the light source far, they still show voltage values around dozen of milivolts instead close to 0 (darkness). Therefore you need to isolate them from indirect light to get accurate measures.</p><p>Btw, connect the LED as usual in Diode test mode in multimeter: cathode to GND (black probe) and anode to VCC (red probe).</p>
One of the arduino experiments uses this led though hooked up to an NPN transistor
<p>does that make a led tv a camera?</p>
No these led just see change in brightness
<p>How perceptive erwin, yes, most leds are also a camera... It must have the appropriate chips, of course. Would you like to know more about architecture? http://www.orientaltrading.com/harvest-inspirations-bible-verse-sign-craft-kit-a2-48_6901.fltr</p>
<p>Hmm, can I connect a 9v battery holder to the power plug or it will cause a problem?</p>
Hi, I remember coming across a technique to use leds as sensors and I'm suprised no-one had mentioned it. The way the document had said to do it is to put the led in reverse bias, and count the number of microseconds for it to discharge. In light it will discharge faster than in dark. I am yet to try it but I think it would work more reliably.
<p>good to know....thanks</p>
<p>can anyone pls tell me which one will create highest voltage in sunlight</p>
I did this as a science project. I got an A+. I knew about it anyway, but I needed this for reference. Thanks!!
r those black leds if so where can i get them
They are infrared LEDs... they are more commonly clear cases.<br>Most online LED suppliers will have infrared LEDs, not sure which ones will have coloured casings.
<p>They are also commonly seen in purple cases, but I doubt this will be helpful 2-3 years after the fact. :)</p>
Whats the name of the arduino used here? I mean the Model? <br>Someone pls help !
<p>Duemilanove. But I believe that you can with any other Arduino Board, or any other board for that matter, not just Arduino. </p>
is there a way to alter the code so the output led is the same as the sensor led? <br>I tried this (http://playground.arduino.cc/Learning/LEDSensor) code, but doesn't seem to be very stable.
How do you connect the leds for sensing? (for example GND ----|&gt;|---DPin2 or DPin3 ----|&gt;|---DPin2) <br>Thanks
Are you positive you were getting over 1 volt? Are you sure your meter wasn't on a different scale? I spent several hours tested about 25 (mix of red and white) LEDs. I was getting about 15 millivolts out of most of them, with a few as high as 25-28 millivolts, but none anywhere near a volt.
btw i got 0.33 volts from a green LED........
just watchd d video......i think...u really don't need an arduino...or any microcontroller for that........btw nice concept............
I've got a question:<br>can I use a normal LED to make a security system?<br><br>my plan was to make it in my room. a laser light pointing at the LED and if the laser beam is interrupted (if the door is open, or if somebody walks by) that I can see that somebody was in my room.<br>would this whole plan be possible with a normal LED?
It would work okay, but I'd use a component that is actually made to be a photo-detector. I've seen it done with IR or lasers depending on the distance you need. For just a door an IR LED with an IR detector would work as long as there are no other large sources of IR near it (certain lights, the sun, etc shining on the sensor). <br><br>Here is one I found with a bit of google<br>http://hackaday.com/2011/04/19/laser-trip-wire-the-bare-essentials/
can you find a IR detector in household stuff?
They are pretty cheap. I think Radio Shack has them for a few bucks.
rated *5
Really interesting and cool. The straw had a great effect.
i was wondering if i can make an earpiece out of this (passive receiver) but i doubt if the LEDs can supply enough power. i'll try it tho
Because , like diodes , <br>diodes were able to be turned into electricity generating stuff .<br>Now , if you are worried about it not producing enough voltage , use a op-amp , this site , is so freaking clever .<br>http://www.wikihow.com/Make-a-Motion-Detector<br>i didn't say it's the best , there might be more ,
opamps are magic
LED solar panel FTW!!<br />
I may have to play with this idea some day. The current may show up if a load is introduced.<br /> <br /> I wonder how many LEDs it would take collecting light to power 1 LED emitting light at full power.<br />
Very nice!<br /> Thanks.<br />
This is great! Could you maybe provide a simple hook up diagram or schematic?<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks!
This only uses 2 leds, 2 transistors, and a 9v.<br />
Thanks for this!
Great tutorial!<br /> <br /> However, could you post the wiring diagram? I can&acute;t see the resistors in the pictures, or the used voltage... jut to have an idea....<br /> By the way, i suppose that the selected resistances values could &nbsp;change the analog input, and the readed value, is it right?<br /> Thanks!
This only uses 2 leds, 2 transistors, and a 9v.<br />
Thanks scratchr,<br /> <br /> I will try it!<br /> <br /> Cheers,&nbsp;
You only need the resistors and power for lighting an LED, not for sensing. If you need help lighting an led you can use <a href="http://led.linear1.org/led.wiz">this calculator</a>. When using LEDs as just sensors you only need an LED (see the very first pic with the LED hooked up to a multimeter).<br />
&nbsp; Great!<br /> <br /> The problem was that i didn&acute;t see any resistance in the picture of step 5, neither for lighting or sense. This is why i asked... So thanks for the reply.<br /> <br /> However, how did you connected a sensor led to to arduino?&nbsp; i see something like this in the picture:<br /> <br /> analog pin -------- (+)LED(-)&nbsp;----------- GND pin<br /> is it correct?<br /> <br /> Thanks!<br />

About This Instructable


115 favorites


More by Zorink: LEDs as light sensors Large Jacob's Ladder Rapidprototyped Weighted <DEL>Companion</DEL> Storage Cube
Add instructable to: