problem with lsm6dsl free fall detection
Hi sir ,
I working with( LSM6DSL)STEVAL-MKI178V1 Dk board communicating with nrf52840 controller board.
i am able work pedometer and significant motion and tilt detection these modes are working but i am trying to generate free fall detection but i am not getting the out put .
here i am sharing the code let me know where i am missing.
/* set output data rate to 416 Hz and enable X,Y,Z axis */
LIS6DSH_write_reg(LSM6DSL_ACC_GYRO_CTRL1_XL, 0x60); //0x20 5hz ,50 204hz
/* Enable free fall interrupts and latch interrupt */
LIS6DSH_write_reg(LSM6DSL_ACC_GYRO_TAP_CFG1, 0x81);
/* Tilt detector interrupt driven to INT1 pin */
LIS6DSH_write_reg(LSM6DSL_ACC_GYRO_WAKE_UP_DUR, 0x00);
LIS6DSH_write_reg(LSM6DSL_ACC_GYRO_FREE_FALL, 0x33);
/* free fall event is enabled */
LIS6DSH_write_reg(LSM6DSL_ACC_GYRO_MD1_CFG, 0x10);
i am reading the 1B register free fall detect bit is not setting .
can you tell me am i need to set any other registers and changes in my configuration. Thanks you
