27403 Parallax Inc, 27403 Datasheet - Page 75
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: 75 of 266
- Download datasheet (6Mb)
While all the steps up to this point were purely mechanical, the Initialization section will
take some thought. There are several options. You can put the
from PushbuttonMode.bs2's initialization as the first, second or third step. To make the
decision, think about how the program would work if the
Then, consider how it would work differently if it was the second step, and so on. An
advantage to having it as the first step is that you can set the mode regardless of whether
the main program is going to run or not, so we'll try that.
Example Program: ResetAndStartMode.bs2
' -----[ Title ]--------------------------------------------------------------
' ---> Updated <---
' Applied Robotics with the SumoBot - ResetAndStartMode.bs2
' Program constructed by copying and pasting code from
' PushbuttonMode.bs2 into TestResetButton.bs2.
' {$STAMP BS2}
' {$PBASIC 2.5}
√
√
√
√
√
√
Copy the
section in PushbuttonMode.bs2, and paste it to the Initialization section in
ResetAndStartMode.bs2.
Copy the
paste it to the beginning of the Main Routine in ResetAndStartMode.bs2. The
ModeTest
If you have not already done so, delete the
ResetTest
Copy the
PushbuttonMode.bs2,
ResetAndStartMode.bs2.
ResetAndStartMode.bs2 is fine.
Update the Title section so that it has the current program name and a correct
program description.
Compare your program to ResetAndStartMode.bs2 shown below.
Be careful with END commands in the main routine. Both the ModeTest and ResetTest
routines contain END statements. If you forget to delete the END command at the end of
the ModeTest routine, you'll never get through the ResetTest routine..
ModeTest
IF pbSense = 1 THEN GOSUB Mode_Select
routine should come before the
routine.
Mode_Select
routine from the main routine in PushbuttonMode.bs2, and
and
subroutine from the Subroutines section in
paste
Pasting
it
it
' Target = BASIC Stamp 2
' Language = PBASIC 2.5
ResetTest
to
as
the
END
the
IF...THEN
Subroutines
routine.
that comes before the
last
IF...THEN
from the Initialization
is the first step.
subroutine
section
statement
in
in
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: