Skip to main content
Graduate
September 5, 2023
Question

How to get Euler angle from STM32_MotionFX_Library using LSM6DSO and STM32CubeIDE

  • September 5, 2023
  • 3 replies
  • 5751 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

    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.

    MananAuthor
    Graduate
    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

    Graduate II
    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

    MananAuthor
    Graduate
    September 5, 2023

    Respected @Issamos 

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

    Thanking you.

    Manan

    Graduate II
    September 5, 2023

    Those two playlists will guide you to create your application. 

    Best regards.

    II

    MananAuthor
    Graduate
    September 5, 2023

    Thanks @rahulsoni2003 

    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