28125 Parallax Inc, 28125 Datasheet - Page 134

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. Symptoms include erratic behavior such as going in unexpected directions or
Q2. A
Q3. A reset is when the power is interrupted and the BASIC Stamp program starts
Q4. An initialization routine consists of the lines of code that are used at the
Q5. 1. The servo lines P12 and P13 are swapped.
Q6. The
E1. The key is to modify the
E2.
P1. The key to solving this program is to add the line from Exercise 1 above the
doing a confused dance.
piezospeaker to play a tone. This tone will therefore occur every time an
accidental reset happens due to brownout conditions.
running again from the beginning of the program.
beginning of the program. These lines of code run each time the program starts
from the beginning.
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.
PULSOUT 12
program, that is,
3500
FREQOUT 4, 100, 4000
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
FREQOUT
PULSOUT
would work.
.
command at the beginning of all Boe-Bot programs causes the
commands must be changed to read
FREQOUT, 4, 2000, 3000
VAR
FREQOUT
Word
command used for the StartResetIndicator.bs2
A tone signifies that the
. For example:
PULSOUT 13
FREQOUT, 4, 500,
instead of
END

Related parts for 28125