Learning Rooms/□ Level 4 · Systems Engineer/Robotics and control
A PID Tuning Guide | Understanding PID Control, Part 4
MATLAB · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Follow a documented manual tuning procedure (P first, then D, then I) against a written specification.
- Keep a tuning log that lets someone else reproduce the result.
- Recognise when a specification cannot be met and say why.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
In the usual manual procedure, which gain is set first?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The PID joint lab plots the joint angle against time for 8 seconds. With P only, the joint overshoots by over 50 % and settles below the setpoint. With PID gains around Kp 4, Ki 4, Kd 1, overshoot is near 1 %, settling under 1 second and steady-state error near zero. A table lists rise time, overshoot, settling time and steady-state error with pass or fail against the spec.
3.Watch, actively
Walks through tuning a real loop step by step and what each gain does to the response.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Note the order in which the presenter adjusts the gains, and how each change shows up in the response.
- → Note the difference between manual tuning, rule-based tuning and model-based tuning, and when each is appropriate.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
Tuning a PID loop means adjusting gains while watching the response: proportional gain for speed, derivative to damp overshoot, integral to remove steady error. Changing one gain at a time, against a written target, keeps tuning a method rather than a guess.
What the video covers (our own note, written when we verified it): Walks through tuning a real loop step by step and what each gain does to the response.
Written by Tactiverge in our own words, not a transcript. The full lessons below explain the idea without the video.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lessons that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
A first-order plant (gain K = 1, time constant τ = 0.5 s) is under proportional control with Kp = 9 and a unit step setpoint. The closed loop is first-order with time constant τ/(1 + Kp). What is its 10–90 % rise time, in seconds? (Use rise time = τcl·ln 9 and 2 % settling = τcl·ln 50.)
Practice 2
Which tuning-log entry is most useful?
Practice 3 · a fresh version every time
A joint behaves like a second-order system with damping ratio ζ = 0.3. Using overshoot = exp(−π·ζ / √(1 − ζ²)) × 100 %, what percentage overshoot should a step produce?
Practice 4
You can't get settling under 1 s without the motor hitting its current limit. What is the right report?
6.Build something with it
Follow-up project
Submit your Workbench tuning log (at least six rows) with the final gains and a one-paragraph justification. If you couldn't meet the spec, say which line failed and what hardware change would fix it.
Where this video lives
- Reading a step response · Level 3, week 30
- Tuning to a written spec · Level 4, week 17
In the course catalogue: CTRL-320 Feedback control · CTRL-420 Dynamic response and PID design
The video is by MATLAB, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.