28125 Parallax Inc, 28125 Datasheet - Page 310

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
Questions
Q1. The relative sensitivity at 35 kHz is 30%. For 36 kHz, it's 50%
Q2. When
Q3. Expressions are evaluated left to right. To override, use parentheses to change
Q4. Use the
E1. Frequency (kHz): 34 35 36 37 38 39 40 41 42
E2. To solve this problem, put only four frequencies in the
E3. • Sniff for IR interference with "IrInterferenceSniffer.bs2".
P1. In the solution below, the
the order.
Sensitivity : 14% 30% 50% 76% 100% 80% 55% 35% 16%
the
• Run Display BothDistances.bs2.
• White readings should be 0-1 in both sensors.
• Black readings should be 4-5 in both sensors.
• Straddle the line, both sensors should read 0-1.
• Move Boe-Bot back and forth over line, sensor over black line should read 4-5.
the algorithm outlined. The left servo was arbitrarily chosen for counting the
forward pulses. A bit-sized variable named
Main program know whether an intersection has been reached. In the
Navigate_Intersection
intersection and then backs up, checking the sensors, using
Then it makes a preprogrammed 90 degree turn in the correct direction. If the
index
index
index
index
FOR…NEXT
index
CON
BoilingPoint CON 100
FOR freqSelect = 0 TO 3
irFrequency
NEXT
= 0,
= 1,
= 2,
= 7,
LOOKUP freqSelect, [37500, 38750, 39500, 40500],
FREQOUT 8, 1, irFrequency
irDetect = IN9
… commands not shown
directive.
= 4,
index by one.
prime
prime
prime
prime
prime
= 2
= 3
= 5
= 19
= 11
Check_For_Intersection
subroutine, the Boe-Bot goes forward past the
isStuck
is used as a flag to let the
LOOKUP
subroutine implements
DO…LOOP…UNTIL
list, and decrease
.

Related parts for 28125