Author Topic: Lets mess around with LEDs (as photo sensors)  (Read 5773 times)

0 Members and 1 Guest are viewing this topic.

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Lets mess around with LEDs (as photo sensors)
« on: May 09, 2015, 09:28:41 pm »
I like to re purpose things and rather than buying specialized (insert preferred device here.) I would prefer to use LEDs.
This started out as an interest in measuring the different settings on some camera strobes.
What I found out instead if the wide responsiveness of LEDs vs different light sources.

What I am wondering is if there is any ones(s) who has a range of leds with similar voltage current specs in different colors
who can reproduce this test to see what colors respond the best in what situations.

White has the most response to the strobe at around 30v 3v but Im sure that is because of the phosphors used to make it white
and the dump of UV light from the strobe which could be reflective by the UV led's response which may be lower than it should
due to its physical difference. (phew)

no, I don't know these LED's specific details off hand aside general color and forward voltage of around 3.3v.
It would be neat to make something to measure light wavelengths on the ultra cheap. (if such a thing does not already exist that is not just a prism)

Specific strobe is sunpak 355AF on canon t3i

triggered on 1
1 is Red
2 is white
3 is UV
4 is blue
« Last Edit: May 10, 2015, 10:13:47 pm by kakureru »
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4319
  • Country: us
  • KJ7YLK
Re: Lets mess around with LEDs (as photo sensors)
« Reply #1 on: May 09, 2015, 09:42:46 pm »
I have been interested in the method of using a single ordinary LED as both an indicator and as a sensor.  For example on a user-interface control panel where the LED would be used to sense whether a finger had "pushed" a virtual button or not.  Whether it is sensing the ambient light and then senses a shadow from the finger, or whether it is alternately pulsing a low-level light, and then detecting whether anything is being reflected back, etc.  I have a printer with a flat plastic panel and some illuminated "icons" that indicate various modes, etc, but the illuminated icons are actually "buttons" and sense when you touch them.
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: Lets mess around with LEDs (as photo sensors)
« Reply #2 on: May 09, 2015, 10:00:03 pm »
I have been interested in the method of using a single ordinary LED as both an indicator and as a sensor.

There are a few projects out there that use a LED either as a light sensor, bi directional communication, or touch interface.
I made a small light sensor using a attiny with a led, the LED will behave as a tiny photo sensitive capacitor when reverse charged, you only have to measure how long the discharge time is to get a value that is proportional to the light intensity.
If i remember correclty, dit that some time ago...

If you put two leds near each other on the front panel, you could use them as buttons in theory.
Switch on LED1, measure discharge from LED2, switch on LED2, measure dischrage from LED1.
If a finger is present on one the light reflected is brighter -> button press.


Here is the LED touchscreen:


 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #3 on: May 09, 2015, 11:09:39 pm »
the use as touch sensitivity is what initially introduced me to things like this way back when.
But this time im more interested in using LEDs for sensing their specific (or range of) wavelengths
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Lets mess around with LEDs (as photo sensors)
« Reply #4 on: May 10, 2015, 12:00:42 pm »
But this time im more interested in using LEDs for sensing their specific (or range of) wavelengths
Anyway did you checked in those experiments influence of light angle relative to front of the led?
I have no idea if it affects its wavelength sensitivity somehow, but it changed output voltage readings for sure  at the same lighting conditions in a way I do not expected  :o

LED (3mm THT yello) absorbing sun light at cloudy day pointed directly to te sun covered by clouds gave me ~3 (three) times lower voltage ~100mV in comparision to its maximum ~300mV which I had when it was turned 90 degrees perpendicular to expected sun rays in a way as if sun was on the top on linked image  :o
Cheapy multimeter used probably has ~1M, so this is load resistance, I guess.

Didn't check SMD 1206 green LED yet, but it will be interesting to see If this angle also affects those LEDs output voltage  :popcorn:

Looking on yor osciloscope photos you have those diodes put into scope inputs in a way it detects flashes in a way we expect to get highest readings (front of the led), but my experiment showed it might we wrong assumption  >:D
If you could rectreate different conditions and show us results at different angles it could be interesting if you have also higher response at suggested perpendicular led axis position vs light source rays.
« Last Edit: May 10, 2015, 12:12:57 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #5 on: May 10, 2015, 04:39:26 pm »
Since i Know I have at least 4 of each kind of led, Ill do an experiment with then at different angles relative to flash but
so far when one was drooping during photo session (then corrected for above image), only intensity (peak voltage) was affected not the relative drop off slope.

Then perhaps check response each led has to its own kind verses other kinds. (like does red have an effect with an IR or even blue)

(before next experiment, I am imagining that the different wavelengths drop off as the strobe powers down)
« Last Edit: May 10, 2015, 04:57:37 pm by kakureru »
 

Offline calexanian

  • Super Contributor
  • ***
  • Posts: 1886
  • Country: us
    • Alex-Tronix
Re: Lets mess around with LEDs (as photo sensors)
« Reply #6 on: May 10, 2015, 05:23:51 pm »
Listen to the Forest Mimms episode of the Amp Hour. He discusses that at length.
Charles Alexanian
Alex-Tronix Control Systems
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #7 on: May 10, 2015, 06:58:09 pm »
... So with that, with that LEDs I have the best one for my needs is red. (since I am mainly interested in visible light for my needs.)

when my other leds come in, I want to see how responsive green and yellow are.
 

Offline daqq

  • Super Contributor
  • ***
  • Posts: 2314
  • Country: sk
    • My site
