28125 Parallax Inc, 28125 Datasheet - Page 82

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
the pulse will last. You can also figure out what the
argument has to be if you know how long you want the pulse to last. Just divide 2 µs into
the time you want the pulse to last. With this calculation:
we now know that the command for a 1.5 ms pulse to P12 will be
It’s best to only center one servo at a time, because that way you can hear when the motor
stops as you are adjusting it. This program will only send the center signal to the servo
connected to P12, and these next instructions will guide you through adjusting it. After
you complete the process with the servo connected to P12, you will repeat it with the
servo connected to P13.
Example Program: CenterServoP12.bs2
' Robotics with the Boe-Bot - CenterServoP12.bs2
' This program sends 1.5 ms pulses to the servo connected to
If you have a Board of Education Rev C, make sure to set the 3-position power
switch to position-2 as shown in Figure 2-23.
If you are using the HomeWork Board, check the power connections to both
your BASIC Stamp and your servos. The 9 V battery should be attached to the
battery clip, and the 6 V battery pack should have all four batteries loaded.
Enter, save, and run CenterServoP12.bs2, then continue with the instructions that
follow the program.
Duration
If the servos start running (or twitching) as soon as you connect power
It's probably because the BASIC Stamp is running a program you ran in a previous activity.
argument
Make sure to enter, save, and run CenterServoP12.bs2 before continuing to the
servo centering instructions that follow the example program.
=
Pulse
0 1 2
2
duration
µ
s
Figure 2-23
Set the 3-Position Switch to
Position-2
. 0
. 0
000002
0015
s
s
=
750
PULSOUT
PULSOUT 12, 750
command's
Duration
.

Related parts for 28125