2025-10-14 1:22 AM - edited 2025-10-14 1:31 AM
I am using the sensor LIs2DH, and I've read the datasheet and tried multiple values and manipulations of its registers.
Now I want to use the sensor should be on a car and detect when will the car move.
the problem I'm facing that it generates an interrupt at any vibratoin/touch on the board, and I want to avoid that.
Also what are the best configurations for a free fall detection (because I think that would be the best solution for my case)
Thanks in advance
Register values are
Register 0x0f has 0x33
Register 0x20 has 0x27
Register 0x21 has 0x00
Register 0x22 has 0x40
Register 0x24 has 0x08
Register 0x25 has 0x00
Register 0x30 has 0x2a
Register 0x32 has 0x27
Register 0x33 has 0x00
Register 0x34 has 0x00
Register 0x36 has 0x00
Register 0x37 has 0x00
Register 0x2e has 0x00
2025-10-14 2:33 AM
Ciao @abduuu ,
Here are some suggestions:
Hope this helps.
2025-10-14 2:41 AM
To avoid false interrupts from vibrations or touch, try adjusting the interrupt threshold and filter settings on the LIS2DH sensor. Increasing the debounce time or using high-pass filters can help reduce sensitivity to small movements. For free-fall detection, configure the free-fall detection threshold and enable the free-fall interrupt. Tuning these settings based on your car's specific vibration levels will help achieve accurate detection without false alarms.