05 - PID Algorithm Used For DC Motor Control
05 - PID Algorithm Used For DC Motor Control
Abstract—This paper aims to present the effects of a PID engineers to control even complex dynamic systems. In fact, all
algorithm controller in a closed loop feedback system. Validation systems have nonlinear components, which present real
of the results is highlighted by calculating the position of a DC challenges in using classical control based on PID feedback. In
motor in a closed-loop system. The importance of this work comes modern systems where process monitoring is needed to be
precisely from the need to test and show the responses of such a optimized, a closed control loop are used to measure the process
system as accurately as possible in order to achieve the desired with the data provided by the sensors, the values of these
performance in real time. Over the years, due to the growth of the measurements being compared to the desired reference values
DC motor market, the need to implement control algorithms and by helping to regulate a control output parameters based on this
test these devices in a more realistic way through mathematically
difference. To achieve this PID control algorithm, a position
models has been of the utmost importance, showing also the need
for research enterprise. Due to these considerations and, of course,
sensor was used to measure real values of the DC motor position.
to a technological evolution that contemporary industry is subject All closed loop control was implemented in Simulink, Matlab.
to, the need to test such systems is imperative, being present and
II. THEORETICAL FUNDAMENTATION AND BLOCK DIAGRAM
accepted at the highest standards. Early identification of design
problems, repeatability of tests, reduction of development costs Control circuits are the most important element that can
and shortened validation process are some of the benefits of this influence the quality of operation and performance of control
testing and control system. applications. In order to achieve a control circuit, understanding
the fundamental elements of controlling the systems both in the
Keywords—PID algorithm; DC Motor; Close-loop; PID; DC continuous time domain and in the discrete time domain,
Motor control. provides first aid to a more in-depth understanding of their
operation. The defining elements of this paper are found in
I. INTRODUCTION highlighting closed loop control methods, as well as design
One of the main arguments behind the motivation of this considerations for these systems in terms of elements that make
scientific paper is the issue of maintaining some parameters of a up such a control system. Because adjustment systems, even if
control system within a specified range. The adjustment and they are stable, when changing some parameter values, they can
control system, being a dynamic system and having a technical reach the threshold of instability. To prevent this unwanted
process implemented, influences the values of these parameters. effect, the mathematical model of the adjustment segment is
Thus, the values to be referenced must be secured and adjusted required in order to trace the technical characteristics of such a
in a continuous way against disturbing elements, in order to regulator. The correctness and effectiveness of the control
carry out the required requirements. The main objective of this system can be determined by using these mathematical models,
research is to develop a model-in-the-loop system with the help which describing disturbing magnitudes and closed circuit
of specific tools for modelling, simulation and analysis of such inputs of the control system, thereby determining the output
dynamic systems in order to configure the real-time testing quantity behavior. Another problem is the elements that disturb
process control design. Because adjusting systems, even if they or interfere with the closed-loop control elements. Due to the
are stable, on changes in some parameter values can reach the strong development of the industry and processes that control
threshold of instability, the mathematical model of the elements have to perform, testing the output responses of these
adjustment segment is necessary to draw the technical systems is imperative in their development. The implementation
characteristics of such a regulator. The correctness and of modified PIDs can have a major impact on the controlled
efficiency of the control system behavior can be determined by process, both in terms of performance and efficiency. Thus,
using these mathematical models that describe the disturbing testing the response to reactions can have the desired success.
and input magnitudes in the closed circuit of the control and To determine the position and speed of the DC motor, a closed-
control system, thus determining the output behavior. PID loop control system was used. This control loop was used for
controller is the most common control algorithm and is widely feedback to determine the real entry into the system. The
used. Has more than 90% of the current control and automation feedback provides information about the current system status
applications, primarily because it is an efficient and easy to and is used by the controller to continuously correct the actual
implement solution. There are a lot of tuning rules for PID entry into the system to achieve the desired status. Based on the
controllers. Most of the tuning rules are derived for process model response, it was possible to estimate the parameters of the
control and are derived under idealize assumptions, such infinite DC motor. The positioning system of a DC motor in a closed
bandwidth. In fact in most applications, the measurement noise, loop system used to act a gearbox in the automotive field, as can
the range of manipulated variable and the sample rate of the be seen in Fig. 1. The assembly of this system consists of a DC
system limit the closed-loop bandwidth. These control motor with a gear mechanism for transforming rotational speed
algorithms were born and were initially implemented for linear, into transversal movement. The DC motor is coupled to a
invariant systems over time, but due to the technological mechanical load, the load to be moved by the drive.
advances of industry, the PID algorithm has evolved, allowing Measurement of the mechanical position is done by means of a
Fig. 1. The closed loop system controlled by the position control algorithm.
Fig. 15. The change rate limit test model. It is noted that the output signal follows the input signal with an
error of less than 1% for the input signals that are described
The ChangeRCTRL function from the Fig. 13 is described below.
below:
• This block will control the change rate. It will generate
a voltage output in order to control the CurrentCR (the
Fig. 19. The input signals generated by the model with the help of signal
builder.
Fig. 22. The entire model of the system in Simulink programming and
simulation environment.
Fig. 27. Sample from the output voltage impulse with modulation.
Fig. 24. The voltage at the output of the position control algorithm.
Fig. 28. The anti-alias filtered signal at the output of the acquisition system.
Fig. 29. Signals of interest for the DC position control algorithm (signal set for
position setting, physical position measured at engine output and position
sensor value at input to control algorithm).
In Fig. 29, the signals are defined by colors as follows: the signal
generated by the signal builder is marked with blue, the physical
position is defined in yellow, and the signal to obtain the method
for position with the orange color. Simulated results from the
DC position control model in the discrete time range are shown
in the following figures. When applying a signal to set the
position in the form shown in Fig. 30, we have the following
control system responses. Note that, when we applying the
Fig. 26. PWM output voltage for the DC motor of the PID controller. desired positioning signal, different change rates were taken into
account for both the minimum and maximum change rate.
Fig. 27 draws a sample of the PWM output voltage.