2025-10-01 4:30 PM
Hi, I was trying to make the sensor sense slow rotation.
I read the datasheet and I guess if I set HPM to work as normal mode, and High-pass filter for interrupt 1
so CTRL_REG2 should have 0x81,
Then I should read the REFERENCE (0x26) register, (according to the thread in here https://community.st.com/t5/mems-sensors/lis2dh12-measure-conversion/td-p/420708)
My question is, is it even doable ?
Can I sense slow rotations until it reaches some point ?
Thanks in advance
2025-10-06 12:16 AM
Hi @abdu21 ,
The LIS2DH12 is a 3-axis accelerometer and does not measure rotation rates directly, it cannot sense rotation velocity like a gyroscope does.
Setting HPM (High-Pass Mode) to normal mode and enabling the high-pass filter on interrupt 1 (e.g., CTRL_REG2 = 0x81) configures the accelerometer to filter out low-frequency components (like gravity) and detect dynamic acceleration changes.
Reading the REFERENCE register (0x26) is used to set the baseline for the high-pass filter, so that slow changes (like tilt or slow movement) can be differentiated from sudden movements.
Using the high-pass filter and REFERENCE register helps detect dynamic events but may not capture very slow rotational movements.
If you don't want to use a gyroscope, you can use LIS2DH12 for tilt angle estimation but be aware of limitations for slow rotation detection.