Control System Lab
Control System Lab
The diagram above illustrates the structure of a control system, which is designed to
modify the response of a plant or system as needed. To elaborate, consider a scenario
where we have a system to regulate, such as a motor requiring position control. In
this case, we employ a servomechanism, acting as the control system or controller,
to provide specific input to the motor regarding the desired rotation. The ultimate
aim is for the entire system, comprising both the plant and the controller, to achieve
the intended objective.
There are mainly two types of Control system:
1. Open loop control system:
A control system with an open loop is simple to operate. In this case, whether or not
we obtain the intended result has no bearing on the control action. To put it briefly,
no feedback is required.
We are unsure if the intended result is achieved in this instance because there may
be more disruptions while the control process is underway. These control systems
are less dependable because their faithfulness is largely dependent on how accurate
the initial calibration was. We should use open loop control since it would be far less
expensive in some circumstances where output accuracy is not a concern.
Controlling basic traffic lights, where each light's operation is solely dependent on a
set time, would be a good example.
2. Closed Loop Control system:
Closed-loop control systems, also referred to as feedback control systems, operate
based on the desired output. In these systems, the control action is influenced by the
feedback received from the output. It's important to note that closed-loop control
systems can incorporate one or multiple feedback paths to enhance their
functionality and responsiveness.
1. Proportional:
The proportional component of a control system relies solely on the disparity
between the set point and the process variable, commonly referred to as the error
term. The proportional gain (Kc) defines the relationship between the output
response and the error signal. For example, if the error term has a magnitude of 10,
a proportional gain of 5 would result in a proportional response of 50. Generally,
elevating the proportional gain enhances the speed of the control system response.
However, excessive proportional gain may lead to oscillations in the process
variable. Further increasing Kc can intensify these oscillations, ultimately causing
system instability and potential loss of control.
2. Integrator Response:
The integral component of a control system involves accumulating the error term
over time. This means that a small error term will lead to a gradual increase in the
integral component. The integral response will persistently grow over time unless
the error becomes zero. Consequently, the integral component aims to minimize
steady-state error, which is the ultimate difference between the process variable and
the set point. However, a situation known as integral windup may occur when
integral action saturates a controller without driving the error signal toward zero.
3. Derivative Response:
The derivative component of a control system is responsible for reducing the output
when the process variable experiences rapid increases. The derivative response is
directly proportional to the rate of change of the process variable. Adjusting the
derivative time (Td) parameter influences how the control system reacts to changes
in the error term, impacting the overall speed of the control system response. In
practice, most control systems employ very small derivative time values (Td)
because the Derivative Response is highly sensitive to noise in the process variable
signal. If the sensor feedback signal exhibits noise or if the control loop rate is too
slow, the derivative response can potentially destabilize the control system.
b) Integral – Proportional derivative I-PD:
The I-PD control algorithm is often overlooked and not fully utilized. In contrast to
the PI-D, it employs proportional action based on the process value (PV) rather than
the error. Despite common misconceptions, it is not limited to providing a slow
response to set point (SP) changes; any control algorithm can achieve this by
adjusting the tuning. Figure 1 illustrates a well-tuned controller's response to an SP
change (Curve A), while switching to I-PD yields a slower response (Curve B). The
I-PD algorithm no longer generates the proportional kick, relying solely on integral
action. The perception of I-PD as slow stems from using tuning parameters designed
for the PI-D algorithm, highlighting the importance of appropriate tuning for
different algorithms.
Calculations
Now we will design our Electromechanical system first with doing some
calculations then verify the result with Simulink simulation.
1. System modeling
𝑤(𝑠) 𝐾
=
𝑉(𝑠) [𝑠 + 𝛼]
Now the equation become,
𝐾𝑡
𝑤(𝑠) 𝐽𝑅
= − − − − − − − (𝑎
𝑉(𝑠) 𝐾𝑡 𝐾𝑒
[𝑠 + 𝐽(𝑏 + ]
𝑅
Putting the value of the physical parameter we get the both equation as
The physical parameters are:
I. Moment of inertia of the rotor J=0.01 kg.m2
II. Motor viscous friction constant b=0.1 N.m.s
III. Electromotive force constant Ke=0.01 V/rad/sec
IV. Motor torque constant Kt=0.01 N.m/Amp
V. Electric resistance R=1 Ohm
Eq 1:
ϴ(s) 1
=
V(s) s[s + 0.001001]
Eq 2:
w(s) 1
=
V(s) [s + 0.001001]
Closed loop system:
Now the derive the equation for the above closed loop system
G(s) Kt
T(s) = ( + K p + K d s) ( )
s s
G(s)K t + K p K t s + K t K d s 2
T(s) =
s2
After putting the value of G(s) we get the simplified equation :
Kt KpKt
T(s) = + + KtKd
s 2 (s + 0.001) s
Determining gains
we determine the gain using the pole position methods:
here
𝑇(𝑠) = 𝐺(𝑠)𝐻(𝑠)
For closed loop system the characteristic equation will be like this
1 + 𝐺(𝑠)𝐻(𝑠) = 1 + 𝑇(𝑠) = 0
Let’s we want the pole at the position of -3 and -3, then the characteristic equation
become,
(𝑠 + 3)(𝑠 + 3) + 𝑇(𝑠) = 0
(𝑠 + 6𝑠 + 9) + 𝑇(𝑠) = 0
Now putting the equation of the T(s)
𝐾𝑡 𝐾𝑝 𝐾𝑡
(𝑠 2 + 6𝑠 + 9) + + + 𝐾𝑡 𝐾𝑑 = 0
𝑠 2 (𝑠 + 0.001) 𝑠
Match Coefficients:
The I-PD Gains values are:
𝐾𝑝 = 6,
𝐾𝑡 = 1,
𝐾𝑑 = 9,
Now, we used this value in our simulation model and observed the system response.
Simulation of the Electromechanical system in the MATLAB Simulink
Simulation model of the system in the MATLAB Simulink with I-PD controller
This is stable oscillation for the Kp value of 10, and the oscillation time period is 2
seconds.
Thus 𝐾𝑢 = 1 𝑎𝑛𝑑 𝑇𝑢 = 0.6𝑠𝑒𝑐
Now according to the above table we find the Kp, Ki and Kd.
𝐾𝑝 = 0.6𝐾𝑢 = 0.6 ∗ 1 = 0.6
Ki = ?
𝑇𝑢 0.6
𝑇𝑖 = = = 0.3
2 2
𝐾𝑝 1.2 ∗ 𝐾𝑢
𝐾𝑖 = = =2
𝑇𝑖 𝑇𝑖
Kd = ?
𝐾𝑑 = 0.075 ∗ 𝐾𝑢 ∗ 𝑇𝑢 = 0.045
Now the simulation Model for the PID controller:
Simulation results
Implementing the PID controller using the Ziegler-Nichols method yields optimal
system response. However, reducing the Ki gain introduces oscillations, while
increasing it leads to system overshot. In summary, for superior system response, the
PID controller excels. Conversely, if minimizing overshoot is crucial, the I-PD
controller emerges as the preferred choice.
Conclusion:
Utilizing MATLAB Simulink for implementing a control system is considered
highly effective. In this scenario, both PID and I-PD controllers were implemented,
and their results were verified against the calculated values. Notably, the I-PD
controller exhibited the lowest overshoot, but it also showed a somewhat lower
system response. In comparison, the PID controller demonstrated a rapid response;
however, increasing the Ki value led to overshooting in the system. This situation
presents a tradeoff between achieving a quick system response and minimizing
overshooting.
REFERENCE:
1. Kushal Gowda “Introduction to the control system 1.1”, Published Aug 19,
2020.
2. Classical PID Control
by Graham C. Goodwin, Stefan F. Graebe, Mario E. Salgado
Control System Design, Prentice Hall PTR
3. PID Control of Continuous Processes
by John W. Webb Ronald A. Reis
Programmable Logic Controllers, Fourth Edition, Prentice Hall PTR.
4. Norman S. NISE, “control system engineering” Book 6th edition.
5. Brian R Copeland, “The Design of PID Controllers using Ziegler Nichols
Tuning”, March 2008.
6. Ibrahim kaya, “I-PD Controller Design for Integrating Time Delay Processes
Based on Optimum Analytical Formulas”, IFAC-PapersOnLine, Volume 51,
Issue 4, 2018, Pages 575-580