Configuring accelerometer LIS2DH12 for detecting inactivity, free fall and strong impact
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-13 12:17 AM
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?
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-12-13 1:33 AM
Yes, this approach will work.
