27403 Parallax Inc, 27403 Datasheet - Page 177
27403
Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
Specifications of 27403
Accessory Type
Manual
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
- Current page: 177 of 266
- Download datasheet (6Mb)
Your Turn
Figure 4-10 shows a modified version of the state machine diagram that involves a
variable named
DO...LOOP
than or equal to 2 seconds (assuming the
delay before the LED starts blinking again, even if you keep pressing the button.
Hybrid State Diagrams for SumoBot Code Visual Aids
Here is the Main Routine from FrontIrNavigation.bs2 (See Activity #2 in this chapter). If
you rigidly adhered to the format from Figure 4-9 to make a state diagram for this code
block, it would be pretty complicated. Certainly complicated enough to make it useless
as a visual aid for designing more complex navigation routines.
DO
IF irLF = AND irRF = 1 THEN
ELSEIF irLF = 1 THEN
√
√
√
maneuver = Forward
GOSUB Servos_And_Sensors
counter = 0
DO UNTIL (irLF = AND irRF = 1) OR counter > 15
maneuver = PivotLeft
GOSUB Servos_And_Sensors
counter = counter + 1
Save PushbuttonLed.bs2 as PushbuttonLedYourTurn.bs2.
Modify the program so that it conforms to the state machine shown in Figure 4-
10. Hint: use loops like
code blocks.
Run and test the program, and trouble-shoot code as needed.
in PushubttonLed.bs2, the
counter
.
Because of the 100 ms pause between repeats of the
DO UNTIL counter ≥ 10
counter
counter
variable keeps the LED blink-time less
' Both?
' State = Lunge forward
' Just left?
' State = track front left object
' Pivot left 15
starts at 1). It also ensures a 1 second
Figure 4-10
Modified State
Diagram
inside the
IF
and
ELSE
Related parts for 27403
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: