AnsweredAssumed Answered

Problem with LIS3DH thresholds

Question asked by Arek Arkowski on Sep 2, 2017
Latest reply on Sep 14, 2017 by Arek Arkowski

Hello all

 

I have a problem with setting LIS3DH module to detect movement.

To be more precise, I want the device to set the INT1 pin down when the it experiences 32mg acceleration change for 0.5 second. 

 

Here are my settings:

CTRL_REG1 = 0x20 //10Hz, normal power mode, ZXY enable

CTRL_REG2 = 0x00 //no HP filters

CTRL_REG3 = 0x40 //IA1 enable

CTRL_REG4 = 0x10 //scale 4g

CTRL_REG5 = 0x08 //interrupt 1 pin latched

INT1_THS = 0x01 //32mg threshold

INT1_DURATION = 0x05 // 0.5s to activate interrupt

INT1_CFG = 0x7F  //6D direction mode enabled, all directions enabled

 

Now, when I read  INT1_SRC register it always shows 0x00 and INT1 pin never goes down...

Funny thing is that when I set INT1_THS to at least 0x0A it works but it is too much for me!

 

Could soemone help me with this case?

Outcomes