28125 Parallax Inc, 28125 Datasheet - Page 278

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
Solutions
Q1. 38.5 kHz is the frequency of the harmonic. Its fundamental frequency = 65536 –
Q2. The command which stores the detector's output in a variable. For example,
Q3. A low signal means IR at 38.5 kHz was detected, thus, an object was detected.
Q4. Electrically speaking, for both red and infrared LEDs, a smaller resistor will
E1. Change the
E2. The
P1. The FastIrRoaming.bs2 program can be combined with a
38500 = 27036 Hz. The signals are sent for 1 millisecond, and the IR LED must
be connected to I/O Pin 2.
irDetectLeft = IN9.
A high signal means no IR at 38.5kHz was detected, so, no object.
cause the LED to glow more brightly. A bigger resistor results in dimmer LEDs.
In terms of results, brighter IR LEDs make it possible to detect objects that are
farther away.
This will only monitor the right detector.
motion depending on the situation.
does nothing until it detects an object. A sample solution is shown below.
' -----[ Title ]-------------------------------------------------------
' Robotics with the Boe-Bot - MotionActivatedBoeBot.bs2
' Boe-Bot starts roaming when hand is waved in front of IR detectors.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Variables ]---------------------------------------------------
irDetectLeft
irDetectRight
pulseLeft
pulseRight
' -----[ Initialization ]----------------------------------------------
DEBUG "Program Running!"
FREQOUT 4, 2000, 3000
start/reset.
IF (IN0 = 0) THEN
pulseCount
IF…THEN
VAR
VAR
VAR
VAR
variable allows the Boe-Bot to have adjustable distance of
to read:
Bit
Bit
Word
Word
' Variable Declarations
' Signal program
DO…UNTIL
loop that

Related parts for 28125