Skip to main content
Graduate
February 19, 2024
Question

lsm6dso double tap

  • February 19, 2024
  • 2 replies
  • 1301 views

 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.

    2 replies

    Technical Moderator
    February 21, 2024

    Hi @Varsha ,

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

    VarshaAuthor
    Graduate
    February 22, 2024

    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. 

    Technical Moderator
    March 1, 2024

    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?