Skip to main content
Associate III
September 22, 2025
Solved

How to find the euler angles Yaw,pitch,roll in lsm6dso?

  • September 22, 2025
  • 2 replies
  • 618 views

Hi,
We are using the LSM6DSO in our project to find the euler angles.we are new to this motionfx in stm32. please tell us from where we have to start to find the euler angles.Do we need to add any of the files in the stm32?
please tell us from the beginning.

Best answer by Federica Bossi

Hi @TejasK ,

From the STM32Cube firmware package, locate the LSM6DSO sensor driver and add the driver files to your project. Then initialize the sensor in your code.

Add MotionFX files to your project and include MotionFX headers in your main code. Initialize the MotionFX library with sensor parameters (set sensor data rates and full scales matching your sensor configuration).

Store raw data in the format expected by MotionFX.  Call the MotionFX processing function with raw sensor data. MotionFX will output orientation data, including quaternions and Euler angles.

Here are some useful links:

2 replies

Federica Bossi
Federica BossiBest answer
Technical Moderator
September 22, 2025

Hi @TejasK ,

From the STM32Cube firmware package, locate the LSM6DSO sensor driver and add the driver files to your project. Then initialize the sensor in your code.

Add MotionFX files to your project and include MotionFX headers in your main code. Initialize the MotionFX library with sensor parameters (set sensor data rates and full scales matching your sensor configuration).

Store raw data in the format expected by MotionFX.  Call the MotionFX processing function with raw sensor data. MotionFX will output orientation data, including quaternions and Euler angles.

Here are some useful links:

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.
TejasKAuthor
Associate III
September 22, 2025

Thank you for the reply.
I have one more question regarding this?
do we need to upload any firmware related to this ?
is there any examples related to the gyroscope and acclerometer?