Filter out taps #2

Open
opened 2026-03-01 22:47:50 +01:00 by nikrozman · 1 comment
Owner

When tapping the device to click, the sharp acceleration spike probably feeds into the gravity-based axis decomposition and moves the cursor before the tap is recognized. The cursor shoots in the tap direction which throws the cursor off.

There's some HW based detection already going on in the built-in IMU, but I'm not using it fully, it works using interrupts. It might be useful to introduce a threshold since the tap should have much faster acceleration anyways; Compared to normal mouse movement, it appears to be at the very least 20x the normal rate, maybe we could do jerk detection - https://en.wikipedia.org/wiki/Jerk_(physics)

When tapping the device to click, the sharp acceleration spike probably feeds into the gravity-based axis decomposition and moves the cursor before the tap is recognized. The cursor shoots in the tap direction which throws the cursor off. There's some HW based detection already going on in the built-in IMU, but I'm not using it fully, it works using interrupts. It might be useful to introduce a threshold since the tap should have much faster acceleration anyways; Compared to normal mouse movement, it appears to be at the very least 20x the normal rate, maybe we could do jerk detection - https://en.wikipedia.org/wiki/Jerk_(physics)
nikrozman added this to the Software project 2026-03-01 23:18:41 +01:00
nikrozman moved this to To Do in Software on 2026-03-02 20:24:00 +01:00
nikrozman added this to the v1 release milestone 2026-03-03 00:05:14 +01:00
Author
Owner
https://www.st.com/en/mems-and-sensors/lsm6ds3tr-c.html
nikrozman added the help wanted label 2026-03-03 21:57:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nikrozman/air-mouse#2