UM2220 is the user manual for MotionFX sensor fusion library in X-CUBE-MEMS1 STM32Cube expansion.
This document describes the MotionFX middleware library, part of the X-CUBE-MEMS1 software expansion for STM32Cube. It enables real-time sensor fusion for accelerometers, gyroscopes, and magnetometers, with features including gyroscope bias and magnetometer hard iron calibration. The library supports STM32 microcontrollers based on ARM Cortex-M0+, M3, M4, and M7 architectures. It includes sample implementations for development boards like NUCLEO-F401RE and NUCLEO-L476RG.
The library provides both 6-axis and 9-axis sensor fusion modes, with configurable parameters for sensor weighting, bias learning, and output orientation. It uses Kalman filtering to fuse sensor data and compensate for individual sensor limitations. Documentation is available in a compiled HTML file within the Documentation folder.
| Memory Requirements (Cortex-M0+) | 15.9 kB code, 2.1 kB data |
|---|---|
| Memory Requirements (Cortex-M3) | 49.3 kB code, 1.1 kB data |
| Memory Requirements (Cortex-M4) | 44.1 kB code, 1.1 kB data |
| Memory Requirements (Cortex-M7) | 42.6 kB code, 1.1 kB data |
| Recommended Sampling Frequency | 100 Hz |
It performs gyroscope bias calibration and magnetometer hard iron calibration.
The library acquires and fuses data from the accelerometer, gyroscope, and magnetometer.
The recommended sensor data sampling frequency is 100 Hz.
For Cortex-M0+, the library requires 15.9 kB of code and 2.1 kB of data memory.