IMU ไจโรสโคป แอกเซเลอโรมิเตอร์ และแมกนีโตมิเตอร์

MEMS principles, bias, noise, vibration and calibration

Last updated:

Why it matters

An IMU (inertial measurement unit) is a sensor set that measures its own motion without any outside reference. It contains gyroscopes, which measure rotation rate about three axes, and accelerometers, which measure specific force along three axes; at rest that force is gravity, which tells the aircraft how far it is tilted. The flight controller reads the IMU hundreds to thousands of times per second to hold attitude. The magnetometer, or compass, measures the Earth's magnetic field to give heading.

Everything else is built on these sensors. The state estimator (EKF) fuses the IMU with GNSS, barometer and compass. If the IMU has uncorrected errors or is swamped by vibration, the whole estimate goes wrong with it. This page covers the principles, how to read an IMU datasheet, and where the errors that matter most in practice come from.

MEMS principles

Almost every drone IMU is MEMS (micro-electro-mechanical systems): micrometre-scale mechanical structures built on a silicon chip (Groves, 2013).

  • A MEMS accelerometer has a small proof mass on springs. Under acceleration the mass moves relative to the chip, changing electrode gaps and hence capacitance.
  • A MEMS gyro has a mass driven to vibrate continuously. When the chip rotates, the Coriolis force makes the mass vibrate along a perpendicular axis, with amplitude proportional to rotation rate.
  • A magnetometer measures a very weak field. The Earth's main field is typically only about 20–60 µT, so iron and currents on the airframe disturb it easily.

Reading an IMU datasheet

The figures to check, using TDK's ICM-42688-P, found in many flight controllers, as the example:

FigureMeaningICM-42688-P
Full-scale rangeLargest value before saturation (clipping)Gyro up to ±2,000 dps, accelerometer up to ±16 g
Noise densityWhite noise per root hertz of bandwidthGyro 2.8 mdps/√Hz, accelerometer 70 µg/√Hz
InterfaceRead-out speedSPI up to 24 MHz, I2C up to 1 MHz

Each axis's error can be written as reading = scale × true value + bias + noise. Bias is the reading when the true value is zero. It changes with temperature and shifts slightly at every power-up. Bias instability is the smallest slow wander of the bias, read from an Allan deviation plot as described in application note AN5087.

A gyro's noise density converts directly to angle random walk (ARW), because 1 °/s/√Hz equals 60 °/√h. A 2.8 mdps/√Hz gyro therefore has an ARW of about 0.168 °/√h, and the angle error from white noise grows with the square root of time.

Example 1: noise or bias, which makes attitude drift more?

Integrate the gyro alone for 60 seconds, with nothing else correcting it.

  • From white noise: 0.0028 °/√s × √60 ≈ 0.022°, negligible.
  • From an uncorrected bias of 0.1 °/s (assumed): 0.1 × 60 = 6°, far too much to fly.

The accelerometer tells the same story. Noise of 70 µg/√Hz over a 100 Hz bandwidth is about 0.7 mg rms, or 0.0069 m/s2, equivalent to a tilt of only about 0.04°. But a 0.05 m/s2 bias (assumed), integrated twice into position, produces an error of ½bt2 = 2.5 m in 10 seconds and 22.5 m in 30 seconds.

The lesson for drones is that bias and temperature effects come first, not white noise. That is why sensors are calibrated, and why the EKF keeps estimating gyro and accelerometer biases throughout flight with help from GNSS, barometer and compass.

Vibration

An accelerometer cannot tell acceleration of the airframe from vibration of the frame. Unbalanced propellers, worn motor bearings or flexible arms cause vibration at frequencies tied to motor speed. There are three harmful effects:

  • Clipping. Vibration so strong that readings exceed the range and are cut off at the ceiling. The average becomes biased, and the height estimator may think the aircraft is falling or climbing.
  • Aliasing. Sampling slower than twice the vibration frequency without a pre-sampling filter makes high-frequency vibration appear as a low-frequency oscillation that does not exist.
  • Noise in the control loop. Vibration in the gyro signal is amplified by the controller, heating motors and degrading control.

ArduPilot's documentation says vibration levels below 30 m/s2 are normally acceptable and above 60 m/s2 usually cause problems. Fix mechanical causes first: balance propellers, replace bearings, stiffen the frame, then mount the board on vibration isolators. For software filtering, ArduPilot's harmonic notch filter removes the motor rotation frequency and its harmonics, with the centre frequency tracking throttle, ESC-telemetry RPM or an in-flight FFT.

Example 2: predicting vibration frequency from motor speed

The drone in the propulsion knowledge unit hovers at 3,308 rpm. The motor rotation frequency is 3,308 / 60 ≈ 55 Hz. A two-blade propeller passes the same point twice per revolution, giving a blade-pass frequency of about 110 Hz. On a hot day, when hover speed rises to 3,420 rpm, the blade-pass frequency moves to about 114 Hz.

In a gyro spectrum from the log, peaks near 55 Hz and 110 Hz point to the motors and propellers. A notch fixed at 110 Hz drifts off target as speed changes, so prefer one that tracks actual RPM. Peaks unrelated to motor speed usually come from a loose frame part or component.

Magnetometers and interference

Compasses suffer two kinds of distortion. Hard iron is a constant field from permanent magnets or magnetised parts on the airframe; data collected while rotating form a circle with a shifted centre. Soft iron is material that conducts and bends the field, turning the circle into an ellipse. ArduPilot's compass calibration therefore asks you to rotate the airframe through every orientation, outdoors, away from steel structures and cars. Current in the wiring also creates a field that varies with throttle, which a ground calibration cannot remove: pair the leads, mount the compass on a mast, and measure the effect with CompassMot.

Common pitfalls

  • Choosing an IMU on noise density alone, ignoring bias stability and temperature effects.
  • Moving the airframe during six-position calibration, or calibrating in a cold room and flying in full sun.
  • Fighting vibration with software filters only, without fixing the propeller or motor at the root.
  • Setting the accelerometer range too narrow, causing clipping.
  • Board or compass orientation settings that do not match the installation. Set them before calibrating.
  • Calibrating the compass near steel, or not recalibrating after moving equipment near it.

Continue in the lessons

Key references

  1. Groves, P. D. (2013). Principles of GNSS, inertial, and multisensor integrated navigation systems (2nd ed.). Artech House. link
  2. TDK InvenSense. ICM-42688-P high precision 6-axis MEMS motion sensor (Datasheet DS-000347). link
  3. Freescale Semiconductor. (2015). Allan variance: Noise analysis for gyroscopes (Application Note AN5087, Rev. 0). link
  4. ArduPilot Dev Team. Measuring vibration. ArduPilot Copter documentation. link
  5. ArduPilot Dev Team. Managing gyro noise with the dynamic harmonic notch filters. ArduPilot Copter documentation. link
  6. ArduPilot Dev Team. Compass calibration. ArduPilot Copter documentation. link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). IMU ไจโรสโคป แอกเซเลอโรมิเตอร์ และแมกนีโตมิเตอร์. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/sensors-imu/