27403 Parallax Inc, 27403 Datasheet - Page 151

GUIDE APP ROBOTCS W/SUMOBOT V1.0

27403

Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 27403

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
' Applied Robotics with the SumoBot - ServoControlExample.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
counter VAR byte
' SumoBot goes forward 3 seconds.
FOR counter = 1 TO 122
NEXT
' SumoBot goes backward 3 seconds.
FOR counter = 1 TO 122
NEXT
' SumoBot rotates left .75 seconds.
FOR counter = 1 TO 30
NEXT
' SumoBot rotates right .75 seconds.
FOR counter = 1 TO 30
NEXT
' SumoBot pivots right 1.5 seconds.
FOR counter = 1 TO 61
NEXT
' SumoBot curves left 1.5 seconds.
FOR counter = 1 TO 61
NEXT
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
PULSOUT 13, 650
PULSOUT 12, 650
PAUSE 20
PULSOUT 13, 850
PULSOUT 12, 850
PAUSE 20
PULSOUT 13, 850
PULSOUT 12, 750
PAUSE 20
PULSOUT 13, 765
PULSOUT 12, 650
PAUSE 20

Related parts for 27403