Skip to main content
Visitor II
May 23, 2019
Solved

Motion processing feature on MEMS Hardware

  • May 23, 2019
  • 1 reply
  • 743 views

@Eleon BORLINI​ 

Greetings of the Day

Currently I am using LSM6DSM as my IMU. Now in this sensor I need to write my own function to obtain the quaternions and then based on that obtain the roll, pitch and yaw of the system. The question that I have is , does ST provide an IMU that already has on board motion processing that can calculate and return the quaternions ?

Thank you

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @Altamash Abdul Rahim​ , ST provides a number of libraries that implement motion algorithms, called X-CUBE-MEMS1. The reference HW design is STM32+Sensor, but the concept could be extended to all platforms. I suggest you to start from the eCompass feature, that provides as output the device orientation in terms of quaternions and Euler angles (although referring mainly to LSM6DSO sensor). Regards

    1 reply

    ST Employee
    May 24, 2019

    Hi @Altamash Abdul Rahim​ , ST provides a number of libraries that implement motion algorithms, called X-CUBE-MEMS1. The reference HW design is STM32+Sensor, but the concept could be extended to all platforms. I suggest you to start from the eCompass feature, that provides as output the device orientation in terms of quaternions and Euler angles (although referring mainly to LSM6DSO sensor). Regards