Skip to main content
Visitor II
December 13, 2018
Question

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

  • December 13, 2018
  • 1 reply
  • 617 views

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?

    This topic has been closed for replies.

    1 reply

    ST Employee
    December 13, 2018

    Yes, this approach will work.