cancel
Showing results for 
Search instead for 
Did you mean: 

How do I setup lis2dh12 interrupt for a specific amount of shock/impact?

VBala.1648
Associate

What all interrupt registers do I need to setup for a specific amount of of shock for a specific duration?

I specifically want to generate an interrupt when there is a vibration in any direction and should be able to tune the amount of vibration(threshold) to generate the interrupt.

 SpiTx(LIS2DH_INT1_CFG, 0xCF);  

 SpiTx(LIS2DH_INT1_THS, 0x01);  //1LSB*15.625mg/LSB=16mg

 SpiTx(LIS2DH_INT1_DURATION, 0x00);

0 REPLIES 0