6. Control#

6.1. Introduction#

Control is a common term, used in many biological, business, economic and technical systems. In this chapter we will discuss several basic concepts and choose applications from mechanical engineering practice. Some examples of such applications are:

  • the central heating thermostat (temperature control),

  • the cruise control of a car (velocity control)

  • the float in a toilet (level control),

  • the EUV positioning,

  • an autonomous warehouse robot.

_images/Ch8_Control_8.1.png

Fig. 6.1 (a) Schematic representation of an EUV, (b) EUV Positioning (source: ASML).#

Control technology plays a role in all these examples. In short, you could say that control engineering is concerned with the design and implementation of “controllers” that ensure that certain variables of a device retain a desired value or follow a desired trajectory (as a function of time). In a somewhat broader sense, the discipline also pays attention to modeling the dynamic behavior of systems, for instance through experiments, the analysis of signals and disturbances, and the design of control signals or controls in the form of feedbacks. In this chapter we will briefly discuss the block diagram notation, the principle of the feedback control and an analysis of a simple regulated system.

6.2. Signals and systems#

In control technology, systems are displayed with the so-called block diagram notation. In the block diagram notation, a system is seen as a set of block functions that are connected with arrows. Signals (variables) pass over the arrows. These are quantities that are a function of time. Each block function has an input and an output. The block function describes the relationship between that input and output. Fig. 6.2 shows two basic building blocks.

_images/Ch8_Control_8.2.png

Fig. 6.2 Basic elements of a block diagram.#

On the left you see a block function. This function usually contains a dynamic model, described with a differential equation. On the right you see a summation node. At the summation point, a minus sign indicates that the relevant signal must be subtracted. If there is a plus sign, or if there is nothing, the corresponding signal must be added. In Fig. 6.2 the output signal is therefore equal to \(\textrm{in}_1(t)-\textrm{in}_2(t)\).

The identification of which signal is to be regarded as the input of a system and which signal is to be regarded as the output is usually self-evident. In principle, a logical “cause \(\rightarrow\) effect” relationship must be maintained, which then corresponds to “input \(\rightarrow\) output”. There are circumstances where the cause-effect relationship is not entirely clear and where multiple choices can be made. In this first orientation in the field, cases will be considered that have a clear cause-effect relationship.

Fig. 6.3 shows several examples of a block diagram. You see that you can draw different block diagrams from the same system. For example, you can break down some complex block functions into two simpler block functions. This is done, for example, with the pulley in Fig. 6.3(b).

_images/Ch8_Control_8.3.png

Fig. 6.3 Examples of block diagrams.#

The block functions describe the relationship between the input and the output. Fig. 6.3 describes this relationship qualitatively. In Fig. 6.3(b), the block function pulleys describes how the input force results in a lifting force on the mass. To quantitatively describe such a relationship, we use a model of physical reality. For simple systems, that model can be a simple equation. For many systems the relationship is described with differential equations (equations in which in addition to variables also derivatives of those variables occur over time).

Fig. 6.4 shows for two examples of Fig. 6.3 how the relationship between input and output with comparisons can be described

_images/Ch8_Control_8.4.png

Fig. 6.4 Examples of block diagrams with equations.#

We use theory from other disciplines to draw up these equations. In these examples these are dynamics and fluid mechanics, which is discussed in Section 3. Note that the variables are always noted as a function of time \(t\). The other quantities in the equations (the constants) are called parameters.

Quantitative block diagrams

Can you rewrite the block diagrams in Fig. 6.4 into normal (differential) equations? How can these equations be derived?

6.3. The feedback principle#

In control technology, we often look at system behavior over time. For example, the position \(y(t)\) of a mass (see Fig. 6.4(a)), or the temperature \(T(t)\) of swimming pool water or the flow rate \(v(t)\) of a liquid sprayer (Fig. 6.4(b)). In the previous section we have seen several examples of open (unregulated) systems. We take a certain input value (for example a constant value) without measuring the output and checking whether we need to adjust the input. If, for example, we consider the system of Fig. 6.4(b), then we see that if \(F(t)\) remained constant, \(v(t)\) would change over time: the vessel empties, so the height \(h_1(t)\) decreases and thus the velocity \(v(t)\) decreases over time. In order to keep the velocity \(v(t)\) constant, we will have to change \(F(t)\) over time, so control it.

