You are on page 1of 7

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

net/publication/321991101

Power management for electric vehicle with PID and Fuzzy logic controllers

Conference Paper · April 2017


DOI: 10.1109/ICECA.2017.8212731

CITATIONS READS
3 1,361

3 authors, including:

Anil Kumar Yadav Prerna Gaur


National Institute of Technology, Hamirpur Netaji Subhas University of Technology
42 PUBLICATIONS   342 CITATIONS    95 PUBLICATIONS   785 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Research by TRF View project

All content following this page was uploaded by Anil Kumar Yadav on 15 February 2019.

The user has requested enhancement of the downloaded file.


Power Management for Electric Vehicle with PID
and Fuzzy Logic Controllers
S. K. Jha Anil Kumar Yadav Prerna Gaur
Division of ICE, NSIT, Dwarka, Department of Electronics, Banasthali Division of ICE, NSIT, Dwarka, New
New Delhi, India University, Tonk, Rajasthan, India Delhi, India
E-mails: jhask271@gmail.com anilei007@gmail.com prernagaur@yahoo.com

Abstract - Electric vehicle technology is becoming challenges of electric vehicles, one is the limitation of the
increasingly important as it takes care of the battery package of the car. The battery package is required
environmental issues related to ICE vehicle and to simultaneously possess two attributes, first it should
reduces the dependency on oil. Electric vehicle being contain sufficient energy for having a certain driving
greatly dependent on the limited electrical energy range and secondly it should also possess a sufficient
provided by a battery, the power flow efficiency is very power capability for the continuous accelerations and
important in this context. The major contribution of decelerations. Power being the major parameter needs to
this work is to propose a power management strategy be controlled for efficient working of the electric vehicle;
using PID controller and Fuzzy logic controller so that hence there is the concept of the battery management
the performance of electric vehicle is comparable to system (BMS) [6]-[8].
that of an IC engine vehicle. This has been achieved for Another method to improve vehicle performance
two processes, forward driving and regenerative is through the design of vehicle propulsion systems which
braking using the principle of voltage matching. The maximizes the power to weight ratio and hence
system parameters observed are, namely: vehicle performance, in particular, acceleration. With increasing
power, vehicle torque, vehicle speed, efficiency concern for the environment, a requirement for energy
achieved, demand voltage, which have been simulated efficiency and pollution abatement is being overlaid on
in time domain for input road torque and road speed. performance targets, often leading to conflicting
The result obtained from PID controlled system is objectives. Here, the author describes how with modern
compared to that of Fuzzy Logic controlled system. developments in electric vehicle technology, such
conflicts can be resolved through the optimal design of the
Index Terms- Electrical Vehicle, PID Control, Fuzzy primary power source and energy storage facility. As the
Logic Control, Power Management, conventional PID controllers cannot provide solutions to
all general systems because for this, the transfer function
I. INTRODUCTION of the process should be known [9]. Hence Fuzzy Logic
Burgeoning requirement to reduce the fuel consumption control has become popular for various applications where
and carbon emissions in the transportation sector has transfer function approach fails. For example, designing
inspired to explore and adopt the advance technologies for the DC-DC converters for providing power electronic
electric drive system. Hence obvious choice is found to be interfaces for hybrid electric vehicles is a very herculean
electric vehicles that are being explored as a means of task. A detailed design analysis; and comparison studies of
reducing carbon emissions, improving fuel economy, and several non-isolated and bi-directional DC-DC converter
reducing the operation and maintenance costs [1]. An topologies to ascertain potential candidates for the power
electric vehicle is seen to reduce fuel consumption, electronic interference of HEV power sources. The
improve overall drive system efficiency along with application of PID and fuzzy logic based controllers for
improving the drivability [2]. In addition to all these facts various systems such as hybrid electric vehicle [3], [7],
other important issue is to have a proper model of the [10], [11]; unmanned aerial vehicle [12] and sun seeker
electric vehicle in order to be able to estimate the actual [13] systems are presented in literature.
energy consumption which is very well carried out in [3]- The main aim of this work is to develop an electric
[5]. Different driving control methods of electric vehicle vehicle model, simulate it, and analyze the effect of power
with robust strategy of driving control have also been management strategy used for the two processes, forward
implemented by simulation and experiment of driving driving and regenerative braking. The design technique
control system where the comparison between PID control involves voltage matching between the demand voltage
and robust control method is made. Not with standing all corresponding to inputs and the battery voltage available
these, electric vehicles still have many critical issues in the electric vehicle. This is achieved through PID
worthy to be pondered over and solved. Among the major control and Fuzzy control. The output parameters namely
the vehicle torque, vehicle speed, output efficiency have of time continues to move at the same angular speed and
been observed for both the controllers. The performance motor will now work in generating mode which will cause
of the two controllers is compared. a motor voltage to be generated. This voltage when
applied to the resistor Rl, the current gets further limited
II. ELECTRIC VEHICLE MODELING by the armature resistance of the motor and given by the
A. EV System Model formula as given below:
 ∗
