Skip to content
Tactiverge

Robotics terminology

IMU (inertial measurement unit)

Also called: IMU · accelerometer · gyroscope · tilt sensor · 6-axis

Definition

An IMU combines an accelerometer, which measures acceleration including gravity, and a gyroscope, which measures angular velocity; some add a magnetometer.

Picture it

The gyroscope is smooth but drifts when integrated; the accelerometer knows which way is down but is jittery whenever the robot vibrates. Blending the two, for example with a complementary filter, gives a steady tilt estimate.

The maths

tilt from accelerometer: θ = atan2(a_x, a_z)
from gyroscope: θ(t) = θ0 + ∫ ω dt
complementary: θ = α (θ + ω Δt) + (1 − α) θ_acc
SI units used in this entry
QuantityUnitSymbol
accelerationmetre per second squaredm/s²
angular velocityradian per secondrad/s
angleradianrad

Worked example

A still IMU reads a_x = 1.7 m/s² and a_z = 9.66 m/s². Estimate the tilt. If a gyro has a constant bias of 0.5 °/s, how far does its integrated angle drift in 1 minute?

  1. θ = atan2(1.7, 9.66) = 9.98°, about 10°
  2. Drift = 0.5 × 60 = 30°

AnswerTilt about 10°; the gyro alone drifts 30° in a minute.

✓ The 2 numbers in this answer are recomputed from scratch by an automated test.

Common misconceptions

  • Misconception: An accelerometer at rest reads about 9.81 m/s² upward, not zero.
  • Misconception: Integrating accelerometer data twice for position drifts extremely fast.