27404 Parallax Inc, 27404 Datasheet - Page 199

COMPETITION RING FOR SUMOBOT

27404

Manufacturer Part Number
27404
Description
COMPETITION RING FOR SUMOBOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 27404

Accessory Type
Hobby and Education
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
' -----[ Title ]--------------------------------------------------------------
' Applied Robotics with the SumoBot - SumoWrestler.bs2
' SumoWrestler.bs2 modified so that each state is contained by a
' subroutine.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]---------------------------------------------------
ServoLeft
ServoRight
qtiPwrLeft
qtiSigLeft
qtiPwrRight
qtiSigRight
DummyPin
LedSpeaker
IrLedLS
IrSenseLS
IrLedLF
IrSenseLF
IrLedRF
IrSenseRF
IrLedRS
closely matches the conditions for your competition ring, taking into account
nearby objects, whether or not the floor reflects infrared, etc.
Also, make sure to adjust your QTI threshold calculation if you encountered
problems with detecting the crease marks in the SumoBot Robot Competition
Ring poster. See Activity #5 in this chapter.
Download your updated SumoWrestler.bs2 into SumoBot A.
Save a copy of the program as MySumoWithSubrtoutines.bs2.
Incorporate the changes you made in MySumoWrestler.bs2 into this new
program's
Download your updated MySumoWrestler.bs2 into SumoBot B.
Let them compete against each other using the same starting positions as the
previous activity.
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
PIN
Search_Pattern
13
12
10
9
7
8
6
5
2
1
4
11
15
14
3
subroutine. What differences did you encounter?
' Target = BASIC Stamp 2
' Language = PBASIC 2.5
' Left servo connected to P13
' Right servo connected to P12
' Left QTI on/off pin P10
' Left QTI signal pin P9
' Right QTI on/off pin P7
' Right QTI signal pin P8
' I/O pin for pulse-decay P6
' LED & speaker connected to P5
' Left IR LED connected to P2
' Left IR detector to P1
' Left IR LED connected to P4
' Left IR detector to P11
' Right IR LED connected to P15
' Right IR detector to P14
' Right IR LED connected to P3

Related parts for 27404