IMU Notes
aliases:
- IMU Notes
- Inertial Sensing Map of Content tags:
- electronics/imu
- moc
IMU Notes — Index
Learning path
- Gyroscope — what angular-rate measurements mean, calibration, bias, noise, and integration drift.
- Accelerometer — specific force, gravity-based tilt, vibration, bias, and linear-acceleration interference.
- 6-DoF IMU — how three axes of each sensor form a 6-axis inertial measurement unit.
- Sensor Fusion and Filtering — why neither sensor alone produces a reliable long-term attitude estimate.
- Complementary Filter — a simple practical roll/pitch filter.
- Kalman Filter for IMUs — a model-based filter that can estimate both attitude and gyro bias.
- BMI088 - Hardware Connection — wiring and initializing a real 6-axis IMU using I²C or SPI.
Data flow
flowchart TD
G[Gyroscope: angular rate] --> CAL[Calibration, timing and unit conversion]
A[Accelerometer: specific force] --> CAL
CAL --> F[Sensor fusion]
F --> C[Complementary filter]
F --> K[Kalman / EKF]
C --> R[Roll and pitch estimate]
K --> R
G --> Y[Yaw from integration; subject to drift]
M[Magnetometer / external heading] -. optional correction .-> Y
Quick comparison
| Measurement | Strength | Weakness | Role in fusion |
|---|---|---|---|
| Gyroscope | Fast response to rotation | Bias causes integrated angle drift | Short-term orientation changes |
| Accelerometer | Gravity direction available when translation is negligible | Vibrations and linear acceleration look like changes in tilt | Long-term roll/pitch reference |
| 6-axis IMU | Both measurements in one system | No absolute heading reference | Estimates roll and pitch; yaw remains relative |
Practical pipeline
BMI088 → I²C/SPI → raw samples → time stamps → calibration → physical units → complementary/Kalman fusion → estimated orientation