The basic operation of an electric vehicle is depicted in fig  =    (1)


1. It comprises of a battery bank which is used to supply


The torque so developed is known as negative torque
power to the vehicle. Next the electric energy from the
which will slow the motor down, and is given by the
battery is transformed into mechanical energy by an
equation:
electric motor. Since the battery is a DC source, we use an ( ∗ )∗
inverter to convert it into AC power in case an AC driven = (2)
 

motor is used. In this paper, modeling is done using a DC The value of the negative torque declines further in an
motor; hence an inverter is not needed. The battery power exponential way to zero as the speed ω decreases. This
should be sufficient enough to provide the required road method of slowing down of an electric motor is known as
torque and road speed. During high road speed, the battery dynamic braking. Thus the entire kinetic energy of the
should be capable of providing the necessary power to motor (and the vehicle connected to it) is finally converted
accelerate the vehicle. Hence power management of the into heat, just akin to the functioning of normal friction
electric vehicle is very essential. brakes. The electrical energy generated by the motor is not
wasted rather it is stored in a battery or capacitor and is
B. Forward Driving fed back into the supply battery of EV thereby recharging
The torque required for the forward movement of the it through the process of regenerative breaking. If the
vehicle is provided by the battery via the electric motor. voltage of the battery is  and the motor speed is ω, then
The current from the battery is fed to the motor. Hence the the current generated will be given by the equation:
motor provides the mechanical torque for movement of 
= (3)
the car through its wheels. The rotation of the motor that is  
motor torque is transferred to the vehicle wheel through a = (4)

gear system to provide the required power. The decreasing down torque will be directly proportional
to this current. When the value of voltage generated by the
motor (= K*m*ω) becomes equal to the battery voltage,
there will be no more braking effect.

D. Concept of Voltage Matching


The design technique involves voltage matching between
the demand voltage corresponding to inputs and the
battery voltage available in the electric vehicle. The
Fig. 1 Components of an electric vehicle solution to the above stated problem of large currents can
be obtained by using voltage converter circuit. The
C. Regeneration converter unit better known as a DC/DC converter draws a
In EVs, regeneration part is also very important feature current Im from the electric motor which is generated at
wherein an electric motor is used to transform kinetic voltage Vm. This generated voltage Vm will change
energy again into electrical energy and is schematically according to the speed of motor. The DC/DC converter
shown in fig. 2. takes this electrical power (= Vm×Im) and send it at an
increased voltage (and reduced current) so that it matches
the rechargeable battery or capacitor that is storing the
energy. The main point here is that even as the motor
voltage is considerably lower than the battery voltage, it
can still be supplying charge to the battery.

Fig. 2 Motor circuit for braking E. Power Flow


