—KK = 2.5G(s)—feedbackω 1.00
0.1110100-60-40-2002040ω (rad/s)dBBODE MAGNITUDE |L(jω)|K/ωK = 2.5K = 25−20 dB/dec−40−60440Kv = 2.5ωc 2.19ωc 9.470.1110100-270-225-180-135-90ω (rad/s)degBODE PHASE ∠L(jω)any K > 0−180°near −90°: one 1/s58.2°9.6°012345600.511.5t (s)angleCLOSED LOOP: UNIT STEPK = 2.5K = 2510% over76% over
Lit wire with moving dashes: a signal is flowing along itBlocks: source, compare junction, controller K, plant (motor + dish), meter, feedback switchPill on the wires: the test signal (its frequency) or, with the loop closed, the outputPlots: Bode magnitude and phase of L, and closed-loop step responses, computed from the modelA unity-feedback loop: a gain K drives a motor that turns a dish, G(s) = 1/(s(1 + s/4)(1 + s/40)). With the feedback switch open, sine tests measure the open loop L = K·G; with it closed, a step tests the closed loop. The Bode magnitude and phase of L and the closed-loop step responses are computed from the model as the steps play. "ωc sets the speed" is a rule of thumb, not an equation: the closed-loop bandwidth is usually between ωc and about twice ωc. The lesson on bandwidth makes this precise.

Shake the open loop

  1. A gain K = 2.5 drives a motor that turns a dish. To judge the closed loop, we first open the feedback switch and test the open loop L(s) = K·G(s) alone: shake its input, watch its output.

Read the low end

Read the crossover

Close the loop

What is happening

# step 1/11 · loop
# about: Signal source, Compare r − y, Controller K, Plant G(s), Output meter, Feedback switch

plant    G(s) = 1 / ( s (1 + s/4) (1 + s/40) )
control  K = 2.5
open loop    L(s) = K G(s)
closed loop  T(s) = L / (1 + L)

Everything about T can be read from L.
So we measure L, with the switch open.

The plant is an illustrative motor and dish, G(s) = 1/(s(1 + s/4)(1 + s/40)), not a real datasheet. Every curve in the figure is computed from it: the Bode plots from L(jω), the step responses by integrating the closed-loop equation (RK4, 1 ms steps). The Python on the steps is plain Python 3 with the cmath and math modules. python-control computes the same numbers with control.bode_plot and control.margin.