How to get Euler angle from STM32_MotionFX_Library using LSM6DSO and STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-04 9:51 PM
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
- Labels:
-
Accelerometers
-
Gyroscopes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-04 11:46 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 12:06 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 2:57 AM
Respected @Federica Bossi
Do we have any readily available function for these calculation? We are not using magnetometer.
Thanks for your early reply.
Manan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 2:58 AM
Respected @Issamos
Do we have mathematical expression for that? Can you please guide us.
Thanking you.
Manan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 3:41 AM
Those two playlists will guide you to create your application.
Best regards.
II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 5:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 6:56 AM
"Have you already looked at our design tip DT0058?"
Yes.
Actual source code would be more useful than making everyone of us reinvent the wheel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 9:10 PM
Respected @Bob Paddock
I have come across following user manual: UM2220 (attached). This may be useful for you too.
Regards,
Manan
