How do I setup lis2dh12 interrupt for a specific amount of shock/impact?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-26 1:34 PM
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 discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
