122-27400 Parallax Inc, 122-27400 Datasheet - Page 53
122-27400
Manufacturer Part Number
122-27400
Description
MANUAL FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet
1.27400.pdf
(77 pages)
Specifications of 122-27400
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: 53 of 77
- Download datasheet (2Mb)
' -----[ Subroutines ]-----------------------------------------------------
Read_IR_Sensors:
HOW IT WORKS
This program is functionally similar to the line detection program. The IR sensors are
scanned and, due to variable aliasing, the state of both sensors is held in the Nibble
variable irBits . If no target is detected the SumoBot will go into scanning mode. The
code at Scan will look for the opponent in the last known direction (held in the variable
lastIr ). When a target is detected, the SumoBot will move quickly in the target direction.
The direction is stored in the event the target is lost so that the SumoBot will scan in the
last know target direction.
If you run the program with the power switch in position 1, the Debug Terminal will
display the program's logic based on a target placed in front of the SumoBot. If you run
the program with the power switch in position 2, the SumoBot will rotate in the direction
of the target or scan in the suspect direction.
END
FREQOUT LfIrOut, 1, 38500
irLeft = ~LfIrIn
FREQOUT RtIrOut, 1, 38500
irRight = ~RtIrIn
RETURN
Chapter 4: Infrared Object Detection · Page 43
' modulate left IR LED
' read input (1 = target)
' modulate right IR LED
' read input (1 = target)
Related parts for 122-27400
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT SMART SENSORS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
MANUAL PROPELLER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
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:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: