Skip to main content
Visitor II
May 28, 2025
Question

Integrating NUCLEO-L476RG with X-NUCLEO-IKS02A1

  • May 28, 2025
  • 2 replies
  • 404 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.

2 replies

Amel NASRI
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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Andrew Neil
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

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.