122-28029 Parallax Inc, 122-28029 Datasheet - Page 255

GUIDE STUDENT SMART SENSORS

122-28029

Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet

Specifications of 122-28029

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Datalogging an Ollie
Figure 6-17 shows how the accelerometer's y sensing axis is aligned to sense the
skateboard's various tilts and rotations. This is the only axis we want to log in the next
example program.
The program from Activity #4 was modified to store just the raw y-axis accelerometer
measurements with no scale or offset. The value of
(for ± 1 g) if no acceleration is involved. When the acceleration measurement is 3.5 g,
that would result in a measurement of 4687. In any event, these are word values, and so
the
word variables. Since a word takes up two bytes, the
steps of 2.
WRITE
-0.5
-1.5
3.5
2.5
1.5
0.5
-1
3
2
1
0
775
FOR eeIndex = Records TO RecordsEnd STEP 2
NEXT
command in the
a, b
PULSIN 7, 1, y
WRITE eeIndex, Word y
795
Acceleration vs Time for Second Ollie
c, d
815
tim e (ms)
e
Record_Data
835
855
subroutine has to be modified so that it stores
875
Chapter 6: Accelerometer Projects · Page 243
FOR
y
f
would range from 1875 to 3125
...
NEXT
Figure 6-16
Graph of a Slightly Better
Ollie
Figure 6-17
Accelerometer’s Sensing
Axes on the Skateboard
loop still has to count in

Related parts for 122-28029