Module 10 · Simulation and parameter testing · Lesson 22 of 26
Feedback control: tuning a PID loop
What P, I and D each do, and how to tune them by watching a step response.
In this lesson · about 18 minutes
- Explain the job of the P, I and D terms
- Read overshoot, settling time and steady-state error from a step response
- Tune a PID loop in a sensible order
In Module 2 you met the feedback loop: sense, compare, correct. The PID controller decides how hard to correct, by adding three terms based on the error e (target minus measured):
- P, proportional: correction = KP × e. Big error, big push. Too little P feels sluggish; too much overshoots and oscillates.
- I, integral: correction = KI × (sum of the error over time). It slowly builds up to remove a steady error, such as a payload heavier than the controller expected. Too much I causes slow, wallowing overshoot.
- D, derivative: correction = −KD × (how fast things are changing). It acts like a shock absorber, braking the motion before it overshoots. Too much D amplifies sensor noise and makes motors hot and twitchy.
We judge a tune by its step response: ask for a sudden change (climb to 5 m) and watch. Three numbers matter: overshoot (how far past the target), settling time (how long until it stays within a small band) and steady-state error (how far off it ends up).
Try it · interactive
Altitude-hold PID simulator
Tune P, I and D so the drone climbs to 5 m quickly, without overshooting, and stays there. Try the presets, then add a downdraft.
Overshoot
45.0%
Settling time (±0.1 m)
> 10s
Error at 10 s
0.50m
Target
5.0m
A simplified 2 kg drone climbing from the ground to 5 m, with a short motor spin-up lag and air drag. Real autopilots tune separate loops for rate, attitude, velocity and position, but the P, I and D behaviour is the same.
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. The calculators use standard first-order engineering models (momentum theory, typical propeller coefficients, ideal battery maths): good for comparing options and sizing a first design, not a substitute for bench tests, manufacturer data and test flights. Always follow your country's drone rules, fly away from people, and treat lithium batteries with care. Product and software names belong to their owners. Read-aloud and the whiteboard voice use your device's built-in voices.