Skip to main content
Michele FERRAINA
ST Employee
Nov 23, 2026 9:00 AM UTC

Low-power high-g sensing with embedded features in ST IMUs

Summary

This article explores embedded high-g accelerometer features in ST’s IMUs and how they can reduce host-MCU workload and system power consumption. It explains the high-g data path and configurable settings, then describes high-g wake-up and shock detection, finite state machine (FSM) and machine learning core (MLC) processing, peak tracking, and adaptive self-configuration. Examples show how an FSM can switch between low-g and high-g accelerometers based on motion, helping balance power use and measurement needs.

Introduction

The ST family of inertial measurement units (IMUs) has recently expanded to include sensors that combine a high-g accelerometer, a low-g accelerometer, and a gyroscope in a single package. This combination provides several benefits, including a wide dynamic range, high accuracy, consistent sensor data, low current consumption, and reduced space constraints.

For low-power consumption, the sensor is thoroughly optimized and offers several power modes and a wide output data rate (ODR) selection for high flexibility in system design. Additional power savings can be achieved by using the sensor's embedded features. These features can perform operations and calculations that would otherwise run on a host microcontroller (MCU). When the sensor executes algorithms, its interrupt signals inform the host about recognized events, and the MCU can remain offloaded or in sleep mode most of the time. This behavior leads to additional power savings at the system level.

LSM6DSV80X, LSM6DSK320X, LSM6DSV320X, ISM6HGK256X, and ISM6HG256X are inertial measurement units (IMUs) with integrated high-g accelerometers. The embedded features related to the high-g accelerometer include:

  • high-g wake-up
  • high-g shock
  • finite state machine (FSM) and machine learning core (MLC)
  • peak tracking
  • adaptive self-configuration (ASC)

1. High-g accelerometer data path

Before the discussion of the embedded features, review the high-g accelerometer data path, which defines the input signal for the embedded features discussed in this section.

A dedicated MEMS element inside the inertial measurement unit (IMU) senses high-g acceleration. The MEMS element converts high-g acceleration into a capacitance change. The capacitance is converted into a proportional electrical signal that the application-specific integrated circuit (ASIC) section of the sensor processes. The high-g accelerometer signal data path includes an analog antialiasing filter to ensure that high-frequency signal components do not fold into a lower frequency band. An analog-to-digital converter (ADC) then converts the signal into digital form, and the data path continues to the digital low-pass filter (LPF1).

Before the signal reaches the output registers, first-in, first-out (FIFO) memory, or embedded features, a user-defined offset can adjust it. Because of the wide measurement range, the zero-g offset of the high-g accelerometer is typically higher (250 mg) than that of the low-g accelerometer. The user can compensate for this offset by using the high-g accelerometer offset registers.

Figure 1. High-g accelerometer data path

High-g acceleration signals processed by embedded features are parameterized as follows:

  • Output data rate – from 480Hz to 7.68kHz, defined by ODR_XL_HG bits in CTRL1_XL_HG register
  • Full scale or measurement range - from ±32g up to ±320g (depending on sensor), defined by FS_XL_HG bits in CTRL1_XL_HG register
  • User offset - user-defined offset applied on high-g acceleration data, offset for each axis is defined in XL_HG_x_OFS_USR (x = X, Y or Z) registers and enabled by either HG_USR_OFF_ON_WU bit of CTRL2_XL_HG register for high-g wake-up and high-g shock or HG_USR_OFF_ON_EMB_FUNC bit of EMB_FUNC_CFG register for FSM and MLC

2. High-g wake-up

The high-g wake-up feature is useful when a trigger is required each time high-g acceleration rises above a specified threshold.

The high-g wake-up event is detected each time the high-g acceleration signal on any of the X, Y, or Z axis exceeds a user-defined unsigned threshold. The high-g wake-up feature uses the following configurations:

  • High-g threshold – unsigned high-g threshold, defined by HG_WK_THS bits of HG_WAKE_UP_THS register, 8 bits, 1g per 1 LSB
  • Behavior of interrupt signal – interrupt output signal can be controlled by HG_WU_CHANGE_INT_SEL bit of HG_FUNCTIONS_ENABLE register.
    • HG_WU_CHANGE_INT_SEL = 0, the interrupt is generated each time one of the three high-g axes is higher than the threshold.
    • HG_WU_CHANGE_INT_SEL = 1, the interrupt is generated when high-g passes from all axes under the threshold to at least one axis over the threshold, or vice versa

