Skip to main content
Visitor II
July 28, 2023
Solved

IMU LSM6DSO FSM Settings

  • July 28, 2023
  • 1 reply
  • 1119 views

Hello Team ST,

I would like to have your guidance on setting a FSM for wrist tilt application. At the moment, we use following FSM settings as per the code here.

Link: https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/v2.00/lsm6dso_STdC/examples/lsm6dso_fsm.c

ASoni2_0-1690543414543.png

Now, we would like to use Accelerometer only version of the FSM as provided here:

https://github.com/STMicroelectronics/STMems_Finite_State_Machine/blob/master/application_examples/lsm6dso/Wrist-Tilt%20detection%20(accelerometer%20only)/lsm6dso_wrist_tilt_xl.ucf

I tested this .UCF file in UNICO application and it works fine. Then, I tried to translate the provided array in the similar fashion as shown below.

ASoni2_1-1690543657397.png

But, this is not working. Can you tell me how to implement Accelerometer-based wrist tilt .UCF file to my code?

Kind regards,

Aakash Soni.

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @ASoni.2 ,

    Have you already looked at the AN5226? There you can find an example on how to implement FSM for wrist tilt.

    If this helps you, please mark my answer as "Best Answer" by clicking on the "Accept as Solution" button, this can be helpful for Community users to find this solution faster.

    1 reply

    Technical Moderator
    July 28, 2023

    Hi @ASoni.2 ,

    Have you already looked at the AN5226? There you can find an example on how to implement FSM for wrist tilt.

    If this helps you, please mark my answer as "Best Answer" by clicking on the "Accept as Solution" button, this can be helpful for Community users to find this solution faster.