2025-09-23 3:17 AM
I am working with LIS2DW12 configuring the INT1 for the activity/inactivity interrupt. With the below configurations (as provided in the datasheet),
1. Write 50h in CTRL1 // Turn on the accelerometer // ODR = 200 Hz, FS = ±2 g
2. Write 42h in WAKE_UP_DUR // Set duration for inactivity detection // Set duration for wake-up detection
3. Write 42h in WAKE_UP_THS // Set activity/inactivity threshold // Enable activity/inactivity detection
4. Write 20h in CTRL4_INT1_PAD_CTRL // Activity (wake-up) interrupt driven to INT1 pin
5. Write 20h in CTRL7 // Enable interrupts
As expected the interrupt is triggered as an when there is an activity (movement).
I want the interrupt to be triggered when the activity is prolonged for 5 secs. I tried playing around with the CTRL1 & WAKE_UP_DUR settings. But results are not as expect. Kindly advice.