DJI Error Code 30021 indicates that the drone’s Inertial Measurement Unit (IMU) failed its internal self-checks during startup. The IMU consists of internal gyroscopes, accelerometers, and barometers that calculate aircraft attitude, tilt, and balance. During the boot sequence, the flight controller samples these sensors to establish a stable reference baseline. If the drone is moved during startup, placed on an unsteady surface, or exposed to rapid temperature changes, initialization will fail, locking the propulsion system to prevent takeoff.
Fast Fix
Power off the drone. Place the aircraft on a completely flat, solid, and vibration-free surface (such as a hard floor or solid table). Power on the drone and ensure it remains completely still without touching, bumping, or moving it until the self-check completes and the rear status LEDs blink green.
Quick Safety Snapshot
- Severity: High.
- Safe to Fly: No. The flight controller will inhibit motor arming. If bypassed, the drone cannot maintain attitude balance and will flip over on takeoff.
- Primary Cause: Moving or bumping the aircraft during startup, booting on an unlevel or vibrating surface, extreme temperature shock, or an internal sensor dislodged by an impact.
- Immediate Action: Turn off the aircraft, place it on a stable surface, and let it complete its startup sequence without movement.
How the IMU Operates and Why Initialization Fails
The IMU utilizes micro-electro-mechanical systems (MEMS) to track movement across three dimensions. When you power on a DJI drone:
- The flight computer boots its core operating system.
- The processor sends test pulses to the internal gyroscopes and accelerometers.
- The sensors return static reading values.
- The system compares these readings against factory-calibrated thresholds.
If the drone is resting on a boat deck, sitting inside a running vehicle, being held in your hands, or buffeted by heavy wind during startup, the sensors detect movement when they expect stillness. The system aborts the boot process and triggers Error 30021 (closely related to DJI Error Code 30066 IMU Initialization Error).
Diagnostic Step-by-Step
Follow this troubleshooting path to isolate the cause of the initialization failure:
[Error Code 30021 Appears]
│
▼
Check Drone Startup Condition
├── Drone was Moved or Handheld at Boot ──► Place on solid, stationary ground & reboot
│
└── Drone was Completely Still ───────────► Check Surface Level & Environment
│
▼
Inspect Ambient Temperature
│
┌──────────────────────────────────┴──────────────────────────────────┐
▼ ▼
Drone Brought from Warm Car to Sub-Zero Cold Normal Ambient Temperature
│ │
Wait 10 Minutes for Thermal Acclimatization Perform Full 6-Sided IMU Calibration
│ │
Reboot on Flat Surface ├── Calibration Passes ──► Error Cleared
└── Calibration Fails ──► Sensor Damage
Step 1: The Stationary Reboot Test
Turn off the drone and set it on a concrete walkway, solid wood floor, or level table.
- Ensure no nearby machinery, foot traffic, or vehicle engines are causing subtle floor vibrations.
- Turn on the drone and take your hands off the frame immediately.
- Watch the front and rear lights. If they shift to green, the issue was caused by movement during the previous boot. For broader initialization procedures, see Drone IMU Calibration Required or Initialization Failed.
Step 2: Check for Temperature Shock
Bringing a drone from a warm, heated vehicle (70°F / 21°C) directly into sub-freezing winter air (30°F / -1°C) causes the internal silicon sensor chips to contract rapidly while booting.
- This rapid thermal shift introduces mathematical bias drift into the accelerometer registers, triggering an initialization timeout.
- Leave the drone powered off in the ambient operating temperature for 10 to 15 minutes to stabilize before powering on. Winter flight considerations are covered in Cold Weather IMU Calibration: Pre-heating Sensors for Winter Flight.
Step 3: Check IMU Sensor Health in the App
Open the DJI Fly or GO 4 app:
- Navigate to Settings > Safety > Sensor Status > IMU.
- Look at the sensor bias bars for Gyroscope and Accelerometer.
- If any bar is solid red or shows values pegged at their maximum limit while the drone is stationary, the physical sensor is malfunctioning or has suffered physical shock. Review DJI IMU Data & Initialization Error.
How to Perform a Full IMU Calibration
If a clean reboot does not resolve Error 30021, recalibrate the IMU to rewrite the baseline orientation data:
- Ensure the aircraft battery has at least 50% charge.
- Place the drone on a flat, level surface indoors.
- In the DJI app, navigate to Settings > Safety > Sensors > Calibrate IMU.
- Follow the on-screen graphics to rest the drone on all six sides:
- Flat on its belly
- On its right side
- On its left side
- On its nose
- On its tail
- Upside down on its back
- Keep the drone completely still during each step. Do not touch it until the app prompts you to move to the next orientation.
- Once calibration hits 100%, reboot the aircraft. If calibration fails during this process, consult DJI IMU Calibration Failed (Error Code -50).
Hard Stops: When Hardware Failure is Present
Do not attempt to fly, and discontinue testing if:
- The IMU calibration consistently freezes or fails at a specific stage.
- The drone displays Error 30021 immediately following a crash or hard landing, which often points to physical damage; see DJI IMU, Compass, or Vision Sensor Error After Crash.
- You hear a distinct rattle inside the aircraft body, indicating that the internal silicone-damped IMU suspension platform has detached from its mounts.
Professional Repair Path
Modern DJI drones mount the IMU on a tiny, silicone-damped sub-assembly to isolate it from motor vibrations. A hard crash can dislodge this assembly, sever its ribbon connector, or break the internal accelerometer die. If stationary reboots, thermal acclimatization, and multi-side calibrations all fail to clear Error 30021, the core board or sensor module must be replaced through official DJI Support.