Datasheet

Page 10· Applied Robotics with the SumoBot
Testing Plow Adjustments
A simple program to make each SumoBot go forward should be used to test the plows.
This eliminates the possibility of IR object detectors interfering with the SumoBot's
forward motion. For example, if one of the SumoBot's IR detectors briefly misses its
opponent, the SumoBot will hesitate and might not be going full speed when the two
SumoBots collide. It's true that this will also happen during a match, but during practice
it's best to test only one variable at a time, in this case, the plow adjustment.
Example Source Code Available
Remember, you can save yourself some typing and debugging! The example BASIC Stamp
programs printed in this text are available for free download as .bs2 source code from the
Applied Robotics with the SumoBot product page at www.parallax.com. The various
modifications and “Your Turn” programs are not provided.
Label both your SumoBots so that you can distinguish them. If A and B aren't
interesting enough labels, some searching on the Internet will yield names of
sumo legends as well as present stars.
Enter Forward100Pulses.bs2 into the BASIC Stamp Editor (listed on the next
page).
Load the program into both SumoBots.
Place both SumoBots facing each other as shown in Figure 1-3.
Figure 1-3
Facing Off on the
Shikiri Lines
Place the SumoBots
so that they are
directly facing each
other before pressing
and releasing Reset.
Press and release both SumoBot Reset buttons at the same time.
Make notes on which SumoBot appeared to be winning the match and why.