28125 Parallax Inc, 28125 Datasheet - Page 293

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
By making some substitutions, the three equations above can be reduced to this one,
which will give you the same result.
By substituting the values from the example, we can see that the equation still works:
The left servo and IR pair have a similar algorithm shown in Figure 8-5. The difference
is that Kp is –35 instead of +35. Assuming the same measured value at the right IR pair,
the output adjust results is a pulse width of 820. Here is the equation and calculations for
this block diagram:
The result of this control loop is a pulse width that makes the left servo turn about ¾ of
full speed counterclockwise. This is also a forward pulse for the left wheel. The idea of
feedback is that the system’s output is re-sampled, by the shadow Boe-Bot taking another
distance measurement.
again…roughly 40 times per second.
Output adjust
Right servo output
Right servo output
Left servo output
Then the control loop repeats itself again and again and
=
=
=
=
=
=
=
=
=
=
=
=
=
2 – 4
error
–2
– 70
Output adjust + Center pulse width
– 70 + 750
680
(Right distance set point – Measured right distance)
+ Center pulse width
((2 – 4)
680
(Left distance set point – Measured left distance)
+ Center pulse width
((2 – 4)
820
×
35
×
K
×
×
p
35) + 750
–35) + 750
×
Kp
×
Kp

Related parts for 28125