28125 Parallax Inc, 28125 Datasheet - Page 146

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
Let’s say that the Boe-Bot turns just a bit more than 90° (1/4 of a full circle). Try
counter = 1 TO 23
enough, increase the run time of the rotation by increasing the
EndValue
If you find yourself with one value slightly overshooting 90° and the other slightly
undershooting, try choosing the value that makes it turn a little too far, then slow down
the servos slightly. In the case of the rotate left, both
should be changed from 650 to something a little closer to 750. As with the straight line
exercise, this will also be an iterative process.
Your Turn - 90° Turns
ACTIVITY #3: CALCULATING DISTANCES
In many robotics contests, more precise robot navigation lends itself to better scores.
One popular entry level robotics contest is called dead reckoning. The entire goal of this
contest is to make your robot go to one or more locations and then return to exactly
where it started.
You might remember asking your parents this question, over and over again, while on
your way to a vacation destination or relatives’ house:
NEXT
Modify ForwardLeftRightBackward.bs2 so that it makes precise 90° turns.
Update ForwardLeftRightBackward.bs2 with the
determined for straight forward and backward travel.
Update the label on each servo with a notation about the appropriate
for a 90° turn.
“Are we there yet?”
Carpeting can cause navigation errors. If you are running your Boe-Bot on carpeting,
don’t expect perfect results! A carpet is a bit like a golf green – the way the carpet pile is
inclined can affect the way your Boe-Bot travels, especially over long distances. For more
precise maneuvers, use a smooth surface.
argument to whatever value it takes to complete the quarter turn.
PULSOUT 12, 650
PAUSE 20
, or maybe even
FOR counter = 1 TO 22
PULSOUT Duration
PULSOUT
. If it doesn’t turn far
FOR…NEXT
values you
arguments
EndValue
loop’s
FOR

Related parts for 28125