Parallax Boe-Bot Student Manual page 310

Hide thumbs Also See for Boe-Bot:
Table of Contents

Advertisement

Page 296 · Robotics with the Boe-Bot
Questions
Q1. The relative sensitivity at 35 kHz is 30%. For 36 kHz, it's 50%
Q2. When
= 4,
index
= 0,
index
prime
= 1,
index
prime
= 2,
index
prime
= 7,
index
prime
Q3. Expressions are evaluated left to right. To override, use parentheses to change
the order.
Q4. Use the
directive.
CON
BoilingPoint CON 100
E1. Frequency (kHz): 34 35 36 37 38 39 40 41 42
Sensitivity : 14% 30% 50% 76% 100% 80% 55% 35% 16%
E2. To solve this problem, put only four frequencies in the
the
index by one.
FOR...NEXT
FOR freqSelect = 0 TO 3
LOOKUP freqSelect, [37500, 38750, 39500, 40500],
irFrequency
FREQOUT 8, 1, irFrequency
irDetect = IN9
... commands not shown
NEXT
E3. • Sniff for IR interference with "IrInterferenceSniffer.bs2".
• 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.
P1. In the solution below, the
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
= 11
prime
= 2
= 3
= 5
= 19
Check_For_Intersection
subroutine, the Boe-Bot goes forward past the
list, and decrease
LOOKUP
subroutine implements
is used as a flag to let the
isStuck
DO...LOOP...UNTIL
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Boe-Bot and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF