27403 Parallax Inc, 27403 Datasheet - Page 181
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: 181 of 266
- Download datasheet (6Mb)
' -----[ Main Routine ]-------------------------------------------------------
DO
The
this chapter's Activity #1, but with a twist -
Next_State
pattern. If none of the sensors see anything, each
execute. However, if any sensor sees something, the
zero.
DO...LOOP
sensor(s) that changed from 0 to 1 handle the situation. Since there are no IR detectors in
this program, the only sensors that can cause this condition are the QTIs. In the next
activity, all four IR detectors and both QTIs will have an opportunity to set a bit in the
sensors
the state that handles the sensor that went high.
IF qtiLF = 1 THEN
ELSEIF qtiRF = 1 THEN
ELSE
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
FOR counter = 1 TO 15
NEXT
ELSE
.
.
.
FOR counter = 1 TO 35
NEXT
maneuver = Backward
GOSUB Servos_And_Sensors
maneuver = RotateRight
GOSUB Servos_And_Sensors
maneuver = Backward
GOSUB Servos_And_Sensors
maneuver = RotateLeft
GOSUB Servos_And_Sensors
maneuver = Forward
GOSUB Servos_And_Sensors
IF sensors <> 0 THEN GOTO Next_State
.
.
.
When that happens, the
variable, causing the program to terminate the search condition and transition to
condition in the Main Routine performs the same search pattern introduced in
in the Main Routine repeats itself, and the correct state for handling the
. This
IF...THEN
statement is in all four
ELSE
condition terminates.
' Left qti sees line?
' State = Avoid tawara left
' Back up
' Turn right
' Right qti sees line?
' State = Avoid tawara right
' Back up
' Turn left
' No objects detected?
' State = search pattern
' Straight ahead 35 pulses
IF
sensors
FOR...NEXT
FOR...NEXT
sensors
variable will no longer be
Next, the outermost
<>
loops in the search
loop continues to
0
THEN
GOTO
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: