27404 Parallax Inc, 27404 Datasheet - Page 207

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
SUMMARY
This chapter introduced a technique that uses the
control to use with the
makes checking the sensors between each servo pulse automatic.
code blocks were used to respond to a sensor with an action until another sensor event
occurred or a counter exceeded a certain number of repetitions. This makes it possible
for the SumoBot to react to sensor detections on either the front or side that causes it to
face its opponent. Similar routines for detecting and avoiding the white tawara line were
also introduced along with search patterns the SumoBot can use to locate its opponent
more quickly and effectively.
The SumoBot navigation routines in this chapter can be conveniently viewed as state
machines. Selected sensor detections cause the SumoBot to transition between different
navigation states. State machine diagrams were introduced along with hybridized state
machine diagrams as a potential visual aid for mapping the SumoBot's various responses
to sensor events.
Two fully functional SumoWrestler programs were presented. Both make use of the
majority of the techniques presented earlier in this book. One contains all the navigation
states and state transitions in the main routine. The other only has state transitions in the
Main Routine, and all the navigation states are handled in subroutines.
Questions
1. Which BASIC Stamp I/O pin does the X7 signal line connect to?
2. What feature of servo motion does a
3. What feature of SumoBot motion does a
4. What do the numbers 700, 710, 720, 730 and 740 do for servo control?
5. Assuming a
6. What effect do sensors have on the amount of time a loop makes the servos run?
7. What combination of
8. What combination of
determine?
to make the servos go forward for 3 seconds?
execute a full speed reverse maneuver?
execute a right turn (rotating in place)?
FOR...NEXT
temp
and
PULSOUT
PULSOUT
counter
loop with 20 ms pauses, how many pulses will it take
commands does it take to make the SumoBot
commands does it take to make the SumoBot
variables. It also introduced a subroutine that
FOR...NEXT
LOOKUP
PULSOUT
loop's
command for adapting servo
command's
EndValue
DO UNTIL...LOOP
Pin
control?
argument

Related parts for 27404