Proximity Sensing with the Arduino? Answered
I am looking for a way to use the arduino, an IR emitter and an IR detector to use for proximity sensing. I have looked at a lot of tutorials but none of them seem to deal with detectors that only have two pins, most are for the sharp sensor. I am looking for a cheap alternative and would like to stay away from the Sharp sensor. I want to be able to pulse on and off the IR emitter and be able to read the reflective beam with the IR detector. I was able to do this with a reversed led connected to the IR detector, not sure why that worked but it did. I am trying to find the proper way to wire and read the IR level.
When the IR emitter pulses, I want the detector to take a reading and then I am going to use that reading to determine how bright or dull a connected LED will be. Any help is greatly appreciated and I think with a little bit of guidance I will be able to do this =) ... wouldnt mind taking pictures and making an instructable out of this either ;)?
Here are the emitters and detectors I am using: