28125 Parallax Inc, 28125 Datasheet - Page 150

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
Example – Time for 20 in
At 9 in/s, your Boe-Bot has to travel for
2.22 s to travel 20 in.
you can use these values to calculate how many pulses to send to the servos. This is the
number you will have to use for your
The calculations in this example took two steps. First, figure out how long the servos
have to run to make the Boe-Bot travel a certain distance, then figure out how many
pulses it takes to make the servos run for that long. Since you know you have to multiply
by 40.65 to get from run time to pulses, you can reduce this to one step.
Your Turn – Your Boe-Bot’s Distance
Now, it’s time to try this out with distances that you choose.
p
ulses
If you have not already done so, use a ruler and the ForwardOneSecond.bs2
program to determine your Boe-Bot’s speed in in/s or cm/s.
Decide how far you want your Boe-Bot to travel.
Use the pulses equation to figure out how many pulses to deliver to the Boe-
Bot’s servos:
p
p
=
=
=
=
ulses
ulses
9
20
20
20
90
90
in/s
.
in
in
÷
333
pulses
=
=
=
9
×
×
90
. 2
90
Boe
×
...
9
40
22
Boe
s 1
40
.
pulses
in
pulses
24
.
s
65
.
65
×
×
...
Bot
s
40
40
pulses
Bot
pulses
pulses
.
.
dis
65
65
speed
s 1
s
tan
pulses
pulses
ce
×
40
.
FOR…NEXT
65
s
pulses
Example – Time for 51 cm
At 23 cm/s, your Boe-Bot has to travel for
2.22 s to travel 51 cm.
p
ulses
loop's
=
=
=
=
23
1 5
51
90
90
EndValue
51
cm/s
.
cm
÷
136
pulses
cm
23
×
...
×
×
23
pulses
40
s 1
40
cm
.
.
65
65
argument.
×
pulses
s
pulses
40
.
65
s 1
pulses

Related parts for 28125