ENع
←Bandwidth, speed and noise
Lesson 35 · Frequency response

Bandwidth, speed and noise

16 min9 steps5 questionsAdvanced
About this lesson

A feedback loop follows slow signals and ignores fast ones. The frequency where that changes is its bandwidth. Read it off the open-loop crossover, see why doubling it halves the rise time, and watch the same wide bandwidth let sensor noise straight through to the output.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 35 · Interactive
01 / 09

A loop with a noisy sensor

A unity-feedback loop. Controller and plant together are L(s) = 4/(s(s+2)). The output y should follow the reference r, but the sensor that measures y adds a little noise n. With the loop closed, y = T·r, where T = L/(1 + L).

open loop     L(s) = 4 / (s(s + 2))
closed loop   T(s) = L / (1 + L)
                   = 4 / (s² + 2s + 4)
              ωn = 2 rad/s, ζ = 0.5

the sensor reports y + n, so the error is
  e = r − (y + n)
and  y = T·r − T·n

T(0) = 1: L has a 1/s (an integrator),
so a slow r is followed exactly.
Loading figure…
or ← →
Read the lesson step by step
  1. A loop with a noisy sensor

    A unity-feedback loop. Controller and plant together are L(s) = 4/(s(s+2)). The output y should follow the reference r, but the sensor that measures y adds a little noise n. With the loop closed, y = T·r, where T = L/(1 + L).

    open loop     L(s) = 4 / (s(s + 2))
    closed loop   T(s) = L / (1 + L)
                       = 4 / (s² + 2s + 4)
                  ωn = 2 rad/s, ζ = 0.5
    
    the sensor reports y + n, so the error is
      e = r − (y + n)
    and  y = T·r − T·n
    
    T(0) = 1: L has a 1/s (an integrator),
    so a slow r is followed exactly.
  2. Shake the reference

    Sweep the sine r upward in frequency. Slow sines pass full size: |T| = 0 dB (×1). Fast ones come out small, late. The closed-loop Bode plot draws itself (gain in dB against log ω; see the Circuits lesson on transfer functions and Bode plots).

    # decibels: dB = 20·log10(gain)
    #   0 dB = ×1, −3 dB = ×0.708, −20 dB = ×0.1
    # |T(jω)| of the closed loop, pure Python
    import math
    def T(w):
        return 4 / (4 - w*w + 2j*w)
    for w in [0.1, 1, 2, 4, 10, 40]:
        print(w, round(20*math.log10(abs(T(w))), 1))
    
     ω (rad/s)   |T| (dB)
     0.1           0.0
     1             0.9
     2             0.0
     4           −11.1
     10          −27.8
     40          −52.0
    
    peak 1.155 (a small bump) near 1.41 rad/s
  3. Bandwidth: where tracking fades

    The closed-loop bandwidth ωBW is the frequency where |T| has fallen 3 dB below its low-frequency value, to about 0.71 of it. Here ωBW = 2.54 rad/s, and y swings only about 0.71 as far as r. Above it, y shrinks fast.

    bandwidth: first ω where |T(jω)| is 3 dB below |T(0)|
      −3 dB = ×0.708 (the half-power point
      1/√2 = 0.707 is −3.01 dB: same ωBW to 0.1 %)
    
    for T = ωn²/(s² + 2ζωn s + ωn²):
      ωBW = ωn·√((1 − 2ζ²) + √(4ζ⁴ − 4ζ² + 2))
          = 2·√(0.5 + √1.25)
          = 2.54 rad/s
    
    r = sin(2.54 t)  →  y = 0.71·sin(…, later)
  4. Read it off the open loop

    You can estimate ωBW without T. On the open-loop Bode plot, |L| crosses 0 dB at ωc = 1.57 rad/s. As a rule, ωBW lies between ωc and 2ωc; here it is 1.62·ωc. A higher crossover frequency means a wider bandwidth.

    crossover ωc: |L(jω)| = 1 (0 dB)
      4 / (ω·√(ω² + 4)) = 1
      ω⁴ + 4ω² − 16 = 0
      ω² = −2 + √20   →  ωc = 1.57 rad/s
    
    phase margin = 180° − 90° − atan(ωc/2)
                 = 51.8°
    
    ωBW / ωc = 2.54 / 1.57 = 1.62
    rule: ωc ≤ ωBW ≤ 2ωc
  5. Bandwidth sets speed

    Now step r from 0 to 1. y climbs from 10 % to 90 % in tr = 0.82 s and overshoots 16.3 %. Rise time and bandwidth are tied: for this shape of loop, ωBW × tr ≈ 2.1. Wider bandwidth, faster rise.

    unit step, design 1 (ωn = 2, ζ = 0.5)
      y(t) = 1 − e^(−t)·(cos 1.73t + 0.577·sin 1.73t)
    
    10–90 % rise time   tr = 0.82 s
    overshoot           16.3 %
    
    ωBW · tr = 2.54 × 0.82 ≈ 2.1
    same ζ, double ωBW → half the rise time
  6. Twice the bandwidth, twice the speed

    Swap in L(s) = 16/(s(s+4)). Crossover doubles to 3.14 rad/s and ωBW to 5.08 rad/s. The step keeps its shape: phase margin 51.8° and 16.3 % overshoot, as in From phase margin to overshoot. It just runs twice as fast: tr = 0.41 s.

    design 2   L2(s) = 16 / (s(s + 4)) = L1(s/2)
               T2(s) = 16 / (s² + 4s + 16)
               ωn = 4 rad/s, ζ = 0.5 (same)
    
                design 1   design 2
     ωc         1.57       3.14  rad/s
     ωBW        2.54       5.08  rad/s
     tr         0.82 s     0.41 s
     overshoot  16.3 %     16.3 %
     phase m.   51.8°      51.8°
  7. The loop obeys its sensor

    The loop only sees y + n. It cannot tell noise from a real error, so it steers against the noise too. Noise reaches the output through the same T: y = T·r − T·n. Whatever T passes from r, it passes from n.

    e = r − (y + n)
    y = L·e = L·r − L·y − L·n
    y·(1 + L) = L·(r − n)
    y = T·r − T·n
    
    low ω:  |T| ≈ 1, the noise goes straight to y
    high ω: |T| small, the noise is blocked
    
    sensor hum here: n(t) = 0.3·sin(8t)
  8. Wide bandwidth lets noise in

    The sensor hums at 8 rad/s with amplitude 0.3. Design 1 passes |T| = 0.064 of it: a ripple of ±0.019 on y. Design 2, with twice the bandwidth, passes 0.277: a ripple of ±0.083, 4.3 times bigger.

    def T(w, a):
        return 4*a*a / (4*a*a - w*w + 2j*a*w)
    for a in (1, 2):
        print(a, round(0.3 * abs(T(8, a)), 3))
    
     design 1: |T(j8)| = 0.064 (−23.8 dB) → ±0.019
     design 2: |T(j8)| = 0.277 (−11.1 dB) → ±0.083
    
    faster loop, noisier output
  9. Choose the bandwidth

    So bandwidth is a trade. Make ωBW high enough to follow the signals you care about and to respond quickly, but keep it well below the frequencies where sensor noise lives. In python-control, control.bandwidth(T) finds it.

    # find the -3 dB bandwidth by bisection
    import math
    def gain(w, a):
        return abs(4*a*a / (4*a*a - w*w + 2j*a*w))
    def bandwidth(a):
        lo, hi = 0.0, 100.0
        for _ in range(60):
            mid = (lo + hi) / 2
            if gain(mid, a) > 10 ** (-3 / 20):
                lo = mid
            else:
                hi = mid
        return lo
    print(round(bandwidth(1), 2))   # 2.54
    print(round(bandwidth(2), 2))   # 5.08
    
    # python-control: control.bandwidth(T)

Quiz Unlocks after the last step.