27404 Parallax Inc, 27404 Datasheet - Page 174

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
Your Turn - Limiting Rotation
Unlike the front IR detectors, the loops for the side IR detectors do not limit the amount
of rotation in place the SumoBot will perform.
Is it worth sweeping back in case the SumoBot might have missed something on its first
rotation? Maybe. It might be something to fine tune after getting more familiar with
how your SumoBot performs in matches.
ACTIVITY #4: INTRODUCTION TO STATE MACHINES AND DIAGRAMS
True to its name, a state machine is a machine that can operate in different states or
modes of operation. A desk lamp is a very simple state machine, with two states, on or
off. If the desk lamp starts out in the off state, and you flip its on/off switch, it will
transition to the on state. Flip the switch again, and it transitions back to the off state.
The act of flipping the switch is considered a condition that causes a transition from one
state to another.
Traffic lights are somewhat more complex state machines, transitioning from green to
yellow, to red, and then back to green again. In some traffic lights, these transitions are
initiated by the traffic light's timer. Other traffic lights use a combination of a timer and
sensors under the pavement. The transition from green to yellow might occur due to a
timer, or it might occur because a car going the other direction is waiting (over the sensor
under the pavement) for a green light. Both the timer and the sensor under the street
provide the traffic light's state machine with conditions for changing states.
Computers, cell phones, and factory production machines are significantly more complex
state machines, but they still have something in common with desk lamps and traffic
lights. They all operate in a finite number of states, and so they are defined as "finite
Add conditions to the
to turn and face objects detected to the side, but that prevent the SumoBot from
rotating more than 180°.
Reset state is another state machine term. For example, maintenance workers might shut
off the power to the traffic lights at an intersection for repairs. When they turn the power
back on, the traffic lights start in a particular pattern, such as red for the east/west street and
green for the north/south street. Turning the power back on is an example of a reset
condition, and green on north/south and red on east/west is would be called the initial or
reset state.
DO UNTIL...LOOP
code blocks that allow your SumoBot

Related parts for 27404