Parallax Boe-Bot Student Manual page 172

Hide thumbs Also See for Boe-Bot:
Table of Contents

Advertisement

Page 158 · Robotics with the Boe-Bot
The BASIC Stamp's EEPROM stores the program it runs, but you can take advantage of
any unused portion of the program to store values. This is a great way to store custom
navigation routines. The
by default, but adding the
to 65535 in two bytes' worth of EEPROM memory space. You can read values back out
of EEPROM using the
READ
sure to place a
modifier before the variable that will receive the value that
Word
fetches.
SELECT...CASE
case basis, and executing a different code block depending on the case. Optional
conditions
DO...LOOP
...
and
(Condition)
LOOP
keep executing a
DO...LOOP
Questions
1. What direction does the left wheel have to turn to make the Boe-Bot go forward?
What direction does the right wheel have to turn?
2. When the Boe-Bot pivots to the left, what are the right and left wheels doing?
What PBASIC commands do you need to make the Boe-Bot pivot left?
3. If your Boe-Bot veers slightly to the left when you are running a program to
make it go straight ahead, how do you correct this? What command needs to be
adjusted and what kind of adjustment should you make?
4. If your Boe-Bot travels 11 in/s, how many pulses will it take to make it travel 36
inches?
5. What's the relationship between a
command's
PULSOUT
6. What directive can you use to pre-store values in the BASIC Stamp's EEPROM
before running a program?
7. What command can you use to retrieve a value stored in EEPROM and copy it to
a variable?
8. What code block can you use to select a particular variable and evaluate it on a
case by case basis and execute a different code block for each case?
9. What are the different conditions that can be used with
Exercises
1. Write a routine that makes the Boe-Bot back up for 350 pulses.
directive can store values in EEPROM. Bytes are stored
DATA
modifier to each data item allows you to store values up
Word
command. If you are retrieving a word-sized variable, make
was introduced as a way of evaluating a variable on a case by
are
helpful
in
certain
...
DO
LOOP UNTIL (Condition)
until a particular condition is detected.
FOR...NEXT
argument that makes ramping possible?
Duration
circumstances;
DO
were demonstrated as ways to
loop's
argument and the
Counter
?
DO...LOOP
READ
UNTIL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Boe-Bot and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF