TactivergeLite

Lite / Engineering Complex Systems / Week 16

More gain, less damping

On a first-order plant, cranking up P gain only helps. On a robot joint with inertia, it makes it shake. What's different?

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

Why should I care?

This is the classic control trade-off: gain buys speed and accuracy but costs damping. Knowing exactly how much lets you choose a gain on paper, and see why almost every motion controller adds D.

Predict

A joint has ζ = 0.9 on its own. You close a P loop with KKp = 8. Roughly what overshoot do you expect?

  1. None
  2. About 5 %
  3. About 37 %
  4. It goes unstable
Guess first, then reveal

ζcl = 0.9/√9 = 0.3, and %OS(0.3) ≈ 37 %. A well-damped plant becomes a bouncy loop. It still won't go unstable in continuous time, but it rings.

Discover

Choose P, actuator limit None. Raise Kp from 1 to 15 and note the overshoot. The plant has ζ = 0.7 and K = 1: predict each overshoot from ζ/√(1 + Kp) before reading it.

What the interactive shows (text version)

In the PID tuner with P control and no actuator limit, Kp = 1 gives a small overshoot. As Kp rises to 15, the response rises faster, settles closer to the set point and overshoots more, with visible ringing.

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

Understand

The algebra

Plant τ²ÿ + 2ζτẏ + y = K·u with u = Kp·(r − y) gives τ²ÿ + 2ζτẏ + (1 + KKp)·y = KKp·r. Matching to the standard form: ωn,cl = √(1 + KKp)/τ and ζcl = ζ/√(1 + KKp). The stiffness went up; the damping didn't.

What it feels like

Raising Kp is like fitting a stiffer spring to the joint: it springs back faster and harder, so it overshoots. The steady error still falls as 1/(1 + KKp). You trade accuracy against wobble.

Derivative action is extra damping

A D term adds a force proportional to velocity: exactly what a physical damper does. With u = Kp·e − Kd·ẏ, the ẏ coefficient grows from 2ζτ to 2ζτ + K·Kd, raising ζcl back up. That's why motion controllers are almost always PD or PID.

Explain it another way

Intuitive

P control is a spring tying the output to the target. A stiffer spring pulls it there faster but bounces more. D control is a shock absorber.

Technical

Closed-loop poles −ζωn,cl ± jωn,cl√(1 − ζcl²) with ζcl·ωn,cl = ζ/τ unchanged: P control moves the poles vertically. Decay rate stays fixed; oscillation frequency rises.

Mathematical

ζ = 0.9, KKp = 8: ζcl = 0.3, OS = 100·exp(−0.3π/√0.91) = 37.2 %. For OS ≤ 10 % you need ζcl ≥ 0.59, i.e. 1 + KKp ≤ (0.9/0.59)² = 2.33: KKp ≤ 1.33.

Applied

Hobby servo motors and drone attitude loops show this directly: turn the P gain up and the arm or drone starts to jitter; adding D calms it.

Worked example 1

Plant ζ = 0.8, K = 1. Which Kp gives ζcl = 0.4?

0.8/√(1 + Kp) = 0.4 → √(1 + Kp) = 2 → Kp = 3. Expected overshoot 25 %.

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.

%

%

Practice 4. When you raise Kp on a second-order plant, which stays the same?
Practice 5. Your P-controlled joint overshoots 35 %. Which change reduces overshoot while keeping the gain?

Apply it

In the PID tuner, find the largest Kp that keeps overshoot under 10 % with P only. Then add D and find how much more Kp you can use for the same overshoot. Report both.

Reflect

Why do you think the decay rate doesn't change when you raise P gain?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Feedback makes it fasterI removes the error, D adds the damping →