cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring accelerometer LIS2DH12 for detecting inactivity, free fall and strong impact

AB.4
Associate II

Hello,

I would like to use accelerometer LIS2DH12 to detect the following events and notify via interrupts:

  1. Free fall
  2. Device entering motionless state (inactivity)
  3. 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

  1. Configure the CTRL_REG6 for enabling IA2 and ACT interrupt by writing value 0x28.
  2. Configure INT2_CFG for enabling OR combination and ZHIE, YHIE & XHIE (Value 0x2A)
  3. Set the threshold and duration for strong impact in INT2_THS and INT2_DUR registers.
  4. 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?

1 REPLY 1
Miroslav BATEK
ST Employee

Yes, this approach will work.