MODELINGANDSIMULATIONOFVEHICLESTEERINGCONTROL

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/239182823

MODELING AND SIMULATION OF VEHICLE STEERING CONTROL ON STEER BY


WIRE SYSTEM USING FUZZY LOGIC AND PID CONTROL TUNED BY PARTICLE
SWARM OPTIMIZATION (PSO)

Conference Paper · April 2012

CITATIONS READS
7 4,524

3 authors, including:

Fachrudin Hunaini Imam Robandi


Universitas Widyagama Institut Teknologi Sepuluh Nopember,
15 PUBLICATIONS 67 CITATIONS 154 PUBLICATIONS 839 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Fachrudin Hunaini on 28 May 2014.

The user has requested enhancement of the downloaded file.


3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

MODELING AND SIMULATION OF VEHICLE STEERING CONTROL ON


STEER BY WIRE SYSTEM USING FUZZY LOGIC AND PID CONTROL
TUNED BY PARTICLE SWARM OPTIMIZATION (PSO)
1 2 3
Fachrudin , Imam Robandi , Nyoman Sutantra
1
Electrical Engineering Dept., Widyagama University. Malang, Indonesia, fadin_ft@yahoo.ac.id
2
Electrical Engineering Dept., ITS Surabaya, Indonesia, robandi@ee.its.ac.id
3
Mechanical Engineering Dept., ITS Surabaya, Indonesia, tantra@me.its.ac.id

Abstract—Steer-by-wire performance is largely determined trajectory is used. Artificial Intelligent very helpful in
by the control system is applied. In this paper the present accelerating the process control. Fuzzy Logic Control
modeling and simulation of vehicle steering control system (FLC) is a control that is quite reliable, but need to be
using Particle Swarm Optimization to tune the parameters supported by a method for tuning the parameters of fuzzy
that are needed on Fuzzy Logic and PID control, the
logic to quickly and accurately, PSO is an optimization
cascade Fuzzy Logic and PID control used for controlling
lateral motion and yaw motion errors on the vehicle model method that offers optimization process quickly and
be represented in 10 Degree of Freedom system of vehicle accurately for tuning the parameters of Fuzzy Logic [8,
dynamics. The simulation results found that the Fuzzy Logic 9].
control and PID control tuned by PSO in vehicle steering In this paper, the fully-automatic models developed on
control system adapt well the plant output to desired steer by wire system that be represented in a simulation
trajectory so that the vehicle stability is maintained. of active steering control using vehicle model with 10
degree of freedom (DOF) consisting of: 7-DOF vehicle
Keywords—Lateral motion control, Yaw motion control, ride model, and 3-DOF vehicle handling model [10, 11].
Tuned parameters. Structure of control system developed consists of two
stages in cascade control, namely: the control of lateral
I. INTRODUCTION motion to eliminate unwanted lateral movement, the
Steer by Wire system is one part of a large system in the control output is used as the setting point of the next
development of electric car technology systems, where control; yaw motion control as falsifies the input steering
the cars electrical system is expected to be a future control system. Artificial intelligent control system using,
vehicle with a high-performance control. in this case the PSO selected for tuning the FLC
Steer by wire system is the absence of a conventional parameters in controlling the lateral motion and PID
relationship on a vehicle steering system in which the tuning parameters to control yaw motion. The expected
mechanical linkage the between steering wheel and front outcome of this simulation, the active steering control
wheels on the vehicle removed and replaced by electric system using FLC and PID control tuned by PSO can
propulsion [1]. improve the vehicle dynamic performance.
There are two types of characteristics of steer by wire Systematic are organized in this paper are 1) the
system used is semi-automatic and fully-automatic steer- introduction and the review of some research done. 2)
by-wire system. Semi-automatic is a steer by wire system Vehicle that represents the vehicle dynamic model with
that uses steering wheel to determine the direction of the 10 DOF. 3) Control structure model for simulation of
front wheel of the vehicle while the fully-automatic steer- active steering control, FLC and PID control is tuned by
by-wire system without using the steering wheel, to PSO. 4) The simulation results, and 5) conclusions.
determine the direction of the front wheel of the vehicle
used a pre-programmed trajectory. Much research has II. VEHICLE MODEL
been developed on fully-automatic steer-by-wire systems, Based on the concept of vehicle dynamics, vehicle model
among others, specifically to research on the input has two major functions in the control of the vehicle, i.e.
trajectory that uses look-ahead and look-down systems lateral control and longitudinal control [12]. Models built
[2], using GPS technology [3] and the trajectory that uses in this paper mainly focus on vehicle lateral control. This
the lane guidance [4]. Likewise, research has been paper represents a simulation of active steering control
developed on the active steering control methods, among using vehicle model with 10 degree of freedom (DOF)
others, the use of an adaptive nonlinear control scheme consisting of 7-DOF vehicle ride model and 3-DOF
aimed at the improvement of the handling properties of vehicle handling model [10, 11] .
vehicles [5], Genetic Fuzzy Controller for Vehicle
Automatic Steering Control [6], adaptive fuzzy logic
networks adapting a model of Takagi-Sugeno
configuration [7].
Problems that arise are required an effort to improve
the performance fully-automatic steer-by-wire system,
one effort that is still very likely to be developed is about
the method of control, this will apply to any form of input
3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

