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

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
LRevFast
RFwdFast
RFwdSlow
RStop
RRevSlow
RRevFast
' -----[ Variables ]-------------------------------------------------------
pulses
' -----[ Initialization ]--------------------------------------------------
Reset:
' -----[ Program Code ]----------------------------------------------------
Main:
LOW LMotor
LOW RMotor
PAUSE 2000
FOR pulses = 1 TO 65
NEXT
FOR pulses = 1 TO 30
NEXT
FOR pulses = 1 TO 25
NEXT
FOR pulses = 1 TO 60
NEXT
FOR pulses = 1 TO 50
NEXT
PULSOUT LMotor, LFwdSlow
PULSOUT RMotor, RFwdSlow
PAUSE 20
PULSOUT LMotor, LStop
PULSOUT RMotor, RFwdSlow
PAUSE 20
PULSOUT LMotor, LFwdFast
PULSOUT RMotor, RFwdFast
PAUSE 20
PULSOUT LMotor, LFwdSlow
PULSOUT RMotor, RStop
PAUSE 20
PULSOUT LMotor, LFwdFast
PULSOUT RMotor, RFwdFast
PAUSE 20
CON
CON
CON
CON
CON
CON
VAR
1000
Byte
500
500
700
750
800
Chapter 2: SumoBot Locomotion · Page 17
' left motor rev; fast
' right motor fwd; fast
' right motor fwd; slow
' right motor stop
' right motor rev; slow
' right motor rev; fast
' servo pulses counter
' initialize motor outputs
' time to disconnect cable
' fwd slow, ~12 inches
' pivot 90 on left wheel
' fwd fast
' pivot 180 on right wheel
' fwd fast

Related parts for 122-27400