Skip to main content
Associate
Oct 24, 2026 5:42 AM UTC
Solved

Clarification on Raw IMU Data Units – ISM330DHCX

I am working with the ISM330DHCX 6-axis IMU and recording accelerometer and gyroscope data.

The accelerometer is configured to ±2 g, and the gyroscope is configured to ±250 dps.

 

For reference, here is an example of my recorded data:

ACC_X, ACC_Y, ACC_Z, GYRO_X, GYRO_Y, GYRO_Z
-248.819, -3.233, -0.732, 0.58751, -0.20601, -0.33572

 

Processing IMU Data:

The accelerometer values are extracted by combining two bytes into a signed 16-bit value and multiplying the result by glAccSensMult

The gyroscope values are processed similarly, using glGyroSensMult.

glAccSensMult    0.061

 

Questions:

  1. When the camera is stationary, why might the accelerometer readings have a magnitude significantly different from approximately 1000 mg, and the gyroscope readings be nonzero?
  2. Is additional accelerometer and gyroscope calibration required before using this data?
Federica Bossi
Federica BossiBest answer
ST Technical Moderator
Oct 29, 2026 11:18 AM UTC

Hi ​@Pavithra K ,

At rest, a correctly configured accelerometer should measure gravity: the magnitude of the three-axis vector should be approximately 1 g (1000 mg), regardless of the sensor’s orientation, provided the gravity component has not been removed by filtering or other processing.

For the values shown, the magnitude is approximately 249 mg, not 1000 mg. That discrepancy is unlikely to be explained by orientation alone. Please check that:

  • The device is actually configured for ±2 g in CTRL1_XL, and that the sensitivity factor matches the selected range. At ±2 g, 0.061 mg/LSB is the expected accelerometer sensitivity.
  • The accelerometer data is read from the correct output registers, combined in the correct byte order, and interpreted as signed 16-bit two’s-complement data.
  • No high-pass filter, offset, or other processing is removing the DC/gravity component.
  • The sensor has had time to start up and settle before the measurement.

A nonzero gyroscope reading while stationary is normal: the gyro has zero-rate offset, noise, and temperature-dependent bias. For ±250 dps, the nominal sensitivity is 8.75 mdps/LSB, or 0.00875 dps/LSB.

Calibration is not required just to obtain usable raw measurements, but it is recommended when accuracy matters. A common approach is to estimate the gyro bias by averaging readings while the device is stationary; accelerometer calibration can correct offset and scale errors.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

4 replies

Federica Bossi
Federica BossiBest answer
ST Technical Moderator
Oct 29, 2026 11:18 AM UTC

Hi ​@Pavithra K ,

At rest, a correctly configured accelerometer should measure gravity: the magnitude of the three-axis vector should be approximately 1 g (1000 mg), regardless of the sensor’s orientation, provided the gravity component has not been removed by filtering or other processing.

For the values shown, the magnitude is approximately 249 mg, not 1000 mg. That discrepancy is unlikely to be explained by orientation alone. Please check that:

  • The device is actually configured for ±2 g in CTRL1_XL, and that the sensitivity factor matches the selected range. At ±2 g, 0.061 mg/LSB is the expected accelerometer sensitivity.
  • The accelerometer data is read from the correct output registers, combined in the correct byte order, and interpreted as signed 16-bit two’s-complement data.
  • No high-pass filter, offset, or other processing is removing the DC/gravity component.
  • The sensor has had time to start up and settle before the measurement.

A nonzero gyroscope reading while stationary is normal: the gyro has zero-rate offset, noise, and temperature-dependent bias. For ±250 dps, the nominal sensitivity is 8.75 mdps/LSB, or 0.00875 dps/LSB.

Calibration is not required just to obtain usable raw measurements, but it is recommended when accuracy matters. A common approach is to estimate the gyro bias by averaging readings while the device is stationary; accelerometer calibration can correct offset and scale errors.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Associate
Oct 30, 2026 7:07 AM UTC

Thank you for your response.

 

I have another question:

 

After performing camera–IMU extrinsic calibration, how can I verify and validate that the calibration results are correct? Are there any methods or techniques to confirm the accuracy of the estimated extrinsic parameters? Because I am going to use these extrinsic calibration parameters in SLAM.

Federica Bossi
ST Technical Moderator
Nov 4, 2026 4:01 PM UTC

Hi ​@Pavithra K 

I would recommend checking that the estimated rotation and translation match the physical camera–IMU mounting geometry, then repeating the calibration with independent datasets to assess repeatability.

The calibration should also be evaluated on a separate dataset by inspecting the camera reprojection errors and inertial residuals, if available. Camera–IMU time synchronization and coordinate-frame conventions should be checked carefully as well.

Finally, test the parameters in your SLAM pipeline, ideally comparing the estimated trajectory with an independent reference. Good SLAM performance is a useful check, but does not by itself prove that the extrinsic parameters are correct.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Visitor II
Nov 5, 2026 3:15 AM UTC

One useful way to validate camera–IMU extrinsic calibration is to repeat the calibration using different datasets and compare the estimated rotation and translation. The results should remain reasonably consistent. Also, check the camera reprojection error and IMU residuals on data that was not used during calibration. Make sure the camera and IMU timestamps are properly synchronized and that both coordinate frames follow the correct conventions. Finally, test the parameters in your SLAM pipeline and compare the estimated trajectory against a reliable reference if available. This should give you a much better idea of whether the calibration is accurate enough for your application.