27404 Parallax Inc, 27404 Datasheet - Page 22

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
With a couple modifications to Forward100Pulses.bs2 from Activity #1, you'll be ready
to go.
It's important to use new batteries in both SumoBots. It's also best to swap programs and
re-test to make sure that one SumoBot doesn't happen to be slower than the other. This
can be especially common in the classroom, where servos may have been subject do
differing levels of wear and tear over time.
Example Program: ForwardLowTimeTest.bs2
Save Forward100Pulses.bs2 as ForwardLowTimeTest.bs2.
Add a
LowTime
Change the
substitute the
argument:
DO
LOOP
Load fresh alkaline batteries into both SumoBots.
Enter and download ForwardLowTimeTest.bs2 to SumoBot A.
Change the
Download the modified program into SumoBot B.
Set them on a flat surface for the race.
Press/release both Reset buttons at the same time to start the race.
Follow the SumoBots for 3 seconds, then press/release the Reset buttons again to
end the race.
Measure the distance each SumoBot traveled, and make a note of it.
Divide the distance by 3 to calculate each SumoBot's speed in distance per
second.
Swap the programs so that SumoBot B now has the program with 20 ms pauses
and SumoBot A has the program with 40 ms pauses.
Repeat the race and measurement.
PULSOUT ServoLeft,
PULSOUT ServoRight, 650
PAUSE LowTime
LowTime
LowTime CON
FOR...NEXT
LowTime
constant declaration:
CON
constant for the 20 in the
850
20
directive from 20 to 40.
loop in the Main Routine to a
PAUSE
command's
DO...LOOP
Duration
, and

Related parts for 27404