cancel
Showing results for 
Search instead for 
Did you mean: 

FSM#10: How to… test your FSM – WRIST TILT detection, further algorithm examples

Eleon BORLINI
ST Employee

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

0690X000006DLI3QAO.png

Enjoy!

Link: https://www.st.com/content/ccc/resource/technical/document/application_note/group0/56/95/d6/a1/34/4c/49/6d/DM00517282/files/DM00517282.pdf/jcr:content/translations/en.DM00517282.pdf

0 REPLIES 0