28125 Parallax Inc, 28125 Datasheet - Page 336

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
' Robotics with the Boe-Bot - TestPhotoresistors.bs2
' Test Boe-Bot photoresistor circuits.
' {$STAMP BS2}
' {$PBASIC 2.5}
timeLeft
timeRight
DEBUG "PHOTORESISTOR VALUES", CR,
DO
LOOP
HIGH 6
PAUSE 3
RCTIME 6,1,timeLeft
HIGH 3
PAUSE 3
RCTIME 3,1,timeRight
DEBUG CRSRXY, 0, 3,
PAUSE 200
"timeLeft
"--------
Cup your hand over the photoresistors, making sure that you are casting equal
shade over both. For best results, the measurements should be in the 200 to 400
range.
Record the values of both time measurements in the second row of Table F-1.
DEC5 timeLeft,
"
DEC5 timeRight
Duration Values
timeLeft
VAR
VAR
",
timeRight", CR,
---------"
timeRight
Table F-1:
Word
Word
Description
Photoresistors in uniform ambient light
Photoresistors in uniform low light
RC-Time Measurements in Ambient and Low Light
' Stamp directive.
' PBASIC directive.
' Variable declarations.
' Initialization.
' Main routine.
' Left RC time measurement.
' Right RC time measurement.
' Display measurements.

Related parts for 28125