27404 Parallax Inc, 27404 Datasheet - Page 171

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
IrLedLF
IrSenseLF
IrLedRF
IrSenseRF
IrLedRS
IrSenseRS
' -----[ Constants ]----------------------------------------------------------
' SumoBot maneuvers
Forward
Backward
RotateLeft
RotateRight
PivotLeft
PivotRight
CurveLeft
CurveRight
' Servo pulse width rotations
FS_CCW
FS_CW
NO_ROT
LS_CCW
LS_CW
' IR object detectors
IrFreq
' -----[ Variables ]----------------------------------------------------------
temp
counter
maneuver
sensors
irLS
irLF
irRF
irRS
' -----[ Main Routine ]-------------------------------------------------------
DO
PIN
PIN
PIN
PIN
PIN
PIN
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
4
11
15
14
3
0
0
1
2
3
4
5
6
7
850
650
750
770
730
38500
Word
Byte
Nib
Byte
sensors.BIT3
sensors.BIT2
sensors.BIT1
sensors.BIT0
' Left IR LED connected to P4
' Left IR detector to P11
' Right IR LED connected to P15
' Right IR detector to P14
' Right IR LED connected to P3
' Right IR detector to P0
' Forward
' Backward
' RotateLeft
' RotateRight
' Pivot to the left
' Pivot to the right
' Curve to the left
' Curve to the right
' Full speed counterclockwise
' Full speed clockwise
' No rotation
' Low speed counterclockwise
' Low speed clockwise
' IR LED frequency
' Temporary variable
' Loop counting variable.
' SumoBot travel maneuver
' Sensor flags byte
' State of Left Side IR
' State of Left Front IR
' State of Right Front IR
' State of Right Side IR

Related parts for 27404