where,
θ&& = pitch acceleration at body centre of gravity
ϕ&& = roll acceleration at body centre of gravity
Ixx = roll axis moment of inertia
Iyy = pitch axis moment of inertia
w = wheel base of sprung mass

By performing force balance analysis at the four


wheels, the following equations are obtained

Figure 1. A 10-DOF Full Vehicle Ride and Handling Model m u Z&&u , fl = K s , f Z s + C s , f Z& s − aK s , f θ − aC s , f θ&
(
+ 0.5wK s , f ϕ + 0.5wC s , f ϕ& − K s , f + K t Z u , fl )
Vehicle Ride Model is represented as a 7-DOF system
consisting of a single sprung mass (car body) connected − C s , f Z& u , fl + K t Z r , fl − F pfl (4)
to the four unsprung masses (front-left, front-right, rear-
left and rear-right wheels) at each corner (wheel). Sprung
m u Z&&u , fr = K s , f Z s + C s , f Z& s − aK s , f θ − aC s , f θ&
mass has a freedom of movement to heave, pitch and roll
while the unsprung masses have freedom of movement (
− 0.5wK s , f ϕ − 0.5wC s , f ϕ& − K s , f + K t Z u , fr )
vertically on each wheel that is connected to the sprung
mass. − C s , f Z& u , fr + K t Z r , fr − F pfr (5)
Referring to Figure 1, the force balance on sprung
mass is given as m u Z&&u , rl = K s , r Z s + C s , r Z& s + bK s , r θ + bC s ,r θ&
Ffl + Ffr + Frl + Frr + Fpfl + Fpfr + Fprl + Fprr = ms Z&&s (1) + 0.5wK s , r ϕ + 0.5wC s.r ϕ& − (K s , r + K t )Z u , rl

where, − C s , r Z& u , rl + K t Z r , rl − F prl (6)


Ffl = suspension force at front left corner
Ffr = suspension force at front right corner m u Z&&u , rr = K s , r Z s + C s , r Z& s + aK s , r θ + bC s , r θ&
Frl = suspension force at rear left corner
Frr = suspension force at rear right corner − 0.5wK s ,r ϕ − 0.5wC s ,r ϕ& − (K s ,r + K t )Z u ,rr
ms = sprung mass weight − C s , r Z& u , rr + K t Z r , rr − F prr (7)
Z&&s = sprung mass acceleration at body CoG
F pfl ; F pfr ; F prl ; F prr = pneumatic actuator forces a where,
front left, front right, rear left and rear right corners. Z&&u , fr = front right unsprung masses acceleration
Moment balance equations are derived for pitch θ and Z&&u , fl = front left unsprung masses acceleration
roll ϕ , and are given as
Z&&u ,rr = rear right unsprung masses acceleration
( ) (
I yy θ&& = 2 aK s , f −bK s ,r Z s + 2 aC s , f − bC s , r Z& s ) Z&&
u ,rl = rear left unsprung masses acceleration

( ) (
− 2 a K s , f + b K s , r θ + 2 a C s , f + b C s , r θ&
2 2 2 2
) Z r , fr = Z r , fl = Z r ,rr = Z r ,rl = road profiles at front
left, front right, rear right and rear left tyres.
− aK s , f Z u , fl − aC s , f Z& u , fl − aK s , f Z u , fr +
− aC s , f Z& u , fr + bK s ,r Z u ,rl + bC s ,r Z& u , rl Vehicle Handling Model used in this paper is 3-DOF
system with three degrees of freedom account for the
+ bK s ,r Z u ,rr + bC s ,r Z& u ,rr vehicle body with lateral movement (Ay) and longitudinal
−( F pfl + F pfr )l f + ( F prl + F prr )l r (2) (Ax) and yaw motion (r).

