---
title: "Problem set 12: control systems in practice"
heading: "Problem set 12: heaters, motors, converters, PLLs, op amps and pendulums as control problems, with sensor noise, encoder resolution, actuator limits and computation delay"
eyebrow: S9 · Problem set 12
type: problems
---

::: hook
Control theory earns its keep on hardware. These problems put the course's ideas onto the systems an electrical engineer meets: thermal stages, motor current and speed loops, switching converters, phase-locked loops, op amps and balancing robots, and the sensors, actuators and processors that set the practical limits on every one of them.
:::

::: pool
pick: 12

::: check
kind: parts
given: R = 0.5 | 2 | 5; C = 20 | 100 | 400; P = 20 | 60; f = 0.5 | 0.8 | 0.95; let T = f*R*P

## A thermal stage has {R} K/W to ambient and {C} J/K of heat capacity, with a {P} W heater. It must rise {T} K above ambient.

::: part
answer: R*C
unit: s
tolerance: 0.5%

### What is its time constant?

::: misses
- [any] $R_\theta C_\theta$.
:::
:::

::: part
answer: -R*C*ln(1 - T/(R*P))
unit: s
tolerance: 0.5%

### At full power, how long does the rise take?

::: misses
- [any] $-\tau\ln(1 - \Delta T/(R_\theta P_\max))$.
:::
:::
:::

::: check
kind: parts
given: R = 0.5 | 2; L = 0.2 | 1 | 5; K = 0.02 | 0.1; J = 1e-5 | 1e-4

## A DC motor has R = {R} Ω, L = {L} mH, $K_t = K_e$ = {K} and J = {J} kg·m², with negligible friction.

::: part
answer: L*1e-3/R*1000
unit: ms
tolerance: 0.5%

### What is its electrical time constant?

::: misses
- [any] L/R.
:::
:::

::: part
answer: J*R/K^2*1000
unit: ms
tolerance: 0.5%

### And its mechanical time constant?

::: misses
- [J*R/K*1000] The torque and back-EMF constants both enter: $JR/K^2$.
- [any] $JR/(K_tK_e)$.
:::
:::
:::

::: check
kind: parts
given: L = 4.7 | 22 | 100; C = 10 | 47 | 220; R = 1 | 5 | 20

## A buck converter's output filter has L = {L} µH and C = {C} µF, feeding a {R} Ω load.

::: part
answer: 1/(2*pi*sqrt(L*1e-6*C*1e-6))/1e3
unit: kHz
tolerance: 0.5%

### Where is its double pole?

::: misses
- [1/sqrt(L*1e-6*C*1e-6)/1e3] That's in rad/s; divide by 2π.
- [any] $1/(2\pi\sqrt{LC})$.
:::
:::

::: part
answer: R*sqrt(C/L)
tolerance: 0.5%

### What is the resonance's Q?

::: misses
- [any] $R\sqrt{C/L}$ for a load across the capacitor.
:::
:::
:::

::: check
kind: parts
given: R = 5 | 10 | 50; L = 10 | 47; D = 0.3 | 0.5 | 0.7

## A boost converter drives {R} Ω at duty cycle {D} through {L} µH.

::: part
answer: R*(1 - D)^2/(L*1e-6)/(2*pi)/1e3
unit: kHz
tolerance: 0.5%

### Where is its right-half-plane zero?

::: misses
- [any] $\omega_z = R(1 - D)^2/L$.
:::
:::

::: part
answer: R*(1 - D)^2/(L*1e-6)/(2*pi)/1e3/2
unit: kHz
tolerance: 0.5%

### What crossover does the $z/2$ rule allow, at most?

::: misses
- [any] Half the zero's frequency.
:::
:::
:::

::: check
kind: parts
given: w = 100 | 1000 | 10000; z = 0.5 | 0.707 | 1

## A second-order PLL has $\omega_n$ = {w} rad/s and ζ = {z}.

::: part
answer: w/2*(z + 1/(4*z))
unit: Hz
tolerance: 0.5%

### What is its noise bandwidth?

::: misses
- [any] $B_L = \frac{\omega_n}{2}\left(\zeta + \frac{1}{4\zeta}\right)$.
:::
:::

::: part
answer: 4/(z*w)*1000
unit: ms
tolerance: 0.5%

### About how long does it take to settle after a frequency step?

::: misses
- [any] $4/(\zeta\omega_n)$.
:::
:::
:::

::: check
kind: parts
given: e = 0.01 | 0.1; f = 10 | 100 | 1000

## A loop's sensor adds white noise of {e} units/√Hz, and the closed loop T is first order with a {f} Hz bandwidth.

::: part
answer: e*sqrt(pi*f/2)
tolerance: 0.5%

### What rms noise reaches the output?

::: misses
- [e*sqrt(f)] A first-order response's noise bandwidth is π/2 times its 3 dB bandwidth.
- [any] $e_n\sqrt{\pi f_b/2}$.
:::
:::
:::

::: check
kind: parts
given: N = 500 | 2048 | 10000; T = 0.1 | 1

## An encoder gives {N} counts per revolution, and speed is estimated by differencing counts every {T} ms.

::: part
answer: 2*pi/N*1000
unit: mrad
tolerance: 0.5%

### What is the position resolution?

::: misses
- [any] $2\pi/N$.
:::
:::

