Winter 2017
At times I will encourage you to solve problems in groups.
Requests welcome, e.g. if you're studying for the midterm and something isn't making sense, let me know and I'll make time for it.
I will post discussion notes after Monday's discussion. (No need to copy slides during discussion.)
Laplace transform: tool for going from time domain to frequency domain
$\mathcal{L}\{f(t)\} = F(s) = \int_{0^-}^\infty f(t)e^{-st}dt$Ex. if $f(t) = e^{-at}u_s(t)$, $F(s) = \frac{1}{s+a}$
Step | Tool |
---|---|
1. Express system using diff. eq. | Physics |
2. Take $\mathcal{L}\{\cdot\}$ | Transform table |
3. Analyze | Algebra |
4. Take $\mathcal{L}^{-1}\{\cdot\}$ to obtain time signal | Partial fractions, transform table |
a. Find the transfer function.
b. Solve for the output $y(t)$ given the input $u(t) = u_s(t)$.
Assume zero initial conditions.
We still want to be able to find transfer functions.
Tools:
Part A: find a state-space representation of the transfer function:
Part B: find a state-space representation of the transfer function:
Go the other way: find the transfer function for the following state-space representation.
$$ \begin{align} \begin{bmatrix} \dot{x}_1 \\ \dot{x}_2 \\ \dot{x}_3 \end{bmatrix} &= \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ -a_3 & -a_2 & -a_1 \end{bmatrix}\begin{bmatrix} x_1 \\x_2 \\x_3 \end{bmatrix} + \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}u \\ y &= \begin{bmatrix} b_2 & b_1 & b_0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} \end{align} $$Reduce the block diagram and write its transfer function.
Linearization allows us to apply our powerful linear analysis tools to nonlinear systems locally. This is often enough to classify stability of equilibria, and even to design controllers.
Find the transfer function $\frac{E(s)}{U(s)}$.
Use block diagram reduction to find the transfer function $\frac{Y(s)}{U(s)}$.
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Consider the following nonlinear circuit:
Voltage across the nonlinear resistor is related to current as follows: \begin{align*} i(t) &= 2e^{0.1V_R(t)}. \end{align*} Find the differential equation modeling the circuit, then linearize any nonlinear terms. Assume a nominal input of $V_N(t) = 0$.
where $G_1(s) = \frac{7}{2s+1}$.
where $G_2(s) = \frac{7K}{2s+1}$ (answer should be in terms of $K$).
Linearize the system to obtain a small-signal state-space model.
Find the transfer function of the linearized state-space model.
Comment on the stability of $G(s)$ from Part B.
Now comment on the stability of the closed-loop system below, where $G(s)$ is the transfer function computed in Part B.
Consider a unity-feedback system with forward path transfer function $G(s) = \frac{1}{s(s+2)}$ Find the steady-state error for step, ramp, and parabolic inputs.
Second-order systems (GK section 5-6)
\begin{align} \frac{Y(s)}{R(s)} &= \frac{\omega_n^2}{s^2 + 2\zeta\omega_ns + \omega_n^2} \end{align}
Step response: $$ y(t) = 1 - \frac{e^{-\zeta\omega_nt}}{\sqrt{1 - \zeta^2}}\sin\left(\omega_n\sqrt{1-\zeta^2}t + \arccos\zeta\right),~t\geq 0 $$
Poles: \begin{align} s_1,s_2 &= -\zeta\omega_n\pm j\omega_n\sqrt{1 - \zeta^2} = -\alpha \pm j\omega \end{align}
Poles: \begin{align} s_1,s_2 &= -\alpha \pm j\omega \\ \alpha &= \zeta\omega_n \\ \omega &= \omega_n\sqrt{1-\zeta^2} \end{align}
From GK Section 5-6-3, percent maximum overshoot is $$ 100e^{-\pi\zeta/\sqrt{1-\zeta^2}} $$
Peak time is $$ t_\text{max} = \frac{\pi}{\omega_n\sqrt{1-\zeta^2}} $$
Read GK Section 5-9! Also good to play with systems in MATLAB.
Consider the following mechanical system:
where $x(t)$ is displacement (and also output), $f(t)$ is the applied input with nominal $f_N = 10N$, and the nonlinear spring applies a force $f_s(t) = 2x_s^2(t)$.
Assess the stability of a system with the following transfer function:
$$ G(s) = \frac{s+1}{s^2 + 4s + 1} $$Now suppose we connect the Part A system in series with a gain $K$, and introduce unity feedback.
Use Routh-Hurwitz to give a range of $K$ for which the closed-loop system is stable.
Suppose $K=-4$. Comment on the stability of the system.
Suppose we don't know $K$ exactly, but we know it will lie somewhere in the range $[-2,5]$. Use Kharitanov's Theorem to show that the system will not be stable for every $K$ in this range.
Suppose you have eight similar devices in your system with slightly different transfer functions. You know the eight characteristic polynomials for these devices:
\begin{align*} s^3 + 18s^2 + 2s + 2 & \qquad s^3 + 18s^2 + 3s + 6 \\ s^3 + 18s^2 + 2s + 3 &\qquad s^3 + 16s^2 + 2s + 4 \\ s^3 + 18s^2 + 1s + 8 &\qquad s^3 + 20s^2 + 3s + 4 \\ s^3 + 16s^2 + 3s + 5 &\qquad s^3 + 18s^2 + 2s + 3 \end{align*}You also know that the overall system will be stable if and only if all eight components are stable. Will the system be stable?
Consider the following transfer function of a feedback control system. Assume $K>0$.
$$ G(s) = \frac{K(s+3)}{s^4 + 7s^3 + 14s^2 + (8+K)s + 3K} $$Determine the range of $K$ so that the system is asymptotically stable.
Determine the value of $K$ that renders the system marginally stable, and determine the frequency of oscillation, if applicable.
Double office hour: Tuesday 2-4 PM at EECS 2420
Study hint: be proficient at things we've done several times.
Consider the block diagram below, where $K$ is a tunable gain. Is there a value of $K$ for which $s_1 = -4 + j2$ is a pole of the closed-loop system? If so, what is that value of $K$?
Consider the block diagram shown below.
Find the transfer function $\frac{C(s)}{R(s)}$. You can use any method you like.
Assume that the signal labeled $A(s)$ is known. Find $C(s)$.
Assume $G(s) = K_f>0$.
Now assume $G(s) = 0$ and $K>0$.
Sketch the root locus for the system below.
Verify your root locus sketch with MATLAB.
Sketch the standard root locus for the system shown below.
For what (positive) values of $K$ is the closed-loop system stable?
Add positive phase to the system, shifting root locus left.
Phase needed to cause a chosen point to satisfy angle criterion.
$$ \phi = -180^\circ - \sum_i \angle(s + z_i) + \sum_j \angle (s + p_j) $$Many ways to place the pole and zero of a lead compensator. Bisection tends to work well.
Add only a zero: speed response, increase overshoot
$$ G_c(s) = K_c(s+z) $$Useful heuristic, analogous to bisection:
$$ z = d_R + \frac{d_I}{\tan \phi} $$For lead compensator and PD controller, try to keep $K$ low. Less amplification typically means cheaper parts.
Actual transfer function:
$$ e^{-sT}, $$where $T$ is delay in seconds.
All-pass approximation (always has magnitude 1):
$$ e^{-sT} \approx \frac{\left(\frac{2n}{T} - s\right)^n}{\left(\frac{2n}{T} + s\right)^n} $$Sensor delay can push the system towards instability.
How much should you spend on your sensor?
Consider the system shown below.
Sketch the root locus ($K>0$) of the system.
Design a controller that causes overshoot to be no more than 10%, and 5% settling time to be no more than 2s.
Now try to meet the spec using a PD controller.
How is performance affected if there is some sensor delay? Assume a second-order (all-pass) model and a delay of $T=0.2$s.
Introduce $K(s)$ immediately after input.
$$G_\text{lag}(s) = K\frac{s+z}{s+p},~p
We care about stability, steady-state error, and transient behavior. Adding a second degree of freedom lets us target multiple objectives.
Consider the system shown below.
Roughly sketch the root locus ($K>0$) of the system.
Stabilize the system and include compensation so that $\zeta = 0.174$ (approx. 57% overshoot).
With the compensation designed in Part B, calculate the steady-state error to a step input.
Design a precompensator, $\bar{K}(s)$, to reduce the steady-state error to a step input by a factor of 10. See figure below.
Repeat Part D using a phase-lag controller. See figure below.
Verify your results in Parts D and E using MATLAB or Simulink.
Notice that the overshoot from Part E is greater than 40%. Design a precompensator $\tilde{K}(s)$ to reduce the overshoot by a factor of 10. See figure below. Verify your results with MATLAB or Simulink.
Two useful methods:
We can view this as a PD controller cascaded with a PI controller:
\begin{align*} G_{PID}(s) &= K_P + K_Ds + K_I/s = (1 + \tilde{K}_Ds)(\tilde{K}_P + \tilde{K}_I/s) \\ \implies K_P &= \tilde{K}_P + \tilde{K}_D\tilde{K}_I \\ K_D &= \tilde{K}_D\tilde{K}_P \\ K_I &= \tilde{K}_I \end{align*}Consider the third-order attitude control system with forward-path transfer function
$$ G_p(s) = \frac{2.718\times 10^9 }{s(s^2 + 3408.3s + 1,204,000)} = \frac{2.718\times 10^9}{s(s+400.26)(s+3008)} $$Design a PID controller such that the closed-loop system meets the following specifications:
Draw the Bode plot for the system $G(s)$ shown below.
$$ G(s) = \frac{s+3}{s(s+1)(s+2)} $$Now generate a Bode plot with Matlab and comment on stability margins.
Consider the system below. Sketch the Nyquist plot.
Use the Nyquist plot to assess stability.
Validate your Part B stability conclusion using root locus techniques.
Determine GM, PM, but can also play what-if
No approximation needed with frequency domain techniques
The following Bode diagram of the forward-path transfer function of a unity-feedback control system was obtained experimentally.
Find the gain and phase margins of the system. Find the gain- and phase- crossover frequencies.
Repeat Part A if the gain is doubled from its nominal value.
Repeat Part A if the gain is ten times its nominal value.
Find out how much the gain must be changed from its nominal value to obtain a gain margin of 40 dB.
Find out how much the loop gain must be changed from its nominal value to obtain a phase margin of 45$^\circ$.
Find the steady-state error of the system if the reference input to the system is a unity-step function.
The forward path now has a pure time delay of $T_d$ seconds, so that the forward path transfer function is multiplied by $e^{-T_ds}$. Find the gain margin and the phase margin for $T_d = 0.1$ sec (with nominal gain).
With the gain set at nominal, find the maximum time delay $T_d$ the system can tolerate without going into instability.
When $K=1$, determine the maximum time delay $T_d$ for the closed-loop system to be stable.
When the time delay is 1s, find the maximum value of $K$ for system stability.
Given the system below, design a lead compensator to yield 20% overshoot and a peak time $T_p$ of 0.1 seconds.
Suppose there is now a 0.01 sec delay in the Problem 1 system. Can we still achieve our design specs of 20% overshoot and $T_p = 0.1$ sec?
Identify the critical gain value for the compensated system.
Verify your Problem 3 answer using root locus.
The system below may be used for positioning of a shaft by a command from a remote location.
Design a lead compensator so that the closed-loop system is as fast as possible, consistent with the following specifications:
Compute the steady-state positioning error caused by a unit step torque disturbance.
If necessary, add additional compensation so that the steady-state positioning error caused by a unit step torque disturbance is $\leq 1$%.