27403 Parallax Inc, 27403 Datasheet - Page 156
27403
Manufacturer Part Number
27403
Description
GUIDE APP ROBOTCS W/SUMOBOT V1.0
Manufacturer
Parallax Inc
Datasheet
1.27404.pdf
(266 pages)
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
- Current page: 156 of 266
- Download datasheet (6Mb)
Example Program: ServoControlWithLookup.bs2
' -----[ Title ]--------------------------------------------------------------
' Applied Robotics with the SumoBot - ServoControlWithLookup.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]---------------------------------------------------
ServoLeft
ServoRight
' -----[ Constants ]----------------------------------------------------------
' SumoBot maneuver constants
Forward
Backward
RotateLeft
RotateRight
' Servo pulse width rotation constants
FS_CCW
FS_CW
√
√
√
√
√
Enter and save ServoControlWithLookup.bs2
Move the 3-position switch on the SumoBot circuit board to position 1.
Download the program to the SumoBot.
Hold down the Reset button on the SumoBot circuit board, then move the 3-
position switch from 1 to 2.
Place the SumoBot on the practice ring, let go of the Reset button, and watch it
navigate. It should move forward around 10 inches (25 cm), then rotate left
almost 90°, then rotate right almost 180°, then rotate left almost 90° to return to
the direction it was first facing. It should then continue forward and repeat the
“look left, look right” jog after another 10 inches.
The usefulness of the Reset subroutine. It sure was easier to just tap that Reset button to
make the SumoBot stop and wait wasn’t it? All you have to do is copy and paste a few
sections from TestResetButton.bs2 from Chapter 2, Activity #3 into this example program,
and you'll have that functionality again.
Calibration: Your servos may perform differently, so you many need to adjust the
FOR...NEXT loops' EndValue arguments to get your SumoBot to perform the search
pattern the way it was just described.
PIN
PIN
CON
CON
CON
CON
CON
CON
13
12
0
1
2
3
850
650
' Target = BASIC Stamp 2
' Language = PBASIC 2.5
' Left servo connected to P13
' Right servo connected to P12
' Forward
' Backward
' Rotate in place turning left
' Rotate in place turning right
' Full speed counterclockwise
' Full speed clockwise
Related parts for 27403
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: