Tilt/fall detector has staggered thresholds
Comparators and a voltage-divider network let you set threshold levels.
Marián Stofka, Slovak University of Technology, Bratislava, Slovakia; Edited by Martin Rowe and Fran Granville -- EDN, February 18, 2010
Measurement-and-control applications may require action based on two distinct voltage levels. Crossing a threshold can produce a warning indication, whereas reaching a higher threshold may initiate emergency action, such as a system shutdown. In a fall-detector application, an apparent decrease in gravity below a lower threshold might be a controlled displacement, but a further decrease below a second threshold might indicate an uncontrolled fall.
| Read More Design Ideas |
The voltage divider comprising RS, RA, and RB sets the voltages for comparing the Z-axis output of an Analog Devices ADXL335 accelerometer (Reference 1). The higher reference voltage, VREFA, corresponds to the lower-threshold tilt angle, where αTA=45°. The lower reference, with respect to the midvoltage supply minus VREFB, corresponds to the upper-threshold tilt angle, where αTB=60°. If you choose a value of 100 kΩ for RS, then you can calculate RA+RB:
![]()
The Z-axis voltage, VGZ=300 mV, occurs when the accelerometer’s Z axis is oriented vertically. From the obtained value of RA+RB, you can calculate RB:
![]()
The AD8609 op amp’s input-bias current causes errors, but these errors are negligible because the input-bias current at room temperature is just 1 pA. The AD8609’s input offset voltage, which is typically 50 µV, also causes errors, which are negligible as well (Reference 2). The signals at the outputs of comparators IC2A, IC2B and IC2C, IC2D are ORed in NAND gates IC3A and IC3B, respectively. NAND gate IC3C serves as an inverter, and the output of IC3D is the logic output of a window comparator in which logic low appears only when the Z-axis output voltage is between VREFA and VREFB, referenced to supply midvoltage VS/2.
Grouping the comparators into IC3A, IC3B and IC3C, IC3D pairs ensures independent detection on whether the Z axis is 0 or 180° in the vertical orientation. LED1 and LED2 illuminate successively upon slowly tilting the Z axis by 45 and 60° (Reference 3). Similar action occurs when you orient the Z axis steadily vertically while moving downward. LED1’s brightness is turned on at an apparent decrease of gravity to g/
. LED1 dims, and LED2
| References |
|





















