Skip to content
Tactiverge

School/○ Innovator/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

1.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.

2.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.

Loading the interactive…

Can't use the interactive? 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.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

A joint is commanded to 90°. The log shows it peaks at 91.8° and finally settles at 90°. What is the percentage overshoot?

%

4.Predict

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

Guess first. Being wrong here is how the surprise works.

5.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

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.

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.

6.Watch

→ 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.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · 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.)

s

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

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?

8.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).

9.Reflect

Concepts: Stability, overshoot and delay · Tuning a PID controller