122-27400 Parallax Inc, 122-27400 Datasheet - Page 25

MANUAL FOR SUMOBOT

122-27400

Manufacturer Part Number
122-27400
Description
MANUAL FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-27400

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
SumoBot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' SumoBot_2.1_Motor_Align.BS2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
LMotor
RMotor
' -----[ Constants ]-------------------------------------------------------
LStop
RStop
' -----[ Initialization ]--------------------------------------------------
Reset:
' -----[ Program Code ]----------------------------------------------------
Main:
Move the SumoBot power switch to position 2, and then download the code using the
Run command from the Run menu, or by pressing the ► button on the toolbar. As soon
as the program is downloaded, watch for wheel movement. If either motor turns, insert a
small screwdriver into the adjustment port of the servo and adjust the centering
potentiometer until the motor stops.
adjustment ports.
LOW LMotor
LOW RMotor
DO
LOOP
END
PULSOUT LMotor, LStop
PULSOUT RMotor, RStop
PAUSE 20
PIN
PIN
CON
CON
13
12
750
750
Figure 2.5 shows the location of the servo
Chapter 2: SumoBot Locomotion · Page 15
' left servo motor
' right servo motor
' left motor stop
' right motor stop
' initialize motor outputs
' stop left
' stop right

Related parts for 122-27400