27404 Parallax Inc, 27404 Datasheet - Page 78

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
Your Turn - Testing the New Program
There should be two ways to set the program mode. The first is to hold down the
pushbutton as you download the program. The other is to hold the pushbutton down as
you press and release the Reset button. Since EEPROM memory is used to store the
mode, it's nonvolatile, meaning that disconnecting power or pressing and releasing Reset
cannot erase the value. You can also change the mode value by simply holding down the
pushbutton as you press and release Reset again.
You pretty much always have the choice of making the
EEPROM, or just having them reserve the space.
NEXT
RETURN
NEXT
PAUSE 1000
IF pbSense = 0 THEN
ENDIF
PAUSE 100
FREQOUT LedSpeaker, 100, 4000
WRITE ModeSelect, temp
EXIT
Hold down the pushbutton (not the Reset button!) as you download
ResetAndStartMode.bs2 to your SumoBot.
Keep holding the button down until the SumoBot makes three consecutive beeps,
then let go.
Press and release the Reset button.
Verify that the SumoBot is operating in mode three.
Don't hold the pushbutton down as you press and release the Reset button a few
more times to verify that the SumoBot retains the mode three setting.
Press and hold the pushbutton, then press/release the Reset button.
Keep holding the pushbutton until after four consecutive beeps, then let go.
Press and release the Reset button again, and verify that the SumoBot has now
retained mode four.
Download the program one more time, and verify that the mode setting has been
erased (because the
Try also changing
the program won't overwrite the mode you chose whenever you download it.
ModeSelect DATA 0
ModeSelect DATA
directive writes a 0 to
to just
' 1 second between beeps
' Button released?
' Record mode to EEPROM
' Exit FOR...NEXT loop
DATA
ModeSelect DATA
directive pre-store values in
ModeSelec
. That way,
t.

Related parts for 27404