The fig. 3 shows the block diagram of the power flow in
In fig. 2, A DC motor is shown connected to a battery. The an electric vehicle. The cycle starts with the battery
battery provides the torque T at a speed ω. When the supplying the necessary power to the DC motor, which in
switch S is connected to the right, the motor at that point turn produces the road torque required for the movement
of the vehicle via a gear box system. This process is the Power and efficiency calculation
normal forward driving mode. When the brakes are 8 = I)*+ ∗ V)*+ (13)
applied, the vehicle is forced to stop, meaning a reverse ?
Ef:iciency = ? ?@AB CDEE ?FGHIJ IDEE KL/./7L).M NLOO
(14)
acting torque is applied to the DC motor. Hence, now the
electric motor acts like an electric generator. Current starts
B. PI Controller Technique
flowing in the opposite direction. It now flows into the
The demand road torque and road speed are the inputs
supply battery, thereby charging it. This reverse process is
given to the system. The motor model evaluates the
known as the regeneration process. Extra power needed
corresponding voltage and current demands according to
for accessories like automatic window shield opening,
the required road speed and torque. The Block diagram of
lighting, music system or air conditioning in the car can be
Electric Vehicle System with PID Controller is shown in
provided by the same supply battery or a separate one
fig. 4.
could be used to take care of these needs.

Fig. 4 Block diagram of Electric Vehicle System with PID Controller

This demand voltage is then compared to reference


voltage to calculate the error, i.e. the difference of the two
Fig. 3 Block diagram showing Forward Driving and Regeneration
voltages. The error signal is then given to the PID
controller, whose output is the correction factor ‘k’ which
III. POWER MANAGEMENT STRATEGY
decreases the voltage and increases the current
The strategy of power management adopted in this paper
accordingly to meet the high power demand. The model is
is based on the concept of voltage matching. Voltage
implemented using Matlab Simulink. The PID controller
matching is achieved between the demand voltage
is auto tuned using the auto tune feature in the simulink
corresponding to input road torque/speed and the battery
platform.
voltage available in the electric vehicle. The high voltage
demand is met by decreasing the voltage and increasing
C. Realization of Control Strategy Based on Fuzzy Logic
the current by a factor in order to keep the power constant.
Control Strategy
This factor ’k’ (as used in the model) is the variable under
The same model is used to implement Fuzzy Logic as
consideration for the controllers. The control action is
well. The PID block is replaced by the fuzzy logic
carried out to manipulate k to achieve optimized control
controller block and an integrator. The same correction
action. Thus the power management is achieved by
factor ‘k’ is now manipulated with this controller which
manipulating and controlling this factor through PID and
decreases the voltage accordingly to meet the demand
Fuzzy Logic Controllers.
voltage. The forward driving action and regeneration
A. Equations used for Designing of Model
mode have been separately experimented upon on two
Motor voltage and current calculations:
different models with each mode having same set of fuzzy
 =  (5)
 rules but with different ranges of the membership
The voltage demand V and current I, is calculated by functions.

 =  ∗  +  ∗ +  (6)

= (7)

Controller gives the new adjusted voltage and current:

!" = ; !" =  ∗ # (8)

New torque and speed calculations is given as
Fig. 5 Block diagram of EV System with Fuzzy Logic Controller
!" =  ∗ !" (9)
$
= (10) In our study, the fuzzy logic controller scheme consists of
Error calculation two inputs namely, the voltage error (‘error’) and the error
error = I)*+ R -./ + V)*+ − E- (11) derivative voltage (‘δ error’) and one output, the
PI calculation correction factor ‘k’. The input variable error (e) consists
k = (K5 + s ∗ K 7 ) ∗ error (12) of three membership functions: PL, PM, PH; input
variable δe also consists of three membership functions: model are taken as: Road Torque=160N and Road
“negative low” (NL), “negative medium” (NM), “negative Speed=5000rpm, supply battery voltage is 200V, which is
high” (NH). And the output variable δK consists of five our reference voltage (Vref). Our objective is to minimize
membership functions: “positive very low” (PVL),” the error in minimum time and hence supply an optimum
positive low” (PL), “positive medium” (PM), “positive voltage from supply battery to meet the demand. Same
high” (PH), and “positive very high” (PVH). The range of parameters are used with both PID and FL Controllers.
the δK depends on the value of road speed and road torque The results of PID controller and FLC are compared
given to the system and is calculated from the respective together in one plot for forward driving mode and
PID system. The membership functions of the inputs are regeneration mode. The two modes are tested upon two
shown in fig. 6-8. separate models. For the regeneration mode the applied
torque becomes negative. The simulation results are given
in figs. 9 to16.

