Shop OBEX P1 Docs P2 Docs Learn Events
Weird Behaviour of Boe Bot — Parallax Forums

Weird Behaviour of Boe Bot

whatsap45whatsap45 Posts: 4
edited 2012-03-10 18:11 in Robotics
As titled, i encountered strange behaviour from boe bot. The buzzer beeps first, then it keeps moving forward for 1sec and stops for 2 sec and buzzer beeps and it continues moving forward again for 1sec and so on. I have re-programmed a lot of time and replaced it with fresh batteries but the problem still persist. Basically, no matter how i program it, it keeps doing the strange behaviour.

Anyone, pls help me!!!

Comments

  • Martin_HMartin_H Posts: 4,051
    edited 2012-03-09 09:36
    Please post your code.
  • ercoerco Posts: 20,255
    edited 2012-03-09 10:42
    If that buzzer is one of your first commands in your program and is only supposed to execute once, then it sounds like your Stamp keeps resetting, possibly from low batteries or incorrect wiring causing a short or excessive current draw. Post code & video if possible.
  • whatsap45whatsap45 Posts: 4
    edited 2012-03-09 19:35
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}


    DEBUG "Programming is running!", CR


    FREQOUT 4, 2000, 3000


    counter VAR Byte


    FOR counter =1 TO 208
    PULSOUT 13, 850
    PULSOUT 12, 650
    PAUSE 20
    NEXT


    FOR counter =1TO 46
    PULSOUT 13, 850
    PULSOUT 12, 850
    PAUSE 20
    NEXT


    FOR counter =1 TO 208
    PULSOUT 13, 850
    PULSOUT 12, 650
    PAUSE 20
    NEXT




    END


    Sorry for the late reply.
  • ercoerco Posts: 20,255
    edited 2012-03-09 20:01
    Run the program with the cable attached (hit run in the editor) and let the robot drive around. Does your "Programming is running!" message repeat?
  • whatsap45whatsap45 Posts: 4
    edited 2012-03-10 07:08
    Yes, exactly. The "Program is running!" keeps repeating before/after the beep and the wheels follow next. What is the problem?
  • ercoerco Posts: 20,255
    edited 2012-03-10 09:07
    Stamp is resetting from low power. Weak batteries or a short circuit somewhere. Remove all parts (piezo, LED, etc) from the breadboard and try again with fresh batteries. Once it works properly, add your parts back in one by one carefully and retest every step.
  • whatsap45whatsap45 Posts: 4
    edited 2012-03-10 18:11
    Thanks erco, i bought new batteries for the replacement of the old one. Problem solved.
Sign In or Register to comment.