Question
Configuring accelerometer LIS2DH12 for detecting inactivity, free fall and strong impact
Hello,
I would like to use accelerometer LIS2DH12 to detect the following events and notify via interrupts:
- Free fall
- Device entering motionless state (inactivity)
- Strong impact
I am planning to use INT1 pin for free fall and INT2 pin for inactivity and strong impact detection. For the latter, I am planning to
- Configure the CTRL_REG6 for enabling IA2 and ACT interrupt by writing value 0x28.
- Configure INT2_CFG for enabling OR combination and ZHIE, YHIE & XHIE (Value 0x2A)
- Set the threshold and duration for strong impact in INT2_THS and INT2_DUR registers.
- Set the threshold and duration for inactivity in ACT_THS & ACT_DUR registers.
Can you please confirm if this approach would work for detecting all the desired events?
