Book Analog Interfacing to Embedded Microprocessors
The ADXL05
comes in a 10-pin package.
Solid-state acceleration sensors measure acceleration in one dimension. If
you need to measure acceleration in two dimensions, you will need two
sensors. However, the output of the sensor is a result of the vector force
applied to the movable beam, so tilt can be measured with only one sensor.
When the sensor is vertical (one of the measurement directions is down), the
sensor output will indicate 1g. When the sensor measurement line is hori-
zontal, the output will indicate 0g. If the sensor is tilted the other direction,
it will measure -1g (Figure 3.29).
Sensors 87
Figure 3.29
Measuring tilt with an acceleration sensor.
Switches
Switches come in various flavors, including magnetically activated reed
switches, interlock switches on doors, and pushbutton switches for people to
use. Switches may seem too simple to include here. They are either closed or