Skip to main content
Visitor II
April 20, 2017
Question

Single and double tap on LSM6DSL

  • April 20, 2017
  • 1 reply
  • 989 views
Posted on April 20, 2017 at 17:40

Hi,

I am using the LSM6DSL with a SMT32L476. My question is in relation to the single and double tap generated events (on INT2 pins).

1�) When I single tap on the sensor I have an interruption on INT2. If I read TAP_SRC (1Ch) I have :

Z_TAP:1 Y_TAP:0 X_TAP:0 TAP_SIGN:1 DOUBLE_TAP:0 SINGLE_TAP:1 TAP_IA:0

Note : I would expect TAP_IA to 1 but anyway it is working.

2�) When I double tap on the sensor I have 2 interruptions on INT2. If I read TAP_SRC for each interruption, I have :

- first one : Z_TAP:1 Y_TAP:0 X_TAP:0 TAP_SIGN:1 DOUBLE_TAP:0 SINGLE_TAP:1 TAP_IA:0

- second one : Z_TAP:1 Y_TAP:0 X_TAP:0 TAP_SIGN:1 DOUBLE_TAP:1 SINGLE_TAP:0 TAP_IA:1

Is there any way by configuring (correctly) the sensor to not have 2 interruptions for a double tap ?

Or If the TAP_IA for a single tap was equal to 1 I would be able to know if it was a single Tap or a double tap (even with the first faulty interruption)

Thanks in advance for any help.

#double-single-tap #data-register #acelerometer #stm32l #lsm6dsl
    This topic has been closed for replies.

    1 reply

    Explorer
    August 22, 2023

    Hi

    Can you send me the code so that I can help you with it

    Thank you !