DJI Error Code 40006 Gimbal IMU Error

DJI error code 40006 indicates that the dedicated Inertial Measurement Unit (IMU) located inside the gimbal housing has failed to initialize, returned irrational attitude measurements, or suffered severe sensor drift. DJI drones use two independent IMU systems: the primary aircraft IMUs in the main fuselage for flight balance, and a secondary micro-IMU inside the camera assembly for camera horizon tracking. When code 40006 triggers, the gimbal loses its horizon lock, causing the camera to drift diagonally, tilt sideways, or enter an un-stabilized limp mode.

Fast Fix

Place the aircraft on a completely flat, level, and solid surface away from metallic structures or vibrating appliances. Turn on the drone and allow it to sit motionless for 60 seconds. Open the DJI app and execute a Gimbal Auto-Calibration followed by an Aircraft IMU Calibration.


Quick Safety Snapshot

  • Severity: High for camera stability and framing; low for flight control.
  • Safe to Fly: Yes for emergency return and line-of-sight flying, but aerial filming is compromised and horizon-hold is disabled.
  • Primary Cause: Powering up on uneven surfaces or moving vehicles, severe thermal drift from rapid temperature shifts, internal IMU chip shock from an impact, or damaged sensor traces.
  • Immediate Action: Land the drone, place it on a perfectly level surface, and re-run system calibrations.

What This Means

Stabilizing a camera in three dimensions requires real-time calculation of angular velocity and gravitational tilt. The gimbal’s miniature IMU consists of a 3-axis gyroscope and a 3-axis accelerometer mounted directly onto the camera’s internal circuit board:

[Aircraft Main IMU] (Measures Drone Tilt)
        │
        │  (Compensating Angle Vector)
        ▼
[Gimbal Micro-IMU]  (Measures Camera Tilt via Gyro/Accel)
        │
        ├── Attitude Match? ──> Horizon Stable
        │
        └── Data Mismatch / Gyro Bias Exceeded ──> Error Code 40006

When you power on the drone, the gimbal IMU samples gravity to determine true level and measures baseline gyroscope bias. If the aircraft is moved during this boot window, or if the sensor suffered a physical shock that shifted its internal micro-electro-mechanical (MEMS) proof masses, the readings fail validation checks, triggering error 40006.

For a deeper dive into gimbal attitude issues, see DJI Gimbal IMU Data Error and DJI Error Code 40021 Gimbal IMU Data Error.


Diagnostic Path

                    Error 40006 Triggered
                              │
               Was the drone moved during startup?
                     ┌────────┴────────┐
                    YES                NO
                     │                 │
             Movement Bias        Sensor / Hardware Check
             - Power cycle        - Calibrate on flat level
             - Keep motionless    - Check thermal stability
             - Re-run calibration - Inspect post-crash shock

Step 1: Perform the Motionless Boot Test

The most common cause of error 40006 is moving the drone during the first ten seconds of power-up:

  1. Turn off the drone.
  2. Place it on a hard, completely stable surface (such as concrete or a sturdy table). Do not start the drone on a boat, a moving truck bed, or while holding it in your hand.
  3. Power on the drone and do not touch it until the camera completes its self-test and centers forward.
  4. If code 40006 disappears, the error was caused by gyro bias drift during boot-up initialization.

Step 2: Calibrate the Gimbal and Aircraft IMU

If the error persists after a motionless startup, the sensor offsets need re-centering:

  1. Ensure the drone is sitting on an accurately verified level surface.
  2. In the DJI app, navigate to Settings > Control > Gimbal Calibration and run Auto.
  3. Once completed, go to Settings > Safety > Sensor Status > IMU and tap Calibrate. Follow the on-screen prompts to place the drone on its various sides as directed.
  4. Power cycle the aircraft once both procedures are complete.

To correct a crooked horizon after calibration, consult Gimbal Horizon Tilt: Manual vs. Auto Calibration Fixes.

Step 3: Account for Temperature Shifts (Thermal Drift)

Gimbal IMUs are sensitive to extreme temperature deltas. Taking a drone from a warm vehicle into freezing winter air can cause the silicon inside the MEMS sensor to contract unevenly, throwing off calibration parameters:

  • Allow the aircraft to acclimate to ambient outdoor temperatures for 10 to 15 minutes before powering on.
  • If testing indoors, verify that the drone is not sitting in the direct path of an air conditioner or heater vent.

Environmental and Hardware Factors

  • Physical Impact Shock: A hard landing, propeller strike, or crash can knock the microscopic sensing fingers inside the IMU chip out of alignment. If error 40006 appears immediately following a crash, the sensor chip has likely sustained physical damage. Read more at DJI Gimbal Calibration Failed After Crash or Firmware Update.
  • Damaged Flexible Circuit: The gimbal IMU signals travel from the camera head through the flexible ribbon cable to the gimbal controller. A micro-tear in the ribbon’s power or ground trace to the IMU will drop the sensor offline intermittently.

Hard Stops: When to Escalate to Repair

Stop troubleshooting and send the drone in for service if:

  • The gimbal IMU displays an active error while the camera tilts erratically or spins uncontrollably against its physical end-stops.
  • The Auto Gimbal Calibration fails consistently with an “IMU Signal Timeout” or “Sensor Disconnected” warning.
  • The error remains active after motionless startups, temperature acclimation, and verified flat-bench calibrations. In this scenario, the camera circuit board hosting the IMU module requires replacement.