Low-cost sensing and communication with an LED
posted Feb 21st 2006 11:00am by Eliot Phillipsfiled under: misc hacks

LEDs are extremely common in electronic devices. They are used as light emitters, but can also be used as light detectors since they are photodiodes. By quickly switching between light emitting and detecting, you can use the LEDs to determine the ambient lighting and even do bidirectional communication. MERL has a good paper covering the basics of how this system works and how they used it as a “last-centimeter” communication device. The system can be implemented using one LED, a resistor, and two I/O pins. So, it could be used cheaply in almost any device. The microprocessor quickly switches the LED between emitting light, detecting light (LED acts as a charging capacitor), and measuring the discharge rate of the LED to determine light level. Jeff Han has a neat video demo of how this system can be used as a proximity sensor.
UPDATE: [hawkeyeaz1] pointed to a blog covering one person’s investigations into LED sensors.
[thanks branen]





Lame, HackADay ain’t what it used to be. Before they’d publish hacks that an average guy could do with just a minimal understanding of electronics, and some extra stuff as well for guys who were far more advanced. That was great, and half of the hacks were fun things like how to get around this or that. Now its just all stupid stuff like mousepad coolers and technical reports on LED’s with no actual hack.
Posted at 11:06 am on Feb 21st, 2006 by Straus