TactivergeLite

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?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

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.

Predict

On a springy joint, you raise Kp in a P controller. What happens to overshoot?

  1. It falls
  2. It rises
  3. 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.

You can also open the interactive on the full site when you have a faster connection.

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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

%

s

%

Practice 4. A pick-and-place arm must not hit the part it is placing. Which metric matters most for that?
Practice 5. In the PID joint lab, the response meets the error spec but rings for too long. Which change most directly helps?
Practice 6. Why do specifications bound several metrics at once?

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.

← Why P control always falls shortWhat I and D buy, and what they cost →