2025-05-28 1:14 AM
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.
2025-07-16 7:53 AM
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.
2025-07-16 8:05 AM
@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