::: part
answer: 2*pi/(N*T*1e-3)
unit: rad/s
tolerance: 0.5%

### What is the smallest nonzero speed estimate?

::: misses
- [any] One count per interval: $2\pi/(NT)$.
:::
:::
:::

::: check
kind: parts
given: G = 1 | 10 | 100; B = 1 | 10; A = 80 | 100 | 120

## An op amp with {B} MHz gain-bandwidth and {A} dB of DC gain is used as a noninverting amplifier with gain {G}.

::: part
answer: B*1e3/G
unit: kHz
tolerance: 0.5%

### What closed-loop bandwidth results?

::: misses
- [any] GBW over the noise gain.
:::
:::

::: part
answer: 100/(1 + 10^(A/20)/G)
unit: %
tolerance: 0.5%

### What is its DC gain error?

::: misses
- [any] $1/(1 + A_0\beta)$ with β = 1/G.
:::
:::
:::

::: check
kind: parts
given: L = 0.5 | 2 | 10; R = 0.2 | 1; f = 1 | 2 | 5

## A motor current loop's PI zero cancels the winding's pole (L = {L} mH, R = {R} Ω) to cross over at {f} kHz.

::: part
answer: 2*pi*f*1e3*L*1e-3
unit: Ω
tolerance: 0.5%

### What proportional gain, in volts per ampere?

::: misses
- [any] $K_p = \omega_cL$.
:::
:::

::: part
answer: 2*pi*f*1e3*R
unit: V/(A·s)
tolerance: 0.5%

### What integral gain, in volts per ampere-second?

::: misses
- [any] $K_i = \omega_cR$.
:::
:::
:::

::: check
kind: parts
given: l = 0.1 | 0.5 | 2

## A robot balances an inverted pendulum {l} m long.

::: part
answer: sqrt(9.81/l)
unit: rad/s
tolerance: 0.5%

### Where is the unstable pole?

::: misses
- [any] $\sqrt{g/l}$.
:::
:::

::: part
answer: 20*2*sqrt(9.81/l)/(2*pi)
unit: Hz
tolerance: 0.5%

### If the loop crosses over at twice the pole and samples 20 times faster than crossover, what sample rate is needed?

::: misses
- [any] $20 \times 2p/(2\pi)$.
:::
:::
:::

::: check
kind: parts
given: A = 10 | 20 | 30; f = 1 | 10 | 50

## A disturbance at {f} Hz must be attenuated by {A} dB by a loop with $L = \omega_c/s$.

::: part
answer: 10^(A/20) - 1
tolerance: 0.5%

### What |L| does that need at {f} Hz?

::: misses
- [10^(A/20)] $|S| = 1/|1 + L|$; at large L the difference is one.
- [any] $|1 + L| \ge 10^{A/20}$, so |L| about one less.
:::
:::

::: part
answer: (10^(A/20) - 1)*2*pi*f
unit: rad/s
tolerance: 0.5%

### What crossover does that require?

::: misses
- [any] $\omega_c = |L|\,\omega$.
:::
:::
:::

::: check
kind: parts
given: w = 100 | 1000 | 5000; T = 0.05 | 0.2 | 1; c = 0.02 | 0.1

## A digital controller samples every {T} ms and needs {c} ms to compute, applying its output as soon as it's ready; the loop crosses over at {w} rad/s.

::: part
answer: w*(T/2 + c)*1e-3*180/pi
unit: °
tolerance: 0.5%

### How much phase do the hold and the computation cost?

::: misses
- [w*(T + c)*1e-3*180/pi] The hold costs half a sample.
- [any] $\omega_c(T/2 + t_c)$.
:::
:::
:::

::: check
kind: parts
given: K = 0.5 | 2; t = 60 | 300; h = 10 | 30

## A furnace with gain K = {K} °C per percent of heater drive, τ = {t} s and θ = {h} s gets a SIMC PI with $\tau_c$ = θ.

::: part
answer: t/(2*K*h)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $\tau/(K(\tau_c + \theta))$.
:::
:::

::: part
answer: 5*h
unit: s
tolerance: 0.5%

### Roughly when does a setpoint step settle, the delay plus four closed-loop time constants?

::: misses
- [any] θ + 4τ_c.
:::
:::
:::

::: check
kind: parts
given: r = 0.5 | 5 | 50; d = 10 | 90

## A valve can change position at most {r}% per second and must move {d}%.

::: part
answer: d/r
unit: s
tolerance: 0.5%

### How long does the move take at best?

::: misses
- [any] Distance over rate.
:::
:::
:::

::: check
kind: choice

## A motor drives a load through a flexible shaft. Why is a position loop using the motor's encoder usually easier to make stable than one using a sensor on the load?

- [ ] Motor encoders are more accurate
- [x] The motor encoder is collocated with the actuator: between the motor torque and the motor position the shaft's resonance appears as a pole–zero pair that keeps the phase within bounds, while measuring the load puts the resonance between actuator and sensor with no compensating zeros, so the phase drops by 180° past it
- [ ] The load sensor is always noisier
- [ ] It isn't; both are equally easy

::: misses
- [1] Accuracy isn't the issue; phase is.
- [3] Noise can be filtered; the phase loss can't.
- [4] Non-collocated loops are much harder near the resonance.
:::
:::
:::
