Shop OBEX P1 Docs P2 Docs Learn Events
Sumobot only moves ahead — Parallax Forums

Sumobot only moves ahead

BillWBillW Posts: 7
edited 2007-10-23 16:15 in Robotics
Today I tried to get my Sumobots up and running again. I noticed it doesn't seem to matter what program I load into the bot, it travels ahead in straight line until it hits something solid. Other than watching the bot run the program, is there a way to see what program actually resides in the bot? I stripped all but the minimum sensors off and loaded the SumoBot_2.2 Motor_Test.BS2 from the Parallax site, but the robot only goes forward. Does anyone have any ideas on what I should do to get these devices operational again?

BillW

Comments

  • Steph LindsaySteph Lindsay Posts: 767
    edited 2007-10-19 16:47
    Hello BillW

    A question first:· You said "up and running again" - did you have them working properly at some point in the past?

    If not, did you center the servos before building the SumoBots·(using a pulsout 750 command and the Parallax scredriver to adjust the potentiometer inside)?

    There is no way to suck the program out of the BS2 to see what it is.· You can connect it to the computer while running it to see if it opens a Debug Terminal, that might give you a clue about the program.·

    You might also try programming it with a simple program like

    DEBUG "did the program download?"

    ...just to make sure the BASIC Stamp is receiving the programs you are trying.·



    -Stephanie Lindsay

    Editor, Parallax Inc.
  • BillWBillW Posts: 7
    edited 2007-10-19 17:08
    Hi Stephanie,

    Yes, about 6 months ago the sumobots were working fine. I have not centered the servos lately. I just ran a debug command and it worked fine.


    BillW
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2007-10-19 17:24
    Hi BillW,

    That's a help! So then what happens if you send this program - it will let you know if you need to re-center the servos.

    debug "sending center pulses"
    do
    pulsout 12, 750
    pulsout 13, 757
    pause 20
    loop
  • BillWBillW Posts: 7
    edited 2007-10-19 18:58
    Hi Stephanie,

    The robot goes straight ahead. (I let it go for about 8ft).


    Thanks,

    BillW
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2007-10-19 22:38
    Wow, so sending both servos a centering pulse sends it straight ahead.

    I would try adjusting the potentiometers again while the centering program is running, until each servo is still.· The adjustment screw ports should be accessible from the back of the robot.·

    do

    · pulsout 12, 750

    · pulsout 13, 750

    · pause 20

    loop
  • BillWBillW Posts: 7
    edited 2007-10-22 18:34
    Thanks Steph,

    That has done the trick.
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2007-10-23 16:15
    Hi Bill,

    I'm glad that worked, thanks for letting me know!

    -Stephanie
Sign In or Register to comment.