Shop OBEX P1 Docs P2 Docs Learn Events
Strange looping behavior or a hardware problem? — Parallax Forums

Strange looping behavior or a hardware problem?

forbajatoforbajato Posts: 2
edited 2007-10-25 04:00 in Robotics
Not sure what is causing my BoeBot to do this - After installing the whiskers as instructed in activity 3 of Chapter 5 of the Robotics with the BoeBot text the robot is doing some strange things. When first started it will roll forward, respond appropriately when a whisker encounters an object once or twice then it will start simply rolling forward, stopping, rolling forward again, etc. Each time it rolls forward it will beep as per the FREQOUT command in the initialization portion of the code.

So it seems it is looping a bit then going back to restart the program from the beginning (no FREQOUTs anywhere but in the initialization part of the program). I have checked the servo centering and it is fine. Can someone point me in the right direction to understand this problem? I can provide code if necessary.

tom

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-10-24 13:57
    It sounds like the BoeBot is repeatedly resetting. This is usually a power problem. Do you have fresh batteries?
  • forbajatoforbajato Posts: 2
    edited 2007-10-25 04:00
    Thanks Mike, replacing the batteries did the trick. Glad it wasn't a software problem, we had been over that code several times and couldn't find any problems. The upside though, my daughter (this bot is a homeschool project) learned a lot about debugging!

    tom
Sign In or Register to comment.