Forward driving mode:


Fig 6.membership functions for input “error” • Error: The difference of battery voltage and demand
voltage shoots to a very high value, near 6.5x105 and
then reduces to zero for both the cases.
• Correction Factor ‘k’: ‘k’ is the output of the PID
controller and FLC respectively and approaches the
steady state value. As seen from the plot the FLC attains
the steady state value at faster rate as compared to the
Fig. 7 Membership functions for input “derivative of error (δe)
PID controller.
• Vehicle speed: It was observed that the speed of the
electric vehicle decreases to a very low value according
to the demand road speed to maintain the power
constant.
• Voltage: The high voltage demand is taken care off as
Fig. 8 Membership functions for output “correction factor: k” the correction factor appropriately decreases the voltage
keeping it below the capacity of the supply battery
The rule base is made for the above mentioned (200volts) and increases the current by the same factor
membership functions. A PID based rule base is created, to keep the power constant. The FLC attains the steady
i.e. the range of the error and its derivative are first state voltage at a faster rate as compared to the PID
calculated on the PID controller and then these ranges are controller. Moreover FLC attains a voltage value much
used to define the ranges of the membership functions in less than that of PID as seen from the graph.
the fuzzy rules. The rule base is summarized in a two
dimensional matrix table is given below. Centroid method x 10
5

FLC
used as the defuzzification strategy. 6
PID Controller
Value of Error

4
Table 1 Fuzzy Logic Rules
δe e PL PM PH 2

NL PVL PL PM
0
NM PL PM PH
NH PM PM PVH 0 2 4 6 8 10 12 14 16 18 20
Time (sec)

Fig. 9 Forward driving – error


IV. SIMULATION RESULTS AND DISCUSSION
Value of correction factor'k'

The simulation was carried out for both forward driving 10 FLC
PID Controller
mode and regeneration mode of the electric vehicle with 8

6
PID and Fuzzy Logic Controllers. Various values of road
4
speed and road torque were tested upon. Different
2
combinations of road torque and road speed correspond to
0
a different voltage error range. Hence in order to set the 0 50 100 150 200
Time (sec)
250 300 350 400

range of error membership function for the FLC, we have


Fig. 10 Forward driving – correction factor ‘k’
to set a different range altogether from the result of PID
controller simulation. The inputs of the electric vehicle
6
x 10
4
FLC

Vehicle Speed (rpm)


PID Controller
3

0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec)
Fig.11 Forward driving – speed
600
FLC
Value of voltage (Volts)
500 PID Controller

400

300

200

100

0
0 50 100 150 200 250 300 350 400
Time (sec)
Fig. 12 Forward driving – Voltage

Regeneration mode: The model for the regeneration • Vehicle speed: The speed reduces at faster rate for the
remains the same. Only the input road torque is inverted. FLC as compared to PID.
The results observed are shown below. • Value of ‘V’: The value of ‘V’ reduces to the battery
• Error: The difference of battery voltage and demand voltage (200volts) so that voltage matching is achieved
voltage shoots to a very high value and ultimately and error reduces to error for the PID. FLC achieves a
reduces to zero. lower voltage value thereby reducing the battery charge
• Value of ‘K’: ‘K’ is the output of the PID controller further.
which approaches the steady state value of 2.2. The
FLC approaches the steady state value of 10 faster.
5
x 10
8
PID Controller
FLC
6
value of Error

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time (sec)
Fig. 13 Regeneration – error
10
value of correction factor 'k'

FLC
8 PID Controller

0
0 5 10 15 20 25 30 35 40 45 50
Time(sec)
Fig. 14 Regeneration – value of ‘k’
3500
FLC
Vehicle Speed(rpm)

3000 PID Controller

2500

2000

1500

1000

500
5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10
Time (sec)
Fig. 15 Forward driving vehicle speed
600

value of Voltage (volts)


FLC
500 PID Controller

400

300

200

100

0
0 50 100 150 200 250 300 350 400 450 500
Time (sec)
Fig. 16 Regeneration – value of Vehicle voltage

