27403 Parallax Inc, 27403 Datasheet - Page 87
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: 87 of 266
- Download datasheet (6Mb)
' -----[ Title ]--------------------------------------------------------------
' Applied Robotics with the SumoBot - TestFrontIrObjectDetectors.bs2
' This program tests the IR object detectors mounted on the X8 and X9 headers
' on the front of the SumoBot.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]---------------------------------------------------
IrLedLF
IrSenseLF
IrLedRF
IrSenseRF
' -----[ Constants ]----------------------------------------------------------
IrFreq
' -----[ Variables ]----------------------------------------------------------
irLF
irRF
' -----[ Initialization ]-----------------------------------------------------
DEBUG CLS, "FRONT IR DETECTORS", CR,
' -----[ Main Routine ]-------------------------------------------------------
DO
LOOP
FREQOUT IrLedLF, 1, IrFreq
irLF = ~IrSenseLF
FREQOUT IrLedRF, 1, IrFreq
irRF = ~IrSenseRF
DEBUG CRSRX, 1, BIN1 irLF,
PAUSE 100
CRSRX, 9, BIN1 irRF
CON
VAR
VAR
"Left
"----
PIN
PIN
PIN
PIN
38500
Bit
Bit
Right", CR,
-----", CR
4
11
15
14
' Target = BASIC Stamp 2
' Language = PBASIC 2.5
' Left IR LED connected to P4
' Left IR detector to P11
' Right IR LED connected to P15
' Right IR detector to P14
' IR LED transmit frequency
' State of Left Front IR
' State of Right Front IR
' Display heading
' DO...LOOP repeats indefinitely
' Left IRLED shines IR light
' Save IR receiver output
' Repeat for right IRLED/receiver
' Display object detect bits
' Delay for slower PCs
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: