Skip to main content
Visitor II
May 28, 2025
Question

Integrating NUCLEO-L476RG with X-NUCLEO-IKS02A1

  • May 28, 2025
  • 2 replies
  • 402 views

I have started for integration of NUCLEO-L476RG board with X-NUCLEO-IKS02A1 expansion board for getting live values from the accelerometer, magnetometer and gyroscope.

Started from creating a project on STM32CubeIDE then selected X-CUBE-MEMS1 package, selected Board Extension IKS02A1, motion fusion library, gyroscope calibration, accelerometer calibration and magnetometer calibration libraries.

Also, enabled the CRC, SPI, I2C, USART in the configurations. When generated the code, motion_fx.h file generated.

So further I want to know what else libraries or header files I need to acheive my final goal, to get tje yaw, pitch, roll values when the board is tilted or moved or to calibrate them.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    July 16, 2025

    Hi @Rohit_Goswami ,

    The wiki article Using sensors with B-L475E-IOT01A and with B-U585I-IOT02A describes a similar use case as yours.

    You can follow the steps and adapt them to your specific need to include required sensors in your application.

    -Amel

    Super User
    July 16, 2025

    @Rohit_Goswami wrote:

    X-CUBE-MEMS1 package
    :
    :

    what else libraries or header files I need to acheive my final goal, to get tje yaw, pitch, roll values when the board is tilted or moved or to calibrate them.


    Did you look at the available Documentation:

    https://www.st.com/en/embedded-software/x-cube-mems1.html#documentation

    In particular, UM1859 Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube