28125 Parallax Inc, 28125 Datasheet - Page 140

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
This
pausing for 20 ms after each set and then returning to the top of the loop.
PULSOUT 13, 850
650
toward the front end of the Boe-Bot, causing it to drive forward. It takes about 3 seconds
for the
seconds.
Your Turn – Adjusting Distance and Speed
The
maximum speed. By bringing each of the
stay-still value of 750, you can slow down your Boe-Bot.
PULSOUT Duration
causes the right servo to rotate clockwise. Therefore, both wheels will be turning
FOR…NEXT
FOR…NEXT
FOR counter = 1 TO 122
NEXT
By changing the
make the Boe-Bot move forward for half the time. This in turn will make the
Boe-Bot move forward half the distance.
Save BoeBotForwardThreeSeconds.bs2 under a new name.
Change the
Run the program and verify that it ran at half the time and covered half the
distance.
Try these steps over again, but this time, change the
to 244.
Modify your program with these
Run the program, and verify that your Boe-Bot moves slower.
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
PULSOUT 13, 780
PULSOUT 12, 720
loop sends 122 sets of pulses to the servos, one each to P13 and P12,
loop to execute 122 times, so the Boe-Bot drives forward for about 3
causes the left servo to rotate counterclockwise while
FOR
...
arguments of 650 and 850 caused the servos to rotate near their
FOR…NEXT
NEXT
loop's
loop’s
EndValue
PULSOUT
EndValue
PULSOUT Duration
from 122 to 61.
commands:
argument from 122 to 61, you can
FOR…NEXT
arguments closer to the
loop’s
PULSOUT 12,
EndValue

Related parts for 28125