V. Conclusion and Future Scope [2] Wei Liu, Introduction to Hybrid Electrical Vehicle System
Modelling and Control, Ed. New Jersey: Wiley, 2013.
[3] Anil Kumar Yadav, Prerna Gaur, Shyama Kant Jha, J.R.P. Gupta,
In this paper, we have implemented an electrical vehicle “
A.P. Mittal, Optimal Speed Control of Hybrid Electric Vehicles”,
system model using brushed DC motor and formulated a Journal of Power Electronics, vol. 11, no. 4, pp 393-400, 2011.
technique for power management using two controllers, [4] Chuanwei Zhang, Zhifeng Bal, Binggang Cao, Jiarang Lin,
PID and Fuzzy Logic controller. The models ensure that “Simulation and Experiment of Driving Control System For
Electric Vehicle,” International Journal Of Information and
the high power requirement is fulfilled through our
Systems Sciences, Vol. 1, No. 3-4, pp. 283-292, 2005.
control technique of voltage matching and takes into [5] Liu, Van-Tsai, Yu, Mu-Tsan; “Design of Power Management for
account the various losses incurred by the motor. The Electric Vehicle,” vol. 9, no. 1, pp. 92-98, 2012.
voltage fed to the motor is so adjusted by the converter so [6] Timothy J. Ross, “Fuzzy Logic with Engineering Applications”:
Mcgraw Hill, 1995.
that it matches the rechargeable battery. The current is
[7] Yadav AK, Gaur P., “An Optimized and Improved STF-PID Speed
then adjusted so that the power remains the same. The Control of Throttle Controlled HEV,” The Arabian Journal for
simulation results showed better results when fuzzy logic Science and Engineering, vol. 41, no.9, pp 3749-60, 2016.
controller technique was used. The PID controller resulted [8] Ang KH, Chong G, Li Y., “PID Control System Analysis, Design,
and Technology”, IEEE Transactions on Control Systems
in a higher settling time as compared to that of fuzzy logic
Technology, vol. 13, no.4, pp.559-76, 2005.
controller. Further the efficiency achieved by the electric [9] Neath MJ, Swain AK, Madawala UK, Thrimawithana DJ., “An
vehicle was improved when Fuzzy Logic Controller was Optimal PID Controller for a Bidirectional Inductive Power
used. The model can be extended further and improved. Transfer System using Multiobjective Genetic Algorithm,” IEEE
Transactions on Power Electronics, vol. 29, no.3, pp. 1523-31,
The efficiency of the electric vehicle using DC motor was
2014.
quite low. Moreover it is heavy and bulky. To overcome [10] Yadav AK, Gaur P. Robust adaptive speed control of uncertain
these limitations, a brushless DC motor or a Switched hybrid electric vehicle using electronic throttle control with
Reluctance motor can be used. The complex circuitry is varying road grade, Nonlinear Dynamics vol. 76, no.1, pp.305-21,
2014.
used for these motors and can be achieved using power
[11] Yadav AK, Gaur P., “Improved STF-PID Vs Fuzzy Adaptive PID
electronics. Instead of using a rechargeable battery for for Speed Control of Nonlinear Hybrid Electric Vehicles,” Journal
energy storage, capacitors or flywheels could be used in of Computational and Nonlinear Dynamics, vol. 11, no.6,
future work. The gear ratio has not been considered in the pp.061013-7, 2016.
[12] Anil Kumar Yadav and Prerna Gaur, “AI based Adaptive Control
models designed. A suitable gear ratio can be used to
and Design of Autopilot System for Nonlinear UAV,” Sadhana,
transfer the power from motor to the drive wheel. vol. 39, no. 4, pp. 765-783, 2014.
[13] Shyama Kant Jha, Anil Kumar Yadav, Prerna Gaur, J.R. P. Gupta
REFERENCES and Harish Parthasarthy, “Robust and Optimal Control Analysis of
[1] James Larmine, John Lowry, Electrical Vehicle Technology Sun Seeker System,” Journal of Control Engineering and Applied
Explained, Ed. New York: Wiley, 2003. Informatics, vol. 16, no. 1, pp. 70-79, 2014.

View publication stats

You might also like