How to use LEDs to detect light
makezine.com
makezine.com
All of that said, I designed a few demos (using the LED on the motion detector as a light sensor) that were pretty cool:
- I connected the amplified LED input on a motion detector to the microcontroller and sampled the LED in between PWM cycles (we PWMed the LED to save power). Even when the LED was on you could shine a flashlight at the motion detector light-pipe and trigger events or a test mode.
- On a motion detector that had a bi-color LED (red/green) in the same SMT package I connected the amplified LED input from one LED to the microcontroller and pulsed the other LED at a non-visible rate. If you placed your finger on the light pipe it would reflect the light from the pulsing LED to the other LED and you could detect when someone touched the light-pipe.
- A motion detector that could receive serial data over the LED to configure parameters.
I'd guess the issue is that the required parameters are not well controlled in the fabrication of most LEDs. Possibly LEDs not used as indicators, with a tighter wavelength output... most likely this would remove any cost advantage however.
Fascinating stuff!
It could detect a finger touching the surface of the light pipe.
[2] https://lancaster-university.github.io/microbit-docs/extras/...
Forest Mims wrote RadioShack's Getting Started in Electronics[0] as well as a number of "mini notebooks"[1]. He is an amazing writer and has a real knack for explaining things in "layman's" terms.
[0]: https://www.radioshack.com/products/getting-started-in-elect...
[1]: http://www.forrestmims.com/engineers_mini_notebook.html
The other is a simple "firefly" program where the LED is connected to the ADC input of a microprocessor, and when it detects LED light it turns around and flashes the LED some random time in the future. If you have a bunch of these you can bounce a light around for quite a while.
Chris Kuethe did a great example of this but I cannot seem to find his code anywhere.
Interesting to see it can be done with an LED as the receiver.
Using LEDs as SPADs (Single-Photon Avalanche Photodiodes)
http://nebula.wsimg.com/0b846f1e91ab9c7442a61c8c35680a51?Acc...
Not sure if that link is shareable, otherwise it's the May 2013 issue "What's a SPAD?" at http://www.teachspin.com/services.html
The Germanium ones were more susceptible to this than the Silicon ones.
So, what other hidden talents do LEDs have?
https://hackaday.com/2018/08/21/an-led-you-can-blow-out-with...
"We see all through the black mirror"
Light certainly had some effect, but I didn't get to be able to have the display show something and act as a sensor at the same time (possibly because the capacitance of the row and column lines is too high)
Capacitive touch screens in lenses can also track pupils using the shape of the eye.
You need a pinhole to block vast majority of that light, so that each pixel on screen receives light from a different point on the other side of the pinhole.
But this is not a full truth from the perspective of the photodiode designer: he can trivially increase or decrease the capacitance by designing a photodiode with a larger or smaller area. Suppose ratio of the incoming light power over photodiode area is unaffected by doubling the original photodiode area. If he doubles the area and hence capacitance, then he also doubles the injected photocurrent! Hence he can halve the load resistor, hence the bandwidth is unaffected by doubliing capacitance!
Consider the source illumination, what is the smallest area you can concentrate the light in? If it is smaller than your photodiode's active area, it pays off to select a smaller photodiode since the unused area is contributing dead weight capacitance. But if decreasing the area does not increase the optical power / photodiode area ratio, you need better optics or illumination.
EDIT: fixed poorly phrased sentence
- This is a reflectometer: https://github.com/gioblu/PJON/tree/master/devices/sensors/L...
- This is a bidirectional wireless data-link: https://github.com/gioblu/PJON/tree/master/src/strategies/An...
The older form readers used metal brushes that detected the conductivity of the graphite in pencil lead.
It sure makes things easier to use the same optical system (lens, etc) for TX and RX.
The only problem is that LEDs make a fairly poor Optical sensor.
Other semi-conductors can be too, e.g. classical diodes in glas casing.
I grabbed a multimeter and checked the first part I could find. 1mV DC covered, 10mV DC uncovered (it's a bleak cloudy day). Magnifying glass reveals it's a 6v2 zener :)