Skip to main content
Manan
Associate II
September 5, 2023
Question

How to get Euler angle from STM32_MotionFX_Library using LSM6DSO and STM32CubeIDE

  • September 5, 2023
  • 3 replies
  • 5753 views

We are new to IMU LSM6DSO.

We want to get Euler's angle form Accelerometer and Gyroscope Sensor Fusion.

We are using STM32 Nucleo-L476RG board with Sparkfun LSM6DSO board in STM32CubeIDE.

We have included STM3_MotionFX_Library in our project, but unable to find out function to get Euler's Angle from sensor fusion of Accelerometer and Gyroscpe data.

Requesting to help us to get Euler's  Angle.

 

Thanking in advance

Manan

 

This topic has been closed for replies.

3 replies

Federica Bossi
Technical Moderator
September 5, 2023

Hi @Manan ,

Have you already looked at our design tip DT0058?

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.
Manan
MananAuthor
Associate II
September 5, 2023

Respected @Federica Bossi 

Do we have any readily available function for these calculation? We are not using magnetometer.

Thanks for your early reply.

Manan

Issamos
Lead III
September 5, 2023

Hello @Manan 

I suggest you to write your own part of code that takes Accelerometer and Gyroscope data and return the Euler's angle after mathematical calculations.

Best regards.

II

Manan
MananAuthor
Associate II
September 5, 2023

Respected @Issamos 

Do we have mathematical expression for that? Can you please guide us.

Thanking you.

Manan

Issamos
Lead III
September 5, 2023

Those two playlists will guide you to create your application. 

Best regards.

II

Manan
MananAuthor
Associate II
September 5, 2023

Thanks @unknown 

Thanks for your time and information.

I am very new to IMU and STM32cubeIDE.  We are using STM32 Nucleo-L476RG board with Sparkfun LSM6DSO board in STM32CubeIDE. I am able to get Acceleration and Gyroscope raw data but not able to find out any function which I can use to get euler angle/quaternions.

Regards,

Manan