27404 Parallax Inc, 27404 Datasheet - Page 198

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
There was one small problem that had to be corrected before the program would run
properly. The last command in the initialization routine had to be changed from
to
The symptoms of this tiny coding mistake can be pretty discouraging. The SumoBot
does its 5 second delay, then looks left, then looks right, then does nothing more...
Here's why - the
Look_About
commands until it gets to
RETURN
the SumoBot to the programming cable, the problem becomes clear, since the SumoBot
does a couple of moves, and then displays "Press/Release Reset button..." That's an
indication that the program is restarting, and the two most likely causes are tired batteries,
or a
Example Program: SumoWrestler.bs2
RETURN
command, the BASIC Stamp sends the program to its beginning. By connecting
GOTO Look_About
GOSUB Look_About
Examine SumoWrestler.bs2 and make sure the Main Routine and navigation
state subroutines make sense to you.
Make sure to substitute your
place of the
NEXT
FOR counter = 1 TO 15
NEXT
RETURN
Did you skip ahead to get here? If you skipped any thing in Chapter 3 or 4, go back
and do it now.
The programs that follow are dependent upon the sensor circuits built, tested and calibrated
in the previous activities in Chapter 3 and 4.
command without a
maneuver = Backward
GOSUB Servos_And_Sensors
maneuver = RotateRight
GOSUB Servos_And_Sensors
sends the program to the
Look_About
IrFreq
RETURN
constant in SumoWrestler.bs2. Use the one that most
label is now in the
GOSUB
. Since there was no
IrFreq
.
Look_About label,
constant from Chapter 3, Activity #1 in
Search_Pattern
' Turn right
' Start mid search pattern
' Was Goto Look_About
GOSUB
and the program executes
command before the
subroutine.
GOTO

Related parts for 27404