28029 Parallax Inc, 28029 Datasheet - Page 267

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
SUMMARY
This chapter introduced a variety of accelerometer applications and datalogging
techniques that can be used to study the accelerometer's measurements in various
conditions, and in some cases, to refine your programs. When sighting the top of an
object, vertical plane rotation measurements can be used with the distance to the object
and some trigonometry to determine the object's height.
DATA
recordkeeping in datalogging programs. They can be used to define ranges of unused
EEPROM program memory. Since
directives, they are handy in
the range of EEPROM bytes defined by the beginning and ending
A technique was also introduced for using a
setting the program mode. Each time the program starts, an initialization routine reads
the byte, adds one to it, and replaces the old value in EEPROM with the modified value.
Each time the program is restarted by pressing and releasing the board's Reset button, the
program can use the new value in EEPROM to select between different modes. For
toggling a feature in the program on and off, an
examines whether the remainder of the value divided by two is zero. This makes it
possible to start and stop datalogging without being connected to the computer.
Accelerometer applications with datalogging included RC car acceleration, skateboard
trick measurements, and bicycle wheel measurements.
program that was a variation of the remote datalogging program introduced in Activity
#4. The data displayed in the Debug Terminal was shaded, copied, and pasted into text
files. The text files were then imported into a spreadsheet program and graphed. The
graphs were analyzed to examine accelerations, tilts, and angles involved RC car,
skateboard, and bicycle wheel motions.
Questions
1. What three pieces of information do you need to measure the height of a building
2. What's the difference between
3. What's wrong with this command?
directives with optional
from a distance?
it?
FOR
Symbol
...
NEXT
Symbol
DATA (100)
names were introduced as a way to simplify
loops that perform
WRITE eeIndex, 1000
names store the starting address of
DATA
Chapter 6: Accelerometer Projects · Page 255
and
IF
directive to set aside one byte for
...
DATA 20 (100)
THEN
READ
Each of these employed a
statement was used that
/
DATA
WRITE
. How can you fix
directives.
?
operations over
DATA

Related parts for 28029