Ideas to increase range of IR proximity detection
PeteD032
Posts: 2
Hi all,
I'd like to hear your ideas for increasing the range of proximity detection sensor that uses an IR LED & the Parallax IR detector.
I am using a Radio Shack high-output IR LED, a Parallax 40kHz IR detector [noparse][[/noparse]350-00014], and a BS2P24 micro. The LED is mounted directly above the detector so that it shines in the same "line" as the detector. When an object comes near, it reflects the IR from the LED back to the detector.
According to its datasheet, the IR LED 276-0143 operates at 940nm wavelength and outputs 16mW @ 100mA.
The IR LED is connected, in series with a 470 ohm resistor, to an output pin in the BS2p. It is controlled using the FREQOUT command [noparse][[/noparse]FREQOUT, pin, 1, 37500].
The IR detector is connected to an input pin on the BS2p and is read using the IN command.
This system can detect an object at a range of about 6 inches from the LED/detector, but beyond that it doesn't "see" anything.
I'd really like to increase this detection range to about 9 or 12 inches.
Do you have any ideas or suggestions for how I could do this ?
Thanks!
-- Pete
I'd like to hear your ideas for increasing the range of proximity detection sensor that uses an IR LED & the Parallax IR detector.
I am using a Radio Shack high-output IR LED, a Parallax 40kHz IR detector [noparse][[/noparse]350-00014], and a BS2P24 micro. The LED is mounted directly above the detector so that it shines in the same "line" as the detector. When an object comes near, it reflects the IR from the LED back to the detector.
According to its datasheet, the IR LED 276-0143 operates at 940nm wavelength and outputs 16mW @ 100mA.
The IR LED is connected, in series with a 470 ohm resistor, to an output pin in the BS2p. It is controlled using the FREQOUT command [noparse][[/noparse]FREQOUT, pin, 1, 37500].
The IR detector is connected to an input pin on the BS2p and is read using the IN command.
This system can detect an object at a range of about 6 inches from the LED/detector, but beyond that it doesn't "see" anything.
I'd really like to increase this detection range to about 9 or 12 inches.
Do you have any ideas or suggestions for how I could do this ?
Thanks!
-- Pete
Comments
V = IR. I = V/R. R = V/I
(5-1.4)/100 mA == 36 ohms. That's right, *36* ohms. THAT'LL be a bright LED. Use 50 ohms if you're scared.
Another 'classic' way of doing this is to use 2 IR-LED's in parallel, each with their own current limiting resistor.
Pg 249, Chapter 7. Pg 253 specifically is good. Everything you need to know should be there. We can pick this conversation up in carpool...
-Parsko
To get around the current limit of the Stamp pins, use a MOSFET to switch current to the IR LED.· Driving the standard Parallax IR LED at about 1 amp will give a range of about 6 to 7 feet with the Parallax IR detector.· Using FREQOUT period of 1 with a BS2SX and taking a new reading every 15 to 20 msec, results in a very low duty cycle for the IR LED.
A schematic of my sumo robot sensors (adjustable limit up to about three feet) can be seen on http://brooksbots.com/Excuse%20II.htm·click on the schematic about a third of the way down the page.
···· Rick Brooks
Works great for Pin type flash lites.As well as IR RX and TX
______$WMc%____MerryXmas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there
Thanks for your quick and interesting replies.
I was able to use the simplest method - reducing the value of the resistor on the IR LED.
When I went from ~470ohms to ~220ohms, the system got a lot of false-positive readings: the LED was too bright.
So, I increased the resistor to ~300ohms and it works well in the range that I'm looking for (~9")
Thanks for the help!
-- Pete
At 300 ohms, you're doing (V = IR, 3.6/300 == 0.12, 12 milli-amps? That's not very much, so it won't damage the pin, but glad it's working for you.)
Things like this are why there exist "Darlington Arrays".
Somebody once discovered that using FREQOUT values away from the "ideal" of 38700, you produce a signal that becomes harder and harder to detect by the IR-Detector, and thus requires a reflecting object to be closer and closer before it's detected. Through experimentation, you can even identify a few (maybe 3 or 4) "ranges", each resulting from a particular FREQOUT value.
If you are using the BS2, the distance is rather erratic from one frequency to the next (1 Hz steps).· I use BS2SX and the distance response is much less erratic.
The frequency for the maximum range of the five sensors on the last sumo robot that I built varied from a low of 37,315 Hz to a high of 38,835 Hz.
Yes, I do spend too much time on this stuff.
········ Rick