Skip to main content
Associate III
Feb 19, 2024 5:40 PM UTC
Question

lsm6dso double tap

 whenever double tap is detected, I'm getting interrupts for both single tap as well as double tap.

 currently both are routed to int2 pins. 

I tried routing single tap to INT1 and the double tap to INT2 pin, to ensure single tap doesn't operate under double tap condition. but both single and double tap interrupt is being generated. 

 

How do I get/print only single tap and double tap? 

This topic has been closed for replies.

3 replies

Federica Bossi
ST Technical Moderator
Feb 21, 2024 7:27 AM UTC

Hi @Varsha ,

Please try to follow this example on github and let me know if you have further questions or you solve.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
VarshaAuthor
Associate III
Feb 22, 2024 5:46 AM UTC

Hi @Federica Bossi I tried the same github link, but whenever we double tap, we are getting single tap as well as double tap. Is there any way to get only double tap, when I double tap. 
I tried using delays when we get single tap, but delay's are getting optimized during compilation. 

Federica Bossi
ST Technical Moderator
Mar 1, 2024 10:51 AM UTC

Hi @Varsha ,

The procedure to detect the double tap is described at page 48 of AN5192:

 

FedericaBossi_1-1709290259556.png

 

Are you doing the test in this way?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.