28029 Parallax Inc, 28029 Datasheet - Page 95

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
ACTIVITY #4: SCALING TO 1/100 G
The standard measure of gravity on the earth's surface is abbreviated "g." This activity
demonstrates how to use the techniques introduced in the previous activity to display the
number of hundredths of a g acting on the accelerometer's x and y axes.
From PULSIN to 1/100 g
The goal here is to modify the example program from Activity #1 so that it displays the
x- and y-axis measurements in terms of 1/100 g instead of 2 µs units. It's another scaling
and offset problem, but this time, we want to fit the 1875 to 3125 input scale into an
output scale of −100 to 100 as shown in Figure 3-13.
Save TestScaleOffset.bs2 as TestScaleOffsetYourTurn.bs2.
Modify the program so that you can test Table 3-2 with the BASIC Stamp and
Debug Terminal.
Compare the Debug Terminal results to your table.
Value
10
0
1
2
3
4
5
6
7
8
9
Table 3-2:
**Scale Constant
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
x 0.2999 =
Measured voltages during charge cycle
Chapter 3: Tilt with the Memsic Accelerometer · Page 83
Calculates Value
0.2999
0.5998
0.8997
1.1996
0
Integer Result
BASIC Stamp
0
0
0
0
1

Related parts for 28029