In control engineering, the goal is often to let a variable follow a certain course over time. In this introduction we only consider the goal of keeping a variable at a constant value.

6.3.1. Steering versus controlling#

We must distinguish here between the concepts of “steering” and “controlling”. With “steering” we offer an open system such an input signal that the output shows a certain (desired) behavior in time. Our knowledge of system behavior makes it possible to make the right choice for this input signal. With “controlling” we proceed differently: we look at the output of the system and if it deviates from the desired course, we will adjust something based on the difference at the input of the system, so that the deviation becomes less. In this way the output is fed back to the input and a “feedback control” is created. When controlling systems, instead of looking at the output, the correct input is selected and offered to the system based on experience (knowledge of system behavior). It will later appear that the principle of (closed) feedback systems offers great advantages over (open) control, but that there are also risks attached to it.

Controlling the liquid sprayer

Consider the liquid sprayer of Fig. 6.4(b). It is desirable to achieve a constant spraying velocity during spraying. The force \(F(t)\) on the piston can be used for this purpose. What does the block diagram of the regulated system look like?

Thermostat

How does the control circuit of a thermostat of a living room look like? What do we want to control? How can we arrange? What are the disruptions? Draw a block diagram of the controlled system. Name the components in the control circuit (actuator, sensor, process, disruptions).

6.4. Controller design#

In the previous section you saw that you can control the dynamic behavior of a process by measuring an output of a process and changing it based on that. But how should you change the input if you have measured the output? Numerous methods have been developed in control engineering. Here we only deal with the most basic method, the so-called proportional control.

First, we define the error. The error \(e(t)\) is the difference in signal between the desired value \(y_{\textrm{des}}(t)\) and the measured value \(y_{\text{meas}}(t)\). With proportional control, we let the input signal of the process depend proportionally on the error. By way of illustration we consider the room temperature control of Example 3. To make a quantitative analysis possible, we replace the qualitative descriptions with a quantitative model. The model of Fig. 6.8 is given.

_images/Ch8_Control_8.8.png

Fig. 6.8 Room temperature control.#

In the block diagram we can already see that the controller makes its output signal \(w(t)\) proportionally dependent on the error \(e(t)\), since \(w(t) = k \cdot e(t) = k \cdot (T_{\text{des}}(t) – T_{\text{meas}}(t))\). Herein we call k the gain. That is a nice idea in itself, because:

  • If \(T_{\text{meas}}(t)< T_{\text{des}}(t)\), it is too cold. Then \(e(t)> 0\). The controller gives output signal \(w(t)> 0\). The heating supplies a positive power (supplies heat) \(P(t)> 0\). The temperature increases.

  • If \(T_{\text{meas}}(t) > T_{\text{des}}(t)\), it is too hot. The controller gives output signal \(w(t) < 0\). The heating produces a negative power (extracts heat) \(P(t) < 0\). The temperature decreases.

  • If \(T_{\text{meas}}(t) = T_{\text{des}}(t)\), the temperature is just right. The controller gives output signal \(w(t) = 0\). The heating does not supply power \(P(t) = 0\). The temperature remains unchanged.

We now want to investigate how the temperature changes if we want to reach a temperature of 20 °C, while the initial temperature is 0 °C. For this we have to solve the following equations. Precisely take into account the meaning of all symbols and their units. Be consistent in their unambiguous use!

\[\begin{split} P(t) = \alpha w(t)\\ w(t) = ke(t) = k(T_{\textrm{des}}-T_{\textrm{meas}}(t))\\ T_{\textrm{meas}}(t)=T(t)\\ P(t)=C_p\frac{dT(t)}{dt} \end{split}\]

After elimination of \(P(t), w(t),\) and \(T_{\textrm{meas}}(t)\) this becomes:

(6.3)#\[\alpha \cdot k (T_{\textrm{des}}-T(t))= C_p \frac{dT(t)}{dt}\]

The result is a differential equation, which we can rewrite:

(6.4)#\[ \frac{dT(t)}{dt} + \frac{k\alpha}{C_p}T(t)= \frac{k\alpha}{C_p}T_{\textrm{des}} \quad \text{or} \quad \dot{T} + \frac{k\alpha}{C_p}T = \frac{k\alpha}{C_p}T_{\textrm{des}} \]

