Low-cost Sensing And Communication With An LED

ledtouch_photo

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]

75 thoughts on “Low-cost Sensing And Communication With An LED

  1. It’s all a matter of opinion people. The techno-nerds want their complex hacks anc to learn something new, the wannabe lazy hackers just want something cool, quick, simple, and useful.

    Both get what they want eventually, and both types of submissions (easy and fun/ complex and educational) are perfectly valad hacks.
    I’m a lazy wannabe hacker yet I enjoy learning a thing here and there. So for the love of god,stop whining and deal with it.

  2. firstly: i don’t care if it’s not economically viable as a replacement for tablets, keyboards or whatever, this thing is awesome. i want one in blue that does mathmos-style pulsing effects while im not using it, as a secondary input device that looks cool. at least while i’m too poor to afford an eluminex keyboard, that is :)

    again, to all the people pointlessly dissing this hack because it’s supposedly too complex or has no market value at the moment- how economically viable is the psp downgrade, the Xbox beowulf cluster or the geodesic cardboard tent? and how likely is the average hacker to hand build something as involvedas the tiny mp3 player or an r/c tank made from a printer? the purpose of this site isn’t to showcase the next big thing in computing/electronics, or to give you how-tos on simple projects (though those are nice), its to let people share what they are doing and give readers some ideas that they might want to use/recreate/modify.

  3. Just think about bidirectional OLED displays, Multi-touch tablet displays which can scan fingerprints, barcodes, and such that are placed on the screen. Maybe a bidirectional OLED display could even be a webcam too.

  4. which Forrest M Mims III book can i find this project in? a couple people mentioned seeing it in the 1977 publication, but i can seem to find it. i really like this project and i’m going to try using it in a tele-rehabilitation project for one of my classes.

    also, if any one has written a program for this in Matlab, it would be really helpful if i could take a look at it.

  5. Hi,

    I would really like to understand what the heck you guys are talking about. What kind of engineering would I need to major in to do stuff like this. I’m in 12th grade and I plan to major in electrical engineering, but the college I plan on going to has electrical engineering and electronic engineering. Which one would be better for me to major in, because I am really interested in this kind of stuff.

  6. #59: I studied plenty of electronics in my electrical engineering courses. Unfortunately when i was in school the focus was on telecom careers. All the fun stuff (to me) is in the hardware and software development though, and not computer networking. My advice would be to study the curriculums and talk to your advisors early on when it’s still easy to change your major.

  7. Here’s a thought for the ultra-geek. With this technology, imagine enclosing a box with each wall being covered in these sensors, and using it as a way of reading total human body movement… Thing about the Virtual Reality imput possibilities of this? I know it sounds silly, but as I was reading these posts and watching the short films, it seems very doable, albeit expensive. I’m sure we must have a reader with both the time and resources to take on such a task. I will watch with baited breath!

  8. Here’s a thought for the ultra-geek. With this technology, imagine enclosing a box with each wall being covered in these sensors, and using it as a way of reading total human body movement… Thing about the Virtual Reality imput possibilities of this? I know it sounds silly, but as I was reading these posts and watching the short films, it seems very doable, albeit expensive. I’m sure we must have a reader with both the time and resources to take on such a task. I will watch with baited breath!

  9. I’m not sure if backlights nowadays used LEDS, but I see no reason why a computer couldn’t be created that used such a backlight. Imagine a computer screen that checks the light levels and changes it’s output accordingly, no more getting blinded by a bright computer screen at night.

  10. @phobia That’s a really nice idea actually.

    I think you could build a mod for your average laptop to use a LED as a sensor and then trigger the hotkeys on the keyboard for changing screen brightness to get a good enough effect.

  11. OK using LED in an application where their light output isn’t the primary purpose is NOT a hack? Good Lord hackaday isn’t going even have a chance to please a few, much less most is it.

    I’m sure are most like myself will never duplicate few of the hacks as exactly as presented here, but a lot learned goes in a note book. The notebook may be brain matter, paper or electronic. Unlike many publications hackaday costs nothing to view.

  12. Did anyone else catch the engadget, et al post about Apple’s patent to use individual pixels as touch sensors? That was for capacitive multitouch, but given this, couldn’t any oled panel provide feedback?
    It would have to be calibrated so that a touch is registered by the total occlusion of light to the diode. If not practical for touch interfaces (e.g. bad signal/noise) it could at least eliminate the need for additional ambient light sensors, or proximity (face) detectors on phones.

  13. Interesting, interesting.
    Going to rebuild the iDropper thing with a SOIC Attiny13, an SMD LED and a tiny button cell.
    See if I can get the size down a bit, and maybe hack a monitor’s on/off LED and hook another Attiny13 to the monitor’s DDC channel for communication to it (DDC2 is just I2C)
    Voila, easy communication with cheap iDropper devices.
    Use it for auth, use it for doorlocks, use it for anything!

    –Nathan

Leave a Reply to mikeCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.