Figure 2 shows an example of the high-g wake-up feature output.

Figure 2. High-g wake-up

3. High-g shock

Impacts and shock events are usually short. However, they consist of several consecutive acceleration peaks with decreasing amplitude. The high-g shock feature is useful when the system must detect the start and end of a shock, but doesn’t need to monitor every detail of the event.

A high-g shock starts with a high-g wake-up event. It ends after a predefined time with no wake-up events. The following configurations are related to the high-g wake-up feature:

  • Those related to high-g wake-up (see above), plus:
  • High-g shock duration – high-g shock duration in seconds, HG_SHOCK_DUR, 4 bits, in seconds: (HG_SHOCK_DUR + 1) * 512 / ODR_XL_HG, where ODR_XL_HG is the configured output data rate of a high-g accelerometer

Figure 3 below shows an example of the high-g shock feature output.

Figure 3. High-g shock

 

4. FSM and MLC

Finite state machine (FSM) and machine learning core (MLC) features of ST inertial measurement units (IMUs) can implement advanced sensor data processing. These features are fully open and run user-defined algorithms. The FSM consists of a finite number of states and transitions between them. In each state, a command or condition runs before the system moves to the next state.

This approach is useful for detecting well-defined gestures and movements. The MLC runs predictive models based on decision tree logic (J48), which is a series of configurable nodes characterized by an "if-then-else" condition. The decision tree is built offline through dataset analysis by using machine learning tools. It uses a machine learning approach: sensor data identifies a set of statistical parameters that can recognize patterns that match user-defined classes.

To learn more about FSM and MLC and how to use them to process input signals directly inside the sensor, refer to the community article: Which sensor embedded feature should I choose for my application?

5. Peak tracking

Impact or shock severity is commonly evaluated by measuring the amplitude and duration of the acceleration peak. ST sensors with the peak tracking feature provide this data without host MCU intervention.

High-g accelerometer peak tracking is implemented in the finite state machine (FSM) block by using two commands: one to start peak tracking and one to stop it. After the command that starts peak tracking is executed, the internal logic continuously monitors high-g data and looks for the peak with the highest acceleration norm. When the stop command is issued at the end of the monitoring window, the peak tracking feature stores the 3-axis components of the detected peak from the high-g accelerometer in the sensor FIFO and marks them with a dedicated tag.

Figure 4 shows an example of the FSM program flow for the peak tracking feature.

Figure 4. Peak tracking FSM program flow

The user defines the exact finite state machine (FSM) program sequence and the conditions under which peak tracking runs. A peak tracking demonstration is available on GitHub and includes the FSM program and example C code.

Figure 5 shows an example of the peak tracking feature output. The device detects a peak event by comparing the norm of the three axes with the configured threshold during the monitoring window. Each time a new peak, or maximum norm value, is found, the device internally stores the values of the three axes that correspond to that peak event. When the monitoring window ends, the device stores the three half-precision floating-point numbers that represent the X, Y, and Z axes at the peak in the FIFO.

Figure 5. Peak tracking

6. Adaptive self-configuration

Adaptive self-configuration (ASC) is a feature of the finite state machine (FSM) that permits the FSM program to automatically reconfigure the sensor in real time when it detects a specific motion pattern, without intervention from the host processor. The user defines the exact FSM program sequence and the conditions under which the device executes the configuration.

For example, ASC can switch between the low-g accelerometer and the high-g accelerometer to optimize overall sensor current consumption.

Figure 6 shows an example of an FSM program that uses ASC to switch between the low-g accelerometer and the high-g accelerometer.

Figure 6. FSM program flow that uses ASC to switch between low-g and high-g accelerometer modes

This finite-state machine (FSM) program example for low-g and high-g accelerometer switching operates as follows: while the acceleration amplitude is low, that is, when the low-g acceleration norm is below the threshold, the low-g accelerometer is active, and the high-g accelerometer is disabled. When the acceleration norm rises above the threshold, the low-g accelerometer is disabled, and the high-g accelerometer is activated. The high-g accelerometer remains active until all three axes fall below the threshold.

This example shows basic high-g accelerometer switching based on the operating context and targets very-low-power consumption. When the application requires a smooth transition between low-g and high-g data and must avoid discontinuity due to time-varying offset evolution and different noise profiles, implement low-g and high-g sensor fusion using MotionXLF library included in X-CUBE-MEMS1 package.

Figure 7. High-g/Low-g accelerometer switching using ASC