If your drone wobbles, oscillates, feels slow to respond or overshoots after a flip, the cause is often its PID tuning. PID controllers are at the heart of every flight controller, but the terms P, I and D can sound like advanced mathematics. In this guide we explain PID tuning for beginners in plain language: what each term does, what bad tuning looks like and a safe way to improve your drone’s tune.
What is a PID controller?
A PID controller constantly compares where the drone is with where it should be and calculates a correction. The difference between the two is called the error. For example, if you command 0 degrees of roll and the wind tilts the drone to 5 degrees, the error is 5 degrees, and the controller speeds up some motors and slows others to fix it.
The correction is made of three parts: P, I and D.
P, I and D in simple terms
| Term | Reacts to | Simple idea | Too low | Too high |
|---|---|---|---|---|
| P (Proportional) | The current error | Push back harder the further you are off | Soft, sloppy, slow to respond | Fast oscillation, shaking |
| I (Integral) | Error that builds up over time | Fix small errors that last, like wind or an off-centre weight | Drifts, does not hold angle in wind | Slow wobble, overshoot after moves |
| D (Derivative) | How fast the error is changing | Brake the movement before it overshoots | Bounce-back and overshoot after flips | Hot motors, noise, twitching |
A useful picture is a car’s suspension: P is the spring that pushes back, D is the damper that stops it bouncing, and I is the correction that keeps the car level when it carries an uneven load.
Signs your drone needs tuning
- Fast shaking or buzzing at hover or high throttle: P or D may be too high, or there is vibration.
- Slow wobble after a quick stick movement: I may be too high or P too low.
- Bounce-back at the end of flips and rolls: D may be too low.
- Drifting in wind or not holding an angle: I may be too low.
- Hot motors after a gentle flight: D too high, too much noise, or vibration.
Before you tune: fix the mechanics
Tuning cannot fix mechanical problems. Before changing PIDs:
- Check propellers, motors and frame for damage. See Drone Vibration: Causes and Fixes.
- Make sure the flight controller is soft-mounted and the battery is secure.
- Set up filtering correctly, including RPM filtering if your ESCs support bidirectional DShot. See What Is an ESC?
- Check motor temperatures after a short default-settings flight.
Automatic tuning
Many flight controllers can tune themselves:
- ArduPilot AutoTune: the drone performs a series of twitches on each axis and calculates suitable gains. Run it in calm weather, in an open area, with the drone already flying stably.
- INAV: includes autotune features, especially for fixed-wing aircraft.
- Betaflight: uses sliders that adjust several gains together in a balanced way, which is the easiest manual method.
For most pilots, automatic tuning or the Betaflight sliders give better results than changing individual numbers by hand.
A safe manual tuning method
- Save your current settings so you can always go back.
- Change one thing at a time, in small steps of about 10%.
- Start with P. Raise it until you see small fast oscillations, then reduce it a little.
- Adjust D to reduce bounce-back after flips, while watching motor temperature.
- Adjust I so the drone holds its angle in wind and after throttle changes without slow wobbles.
- Check motor temperatures after every test flight. Hot motors mean too much D or noise.
- Use logs. In ArduPilot, compare desired and actual attitude; in Betaflight, use blackbox logs. See How to Read ArduPilot Logs.
Other settings that affect how a drone feels
- Rates: control how fast the drone rotates for a given stick movement. This is pilot preference, not tuning.
- Feedforward: reacts directly to stick movement for sharper response. Common in Betaflight and ArduPilot.
- Filters: remove noise but add delay. Too much filtering makes tuning harder.
- Throttle and expo curves: change the feel of the sticks, not stability.
Frequently asked questions
What does PID stand for?
Proportional, Integral and Derivative: the three parts of the controller that keep a drone stable.
Should a beginner change PID settings?
Start with the default settings for your firmware and frame size, fix any mechanical problems, then use AutoTune or tuning sliders. Change individual numbers only once you understand what they do.
Why are my motors hot after tuning?
Usually D gain is too high or there is too much noise reaching the controller. Lower D, improve filtering and check for vibration.
Do fixed-wing drones use PID tuning too?
Yes. Fixed-wing autopilots use PID-style controllers for roll, pitch and yaw, and ArduPilot and INAV both offer autotune for planes.