Chapter 74: the accelerometer and the IMU

Accelerometer and IMU How a mass on a spring tells a robot how hard it speeds up, and how one chip carries both sensors

The gyroscope of chapter 73 tells the robot how it turns. This page adds the accelerometer, which measures how hard the robot speeds up or brakes, so the robot can estimate its speed. Inside it is a mass on a spring: two laws, F = m × a and F = k × x, turn the squeeze of the spring into the acceleration. Then three of these fit in a coin sized chip, and together with a gyroscope they make an IMU.

Words used on this page (open this if a word is new)
accelerometerA sensor that measures the acceleration applied to the robot.
acceleration, aHow quickly the speed changes, in m/s².
mass, mHow much matter a body has, in kilograms.
force, FA push or a pull, in newtons.
elastic constant, kThe stiffness of a spring, a property of the spring itself, in N/m.
deformation, xHow far the spring is stretched or squeezed.
IMUInertial Measurement Unit: a gyroscope and an accelerometer in one chip.
01

How an accelerometer works

Why the robot gets an accelerometer, and how a mass on a spring measures the acceleration. Use Next and Back, the sliders and the buttons. Point at a coloured word to light up its part of the picture.

Key idea. An accelerometer is a mass m on a spring with elastic constant k. Newton gives F = m × a, the spring gives F = k × x, so m × a = k × x and a = k ÷ m × x. k and m are known, so measuring the squeeze x gives the acceleration.

Quick check

02

Three axes and the IMU

Three accelerometers in a coin sized chip, and the IMU that holds a gyroscope and an accelerometer together. Use Next and Back, the sliders and the buttons. Point at a coloured word to light up its part of the picture.

Key idea. A chip not larger than a coin holds three accelerometers, for x, y and z. An IMU puts a gyroscope (roll, pitch, yaw) and an accelerometer (x, y, z) in one chip.

Quick check

03

Summary and quiz

Key takeaways

  1. An accelerometer measures the acceleration applied to the robot; that is used to estimate its speed.
  2. Inside: a mass m on a spring with elastic constant k.
  3. Newton: F = m × a. The spring: F = k × x.
  4. The same force, so m × a = k × x and a = k ÷ m × x.
  5. k and m are known when the sensor is built, so only the squeeze x is measured: a = f(x).
  6. Three accelerometers fit in a chip not larger than a coin, one for each of x, y and z.
  7. An IMU holds a gyroscope (roll, pitch, yaw) and an accelerometer (x, y, z) in one chip.

Quiz