IR object detection
nelson1000
Posts: 25
Hello,
I was wondering if anyone could help me? I am using this and am having no luck. I was wondering if it is similar to the ones that came with my BOE-BOT? and if not how can I use it?
Thanks for the help,
Nelson
I was wondering if anyone could help me? I am using this and am having no luck. I was wondering if it is similar to the ones that came with my BOE-BOT? and if not how can I use it?
Thanks for the help,
Nelson
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Nelson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Nelson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
"The PNA4602M, like all IR decoders of this nature, does NOT measure distances, detect objects or sense color changes. This device takes an incoming IR signal, modulated at 38 KHz, strips-off the carrier and provides the user with a clean, stable data stream that represents the originally encoded data. It is intended for IR data transfer only."
I guess that this can not be used for object detection.
Thanks all for your help,
Nelson
Meaning, by ITSELF all it provides is a reciever and decoder of 38 Khz IR light. Through programming your BOE-Bot, you can use that facility to detect objects. Measuring distances is harder, and measuring color changes is not possible.
·· Essentially that's how all of those decoders work...Why this one isn't doing what's expected I don't know.· But it should in theory be useable for object detection.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Basically, I was wondering if all three leads coming off of it were in the same order?
Thanks,
Nelson
Post Edited (nelson1000) : 6/4/2006 9:15:02 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Nelson
FREQOUT 8, 1, 38500
irDetectLeft = IN9
Try a 220 ohm resistor in series with the IR LED when you use the PNA4602. Point the IRLED in a direction where there are no objects for a long ways, then try putting your hand in front of the IR LED (to reflect IR at the receiver). If you have fluorescent lights around, turn them off while you are testing this. Direct sunlight can cause problems sometimes too.
If you have a voltmeter, try reading the voltage at the PNA4602's output (the pin connected to the I/O pin). Use a really long FREQOUT command, like FREQOUT 8, 60000, 38500. This will give you a minutes worth of measuring time with the voltmeter. During this time, your BASIC Stamp will not be able to report any signals because it will be busy sending the FREQOUT signal to the IR LED. As you reflect the beam from the IRLED at the receiver, its output should send a low signal (0 V). When the IR beam is going off into space, the IR receiver should send a high signal (5 V).
Help?
-Rico
It should work. With the IR detection circuit on the Boe-Bot, I can swap the two parts (no changes to circuit, same pinout), and it works fine either way. We've been doing it for years.
The PNA 4602 tends to chatter more when tranisitioning form detection/no-detection. Also, when I step through frequencies towards the center frequency (freq at detection should be proportional to distance), I find a very narrow range of frequencies, <1 khz over ~20cm.
The 2 parts from my old kit have less chatter (almost none) and detection frequencies vary over ~5 khz over ~20cm.
I've tried burtsing the output as suggested in other forums (<= 16 pulses). Didn't help. I'd I've played with different LED intensities. No luck either.
So I'm hoping to find the original part as a first option, or I'll have to modify my design a bit. Probably something along the lines of:
http://www.oricomtech.com/projects/irpd-an.htm
Cheers,
Rico