2019-11-30 08:18 AM
I have been trying to setup fall detection interrupt on LIS3DH. I can get it to work but only with specific setup. In particular INT1_DURATION values: 0x05 works (but is too short) so my global setup is ok. But with any other duration values, even just 0x07, I can't see the interrupt anymore even though I am in free fall for that time (dropping from 3m). I am using the arduino IDE.
I have tried also to go at 100Hz, and I can't see the interrupt either then.
Looks like I am missing something. Can anyone advise?
My setup:
//LIS3DH_CTRL_REG1 0x6F; // Turn on the sensor, enable X, Y, and Z, ODR = 200 Hz LPEN=
//LIS3DH_CTRL_REG2 0x00;
//LIS3DH_CTRL_REG3 0x40; //AOI1 event (Generator 1 interrupt on INT1)
//LIS3DH_CTRL_REG4 0x00; // FS = ±2 g
//LIS3DH_CTRL_REG5 0x08; //Latch interrupt (Cleared by reading int1_src)
//LIS3DH_CTRL_REG6 0;
//LIS3DH_INT1_THS 0x20; //x32 (=500mg in FS2G)
//LIS3DH_INT1_DURATION 0x05; // 5x WORKS but 0x07 DOES NOT
//LIS3DH_INT1_CFG 0x95; // X,Y,Z active
2019-12-02 01:05 AM
Hi @BLage.1803 , the LIS3DH is well configured and the procedure seems ok.
Regards