28125 Parallax Inc, 28125 Datasheet - Page 258
28125
Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet
1.28125.pdf
(360 pages)
Specifications of 28125
Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
- Current page: 258 of 360
- Download datasheet (5Mb)
' Robotics with the Boe-Bot - TestIrPairsAndIndicators.bs2
' Test IR object detection circuits.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Variables ]----------------------------------------------------------
irDetectLeft
irDetectRight
' -----[ Initialization ]-----------------------------------------------------
DEBUG "Testing piezospeaker..."
FREQOUT 4, 2000, 3000
DEBUG CLS,
' -----[ Main Routine ]-------------------------------------------------------
DO
FREQOUT 8, 1, 38500
irDetectLeft = IN9
FREQOUT 2, 1, 38500
irDetectRight = IN0
IF (irDetectLeft = 0) THEN
ELSE
ENDIF
IF (irDetectRight = 0) THEN
ELSE
√
√
√
HIGH 10
LOW 10
HIGH 1
"IR DETECTORS", CR,
"Left
"-----
Verify that the speaker makes a clear, audible tone while the Debug Terminal
displays “Testing piezospeaker…”.
Use the Debug Terminal to verify that the BASIC Stamp still receives a zero
from each IR detector when an object is placed in front of it.
Verify that the LED next to each detector emits light when the detector detects
an object. If one or both of the LEDs appear not to work, check your wiring and
your program.
Right", CR,
-----"
VAR
VAR
Bit
Bit
' Stamp directive.
' PBASIC directive.
Related parts for 28125
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: