Lite / Intelligent Robotic Systems / Week 30
Reading a step response
Two controllers both reach the target. One gets there in 0.3 s but overshoots by 40 %; the other takes 2 s and never overshoots. Which is better?
Why should I care?
'It works' is not a specification. Rise time, overshoot, settling time and steady-state error turn 'good control' into numbers that a customer can ask for and a test can check.
- Measure rise time, overshoot, settling time and steady-state error from a step response.
- Tune a PID controller on a simulated joint to meet a written specification.
- Calculate metrics for a P-controlled first-order plant from its parameters.
Predict
On a springy joint, you raise Kp in a P controller. What happens to overshoot?
- It falls
- It rises
- It stays the same
Guess first, then reveal
It rises. More gain means a harder push, so the joint arrives faster and swings further past the target. Derivative action is the usual way to add damping back.
Discover
Start with P only and find out why it cannot meet the spec. Then switch to PID and meet all three specs, changing one gain at a time. Record every setting you try in a table with its four metrics.
What the interactive shows (text version)
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.
Watch (optional)
Watch for: Note the order in which the presenter adjusts the gains, and how each change shows up in the response.
Walks through tuning a real loop step by step and what each gain does to the response.
“A PID Tuning Guide | Understanding PID Control, Part 4” by MATLAB (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Four numbers for one curve
Rise time: how long the output takes to go from 10 % to 90 % of its final value. Overshoot: how far the peak passes the final value, as a percentage. Settling time: when the output enters and stays within a band (often ±2 %) of the final value. Steady-state error: setpoint minus final value.
First-order plants under P
A first-order plant (time constant τ) under P control behaves like a faster first-order system with τcl = τ/(1 + K·Kp). It never overshoots. Its rise time is τcl·ln 9 ≈ 2.2·τcl and its 2 % settling time τcl·ln 50 ≈ 3.9·τcl. Its final value is K·Kp/(1 + K·Kp).
Second-order plants ring
A springy joint is second-order. Its overshoot depends on its damping ratio ζ: overshoot ≈ exp(−πζ/√(1 − ζ²)) × 100 %. ζ = 0.25 gives about 44 %; ζ = 0.7 about 5 %. P gain makes it faster but less damped; derivative action adds damping.
Explain it another way
Intuitive
Parking a car: rise time is how quickly you get near the space, overshoot is how far you roll past it, settling is when you stop shuffling, and steady-state error is how far from the kerb you end up.
Technical
Metrics are read from the response to a unit step. Rise and settling describe speed, overshoot describes damping, steady-state error describes accuracy. Specifications usually bound all of them at once because improving one often worsens another.
Mathematical
First-order with P: τcl = τ/(1 + Kp) for K = 1. τ = 1 s, Kp = 4: τcl = 0.2 s, rise ≈ 0.44 s, settling ≈ 0.78 s, final value 0.8.
Applied
Joint servos in robot arms are commissioned against exactly these numbers: overshoot limits protect the gripper and the part, settling time sets the cycle time.
Worked example 1
A logged step to 90° peaks at 99° and settles at 90°. Find the overshoot.
(99 − 90)/90 × 100 = 10 %.
Common mix-ups
The fastest response is the best response.
✓ Speed usually costs overshoot, effort or noise sensitivity; 'best' means meeting the whole specification.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Find two different PID tunings that both pass the joint specification. Report all four metrics for each in a table and argue which you would ship, considering what the lab does not model (noise, torque limits).
Reflect
Which metric would a user of this joint notice first, and which would only an engineer notice?
Write your answer on paper or in your own notes. Lite never stores what you write.