27404 Parallax Inc, 27404 Datasheet - Page 140

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
IrLedRS
IrSenseRS
pbSense
LedSpeaker
' -----[ Constants ]----------------------------------------------------------
IrFreq
' -----[ Variables ]----------------------------------------------------------
' qtiLeft
' qtiRight
' qtiThreshold
temp
multi
sensors
pushbutton
qtiLF
qtiRF
irLS
irLF
irRF
irRS
' -----[ Initialization ]-----------------------------------------------------
GOSUB Calibrate_Qtis
' Display heading
DEBUG CLS, " PB", CR,
' -----[ EEPROM Data ]--------------------------------------------------------
QtiThresh
' -----[ Main Routine ]-------------------------------------------------------
CON
" |QTI",CR,
" |||IROD",CR,
" |||||||",CR,
CR,
" |||||||", CR,
"
"
LRLLRR", CR,
FFSFFS"
PIN
PIN
PIN
PIN
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
VAR
DATA
VAR
VAR
VAR
38500
3
0
6
5
Word
Word
Byte
sensors.BIT6
sensors.BIT5
sensors.BIT4
sensors.BIT3
sensors.BIT2
sensors.BIT1
sensors.BIT0
Word 0
Word
Word
Word
' Right IR LED connected to P3
' Right IR detector to P0
' Pushbutton connected to P6
' LED/speaker connected to P5
' IR LED transmit frequency
' <--- New temporary variable
' <--- New multipurpose variable
' Sensor flags byte
' Stores pushbutton state
' Stores snapshot of QtiSigLeft
' Stores snapshot of QtiSigRight
' State of Left Side IR
' State of Left Front IR
' State of Right Front IR
' State of Right Side IR
' Determine b/w threshold
' Pushbutton
' QTI line sensors
' Infrared Object Detectors
' Sensors byte goes here
' Left/right
' Front/side
' Word for QTI threshold time
' Stores left QTI time
' Stores right QTI time
' Stores black/white threshold

Related parts for 27404