Automatic Determination of PID Controlle PDF
Automatic Determination of PID Controlle PDF
Automatic Determination of PID Controlle PDF
PhD candidate, Faculty of Mechanical Engineering Sarajevo, University of Sarajevo,
Bosnia and Herzegovina
Associate Professor, Faculty of mechanical engineering Sarajevo, University of Sarajevo,
Bosnia and Herzegovina
1. Introduction
Movement of a vehicle on the road is always accompanied by the influence of external and
internal forces, which are transferred to the vehicle through wheels. As the vehicle bodyleans on
the wheels by means of suspension system, this causes the occurrence of oscillation of the
vehicle body in direction of the vertical axis of the vehicle and around the axis of the vehicle.
Suspension system is an important system whose role isto provide comfort and safety to
passengers and cargoes for all road vehicles. These two parameters are always in negative
conjunction with each other, which means that a compromise between safety in the movement of
vehicles and passenger comfort must be created. It is possible to influence these two elements
through damping characteristics andstiffness elements of suspension system for classic (passive)
suspension systems. [1, 2].
However, during vehicle movement and particularly under the influence of inertial forces in the
longitudinal motion, as well as the effects of centrifugal force of a vehicle in a curve, significant
oscillations of the vehicle sprung mass occur. The aforementioned swinging of a sprung massas a
result of theinfluence of the gyroscopic moment additionally undermines stability of a vehicle.
Due to this, recently an active research has been developed on the introduction of semi-active
and active suspension for modern passenger vehicles, which aim to minimize or even completely
eliminate the swinging of asprung mass.In order to achieve this task, certain elements in
suspension system must have variable parameters of damping and stiffness [3]. Oscillatory
vehicle models are introduced to conduct research on oscillatory behaviour of vehicles in the
analysis of performance of suspension systems [4]. Oscillatory models can be solved and
analysedby using any of the MBS (Multi Body Simulation) programmes,or numerically by using
MATLAB or by simulation using Simulink. One of the most commonly used software for
analysis of these models is Simulink within package programme Matlab [5]. Modellingof active
suspension system in Simulink is normally reduced to optimizationby PID (Proportional Integral
Derivative) controller through analysis of ¼ vehicle model [6]. The general equation of this
controller is given by equation (1), and the general scheme of the controller is shown in Figure 1
[7].
𝑡
1 𝑑𝑢
𝑥 𝑡 = 𝐾𝑝 𝑢 𝑡 + 𝑢 𝑡 + 𝑇𝑑
𝑇𝑖 𝑑𝑡 (1)
0
The most important segment in optimizing PID controller is determining its parameters Kp, Ki
and Kd. In the example shown in [8] Ziegler-Nichols method,which is used to determine these
parameters, was explained. However, Simulink provides the possibility of automatically
determiningparameters and in this paper these parameters will beautomatically determined using
the block of PID controller in Simulink programme. Some parameters of oscillatory behavior of
the sprung mass (body) and the unsprung mass (wheel) in the case of passive and active
suspension system will be analysed and compared. The analysis will be carried out for cases ¼,
½ and a full vehicle model.
The general equations for resulting force and moment which act on a vehicle are presented by the
following equation:
𝐹 = 𝐹𝑥 𝑖 + 𝐹𝑦 𝑗 + 𝐹𝑧 𝑘
(2)
𝑀 = 𝑀𝑥 𝑖 + 𝑀𝑦 𝑗 + 𝑀𝑧 𝑘
Whereas
In order to form the oscillatory model,the effect of all the forces is neglected, apart from the
vertical one. Next, the oscillatory models of vehicles for the analysis of activesuspension systems
are presented.
Figure 3.shows that the influence of damping in the tire is ignored for this analysis.
Equations of oscillation of sprung mass – the vehicle body (mV) and unsprung mass - wheels
(mT) in the direction of z-axis is presented next. Equation of oscillation of sprung mass in the z-
axisdirection is as follows:
d 2 zV dz dz
mV kV V T cV zV zT f 0 (3)
dt dt
2
dt
In the equations (3) and (4) parameterfpresents the force which is used by active suspension
system to perform settling and damping of oscillations of sprung mass of vehicles (mV).
Figure 4. shows sprung mass (mV), front axle unsprung mass (mTP), rear axle unsprung mass
(mTZ). It can also be seen that sprung mass has an inertion moment around y-axis (axis
perpendicular to longitudinal plane) marked asJY. Active forces which perform settling down of
vertical oscillations are marked asfP andfZ.
Equations which describe the given model are based on the conditions of dynamic balance
presented with the following equations:
– Equation (5) illustrates the sum of all forces acting on sprung mass in z-axis direction:
d 2 zV dz dz d dz dz d
mV kVP V TP a1 kVZ V TZ a 2
dt dt dt dt
2
dt dt dt (5)
cVP zV zTP a1 cVZ zV zTZ a 2 f P f Z 0
– Equation (7) illustrates the sum of all forces acting on front unsprung mass in z-axis
direction:
d 2 zTP dz dz d
mTP kVP V TP a1
dt dt
2
dt dt (7)
cTP ( zTP z PP ) cVP ( zV zTP a1 ) f P 0
– Equation (8) illustrates the sum of all forces acting on the rear unsprung mass in z-axis
direction:
d 2 zTZ dz dz d
mTZ kVZ V TZ a 2
dt dt
2
dt dt (8)
cTZ ( zTZ z PZ ) cVZ ( zV zTZ a 2 ) f Z 0
This model is also called the full vehicle model and it has seven degrees of freedom of
movement. Seven degrees of freedom are represented by the vertical movement of sprung mass
(mV) and four unsprung masses(mTP and mTZ) in z-axis direction, as well as angular movements
of vehicle aroundxand y axis, all of which describe this system. Three-dimensional vehicle model
with five masses is presented in Figure 5.
Equations which describe model presented in Figure 5, which were formed from the dynamic
balance conditions, are as follows:
– Equation (9) illustrates the sum of all forces acting on sprung mass in z-axis direction:
d 2 zV dz dz d d dz dz d d
mV kVP V TPL b1 a1 kVP V TPD b2 a1
dt dt dt dt
2
dt dt dt dt dt
dz dz d d dz dz d d
kVZ V TZD b2 a2 kVZ V TZL b1 a2
dt dt dt dt dt dt dt dt (9)
cVP ( zV zTPL b1 a1 ) cVP ( zV zTPD b2 a1 )
cVZ ( zV zTZD b2 a2 ) cVZ ( zV zTZL b1 a2 )
f PL f PD f ZL f ZD 0
d 2 dz dz d d dz dz d d
Jy a1kVP V TPL b1 a1 a1kVP V TPD b2 a1
dt 2 dt dt dt dt dt dt dt dt
dz dz d d dz dz d d
a 2 kVZ V TZD b2 a2 a 2 kVZ V TZL b1 a2
dt dt dt dt dt dt dt dt (11)
a1cVP ( zV zTPL b1 a1 ) a1cVP ( zV zTPD b2 a1 )
a 2 cVZ ( zV zTZD b2 a 2 ) a 2 cVZ ( zV zTZL b1 a 2 )
a 2 ( f ZL f ZD ) a1 ( f PL f PD ) 0
– Equation (12) illustrates the sum of all forces acting on front left unsprung mass in z-axis
direction:
d 2 zTPL dz dz d d
mTP kVP V TPL b1 a1 cVP ( zV zTPL b1 a1 )
dt 2 dt dt dt dt
(12)
cTS cTP ( zTPL z PPL ) f PL 0
b1 b2
– Equation (13) illustrates the sum of all forces acting on front right unsprung mass in z-axis
direction:
d 2 zTPD dz dz d d
mTP kVP V TPD b2 a1 cVP ( zV zTPD b2 a1 )
dt 2 dt dt dt dt
(13)
cTS cTP ( zTPD z PPD ) f PD 0
b1 b2
– Equation (14) illustratesthe sum of all forces acting on rear right unsprung mass in z-axis
direction:
d 2 zTZD dz dz d d
mTZ kVZ V TZD b2 a2
dt dt
2
dt dt dt (14)
cVZ ( zV zTZD b2 a2 ) cTZ ( zTZD zPZD ) f ZD 0
– Equation (15) illustrates the sum of all forces acting on rear left unsprung mass in z-axis
direction:
d 2 zTZL dz dz d d
mTZ kVZ V TZL b1 a2
dt dt
2
dt dt dt (15)
cVZ ( zV zTZL b1 a 2 ) cTZ ( zTZL z PZL ) f ZL 0
At the very beginning, it is necessary to enter arbitrary values for the parameters (P), (I) and (D).
After that, the button Tune is clicked, and the form like the one in Figure 7. is shown.
Figure 7.shows the appearance of a signal to be adjusted, with default values from Figure 6.
(dashed line) and the appearance of the signal after the adjustment. The values of the parameters
(P), (I) and (D) can be seen in the lower right corner. This appearance of the signal is
automatically offered to the programme user who can change its appearance. This is achieved by
moving the slider Response Time and Transent Behavior.
Once the satisfactory values of controller parameters are obtained, the button Update Block
should be clicked, and then the new parameters are automatically entered into the appropriate
fields, as seen in Figure 8.After which the Simulink model can be started and further analysis of
the problem can be continued.
If the model created in Simulink is correct, there will be no need for additional adjustments, as
this block will automatically adjust (P), (I) and (D) parameters to optimal values.
Figures9., 10.and 11. show comparative diagrams of vertical movement, velocity and
acceleration of sprung mass for¼ vehicle model for case of passive and active suspension
system. Road profile is defined as a trapezoidal obstacle on the road.
It can be seen from Figures9., 10.and 11. that with the active suspension applied to ¼ vehicle
model, a decrease in amplitude and period of oscillation occurs.
It can be seen from Figure 12. that the regulation of suspension using a PID controller reduces
the amplitude and period of oscillationsas well as the vertical movement of unsprung mass
(wheel) of vehicle.
In order to analyse what happens to the sprung mass during vehicle movement, Figures 13.,
14.and 15. show the angle of rotation, angular velocity and angular acceleration of rotation of the
sprung mass around the y-axis.
Results of the simulations of passive and active oscillatory model of a full vehicle are provided
next. Road profile which the vehicle is moving on is defined in Figure 16.
Analysis of the change of angle rotations of sprung mass around x-axis (angle) and aroundy-
axis (angle)was performed. Results were presented in Figures 17. and 18.
Figures 17. and 18. show that by applying PID controller with oscillatory model of full vehicle
the amplitude of oscillation of sprung mass aroundxandy axis of the analysed model was
decreased, and settling time is faster, too.
6. Conclusion
Analysis of oscillatory models of vehicles carried out in this paper has shown that the
mathematical models that describe the oscillatory passive suspension systems can be easily
modified, so as to describe the models with active suspension systems. Three oscillatory models,
described herein, have included PID controller as an element of regulation which is installed
between sprung mass and unsprung mass.
It is shown that by using block of PID controller in Simulink program automatic adjustment of
parameters of PID controller can be performed. Thus avoiding the complicated setting the
parameters of the PID controller by methods available in the literature. Automatically set values
of parameters of PID controller have shown in the analysis of oscillatory behavior of certain
parameters in oscillating models the justification of use of this type of controller for modeling
active suspension system of vehicles.
References
[1] Bin Nawawi,Zulkifli.“Vibration investigation for passenger car with different damping
characteristic on car suspension systems”, Faculty of Mechanical Engineering Universiti
Malaysia Pahang, B.Sc. Thesis, 2012
[2] Šehović, Jasmin and Pikula, Boran.“Analysis of effects of vehicle suspension system
stiffness and damping on oscillatory comfort”, International Journal of Engineering &
Scientific Research, Volume 3, Issue 12, 2015
[3] Lajqi,Shpetim andPehan, Stanislav.“Designs and Optimizations of Active and Semi-
Active Non-linear Suspension Systems for a Terrain Vehicle”, Strojniškivestnik - Journal of
Mechanical Engineering 58(2012)12, 732-743, 2012
[4] Tameshwer,Nath andRastogi,Vikas.“Quarter/Half/Full Car Models for Active Suspension
(with PID controller)”, International conference on Recent Trends in Engineering &Technology,
2012
Nomenclature
Label Unit Description
a1, a2 [m] Coordinates of vehicle gravity center in vehicle longitudinal plane
b1, b2 [m] Coordinates of vehicle gravity center in vehicle transverse plane
cT [N/m] Tire stiffness
cTP [N/m] Front tire stiffness
cTS [N/m] Torsion stabilizer stiffness
cTZ [N/m] Rear tire stiffness
cV [N/m] Suspension system stiffness
cVP [N/m] Front suspension system stiffness
cVZ [N/m] Rear suspension system stiffness
f [N] Active force in suspension system regulation
zPZD [m] Impulse from the road acting on a vehicle rear right wheel
zPZL [m] Impulse from the road acting on a vehicle rear left wheel
zT [m] Travel of unsprung mass in z-axis direction
zTP [m] Travel of front unsprung mass in z-axis direction
zTPD [m] Travel of front right unsprung mass in z-axis diretion
zTPL [m] Travel of front left unsprung mass in z-axis diretion
zTZ [m] Travel of rear unsprung mass in z-axis direction
zTZD [m] Travel of rear right unsprung mass in z-axis diretion
zTZL [m] Travel of rear left unsprung mass in z-axis diretion
zV [m] Travel of sprung mass in z-axis direction
[rad] Angle of rotation of sprung mass around x-axis
[rad] Angle of rotation of sprung mass around y-axis
[rad] Angle of rotation of sprung mass around z-axis