Page 120 · Robotics with the Boe-Bot
Solutions
Q1. Symptoms include erratic behavior such as going in unexpected directions or
doing a confused dance.
Q2. A
command at the beginning of all Boe-Bot programs causes the
FREQOUT
piezospeaker to play a tone. This tone will therefore occur every time an
accidental reset happens due to brownout conditions.
Q3. A reset is when the power is interrupted and the BASIC Stamp program starts
running again from the beginning of the program.
Q4. An initialization routine consists of the lines of code that are used at the
beginning of the program. These lines of code run each time the program starts
from the beginning.
Q5. 1. The servo lines P12 and P13 are swapped.
2. One or both servos is plugged in backwards, so that the white-red-black color
coding is incorrect.
3. The power switch is not on position-2.
4. The 9V or AA batteries are not installed.
5. The servo centering potentiometer is out of adjustment.
Q6. The
commands must be changed to read
PULSOUT
.
PULSOUT 12
E1. The key is to modify the
program, that is,
would work.
3500
E2.
FREQOUT 4, 100, 4000
P1. The key to solving this program is to add the line from Exercise 1 above the
command in the RightServoTest.bs2 program.
' Robotics with the Boe-Bot - Ch03Prj01_TestCompleteTone.bs2
' Right servo turns clockwise three seconds, stops 1 second, then
' counterclockwise three seconds.
' test is complete.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter
command used for the StartResetIndicator.bs2
FREQOUT
FREQOUT, 4, 2000, 3000
A tone signifies that the
VAR
Word
instead of
PULSOUT 13
. For example:
FREQOUT, 4, 500,
END
Need help?
Do you have a question about the Boe-Bot and is the answer not in the manual?
Questions and answers