Skip to main content
Visitor II
January 10, 2024
Solved

Heading

  • January 10, 2024
  • 2 replies
  • 1724 views

Hi,

Im using LSM6DSV16B & IIS2MDC for one of my project , how can i find heading using these sensor. Is there any library available for heading calculation?

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @Error_Code ,

    Are you looking for the sensor fusion library to get quaternions and Euler angles? If yes, you can refer to the MotionFX library of the X-CUBE-MEMS1 firmware function pack, which runs as middleware on STM32 and provides real-time motion-sensor data fusion. 

    Let me know if this helps.

    2 replies

    Graduate II
    January 10, 2024

    Yes

    Presumably Quaterions to pitch, roll, yaw type computation. 

    Visitor II
    January 10, 2024

    could you share me the library, and which filter is used to estimate the same.

    Technical Moderator
    January 10, 2024

    Hi @Error_Code ,

    Are you looking for the sensor fusion library to get quaternions and Euler angles? If yes, you can refer to the MotionFX library of the X-CUBE-MEMS1 firmware function pack, which runs as middleware on STM32 and provides real-time motion-sensor data fusion. 

    Let me know if this helps.

    Visitor II
    January 11, 2024

    Thanks for your response, I have few more doubts regarding the same.
    1. What if im using a controller other than stm. if so how i can make these without  X-CUBE-MEMS1 firmware function pack?

    2.If im using stm mcu for the same , what advantage I'm going to have?

    3.Could you suggest  an mcu which have to read these raw data from above sensors?

     

    Technical Moderator
    January 11, 2024
    1. Of course you can use any MCU for processing, but STMicroelectronics understandably only supports the STM32. However, the X-Cube firmware may only be used on STM32, otherwise you are in breach of the Software Licence Agreement SLA0077:
      [...] Restrictions: [...] You acknowledge and agree that any use, adaptation, translation or transcription of the Licensed Software or any portion or derivative thereof, for use with (i) product that does not include ST Device and/or (ii) with device, having similar functionalities to ST Devices, manufactured by or for an entity other than ST, is a material breach of this Agreement and requires a separate license from ST.
    2. You can freely use libraries like X-CUBE-MEMS1.
    3. Any STM32 based on Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M33 or Cortex-M7 can be used.

    Hope that helps?

    Regards
    /Peter