Shop OBEX P1 Docs P2 Docs Learn Events
HAAALP. my boebot right ir sensor is working but the left one is not(the LED is — Parallax Forums

HAAALP. my boebot right ir sensor is working but the left one is not(the LED is

justin1337justin1337 Posts: 5
edited 2009-05-14 17:17 in Learn with BlocklyProp
even when i put my hand in front of it.

and the servos work fine because i tested them and they go foward

when i navigate em the IR sensors don't work but the boe bot keeps going in the formation its programmed to do but when it reaches a wall or black tape it does not read it.

i tried rewiring it

i changed basic stamp chip

i changed mother board


what i do

you guys are the pro's

Comments

  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2009-05-14 15:52
    Hi Justin,

    Have you tried running the program TestIrPairsAndIncidactors.bs2 from Chapter 7, Activity 4 in Robotics with the Boe-Bot?

    This activity demonstrates how to wire LEDs to light up when the IR detector detects an object. It also displays the state of the IR detector so you can be sure they're working properly before attempting navigation with infrared headlights.

    If you did run this program and everything is working properly, please post your code as an attachment and we can see if something is wrong there.

    Hope this helps.

    Jessica

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jessica Uelmen
    Education Department
    Parallax, Inc.
  • justin1337justin1337 Posts: 5
    edited 2009-05-14 17:08
    ok so the right one is readin but not lighting up

    but the other one is not lighting up nor reads my hand when i wave it.
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2009-05-14 17:17
    Hi Justin,
    In your code, it seems that you have both IN9 and IN0 set to irDetectRight, which is why the right one always responds, since the variable irDetectLeft is never set to anything.· Your code should read:
    FREQOUT 8, 1, 38500
    irDetectLeft = IN9
     
    FREQOUT 2, 1, 38500
    irDetectRight = IN0
    

    Instead, you have:

    FREQOUT 8, 1, 38500
    irDetectRight = IN9
     
    FREQOUT 2, 1, 38500
    irDetectRight = IN0
    
    

    After that change, everything should work!

    Jessica

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jessica Uelmen
    Education Department
    Parallax, Inc.
Sign In or Register to comment.