cancel
Showing results for 
Search instead for 
Did you mean: 

IMU LSM6DSO FSM Settings

ASoni.2
Associate III

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.

1 REPLY 1
Federica Bossi
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.