28125 Parallax Inc, 28125 Datasheet - Page 172

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
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
sure to place a
fetches.
case basis, and executing a different code block depending on the case. Optional
DO…LOOP
(Condition)
keep executing a
Questions
Exercises
1. What direction does the left wheel have to turn to make the Boe-Bot go forward?
2. When the Boe-Bot pivots to the left, what are the right and left wheels doing?
3. If your Boe-Bot veers slightly to the left when you are running a program to
4. If your Boe-Bot travels 11 in/s, how many pulses will it take to make it travel 36
5. What’s the relationship between a
6. What directive can you use to pre-store values in the BASIC Stamp’s EEPROM
7. What command can you use to retrieve a value stored in EEPROM and copy it to
8. What code block can you use to select a particular variable and evaluate it on a
9. What are the different conditions that can be used with
1. Write a routine that makes the Boe-Bot back up for 350 pulses.
What direction does the right wheel have to turn?
What PBASIC commands do you need to make the Boe-Bot pivot left?
make it go straight ahead, how do you correct this? What command needs to be
adjusted and what kind of adjustment should you make?
inches?
PULSOUT
before running a program?
a variable?
case by case basis and execute a different code block for each case?
SELECT…CASE
conditions
...
LOOP
Word
DO…LOOP
command’s
and
modifier before the variable that will receive the value that
READ
was introduced as a way of evaluating a variable on a case by
DATA
are
DO
Word
until a particular condition is detected.
...
command. If you are retrieving a word-sized variable, make
Duration
LOOP UNTIL (Condition)
directive can store values in EEPROM. Bytes are stored
helpful
modifier to each data item allows you to store values up
argument that makes ramping possible?
in
FOR…NEXT
certain
loop’s
circumstances;
were demonstrated as ways to
Counter
DO…LOOP
argument and the
?
DO
UNTIL
READ

Related parts for 28125