28029 Parallax Inc, 28029 Datasheet - Page 256

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
Page 244 · Smart Sensors and Applications
Similar modifications are made to the
shown here.
Example Program: DatalogYaxisUnscaled.bs2
This next example program was used to log the data graphed in Figure 6-15 and Figure 6-
16. It gives you about ten seconds of datalogging, which is enough time for two or three
ollies. Moving the data to a spreadsheet and graphing it is based on the procedure in
Activity #5. The spreadsheet was modified to generate the graphs shown in this activity
by adding a column with a formula that takes the y-axis data, subtracts 2500 from it, and
then divides it by 625. This gives a measurement in units of earth-gravity (g).
' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - DatalogYaxisUnscaled.bs2
' Datalogs 500 word size y-axis acceleration measurements.
'{$STAMP BS2}
'{$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Reset
Records
RecordsEnd
' -----[ Variables ]----------------------------------------------------------
char
eeIndex
value
x
y
' -----[ Initialization ]-----------------------------------------------------
Init:
READ Reset, value
value = value + 1
WRITE Reset, value
FOR eeIndex = Records TO RecordsEnd STEP 2
NEXT
READ eeIndex, Word y
DEBUG DEC eeIndex, CRSRX, 7, SDEC y, CR
DATA
DATA
DATA
VAR
VAR
VAR
VAR
VAR
0
(1000)
Byte
Word
Word
value
Word
FOR
...
NEXT
loop in the
Display_Data
subroutine

Related parts for 28029