Gyroscope
Gyroscope
What does it measure?
A gyroscope reports angular velocity around its three measurement axes:
Values are usually expressed in degrees per second (°/s) or radians per second (rad/s). A gyro does not directly output angle: estimating orientation requires integrating angular velocity over time.
For one axis, approximately:
where is the estimated zero-rate offset (bias), and is the elapsed time. For arbitrary 3D motion, orientation should be integrated using rotation matrices or quaternions rather than treating Euler-angle rates as independent gyro axes.
Why does a gyroscope drift?
A useful measurement model is:
- : scale-factor and axis-alignment errors (identity for an ideal sensor).
- : bias, which can vary with temperature and time.
- : noise.
Because the rate is integrated, even a small constant bias accumulates into an ever-growing angle error:
Example: If the true rate is zero but the measured rate contains a constant offset of , the estimate drifts by roughly 30° after one minute. Random rate noise also produces orientation uncertainty that increases with time.
Basic stationary calibration
- Mount the IMU rigidly and allow startup/settling time.
- Keep the sensor completely still; rotation during this step corrupts the estimate.
- Read samples for all three axes.
- Compute the mean for each axis:
- Subtract that mean from future samples:
This estimates zero-rate bias, not scale factor, cross-axis alignment, or temperature variation. These require known rotation rates / multiple calibration conditions or a more detailed model.
More rigorous calibration
- Measure zero-rate bias at several temperatures; store a temperature compensation model.
- Apply known rates with a rotation-rate fixture to estimate scale factors.
- Estimate sensor-to-body axis alignment if the IMU is mounted at an angle.
- Re-estimate bias during confidently detected stationary periods; use care not to mistake slow rotation for zero motion.
Typical issues
| Error source | Effect on estimated orientation |
|---|---|
| Constant bias | Approximately linear growth of angle error |
| Temperature-dependent bias | Drift changes as the IMU warms or cools |
| Measurement noise | Accumulated orientation uncertainty |
| Scale-factor error | Under- or overestimated rotation angle |
| Sampling/time-stamp error | Integration error, particularly during fast movement |
| Saturation | Lost rotation information when rate exceeds selected range |
Why fusion is needed
Gyros are excellent at detecting short-term changes. They do not provide a long-term absolute roll/pitch reference on their own. The gravity direction estimated by an Accelerometer can correct low-frequency tilt drift through a Complementary Filter or Kalman Filter for IMUs. However, gravity alone cannot correct yaw about the gravity axis.
See also: 6-DoF IMU · Sensor Fusion and Filtering · BMI088 - Hardware Connection