STMicroelectronics X-CUBE-MEMS1 MotionGC Gyroscope Calibration Library User Manual

This document introduces the usage of the MotionGC library which is used to calibrate the gyroscopes on STM32.


STMicroelectronics X-CUBE-MEMS1 MotionGC Gyroscope Calibration Library User Manual - cover page
Brand
STMicroelectronics
Category
Other
Document type
User Manual
Language
English
Pages
15
File format
PDF
File size
710 KB
Published
20 October, 2023
Updated
20 October, 2023
MD5 checksum
C955956A1853F624A7C70421CF488B47

About this manual

This document describes the MotionGC middleware library, part of the X-CUBE-MEMS1 software package for STM32 microcontrollers. It provides real-time gyroscope calibration by calculating and applying angular zero-rate level coefficients (offsets) to correct sensor data. The library supports ARM Cortex-M0+, M3, M4, and M7 architectures and includes APIs for initialization, configuration, and data processing. It also provides sample code and a GUI application for demonstration and testing on compatible development boards.

The library is designed specifically for ST MEMS sensors and includes performance data for different microcontroller architectures. Calibration can be performed while the sensor is stationary, and the library supports adjustable thresholds, fast startup, and multiple sample rates from 25 Hz to 200 Hz.

What's inside

  • MotionGC Overview
  • Technical Information
  • MotionGC APIs
  • Demo Code
  • Calibration Process
  • Algorithm Performance
  • Sample Application
  • Unicleo-GUI Application

Specifications

Memory RequirementsCortex-M0+: 3.0 kB code, 0.3 kB data; Cortex-M3: 3.1 kB code, 0.3 kB data; Cortex-M4: 2.7 kB code, 0.3 kB data; Cortex-M7: 2.3 kB code, 0.3 kB data
Sample Rate Range25 Hz to 200 Hz
Default Accelerometer Threshold0.01 g
Default Gyroscope Threshold0.2 dps

Frequently asked questions

What is the MotionGC library used for?

It provides real-time gyroscope calibration through angular zero-rate level coefficients (offset) to correct gyroscope data.

How does the calibration process work?

The calibration process does not require sensor motion; the offset coefficient is calculated and updated when the sensor is still.

What is the default gyroscope threshold for steady state detection?

The default gyroscope threshold is 0.2 dps.

Download PDF (710 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →