Shop OBEX P1 Docs P2 Docs Learn Events
Boe-Bot IR Detector issues — Parallax Forums

Boe-Bot IR Detector issues

MorrolanMorrolan Posts: 98
edited 2009-10-11 11:45 in Robotics
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:


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

  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-10 22:23
    You either have something hooked up wrong or something is broken. If you have other IR LEDs, or IR detectors, try another one. If you have a video camera, see if the LED lights up since most cameras would detect IR and show it visibly on the screen.
  • MorrolanMorrolan Posts: 98
    edited 2009-10-11 11:45
    Hi Mike,

    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
Sign In or Register to comment.