Skip to main content
Visitor II
November 26, 2019
Question

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

  • November 26, 2019
  • 0 replies
  • 500 views

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);

    This topic has been closed for replies.