Sumobot only moves ahead
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
BillW
Comments
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.
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
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
The robot goes straight ahead. (I let it go for about 8ft).
Thanks,
BillW
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
That has done the trick.
I'm glad that worked, thanks for letting me know!
-Stephanie