Took a Short Cut IR Dectector Help Please
··
Not being very good building electronic circuits I purchase what is call a PNP IR board. Unfortunately it did not come with much in documentation. It has 3 pins GND, +5V, and TTL output. Here are the instructions I got.
1.)· Connect 5V to Pin 1, Ground to Pin 2
2.)· Connect Pin 3 to MCU input Pin
3.)· Adjust the blue variable Resistor to achieve desired sensitivity.
I purchased it off EBay and it said perfect for Object Detection or Object Distance. But the documentation sure sucks. If anyone has any code examples they think might work with this I sure would appreciate it. I was thinking that some kind of pulse must have to be put out on Pin 1 and then read results on Pin 3
I know this forum is for Parallax equipment, but I am using a Basic Stamp. [noparse]:)[/noparse]
Not being very good building electronic circuits I purchase what is call a PNP IR board. Unfortunately it did not come with much in documentation. It has 3 pins GND, +5V, and TTL output. Here are the instructions I got.
1.)· Connect 5V to Pin 1, Ground to Pin 2
2.)· Connect Pin 3 to MCU input Pin
3.)· Adjust the blue variable Resistor to achieve desired sensitivity.
I purchased it off EBay and it said perfect for Object Detection or Object Distance. But the documentation sure sucks. If anyone has any code examples they think might work with this I sure would appreciate it. I was thinking that some kind of pulse must have to be put out on Pin 1 and then read results on Pin 3
I know this forum is for Parallax equipment, but I am using a Basic Stamp. [noparse]:)[/noparse]
Comments
You would not pulse pin 1, that is the power pin and power has to be supplied all the time. I have seem these sort of devices on ebay claiming distance measurment, but they are just object detection. I suspect the variable resistor will just adjust sensitivity. You will see pin 3 go High or Low when an object is in view of the sensor.
Do you have a link to the ebay auction?
Jim
All I want really is object detection, but will take distance if I can get it. LOL
The PIR is just about the same price right now @ $7.99 each, but with better documentation.
Jim
I have noticed that some people have been having problems. I have three working just fin for the last year. I'm not sure what the problem is.
And I do like the variable pot on the one that you purchased. Nice feature.
Jim
Post Edited (Prettybird) : 5/30/2010 1:39:06 AM GMT
See "IR Object and Distance Detection with NCO and DUTY Modes", page 147 of Propeller Education Kit Labs manual.
www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf
Except maybe instead of adjusting LED brightness with the NCO, it just uses the blue pot.