2026-04-30 3:26 AM
Hello,
I know there are already other threads on this topic, but none of the replies have convinced me.
Perhaps someone can help me.
My real problem is with the pedometer in the LSM6DSO.
I am setting the following values in the registers:
ODR = 52 Hz
LOW_POWER_MODE
PEDO_CMD_REG -----> FP_REJECTION_EN = 1
EMB_FUNC_EN_A -----> PEDO_EN = 1
EMB_FUNC_EN_B -----> PEDO_ADV_EN = 1
PEDO_DEB_STEPS_CONF = 0x0A (default value)
PEDO_SC_DELTAT_H = 0 (default value)
PEDO_SC_DELTAT_L = 0 (default value)
I am not using the interrupt for the pedometer, I am polling the value in the register STEP_COUNTER_H | STEP_COUNTER_L
Setting AD_DET_EN = 1 in PEDO_CMD_REG didn't make any difference for me.
I have 2 question about the pedometer:
1 - Do I need to configure anything else to improve the performance of the pedomter ? Is possible to improve it ?
2 - What is the STEP_DET_INIT bit in the EMB_FUNC_INIT_A register used for? Should I use it at any point?
Thanks,
Adrian