GlossaryInertial measurement unit
Inertial measurement unit
An inertial measurement unit, or IMU, is a sensor that measures motion using accelerometers, which sense linear acceleration including gravity, and gyroscopes, which sense rotation rate. A six-axis IMU has three of each. A nine-axis unit adds a three-axis magnetometer for heading.
How it works
Most IMUs in robots and drones are MEMS devices: tiny mechanical structures etched in silicon, packaged as a single chip, often in an LGA package. Accelerometers measure the movement of a small proof mass. Gyroscopes measure the force on a vibrating mass when the device rotates. The chip digitizes the readings and sends them over SPI or I2C at rates from hundreds to thousands of samples per second.
Raw IMU readings have errors: offsets, scale factor errors, axis misalignment, noise and drift with temperature. Sensor calibration corrects the steady parts. Software fuses IMU data with other sensors, such as GPS, cameras or encoders, to estimate attitude and position over time. Flight control software such as PX4 and ArduPilot includes calibration routines for accelerometers and gyroscopes.
IMU vs AHRS
An IMU reports raw motion measurements. An attitude and heading reference system, or AHRS, includes an IMU and magnetometer plus the processing that turns them into orientation angles. Many flight controllers implement the AHRS in software, using one or more IMU chips.
Why it matters
The IMU is the main input for stabilizing a drone and for balancing or tracking a robot. Vibration from motors and propellers adds noise and can push readings past the sensor's range. Board stress shifts offsets. Temperature changes cause drift. All of these show up as control problems.
How to get it right
- Place the IMU near the center of motion and away from motors and heat sources.
- Isolate it from vibration with mounting or a separate isolated board.
- Avoid board stress near the part from screws, connectors and stiffeners.
- Align the IMU axes with the board axes, and record any rotation in software.
- Calibrate per unit, across temperature where needed.
IMUs in robotics and drone hardware
Drones often carry two or three IMUs, of different types, for redundancy and to reject vibration effects that hit one sensor harder than another. Legged and balancing robots rely on IMUs for balance, so their mounting and calibration are part of the mechanical design as well as the electronics.
IMU boards also need sensor calibration at end-of-line test, and vibration testing shows whether the mounting keeps motor vibration out of the readings.