Skip to main content

Digital PD controller design for plant 1/s²

Short answer

With T=0.1s, plant G(z)=0.005(z+1)/(z-1)^2. Desired poles are 0.7701±j0.2780. PD controller G_D(z)=42.78(z-0.7706)/z, giving K_P=9.81, K_D=32.97. Difference equation: u(k)=42.78e(k)-32.97e(k-1).

Design a digital proportional-plus-derivative controller for the plant as shown in figure below. It is desired that the damping ratio ζ of the dominant closed loop poles be 0.5 and the undamped natural frequency be 4 rad/sec. The sampling period is 0.1 sec. [Figure: R(z) → summing junction → sampler (T) → digital PD controller → ZOH (1-e⁻ᵀˢ)/s → 1/s² → C(z); feedback path H(s) (unity in the 2080 paper)]

Step 1: Plant with ZOH (T=0.1T = 0.1 s)

G(z)=(1−z−1) Z[1s3]=(1−z−1)T2z(z+1)2(z−1)3=T2(z+1)2(z−1)2=0.005(z+1)(z−1)2G(z) = (1-z^{-1})\,\mathcal{Z}\left[\frac{1}{s^3}\right] = (1-z^{-1})\frac{T^2z(z+1)}{2(z-1)^3} = \frac{T^2(z+1)}{2(z-1)^2} = \frac{0.005(z+1)}{(z-1)^2}

Step 2: Desired closed-loop poles

With ζ=0.5\zeta = 0.5 and ωn=4\omega_n = 4:

ζωn=2,ωd=40.75=3.464 rad/s∣z∣=e−ζωnT=e−0.2=0.8187∠z=ωdT=0.3464 rad=19.85∘z1=0.7701+j0.2780\begin{aligned} \zeta\omega_n &= 2, \qquad \omega_d = 4\sqrt{0.75} = 3.464\ \text{rad/s} \\ |z| &= e^{-\zeta\omega_nT} = e^{-0.2} = 0.8187 \\ \angle z &= \omega_dT = 0.3464\ \text{rad} = 19.85^\circ \\ z_1 &= 0.7701 + j0.2780 \end{aligned}

Step 3: Digital PD controller

GD(z)=KP+KD(1−z−1)=(KP+KD)z−αz=Kz−αz,α=KDKP+KDG_D(z) = K_P + K_D(1-z^{-1}) = (K_P+K_D)\frac{z - \alpha}{z} = K\frac{z-\alpha}{z}, \qquad \alpha = \frac{K_D}{K_P+K_D}

Step 4: Angle condition at z1z_1

FactorAngle
plant zero at −1-1+8.92∘+8.92^\circ
double plant pole at 11−2(129.59∘)=−259.19∘-2(129.59^\circ) = -259.19^\circ
controller pole at 00−19.85∘-19.85^\circ
Sum−270.11∘-270.11^\circ

For a total of −180∘-180^\circ, the controller zero must give +90.11∘+90.11^\circ:

α=0.7701−0.2780tan⁡90.11∘=0.7706\alpha = 0.7701 - \frac{0.2780}{\tan 90.11^\circ} = 0.7706

The zero lies almost directly below the desired pole.

Step 5: Magnitude condition

K=∣z1∣ ∣z1−1∣20.005 ∣z1+1∣ ∣z1−0.7706∣=0.8187×0.360720.005×1.7918×0.2780=42.78K = \frac{|z_1|\,|z_1-1|^2}{0.005\,|z_1+1|\,|z_1-0.7706|} = \frac{0.8187 \times 0.3607^2}{0.005 \times 1.7918 \times 0.2780} = 42.78 GD(z)=42.78 z−0.7706z=42.78 (1−0.7706z−1)G_D(z) = 42.78\,\frac{z - 0.7706}{z} = 42.78\,(1 - 0.7706z^{-1})

Step 6: PD gains

KP+KD=42.78,KD=Kα=32.97,KP=K(1−α)=9.81K_P + K_D = 42.78, \qquad K_D = K\alpha = 32.97, \qquad K_P = K(1-\alpha) = 9.81

Step 7: Check

1+GDG=0  ⇒  z3−1.7861z2+1.0491z−0.1648=01 + G_DG = 0 \;\Rightarrow\; z^3 - 1.7861z^2 + 1.0491z - 0.1648 = 0

The roots are z=0.7701±j0.2780z = 0.7701 \pm j0.2780 (the desired pair) and z=0.2459z = 0.2459. The third pole is much closer to the origin, so it decays fast, and the complex pair is dominant. ✔

Answer: GD(z)=42.78z−0.7706zG_D(z) = 42.78\dfrac{z-0.7706}{z}, i.e. KP=9.81K_P = 9.81 and KD=32.97K_D = 32.97. The difference equation is u(k)=42.78e(k)−32.97e(k−1)u(k) = 42.78e(k) - 32.97e(k-1).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Control System chapter 4 questions →