2019-02-01 02:11 AM
This example describes how to set up a finite state machine to enable the built-in detection of a WRIST TILT action. The picture here below shows the steps of the dedicated FSM. WRIST TILT FSM allows you to check when your wrist tilts, e.g. in case of you want to read a smartphone or a smartwatch.
Input data are the axl output stream (select ODR >= 26Hz)
Mask selects as interesting orientation axis the x axis value in positive direction x+ (0x80)
Thresholds is set to -0.48g (of the 1g gravity)
Timeout have been selected as 240ms and 600ms (T3 and T4)
Output is an interrupt when an absolute tilt on x-axis is detected
Enjoy!