Herein \(\dot{T}\) (pronounced T-dot) is the time derivative of \(T(t)\), or \(\frac{dT(t)}{dt}\). In this introductory course we do not come to the solution of differential equations. That is why we provide the solution of the above equation without derivation. You can check that this solution complies with (6.4) by determining the derivative of (6.5) and entering it in (6.4).

(6.5)#\[ T(t)=T_{\textrm{des}}+(T_0-T_{\textrm{des}})e^{-\frac{k\alpha}{C_p}t} \]

Suppose the initial temperature \(T_0 = T(t=0) = T(0) = 0 °C\). Fig. 6.9 shows the temperature trend over time. It is assumed that the heat capacity of the chamber \(C_p\) = 3000 [kJ/K], the heating constant = 1 [-] and the control gain \(k\) = 1000 [W/°C].

_images/Ch8_Control_8.9.png

Fig. 6.9 Temperature in time for \(k\) = 1000 [W/°C].#

We see that it takes a certain time until the desired temperature of 20 °C is reached (approached). At \(t = 12 \cdot 10^3 \textrm{ s}\) the temperature has risen to \(T = 19.63 \textrm{ °C}\).

By choosing a different control setting for control gain \(k\) we can shorten or extend that time. Increasing the control gain \(k\) shortens the warm-up time. This is shown in Fig. 6.10(a). However, increasing the control gain \(k\) also requires a higher control effort: the heating must then be able to provide a higher power. In Fig. 6.10(b), the power that the heating must provide is plotted against time for different values of \(k\).

_images/Ch8_Control_8.10.png

Fig. 6.10 (a) Temperature variation, (b) required power for different control gains.#

For \(k = 4000 \textrm{ W/°C}\), the heating must provide a maximum power at \(t = 0\) s of \(80000\) W.

Analysis of room temperature control

Using temperature control, we want to keep the temperature in a room constant. We use the room temperature control model described above. We want to heat the room from 10 °C to 30 °C. For the heating constant, take \(\alpha = 1 [-]\) and for the heat capacity \(C_p = 6000 \textrm{[kJ/K]}\). We can set the room temperature control to three positions, namely \(k = 500 \textrm{W/°C}\), \(k = 1000 \textrm{ W/°C}\) en \(k = 1500 \textrm{ W/°C}\).

  1. For each control gain, determine how long it takes for the error to be less than 1 °C.

  1. How does the error proceed over time? When is the error nil?

  1. How changes the power that the heating system has to deliver over time? If the heating can supply a maximum of 22 [kW], which control gain(s) is (are) feasible?

6.5. What lies ahead#

Before we look further, first something about the history of the profession. The “system and control technology” is a relatively young field. About 60 years ago, the first electronic control schemes were built and insight into the issue of stability through feedback and design rules for single-input and single-output systems were created. Approximately forty years ago, partly due to the developments in aerospace at that time, a mathematical deepening of the field was created that made it possible to design optimum controllers for systems with more inputs and outputs (“multi-variable systems”). In the 1980s much work was done to take model errors into account (robust control and adaptive control), while the last ten years have been dominated by self-learning systems (neural networks), non-linear control and control of hybrid systems (systems with continuous variables and discrete events, such as an operator pressing a button). At the same time there has been a huge development of tools, of which Matlab is the most important. Originating in this field, Matlab is now the most widespread auxiliary tool of the modern engineer. One of the interesting additions to Matlab is Simulink, which makes it easy to model dynamic control systems with block diagrams and then simulate them. The examples from the previous paragraph are very easy to try. With the help of these tools, modeling and control are dealt with in the follow-up courses, first of one-input/one-output systems, and then of multi-variable systems.

Today, in many technical applications, the controller is completely captured in computer code that is executed in real time. Many applications are also known with electronic controllers (circuits with electronic components that provide a filtering effect, e.g. “RC” network). Finally there are the mechanical, hydraulic or pneumatic controllers, although the function of controller and actuator are often combined in one physical device.

An interesting thought is that the relevant considerations for the design of a control system naturally have a lot to do with the design of the process itself (and also which inputs and outputs are useful), as well as the design of the actuator and sensor. The integrated approach to the design of regular mechanical devices is also called “mechatronics”. This will be discussed in detail in later courses.

In the master’s phase, the most important developments in the field as described above are discussed in more detail. Active research topics are robust, non-linear and learning arrangements of mechatronic systems, automotive applications and applications in robotics, biomedical and process engineering systems.

6.6. Problems#

For the following exercises use symbols as long as possible and only in the end fill in the values given.