Step count is non-zero even though object is stationary (LIS2DS12)
Hello ST,
I am using LIS2DS12 sensor for step detection application. I read the step count register every 1 minute and reset the count value. I observe that even if the object is stationary, the step count register has a non-zero value (The value varies from 1 to 120). How can I ensure that the step count is zero when the object is stationary?
Here are the initial settings used for the sensor:
CTRL1_REG: 0xA0 (25Hz rate, +- 2g, Low power mode)
CTRL2_REG: 0x18 (Access to pedometer advanced configuration registers, Filter enabled)
STEP_COUNTER_MINTHS: 0xA8 (1.25 g)
FUNC_CTRL: 0x01 (Step counter routine enable)
****_DEB_REG: 0x6F (i.e Default debounce time: 1040 ms, Debounce threshold: 7 steps)
After every 1 minute, these are register operations performed:
- Read STEP_COUNTER_L
- Read STEP_COUNTER_H
- Reset step count by writing 1 to MSB of STEP_COUNTER_MINTHS.
Regards,
Anusha