( ) (
` I xx ϕ&& = −0.5w 2 K s , f + K s ,r ϕ − 0.5w 2 C s , f + C s ,r ϕ& ) Longitudinal acceleration can be defined as

+ 0.5wK s , f Z u , fl + +0.5wC s , f Z& u , fl  Fxfl cos δ + F yfl sin δ + Fxfr cos δ 


 
− 0.5wK s , f Z u , fr − 0.5wC s , f Z& u , fr +  + F yfr sin δ + Fxrl + Fxrr 
+ 0.5wK s , r Z u ,rl + 0.5wC s ,r Z& u ,rl ax =  
(8)
mt
− 0.5wK s ,r Z u , rr − 0.5wC s , r Z& u ,rr
w w
+ ( F pfl + F prl ) − ( F pfr + F prr ) (3)
2 2
3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

Lateral acceleration can be defined as

 F yfl cos δ − Fxfl sin δ + F yfr cos δ 


 
 − Fxfr sin δ + F yrl + F yrr 
ay =  
(9)
mt

where Fxij and Fyij denote the tire forces in the


longitudinal and lateral directions, respectively, with the
index (i) indicating front (f) or rear (r) tires and index (j)
indicating left (l) or right (r) tires. The steering angle is
.
denoted by δ, the yaw rate by r and mt denotes the total Figure 3. The Proposed Control Structure
vehicle mass.
The yaw motion is also dependent on the tire forces A. Fuzzy Logic Controller (FLC)
F xij and F yij as well as on the self-aligning moments,
FLC is the primary control on the Proposed Control
denoted by M zij acting on each tire: Structure is used to eliminate the error between the input
and output plant of lateral motion.
The main structure of Fuzzy Logic Control, among
w w w w  others; Fuzzification, crisp variables in this process is
 Fxfl cos δ − Fxfr cos δ + F xrl − Fxrr 
 2 2 2 2  error and the delta error is converted into fuzzy variables,
.. 1  + w F sin δ − w F sin δ − l F − l F  Fuzzy sets of rules consist of some fuzzy rules are
r=  yfl yfr r yrl r yrr  grouped into the rule base.
Jz  2 2  Membership Function is a function to express the
 + l f Fyfl cos δ + l f Fyfr cos δ − l f Fxfl sin δ −  degree of fuzzy membership. Form of membership
 
 l f Fxfr sin δ + M zfl + M zfr + M zrl + M zrr  functions used in this paper is a triangular shape
  (Triangular Function), each membership function in the
(10) input and output consists of seven triangular membership
functions with 49 rules, and FLC that is used has the
where, J z is the moment of inertia around the z-axis. ability to simultaneously tune on the input and output
FLC. Each membership function has the term Negative
Vehicle dynamics model built based on 10 DOF systems, Big (NB), Negative Medium (NS), Negative Small (NK),
which means involving 10 mathematical equations that Zero (Z), Positive Small (PK), Positive Medium (PS),
represent 10 vehicle dynamic motion, vehicle models Positive Big.
built using MATLAB-SIMULINK application.
NB NS NK Z PK PS PB

-2.5∆ -2∆ -1.5∆ -1∆ -0.5∆ 0 0.5∆ 1∆ 1.5∆ 2∆ 2.5∆

Figure 2. Full vehicle model in MATLAB-SIMULINK Figure 4. Parameter Membership Function

III. SYSTEM CONTROL SIMULATION All parameters of each membership function is a


function of ∆, so that if the value of ∆ changes, then any
Vehicle steering control system built on these simulations parameters in membership function will change,
using Fuzzy Logic control and PID control. The vehicle including changes in the central triangle and the width of
front wheel alignment is the output of the plant. Plant the triangle membership function. Change the value of ∆
output is expressed in the yaw rate and slip angle which is depends on the multiplier of ∆, for the membership
the characteristic lateral and longitudinal force. Plant function on the input of the error ∆E = 0.01 x ER;
input is the steering input using a reference lookup table membership function on the input of the delta error ∆D =
x-y trajectory of the double lane change. 0.01 x DE; and membership function on the output ∆O =
3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

0.01 x OT. In this paper the value of the multiplier ER, PSO is initialized with a population of random
DE and OT optimized in advance using the PSO, so that solutions and search for the most optimal solution by
the width (Ln) and center (Pn) form a triangle updating members of the population. Each solution is
membership function according to the data to be called a particle randomly. Each particle moves in the
controlled. problem space and has the best value that has been
achieved, this value is called pbest. Value of the "best"
Pn Pn+1 others is the best value achieved by any particle in the
population, this value is called gbest. PSO has a velocity
that will change the position of the particle-particle at
each iteration. At each iteration the value of velocity and
position are updated.
Equation PSO algorithm consists of velocity and
position, the most fundamental is as follows:
Velocity:
-1∆ 0 1∆ 1∆ 0 1∆

Ln Ln+1
Figure 5. Parameter Membership Function (11)
And position:
Defuzzification is the process of changing the fuzzy (12)
output variable back into a crisp variable. Defuzzification
methods used in this paper is the Centroid where:
defuzzification. i = particle index
k = iteration
v = velocity of particle ith
B. PID Control x = position of particle ith
On The Proposed Control Structure is second control that p = the best position of particle ith (pbest)
is useful to refine the control system. FLC output used as G= the best position of swarm (gbest, the best from all
the setting point yaw motion, ideally, after the lateral particle)
motion errors are eliminated, giving the sense that the w = inertia
vehicle has moved without any lateral force, in other L1,2 = learning rates
words, that the yaw motion equal to zero. PID control R1,2 = random number with the interval [0 – 1]
used as a second control for yaw motion error elimination.
In the control system, known as some kind of control In this paper, an optimized variable number of 6
action and excellence, including Proportional (P) for a variables, which consist of 3 variables to determine the
fast rise time, Integral (I) to minimize error and parameters of membership function on FLC namely NE
Derivative (D) to reduced the overshot / undershot. PID parameters for error input, DE parameters for the delta-
Control Performance depends on the determination of the error input, OT parameters to output FLC and 3 variables
constants Kp, Ki and Kd. In this paper a constant value of to determine the PID control parameters in the form of
Kp, Ki and Kd obtained by tuning the system using the constants Kp, Kd and Ki. This means that PSO works
method Particle Swarm Optimization. optimize six variables simultaneously to find six of the
best particle position or the most optimal.
C. Particle Swarm Optimization
Optimization method based on swarm intelligence IV. SIMULATION RESULTS
algorithm is called behaviorally inspired as an alternative
to genetic algorithms, which often called the evolution- The simulation results using active steering control FLC
based procedures. This model be simulated in space with and PID control tuned by PSO.
a certain dimension with a number of iteration so that at
each iteration, the particle's position will increasingly FLC parameters obtained as follows:
lead to the intended target ER = 8.0617
Particle Swarm Optimisation (PSO) is an optimization DE = 7.3913
technique developed by Dr. Eberhart and Dr. Kennedy in OT =5.1802
1995, inspired by social behavior of a flock of birds or
fish. For example there is a flock of fish that randomly While the PID control parameters as follows:
search for food in a region and there is only one meal Kp = 79.9145
there. All the birds do not know where the location of Ki = 4.0815
these foods, but they know how far they are from the Kd = 0.1830
food in every iteration. So the most effective strategy is to
follow the fish closest to the food.
3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

And graph the results of the simulation is shown in the


following graph;
Table 1. Benchmark Control System

Velocity
Control C RMS Error
m/s = km/h

13.88 = 50 0.00718
1 PID – PID 16.66 = 60 0.00851
19.44 = 70 0.00994

13.88 = 50 0.006157
2 FL – PID 22.22 = 80 0.006874
23.61 = 85 0.006938

13.88 = 50 0.004620
Figure 6. Desired Trajectory
3 FL – PID tuned PSO 22.22 = 80 0.005452
23.61 = 85 0.005551

V. CONCLUSIONS
The results of simulation tests it was found that by
using fuzzy logic control system on the lateral motion,
and the PID control system in yaw motion tuned by PSO
of the plant in the form of full vehicle model, vehicle
stability can be maintained in accordance with the desired
trajectory (velocity maximum 23.61 m/s; CRMS error =
0.005551). These results represent the first stage in the
form of simulated active steering control that further
Figure 7. Output Plant testing will be done through the HILS (Hardware in the
Loop simulation) in subsequent research.

REFERENCES
[1] Avak, B., Modeling and Control of a Superimposed Steering
System, Thesis, Master of Science, School of Electrical and
Computer Engineering, Georgia Institute of Technology, 2004.
[2] Guldner J., Tan H.S., Patwardhan S., On fundamental issues of
vehicle steering control for highway automation, California
PATH Working Paper, UCB-ITS-PWP-97-11. 1997.
[3] Hernandez J.I., Kuo C.Y., Steering Control of Automated
Vehicles Using Absolute Positioning GPS and Magnetic
Markers, IEEE Transactions On Vehicular Technology, Vol.
52, No. 1, January 2003, pp. 150-161.
[4] Hingwe P., Tan H.S., Packard AK., Tomizuka M., Linear
Figure 8. Error Lateral Motion Parameter Varying Controller for Automated Lane Guidance:
Experimental Study on Tractor-Trailers, IEEE Transactions On
Control Systems Technology, Vol. 10, No. 6, November 2002,
pp.793-806.
[5] Ahmadi J., Sedigh A.K., Kabganian M., Adaptive Vehicle
Lateral-Plane Motion Control Using Optimal Tire Friction
Forces With Saturation Limits Consideration, IEEE
Transactions On Vehicular Technology, Vol. 58, No. 8,
October 2009, pp. 4098 – 4107.
[6] Cai L., Rad A. B., Chan W.L., Genetic Fuzzy Controller for
Vehicle Automatic Steering Control, IEEE Transactions On
Vehicular Technology, Vol. 56, No. 2, March 2007, pp. 529 –
543.
[7] Ping E.P., Hudha K., Jamaluddin H., Hardware-In-The-Loop
Simulation Of Automatic Steering Control For Lanekeeping
Manoeuvre: Outer-Loop And Inner-Loop Control Design,
International Journal of Vehicle Safety, Vol. 5, No. 1, 2010,
Figure 9. Error Yaw Motion
pp. 35 -59.
3rd International Conference on Engineering and ICT (ICEI2012)
Melaka, Malaysia
4 – 6 April 2012

[8] Adriansyah A., Perancangan Pengendali Robot Bergerak


Berbasis Perilaku Menggunakan Particle Swarm Fuzzy
Controller, Jurnal Ilmu Komputer dan Informasi, Volume 3,
Nomor 1, 2010., pp. 15 – 22.
[9] Wei S., Liu M., Song Y., The Optimizing of Fuzzy Control
Rule Based on Particle Swarm Optimization Algorithms, Third
International Conference on Genetic and Evolutionary
Computing, IEEE Computer Society, 2009, pp 645 – 648.
[10] Hudha, K., Kadir, Z., Said, M. and Jamaluddin, H., Modeling,
Validation And Roll Moment Rejections Control Of
Pneumatically Actuated Active Roll Control For Improving
Vehicle Lateral Dynamics Performance, International Journal
of Engineering Systems Modeling and Simulation, 2008, Vol.
1, pp.122–136.
[11] Fauzi, A., Hudha, K., Jamaluddin, H., Gain Scheduling PID
Control With Pitch Moment Rejection For Reducing Vehicle
Dive And Squat, International Journal of Vehicle Safety, Vol.
4, No. 1, 2009.
[12] Falcone, P., Borrelli, F., Asgari, J., Tseng, H. E. and Hrovat,
D., Predictive Active Steering Control for Autonomous
Vehicle Systems. IEEE Transactions on Control Systems
Technology. Vol.15, No. 3, 2007, pp. 566 – 580.
[13] Fachrudin, Robandi I., Sutantra N., Model and Simulation of
Vehicle Lateral Stability Control, 2nd APTECS 2010,
International Seminar on Applied Technology, Science, and
Arts, December 21 – 22, 2010, ITS Surabaya.
[14] Fachrudin, Robandi I., Sutantra N., Vehicle Stability Control
On Steer By Wire System Using Fuzzy Logic, The International
Student Conference on Advanced Science and Technology
(ICAST), Shandong University, Jinan, China, September 23 to
September 27, 2011.

View publication stats

You might also like