28125 Parallax Inc, 28125 Datasheet - Page 176

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
P1.
P2. The circle can be implemented by veering right continuously. Trial and error, a
yard or meter stick, will help you arrive at the right
one-yard diameter:
' Robotics with the Boe-Bot - Chapter 4 - Circle.bs2
' Boe-Bot navigates a circle of
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program running!"
pulseCount
FREQOUT 4, 2000, 3000
' -----[ Main Routine ]------------------------------------------------
Main:
DO
LOOP
To make the triangle, first calculate the number of pulses required for a one
meter or yard straight line, as in Question 4. Then fine-tune your distances to
P13
850
650
850
650
750
650
750
760
770
850
800
PULSOUT 13, 850
PULSOUT 12, 716
PAUSE 20
P12
650
850
850
650
850
750
750
740
730
700
650
VAR
Description
Full Speed
P13 CCW, P12 CW
Full Speed
P13 CW, P12 CCW
Full Speed
P13 CCW, P12 CCW
Full Speed
P13 CW, P12 CW
P13 Stopped
P12 CCW Full speed
P13 CW Full Speed
P12 Stopped
P13 Stopped
P12 Stopped
P13 CCW Slow
P12 CW Slow
P13 CCW Med
P12 CW Med
P13 CCW Full Speed
P12 CW Medium
P13 CCW Medium
P12 CW Full Speed
Word
1 yard diameter.
Behavior
Forward
Backward
Right rotate
Left rotate
Pivot back left
Pivot back right
Stopped
Forward slow
Forward medium
Veer right
Veer left
' Pulse count to servos
' Signal program start/reset.
' Veer right
PULSOUT
value. Circle with a

Related parts for 28125