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.
 
Remove these adsRemove these ads by Signing Up

Step 1: What You Will Need

  • random assortment of LEDs
  • current limiting resistors for LEDs
  • multimeter
  • breadboard
  • bright flashlight
  • microcontroller (I used Arduino)
1-40 of 71Next »
T-Urn says: Jul 6, 2010. 2:03 PM
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.
Poorna Prasad says: Apr 18, 2013. 5:35 AM
Whats the name of the arduino used here? I mean the Model?
Someone pls help !
FtForger says: Sep 17, 2012. 12:33 PM
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.
Electorials says: Nov 27, 2011. 5:14 AM
Oh 1.381V, that's a lot!
I knew they could be used as light sensors, but I didn't know they could produce a voltage that high.

Can you light another LED with the generated voltage from the first LED?
haha

and also, I thought your name was Zornik, a Belgian band, but it's Zorink :D
Do you know Zornik?
Zorink (author) in reply to ElectorialsNov 27, 2011. 1:23 PM
I have not been able to light up another LED, but I'm sure you could if you string enough together. The voltage is great for an analog input pin on an IC, but the current isn't enough to drive an LED.

I am unfamiliar with the band, I'll have to look them up!
munymuny200 says: Jan 29, 2011. 6:11 AM
r those black leds if so where can i get them
micobanff in reply to munymuny200Jul 17, 2011. 11:32 AM
They are infrared LEDs... they are more commonly clear cases.
Most online LED suppliers will have infrared LEDs, not sure which ones will have coloured casings.
wild_blaze says: Jun 17, 2011. 9:14 AM
btw i got 0.33 volts from a green LED........
wild_blaze says: Jun 17, 2011. 8:37 AM
just watchd d video......i think...u really don't need an arduino...or any microcontroller for that........btw nice concept............
lukeD says: May 29, 2011. 11:35 AM
I've got a question:
can I use a normal LED to make a security system?

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.
would this whole plan be possible with a normal LED?
Zorink (author) in reply to lukeDMay 29, 2011. 2:53 PM
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).

Here is one I found with a bit of google
http://hackaday.com/2011/04/19/laser-trip-wire-the-bare-essentials/
lukeD in reply to ZorinkMay 30, 2011. 10:45 AM
can you find a IR detector in household stuff?
Zorink (author) in reply to lukeDMay 30, 2011. 9:27 PM
They are pretty cheap. I think Radio Shack has them for a few bucks.
lukeD says: May 29, 2011. 11:36 AM
rated *5
kcd12321 says: May 6, 2011. 9:59 PM
Really interesting and cool. The straw had a great effect.
beehard44 says: Feb 24, 2011. 3:55 AM
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
Electronics Blurred says: Sep 23, 2010. 12:51 AM
Because , like diodes ,
diodes were able to be turned into electricity generating stuff .
Now , if you are worried about it not producing enough voltage , use a op-amp , this site , is so freaking clever .
http://www.wikihow.com/Make-a-Motion-Detector
i didn't say it's the best , there might be more ,
Zorink (author) in reply to Electronics BlurredSep 23, 2010. 1:10 PM
opamps are magic
Chowmix12 says: Jun 2, 2010. 3:07 PM
LED solar panel FTW!!
strmrnnr says: Mar 22, 2010. 5:37 PM
I may have to play with this idea some day. The current may show up if a load is introduced.

I wonder how many LEDs it would take collecting light to power 1 LED emitting light at full power.
Ender2007 says: Mar 22, 2010. 6:23 AM
Very nice!
Thanks.
billbillt says: Jan 16, 2010. 7:20 AM
This is great! Could you maybe provide a simple hook up diagram or schematic?
                                   Thanks!
scratchr in reply to billbilltMar 11, 2010. 1:59 PM
This only uses 2 leds, 2 transistors, and a 9v.
untitled_1.png
billbillt in reply to scratchrMar 16, 2010. 3:55 PM
Thanks for this!
madepablo says: Oct 31, 2009. 5:08 PM
Great tutorial!

However, could you post the wiring diagram? I can´t see the resistors in the pictures, or the used voltage... jut to have an idea....
By the way, i suppose that the selected resistances values could  change the analog input, and the readed value, is it right?
Thanks!
scratchr in reply to madepabloMar 11, 2010. 2:00 PM
This only uses 2 leds, 2 transistors, and a 9v.
untitled_1.png
madepablo in reply to scratchrMar 15, 2010. 1:38 AM
Thanks scratchr,

I will try it!

Cheers, 
Zorink (author) in reply to madepabloNov 1, 2009. 6:55 PM
You only need the resistors and power for lighting an LED, not for sensing. If you need help lighting an led you can use this calculator. When using LEDs as just sensors you only need an LED (see the very first pic with the LED hooked up to a multimeter).
madepablo in reply to ZorinkNov 2, 2009. 5:16 AM
  Great!

The problem was that i didn´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.

However, how did you connected a sensor led to to arduino?  i see something like this in the picture:

analog pin -------- (+)LED(-) ----------- GND pin
is it correct?

Thanks!
madepablo in reply to madepabloNov 5, 2009. 2:26 AM
  I reply myself:

It seems to be incorrect. So the inverse mode of the led should be connected in that way:

analog pin ---------- (-) LED (+) ------------ GND
                                          \\
                                      ---|<|----

Thanks!
Jeters says: Mar 4, 2010. 10:24 AM
I wonder i you can build something using this method to be close to what http://www.youtube.com/watch?v=xahQ6BMvri4 can do, those are some wicked sensors
Zorink (author) in reply to JetersMar 4, 2010. 11:49 AM
You could make a very basic one, but I doubt you could get that kind of accuracy
ReCreate says: Jun 13, 2009. 12:16 PM
How much Current do the LED's output under light?
Zorink (author) in reply to ReCreateJun 13, 2009. 12:56 PM
My multimeter read .000, so not a lot. I knew I forgot something, thanks. I'll put in step 4.
AndyCSWu in reply to ZorinkFeb 6, 2010. 12:17 PM
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.
ReCreate in reply to AndyCSWuFeb 8, 2010. 10:30 AM
Wow. Some mad efficiency we got here. :P
ReCreate in reply to ZorinkJun 13, 2009. 2:53 PM
Hmm...That is Unusual.
scratchr in reply to ReCreateMar 11, 2010. 1:42 PM
leds use silicon, also used in solar cells
Jodex says: Nov 20, 2009. 12:07 PM
I always knew that LEDs can sense light, but I didn't have any other recources than my head : D
A-Nony-Mus says: Oct 17, 2009. 1:04 PM
could you use a picaxe instead of an arduino?
1-40 of 71Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!