Chapter 9

Compensators and PID control

Compensation changes the loop's gain and phase to meet accuracy, speed and stability requirements. Always recompute the final crossover or characteristic roots; a desired phase addition alone does not prove that the compensated loop meets its target.

9.1 P, PI, PD and PID forms

Past papers · EE 2020–2026 (7 papers): 1 question, 1 mark

Controller constants are written with lowercase kk to distinguish them from the static error constants. The ideal parallel PID acts on error; real derivative action needs a high-frequency roll-off.

ControllerTransfer functionMain algebraic effect
PkPk_PChanges loop gain; no added pole or zero
PIkP(s+1/TI)/sk_P(s+1/T_I)/sAdds an origin pole and an LHP zero for positive gains
PDkP(1+TDs)k_P(1+T_Ds)Adds an LHP zero; ideal gain grows without bound
PID(kDs2+kPs+kI)/s(k_Ds^2+k_Ps+k_I)/sAdds an origin pole and two numerator roots when kD≠0k_D\ne0

At a stable constant-output equilibrium with finite nonzero plant DC gain P(0)P(0) and no disturbance, u∞=y∞/P(0)u_\infty=y_\infty/P(0). The required actuation can be negative even when the desired output is positive.

Integral action can remove constant tracking error if the resulting closed loop is stable and the actuator can supply the required input. Derivative action does not change DC loop gain; it reacts strongly to measurement noise. A step reference gives an ideal derivative impulse when differentiation acts on error. Differentiating the measured output avoids that reference kick but changes the reference-to-output numerator.

Saturation can accumulate integral error (“windup”). Limiting or correcting that accumulated state is anti-windup. No universal rule says that increasing one PID gain always improves rise time, overshoot or settling time for every plant.

9.2 PID characteristic equation and design checks

Past papers · EC 2020–2026 (7 papers): 3 questions, 6 marks

Write the closed-loop characteristic equation explicitly before interpreting controller effects. This also makes it clear when a derivative filter or a pole-zero cancellation changes the order.

For kI=0k_I=0, the P/PD characteristic polynomial is

s2+(a1+b0kD)s+(a2+b0kP).s^2+(a_1+b_0k_D)s+(a_2+b_0k_P).

For a specified pair −σ±jωd-\sigma\pm j\omega_d, match a1+b0kD=2σa_1+b_0k_D=2\sigma and a2+b0kP=σ2+ωd2a_2+b_0k_P=\sigma^2+\omega_d^2, with b0≠0b_0\ne0. Here σ>0\sigma>0 and ωd≥0\omega_d\ge0 have units s−1^{-1}. For a target PID cubic s3+c1s2+c2s+c3s^3+c_1s^2+c_2s+c_3, similarly match the three coefficients in the box; cic_i has units s−i^{-i}. Numerator zeros can still change overshoot even when the poles match.

If kI=0k_I=0, remove the unused controller integrator before applying the stability test: the physical P/PD loop is second order. If the derivative is filtered, form the new characteristic polynomial including 1+Tfs1+T_fs rather than reusing the cubic above.

9.3 Lead compensationECEE

Past papers · EC 2020–2026 (7 papers): 1 question, 2 marks · EE 2020–2026 (7 papers): 1 question, 2 marks

A lead network places its zero nearer the origin than its pole. It provides a positive phase interval and increases the high-frequency gain relative to DC, so it can raise bandwidth while also amplifying high-frequency noise.

For a chosen new crossover ωc\omega_c, set τ=1/(ωcα)\tau=1/(\omega_c\sqrt\alpha) if the phase maximum should occur there. Then enforce ∣Cc(jωc)P(jωc)H(jωc)∣=1|C_c(j\omega_c)P(j\omega_c)H(j\omega_c)|=1. The plant phase at the new crossover must be used; moving the crossover usually changes the plant's phase contribution.

9.4 Lag and lead–lag compensationECEE

A lag network places its pole nearer the origin than its zero. It can increase low-frequency loop gain relative to crossover gain, improving static accuracy while introducing a negative phase interval.

To approximately preserve crossover gain while raising the low-frequency gain by β\beta, use Kc=βK_c=\beta and place both lag corners well below crossover. This is a design approximation; check the residual phase lag. A finite lag network changes an error constant but does not increase system type.

9.5 Passive RC implementationsECEE

Use impedance division to identify the pole, zero and attenuation of an unloaded network. A lead network can provide phase lead while its voltage magnitude remains below one; “lead” does not mean voltage amplification.

For lead, τ=R1C\tau=R_1C, α=R2/(R1+R2)\alpha=R_2/(R_1+R_2) and Kc=αK_c=\alpha in 9.3. For lag, τ=R2C\tau=R_2C, β=(R1+R2)/R2\beta=(R_1+R_2)/R_2 and Kc=1K_c=1 in 9.4. The time constants are in seconds. Cascading passive sections without a buffer changes loading, so their isolated transfer functions cannot simply be multiplied.

Two unloaded voltage-divider topologies realise phase lead and phase lag.Two unloaded voltage-divider topologies realise phase lead and phase lag.

Last-minute recall

  • P scales the error; I accumulates it; D responds to its rate of change.
  • Integral action removes constant error only when the resulting loop settles.
  • A controller's gain units depend on both input and output signal units.
  • kP,kI,kDk_P,k_I,k_D and TI,TDT_I,T_D are different parameterisations.
  • Compare characteristic coefficients to obtain desired poles.
  • Recheck order when integral action is removed or derivative filtering is added.
  • Noise and actuator saturation can defeat an ideal PID design.

Revise offline: the whole Control Systems handbook as one PDF

53 pages · 1.9 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections