MotionFX sensor fusion library in X-CUBE-MEMS1 STM32Cube expansion

UM2220 is the user manual for MotionFX sensor fusion library in X-CUBE-MEMS1 STM32Cube expansion.


MotionFX sensor fusion library in X-CUBE-MEMS1 STM32Cube expansion - cover page
Brand
STMicroelectronics
Category
Other
Document type
User Manual
Language
English
Pages
25
File format
PDF
File size
877 KB
Published
20 October, 2023
Updated
20 October, 2023
MD5 checksum
1148E47F1EC334A83D9B28528BB01615

About this manual

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.

What's inside

  • MotionFX Overview
  • MotionFX Library Description
  • MotionFX 6-axis and 9-axis Sensor Fusion Modes
  • MotionFX Library Operation
  • MotionFX Library Parameters
  • Sensor Orientation and Data Input/Output

Specifications

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 Frequency100 Hz

Frequently asked questions

What calibration features does the library provide?

It performs gyroscope bias calibration and magnetometer hard iron calibration.

What specific MEMS sensors does the MotionFX library process data from?

The library acquires and fuses data from the accelerometer, gyroscope, and magnetometer.

What is the recommended sampling frequency for the sensor data?

The recommended sensor data sampling frequency is 100 Hz.

How much code and data memory does the library require for a Cortex-M0+ processor?

For Cortex-M0+, the library requires 15.9 kB of code and 2.1 kB of data memory.

Download PDF (877 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →