Introduction
In this part we’ll see how we define a general feedback loop.
General controller structure
Assume the general structure for a feedback loop.
However, we now have some noise that is added (in theory the sign can be whatever) to our out signal. Additionally, the noise, V ( s ) V(s) V ( s ) will go through a process, G v ( s ) G_v(s) G v ( s ) .
Along with this noise we have some noise in the feedback loop as well, so-called measurement error. We’ll call the new feedback signal for Y m = Y ( s ) − W ( s ) Y_m = Y(s) - W(s) Y m = Y ( s ) − W ( s ) , where W ( s ) W(s) W ( s ) is the extra noise.
Mathematically we will describe this as:
E ( s ) = R ( s ) − Y m ( s ) = R ( s ) − ( Y ( s ) − W ( s ) ) = R ( s ) − Y ( s ) + W ( s ) \begin{align*}
E(s) & = R(s) - Y_m(s) \newline
& = R(s) - (Y(s) - W(s)) \newline
& = R(s) - Y(s) + W(s)
\end{align*} E ( s ) = R ( s ) − Y m ( s ) = R ( s ) − ( Y ( s ) − W ( s )) = R ( s ) − Y ( s ) + W ( s )
Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) [ R ( s ) − Y ( s ) + W ( s ) ] Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) − F ( s ) G ( s ) Y ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) + F ( s ) G ( s ) Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) ( 1 + F ( s ) G ( s ) ) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) ( 1 + L ( s ) ) = G v ( s ) V ( s ) + L ( s ) R ( s ) + L ( s ) W ( s ) Y ( s ) = 1 1 + L ( s ) G v ( s ) V ( s ) + L ( s ) 1 + L ( s ) R ( s ) + L ( s ) 1 + L ( s ) W ( s ) Y(s) = G_v(s)V(s) + F(s)G(s) [R(s) - Y(s) + W(s)] \newline
Y(s) = G_v(s)V(s) + F(s)G(s)R(s) - F(s)G(s)Y(s) + F(s)G(s)W(s) \newline
Y(s) + F(s)G(s)Y(s) = G_v(s)V(s) + F(s)G(s)R(s) + F(s)G(s)W(s) \newline
Y(s)(1 + F(s)G(s)) = G_v(s)V(s) + F(s)G(s)R(s) + F(s)G(s)W(s) \newline
Y(s)(1 + L(s)) = G_v(s)V(s) + L(s)R(s) + L(s)W(s) \newline
Y(s) = \dfrac{1}{1 + L(s)} G_v(s)V(s) + \dfrac{L(s)}{1 + L(s)} R(s) + \dfrac{L(s)}{1 + L(s)} W(s) \newline Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) [ R ( s ) − Y ( s ) + W ( s )] Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) − F ( s ) G ( s ) Y ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) + F ( s ) G ( s ) Y ( s ) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) ( 1 + F ( s ) G ( s )) = G v ( s ) V ( s ) + F ( s ) G ( s ) R ( s ) + F ( s ) G ( s ) W ( s ) Y ( s ) ( 1 + L ( s )) = G v ( s ) V ( s ) + L ( s ) R ( s ) + L ( s ) W ( s ) Y ( s ) = 1 + L ( s ) 1 G v ( s ) V ( s ) + 1 + L ( s ) L ( s ) R ( s ) + 1 + L ( s ) L ( s ) W ( s )
Definition 1 (Sensitivity functions) Let’s denote 1 1 + L ( s ) \dfrac{1}{1 + L(s)} 1 + L ( s ) 1 as S ( s ) S(s) S ( s ) , weird notation, but let’s go with it.
Let’s denote L ( s ) 1 + L ( s ) \dfrac{L(s)}{1 + L(s)} 1 + L ( s ) L ( s ) as T ( s ) T(s) T ( s ) .
We call S ( s ) S(s) S ( s ) for the sensitivity function. T ( s ) T(s) T ( s ) is called for the complementary sensitivity function.
Meaning that:
S ( s ) + T ( s ) = 1 ∣ Not hard to see S(s) + T(s) = 1 \ | \ \text{Not hard to see} S ( s ) + T ( s ) = 1 ∣ Not hard to see
We also have a name for G v ( s ) 1 + L ( s ) = G v ( s ) S ( s ) \dfrac{G_v(s)}{1 + L(s)} = G_v(s) S(s) 1 + L ( s ) G v ( s ) = G v ( s ) S ( s ) , noise-sensitivity function.
What is the error in E ( s ) E(s) E ( s ) ?
The impact from R ( s ) R(s) R ( s ) of the overall error is found by setting V ( s ) = 0 , W ( s ) = 0 V(s) = 0, W(s) = 0 V ( s ) = 0 , W ( s ) = 0
If we wanted to know the impact from V ( s ) V(s) V ( s ) we set the others to 0.
E ( s ) = R ( s ) − Y ( s ) = R ( s ) − T ( s ) R ( s ) = R ( s ) ( 1 − T ( s ) ) = R ( s ) S ( s ) \begin{align*}
E(s) & = R(s) - Y(s) \newline
& = R(s) - T(s)R(s)
& = R(s)(1 - T(s))
& = R(s)S(s)
\end{align*} E ( s ) = R ( s ) − Y ( s ) = R ( s ) − T ( s ) R ( s ) = R ( s ) ( 1 − T ( s )) = R ( s ) S ( s )
If we want y ( t ) y(t) y ( t ) to follow r ( t ) r(t) r ( t ) , S ( s ) S(s) S ( s ) needs to be small, which is equivalent to saying T ( s ) T(s) T ( s ) should be “large”.
Let’s do an actual example now.
Example 1 We have a car system, where y ( t ) y(t) y ( t ) is velocity of the car. F d ( t ) F_d(t) F d ( t ) is a traction force. u ( t ) u(t) u ( t ) is throttle.
In the s s s -domain we have:
Y ( s ) = 5 1 + 5 s F d ( s ) Y(s) = \dfrac{5}{1 + 5s} F_d(s) Y ( s ) = 1 + 5 s 5 F d ( s ) F d ( s ) = 0.1 1 + s U ( s ) F_d(s) = \dfrac{0.1}{1 + s}U(s) F d ( s ) = 1 + s 0.1 U ( s ) U ( s ) = ( 1 + s ) F d ( s ) 0.1 U(s) = \dfrac{(1 + s)F_d(s)}{0.1} U ( s ) = 0.1 ( 1 + s ) F d ( s ) The car has a cruise control - this is a feedback loop with a PI-controller.
F ( s ) = K p ⋅ 1 + T i s T i s F(s) = K_p \cdot \dfrac{1 + T_i s}{T_i s} F ( s ) = K p ⋅ T i s 1 + T i s We know that the transfer function from throttle → \rarr → velocity is:
G ( s ) = Y ( s ) U ( s ) = 5 1 + 5 s F d ( s ) ( 1 + s ) F d ( s ) 0.1 = 0.5 ( 1 + 5 s ) ( 1 + s ) G(s) = \dfrac{Y(s)}{U(s)} = \dfrac{\dfrac{5}{1 + 5s} F_d(s)}{\dfrac{(1 + s)F_d(s)}{0.1}} = \dfrac{0.5}{(1 + 5s)(1 + s)} G ( s ) = U ( s ) Y ( s ) = 0.1 ( 1 + s ) F d ( s ) 1 + 5 s 5 F d ( s ) = ( 1 + 5 s ) ( 1 + s ) 0.5 The loop transfer function is therefore:
L ( s ) = F ( s ) G ( s ) = K p ⋅ 1 + T i s T i s ⋅ 0.5 ( 1 + 5 s ) ( 1 + s ) L(s) = F(s)G(s) = K_p \cdot \dfrac{1 + T_i s}{T_i s} \cdot \dfrac{0.5}{(1 + 5s)(1 + s)} L ( s ) = F ( s ) G ( s ) = K p ⋅ T i s 1 + T i s ⋅ ( 1 + 5 s ) ( 1 + s ) 0.5 If we choose a time constant, such as T i = 5 T_i = 5 T i = 5 , we get:
L ( s ) = F ( s ) G ( s ) = 0.1 K p s ( 1 + s ) L(s) = F(s)G(s) = \dfrac{0.1K_p}{s(1 + s)} L ( s ) = F ( s ) G ( s ) = s ( 1 + s ) 0.1 K p Let’s study S ( s ) S(s) S ( s ) and T ( s ) T(s) T ( s ) now.
S ( s ) = 1 1 + L ( s ) = 1 1 + 0.1 K p s ( 1 + s ) = s ( 1 + s ) s ( 1 + s ) + 0.1 K p = s 2 + s s 2 + s + 0.1 K p S(s) = \dfrac{1}{1 + L(s)} = \dfrac{1}{1 + \dfrac{0.1K_p}{s(1 + s)}} = \dfrac{s(1 + s)}{s(1 + s) + 0.1K_p} = \dfrac{s^2 + s}{s^2 + s + 0.1K_p} S ( s ) = 1 + L ( s ) 1 = 1 + s ( 1 + s ) 0.1 K p 1 = s ( 1 + s ) + 0.1 K p s ( 1 + s ) = s 2 + s + 0.1 K p s 2 + s T ( s ) = L ( s ) 1 + L ( s ) = 0.1 K p s ( 1 + s ) 1 + 0.1 K p s ( 1 + s ) = 0.1 K p s ( 1 + s ) + 0.1 K p = 0.1 K p s 2 + s + 0.1 K p T(s) = \dfrac{L(s)}{1 + L(s)} = \dfrac{\dfrac{0.1K_p}{s(1 + s)}}{1 + \dfrac{0.1K_p}{s(1 + s)}} = \dfrac{0.1K_p}{s(1 + s) + 0.1K_p} = \dfrac{0.1K_p}{s^2 + s + 0.1K_p} T ( s ) = 1 + L ( s ) L ( s ) = 1 + s ( 1 + s ) 0.1 K p s ( 1 + s ) 0.1 K p = s ( 1 + s ) + 0.1 K p 0.1 K p = s 2 + s + 0.1 K p 0.1 K p We can view this as a second-order system.
ω n = 0.1 K p \omega_n = \sqrt{0.1K_p} ω n = 0.1 K p ζ = 1 2 ω n = 1 2 0.1 K p \zeta = \dfrac{1}{2 \omega_n} = \dfrac{1}{2 \sqrt{0.1K_p}} ζ = 2 ω n 1 = 2 0.1 K p 1