digital-brain/content/zettels/feedforward_control.md

6.8 KiB

+++ title = "Feedforward Control" author = ["Dehaeze Thomas"] draft = false +++

Tags :

Depending on the physical system to be controlled, several feedforward controllers can be used:

Rigid Body Feedforward

Second order trajectory planning: the acceleration and velocity can be bound to wanted values.

Such trajectory is shown in Figure 1.

{{< figure src="/ox-hugo/feedforward_second_order_trajectory.png" caption="<span class="figure-number">Figure 1: Second order trajectory" >}}

Here, it is supposed that the driven system is a simple mass \(m\) with a damper \(c\). In that case, the feedforward force should be:

\begin{equation} F_{ff} = m a + c v \end{equation}

Fourth Order Feedforward

The main advantage of "fourth order feedforward" is that it takes into account the flexibility in the system (one resonance between the actuation point and the measurement point, see Figure 2). This can lead to better results than second order trajectory planning as demonstrated here.

{{< figure src="/ox-hugo/feedforward_double_mass_system.png" caption="<span class="figure-number">Figure 2: Double mass system" >}}

The equations of motion are:

\begin{align} m_1 \ddot{x}_1 &= -c_1 \dot{x}_1 - k(x_1 - x_2) - c (\dot{x}_1 - \dot{x}_2) + F \\ m_2 \ddot{x}_2 &= k(x_1 - x_2) + c (\dot{x}_1 - \dot{x}_2) \end{align}

From the equation of motion, two transfer functions are computed:

\begin{align} \frac{x_2}{F}(s) &= \frac{c s + k}{(m_1 s^2 + c_1 s)(m_2 s^2 + c s + k) + m_2 s^2 (cs + k)} \\ \frac{x_1}{F}(s) &= \frac{m_2 s^2 + c s + k}{(m_1 s^2 + c_1 s)(m_2 s^2 + c s + k) + m_2 s^2 (cs + k)} \end{align}

Depending on whether \(x_1\) or \(x_2\) is to be positioned, two feedforward controllers can be used.

If \(x_2\) is to be positioned, the ideal feedforward force \(F_{f2}\) is:

\begin{equation} F_{f2} = \frac{q_1 s^4 + q_2 s^3 + q_3 s^2 + q_4 s}{k_{12} s + c} \cdot x_2 \end{equation}

with:

\begin{align} q_1 &= m_1 m_2 \\ q_2 &= (m_1 + m_2) k_{12} + m_1 k_2 + m_2 k_1 \\ q_3 &= (m_1 + m_2)c + k_1 k_2 + (k_1 + k_2) k_{12} \\ q_4 &= (k_1 + k_2) c \end{align}

This means that if a fourth-order trajectory for \(x_2\) is used, the feedforward architecture shown in Figure 3 can be used:

\begin{equation} F_{f2} = \frac{1}{k_12 s + c} (q_1 d + q_2 j + q_3 q + q_4 v) \end{equation}

{{< figure src="/ox-hugo/feedforward_fourth_order_feedforward_architecture.png" caption="<span class="figure-number">Figure 3: Fourth order feedforward implementation" >}}

Similarly, if \(x_1\) is to be positioned, the perfect feedforward force \(F_{f1}\) is:

\begin{equation} F_{f1} = \frac{1}{m_2 s^2 + c s + k} \cdot (q_1 s + q_2 j + q_3 a + q_4 v) \end{equation}

with:

\begin{align} q_1 &= m_1 m_2 \\ q_2 &= (m_1 + m_2) c + m_2 c_1 \\ q_3 &= (m_1 + m_2) k + c_1 c \\ q_4 &= c_1 k \end{align}

and \(s\) the snap, \(j\) the jerk, \(a\) the acceleration and \(v\) the velocity.

The same architecture shown in Figure 3 can be used.

In order to implement a fourth order trajectory, look at this nice implementation in Simulink of fourth-order trajectory planning (see also (Lambrechts, Boerlage, and Steinbuch 2004)).

Model Based Feedforward Control for Second Order resonance plant

See (Schmidt, Schitter, and Rankers 2020) (Section 4.2.1).

Suppose we have a second order plant (could typically be a piezoelectric stage): \[ G(s) = \frac{C_f \omega_0^2}{s^2 + 2\xi \omega_0 s + \omega_0^2} \]

{{< figure src="/ox-hugo/feedforward_second_order_plant.png" caption="<span class="figure-number">Figure 4: Bode plot of a second order system with fitted model" >}}

The idea is to design a feedforward controller that corresponds to the plant inverse: \[ C_{ff}(s) = \frac{s^2 + 2\xi \omega_0 s + \omega_0^2}{C_f \omega_0^2} \]

This controller has a pair of zeros, corresponding to an anti-resonance at the eigenfrequency of the first eigenmode of the system, with equal damping. The controller needs to be modified in such a way that it becomes realisable. In this case it is decided to create a resulting overall transfer function of the controller and the plant that acts like a well damped mass-spring system with the same natural frequency as the plant and an additional reduction of the excitation of higher frequency eigenmodes. In order to realise this controller first two poles have to be added, placed at the same frequency as the resonance but with a higher damping ratio. Typically a damping ratio between aperiodic and critical (\(0.7 < \xi < 1\)) is applied to avoid oscillations. For \(\xi = 1\) this results in the following transfer function: \[ C_{ff}(s) = \frac{s^2 + 2\xi \omega_0 s + \omega_0^2}{s^2 + 2 \cdot 1 \cdot \omega_0 s + \omega_0^2}\]

{{< figure src="/ox-hugo/feedforward_compensated_system.png" caption="<span class="figure-number">Figure 5: Bode plot of the feedforward controlled system" >}}

Lambrechts, P., M. Boerlage, and M. Steinbuch. 2004. “Trajectory Planning and Feedforward Design for High Performance Motion Systems.” In Proceedings of the 2004 American Control Conference, nil. doi:10.23919/acc.2004.1384042.
Schmidt, R Munnig, Georg Schitter, and Adrian Rankers. 2020. The Design of High Performance Mechatronics - Third Revised Edition. Ios Press.