lunarnexus
03-10-2008, 09:46 AM
I got a Phidget 8/8/8 and the IR sensor board hooked up to an IR Sensor. (Actually I got the 4 sensor 8"-60" IR sensor kit from Trossen) and the first thing I did was hook it up. I plugged everything in and fired up InterfaceKit-All.exe (or something like that) in the C:\Program Files\Phidgets\ directory, which is what gets installed from Phidgets.com.
A nice GUI comes up with a sweet readout of all the digital-in and digital-out, and values are displayed for the analog inputs.
My issue:
As I bring my hand closer to my IR sensor, the analog value raises until it reaches 500 or so, then goes back down to 300 or so when I'm too close to the sensor (less than 8"). My question is, how am I supposed to know (or the robot), when an object is getting closer to the robot, or when the sensor is just out of range? For instance, if something comes close to the robot (8" or so), how am I supposed to know if it's getting farther away or closer when the analog value goes back down?
I had though about getting a 4"-30" sensor and using a combination of the 2 ranges, but I'd like to keep costs down.
Thanks,
James
A nice GUI comes up with a sweet readout of all the digital-in and digital-out, and values are displayed for the analog inputs.
My issue:
As I bring my hand closer to my IR sensor, the analog value raises until it reaches 500 or so, then goes back down to 300 or so when I'm too close to the sensor (less than 8"). My question is, how am I supposed to know (or the robot), when an object is getting closer to the robot, or when the sensor is just out of range? For instance, if something comes close to the robot (8" or so), how am I supposed to know if it's getting farther away or closer when the analog value goes back down?
I had though about getting a 4"-30" sensor and using a combination of the 2 ranges, but I'd like to keep costs down.
Thanks,
James