I came across an interesting article yesterday on Hack-A-Day about using a LED as a Photo and cheap communictaion device.  This is achieved by using some physical properties of the LED for both Transmit and Receive.  The article also links to a cool video clip demonstrating this. Original Article can be found here http://www.hackaday.com/entry/1234000873073550/

Anyway this sparked my interest and I soon had a -08M hooked up to test if it-in fact it works (I also made sure that the date was not 1st April LOL).  After about an hour I had it working, this code requires 3 LEDs, One acts as the Light Source and is always on (not really necessary, you can use anything as a light source, the brighter the better), the Second LED acts as the Sensor and is connected to two outputs along with the current limiting resistor, this is really the heart of the concept.  The third LED is a status Indicator and gets switched on and off depending on the reading of the LED Sensor.

This idea, as simple as it is, makes for some interesting sensor .

Here’s the PICAXE code – LEDSwitch.zip


2 thoughts on “PICAXE – LED Sensor

  1. I was made aware of an error in my circuit,(had the serial resistors back to front). so I have now updated the drawing and the correct one is on the page. (thanks Paul) 

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