cancel
Showing results for 
Search instead for 
Did you mean: 

lsm6dso double tap

Varsha
Associate III

 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? 

3 REPLIES 3
Federica Bossi
ST Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.

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 Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.