implement tap detection using Lis2hh12
I want to implement double tap detection using LIS2HH12 accelerometer. It does not have in-built registers to implement it. Has anybody implemented it?
I want to implement double tap detection using LIS2HH12 accelerometer. It does not have in-built registers to implement it. Has anybody implemented it?
Hi @Community member ,
even if the LIS2HH12 doesn't directly implement the tap detection, you can consider the DT0101 design tip, that suggest you how to implement this feature on accelerometer even in the absence of the direct digital feature, for example the LIS2DH12.
For single-tap recognition there are two parameters to set up – threshold and shock time window.
In the LIS2HH12 case, you can tune ACT_THS (1Eh) and ACT_DUR (1Fh) to define the shape of the single tap event, as shown in the picture below:
If my reply helped you in answering your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster.
-Eleon
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.