Re: Lets mess around with LEDs (as photo sensors)
« Reply #8 on: May 10, 2015, 07:41:04 pm »
Neet experiment! Note that the LEDs have quite different spatial characteristics - it would be interesting on how they react to different positions of the photo.
Quote
I have been interested in the method of using a single ordinary LED as both an indicator and as a sensor.
They did something like this:  www.merl.com/papers/docs/tr2003-35.pdf
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #9 on: May 10, 2015, 08:15:07 pm »
From what I surmise, An led's wavelength detection is directly relative to its normal light output.

That info about Forest Mims helped allot.

but alas, I am still going to try it with the red leds and the blue. (due to lens shape and relative differences in color)

This will involve putting the same led in all the channels and pointing them in different directions.
« Last Edit: May 10, 2015, 11:49:47 pm by kakureru »
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14795
  • Country: de
Re: Lets mess around with LEDs (as photo sensors)
« Reply #10 on: May 10, 2015, 08:42:54 pm »
The scope shows times 10 probe. So the actual voltage is more like 0.3 volts. The is no resonable way a LED should provide more than there normal voltage.

The curve for the red LED looks strange - there seems to be some kind of saturation at the relatively low voltage.
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #11 on: May 10, 2015, 09:21:16 pm »
oops, you are right ;)
never the less, data is still interesting.

 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #12 on: May 10, 2015, 09:36:48 pm »
Here is a new capture with correct probe settings. (in addition to leds being pointed into strobe better.)

~thanks for the catch
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #13 on: May 10, 2015, 09:41:12 pm »
and equally interesting, here are the rises..
 

Offline kakureruTopic starter

  • Contributor
  • Posts: 38
  • Country: us
Re: Lets mess around with LEDs (as photo sensors)
« Reply #14 on: May 10, 2015, 11:40:13 pm »
And finally, Here is the red at different angles. I could do slight angles but this time around, Im only interested in if the leds respond
the same in general. So a slight off angle would only effects the amplitude and not the wavelength response a little less than shown.

Im sure other colors would show similar characteristics.

1 - Pointed out properly
2 - 90 degree side (flat side of metal)
3 - Back side of led (with likely reflection from scope casing)
4 - 90 degree side (edge of metal)

**yes i forgot to set the multiplier again but for this experiment, it really don't matter.
« Last Edit: May 10, 2015, 11:51:28 pm by kakureru »
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Lets mess around with LEDs (as photo sensors)
« Reply #15 on: May 10, 2015, 11:55:31 pm »
Quote
I have been interested in the method of using a single ordinary LED as both an indicator and as a sensor.
They did something like this:  www.merl.com/papers/docs/tr2003-35.pdf
Thanks for this link with detailed description how reverse biased LED with two I/O pins and resistor without need to use ADC to sense light is designed  :-+
However, it look like there is very smal cut off frequency at which bits can be send via such bidirectional LEDs channel  :palm:
Quote
The LEDComm test setup works very well. The underlying protocol trans-
mits data at a rate of approximately 250 bits/sec in each direction. The micro-
processors buffer the data and connect to a host at 38400 bps. Data transfer is
robust up to a range of approximately three centimeters.
Just wonder if switching MPU pin between I/O mode to ADC mode with classic LED ON sourcing limited current by resistor coudn't be faster  ::)
At cloudy day I had ~100mV at 1M multimeter load which is ~20 LSB on MPU 5Vcc, with ADC clock set to 250kHz and ~13 clock cycles per ADC reading we get close to 20kHz LED voltage sensing-I mean we switch off LED to ground, then start ADC and in ~50us we have another ADC reading, switch back to I/O mode and ready to PWM LED and make ADC reading after switching off  :-/O
Of course we have limited number of ADCs on MPU and I/O method with reversed LED is quite tricky nit, but still wonder how to increase bitrate using LED communication and if using ADC could allow lets say 10kbps between two leds?
It is small offtop, but still messing with LEDs ;)
I found quite cheap NPN phototransistors, but it is interesting to push  LED to the limits and try send data between two of them at highest speeds possible using eg. crappy 3mm yellow LED I've shown above  :popcorn:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16363
  • Country: za
Re: Lets mess around with LEDs (as photo sensors)
« Reply #16 on: May 11, 2015, 07:30:45 pm »
Using it as a voltage source ( needs a lot of light to bias it) you can get a data rate that will probably pass 9600BAUD data reasonably reliably. You will use 2 5mm hyperbright red or blue LED units coupled to each other directly ( black heatshrink to get the ambient light down) and driving the transmit at 10mA will give you a voltage output that is easy to read with a simple comparator and some low reference voltage. Red led will give about 1V into a high impedance ( around 10k) and blue will do around 2V, so you can use a simple comparator and say a forward biased diode as reference with the output going into your microcontroller.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Lets mess around with LEDs (as photo sensors)
« Reply #17 on: May 11, 2015, 09:32:33 pm »
Red led will give about 1V into a high impedance ( around 10k) and blue will do around 2V, so you can use a simple comparator and say a forward biased diode as reference with the output going into your microcontroller.
Thanks for some hints, however probably it could be difficult to make such good light coupling, while I do not like to connect those two diodes in a way to create something like optocoupler physically linked together.
I have another requirement in another project where I'd like send data from blinking LCD screen (~1inch2 area) and when tried this yellow 3mm diode, nope on white screen area very small voltage ~1mV, so probably messing with LEDs in this case will not work  :-\
I expected much better response from iiyama LCD monitor at normal brightness, while I do not want press customers to change his screen settings to receive data from my web page to reprogram their devices, so probably NPN phototransistors will do th ejob much better than LEDs.
 
Additionaly, rather this small green LCD in SMD 1206 package is in my interest in a few projects.

It quite nice glows even at very small current when trying check its polarity with crappy multimeter in diode resistance mode, but need to solder it first to prototype PCB to test how it responds to different light sources  :-/O

« Last Edit: May 11, 2015, 09:34:52 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf