Boe-Bot IR Detector issues
Hi all,
I'm going through 'Robotics with the Boe-Bot' currently but I'm having problems around page 241 - I am testing the IR Detector pairs but all I am receiving in the debug terminal is a 1 and it never detects an object?
I have double checked and rebuilt the circuit numerous times, and the code is exactly as the manual describes:
The expecting value is a 1 unless the IR pair detects something, but there is no object in the way, no flourescents interfering as I've tested it in a completely dark room - I've even gone as far as turning all electricity off except my laptop and boe-bot and still I cannot get it to register an object as being in the way!
Regardless of what I do I cannot get the value to change. Has anyone else experiencing this problem or could anyone possibly shed any light on what might be causing this?
Regards,
Morrolan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Flying is simple. You just throw yourself at the ground and miss.
"I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image."
Stephen Hawking
I'm going through 'Robotics with the Boe-Bot' currently but I'm having problems around page 241 - I am testing the IR Detector pairs but all I am receiving in the debug terminal is a 1 and it never detects an object?
I have double checked and rebuilt the circuit numerous times, and the code is exactly as the manual describes:
irDetectLeft VAR Bit Do Freqout 8, 1, 38500 irDetectLeft = IN9 DEBUG HOME, "irDetectLeft = ", BIN1, irDetectLeft Pause 100 Loop
The expecting value is a 1 unless the IR pair detects something, but there is no object in the way, no flourescents interfering as I've tested it in a completely dark room - I've even gone as far as turning all electricity off except my laptop and boe-bot and still I cannot get it to register an object as being in the way!
Regardless of what I do I cannot get the value to change. Has anyone else experiencing this problem or could anyone possibly shed any light on what might be causing this?
Regards,
Morrolan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Flying is simple. You just throw yourself at the ground and miss.
"I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image."
Stephen Hawking
Comments
I think it might actually be my stamp - changing the pins seems to work but I think I'm having trouble with P9 - I'll run a few tests on inputs and outputs on it, see if I can figure out whats happening.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Flying is simple. You just throw yourself at the ground and miss.
"I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image."
Stephen Hawking