27404 Parallax Inc, 27404 Datasheet - Page 168

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
Figure 4-7 Random Cards to Draw for Start Positions
LOOP
ACTIVITY #3: USING PERIPHERAL VISION
When autonomous robots start a sumo match facing each other, the match tends to be
more a battle of brawn than brains. When a match starts with the SumoBot robots
sideways to each other, things get a little more interesting. Is the opponent on the
SumoBot's left or right, and for that matter, which direction is the opponent facing?
Sumo cards like the ones shown in Figure 4-7 can help keep this random. Between each
round in a match, a new card should be drawn to determine the placement of the
SumoBots for the start of the next round.
As shown in Figure 4-8, peripheral vision with the help of side mounted IR object
detectors can give your SumoBot an advantage, both at the start of the match, and in
detecting attacks from the side. This activity introduces a coding technique you can use
to make effective use of the SumoBot's peripheral vision afforded by those side-mounted
IR object detectors.
ELSE
ENDIF
LOOP
GOSUB Read_Object_Detectors
GOSUB Servos_And_Sensors
counter = counter + 1
' No objects detected?
' State = search pattern

Related parts for 27404