Power Supply Management for an Electric Vehicle Using Fuzzy Logic

The technology of power electronic systems has diversified into industrial, commercial, and residential areas. Developing a strategy to improve the performance of the electrical energy of an electric vehicle (EV) requires an analysis of the model that describes it. EVs are complexmechatronic systems described by nonlinear models and, therefore, its study is not an easy task. It can improve the performance of a battery bank by creating newbatteries that allow for greater storage or by developing amanagement energy system. This article shows the development of a power supply management system based on fuzzy logic for an electric vehicle, in order to minimize the total energy consumption and optimize the battery bank.The experimental result is shown using the fuzzy controller under standard operating conditions. An increase in battery performance and overall performance of energy consumption is shown. Speed signals acquired show improvements in some dynamic, such as overshoot, settling time, and steady-state error parameters. It is shown that this fuzzy controller increases the overall energy efficiency of the vehicle.


Introduction
Some of the reasons why cars that use alternative sources of energy have become a necessity are emissions regulations, advances in electric motor technology, and the creation of high-performance batteries [1]. Several companies around the world have begun to consider more seriously the commercialization of electric vehicles (EV). The technology of electric vehicles has achieved a performance comparable to combustion engines. Hybrid cars combine properties to improve EV performance, electric traction engines provide fast acceleration, and the internal combustion engine works well at constant speeds. ( [2,3]).
Currently, most EVs are powered from an external generating plant, which feeds a battery bank. Energy storage methods include chemical energy stored in the vehicle by batteries. The low power density and a reduced life cycle are some of the shortcomings of the electrochemical battery.
A great advance is the creation of new energy storage systems composed of solar cells, high-performance batteries, or electronic power systems. The use of power electronics technology using power consumption control of the battery bank reduces the discharge cycle of the battery and increases the EV travel distance [4]. Figure 1 shows the EV UPChis01 created by professors and students of mechatronic engineering of Polytechnic University of Chiapas. This article proposes an approach to power management applications in EV based on reducing the current power supplied by the battery bank. The main advantage of this proposal to improve the life cycle of the battery bank and improve performance using a fuzzy system. The rest of the paper is organized as follows. First, the characteristics of the electric vehicle and the model used in this study are shown. It describes the input and output variables, membership functions, and fuzzy system rules. It showed experimental results of the proposed solution, comparing the EV 2 Applied Computational Intelligence and Soft Computing performance under normal conditions. Finally, the discussion of the results will be made in the last section.

Related Works
In Mexico, several universities have developed electric vehicles that meet various international quality standards; the Faculty of Engineering of the UNAM recently built the car "Kalani", which is a three-wheeler vehicle with a steel frame and fiberglass. It has a weight of 50 kilos and is 120 centimeters wide by 220 centimeters long and 80 centimeters high and also features lithium cells 1000 watts and an efficiency of 14 kilometers on a single charge. Moreover, the School of Mechanical and Electrical Engineering of the National Polytechnic Institute of México modified a Volkswagen sedan car to build an electric car; it works in a voltage range of 36-92 volts. The battery bank consists of six deep-cycle 8 V leadacid batteries each. The Center for Automotive Mechatronics Research of the Monterrey Institute of Technology and Higher Education Institute of Technology, campus Toluca, is currently developing a commercial EV. Companies to distribute their products within cities will use this EV; this project is in coordination with the Energy Agency of Mexico.
It is necessary to optimize the full use of the available energy of an EV battery subjected to different speeds. Most schemes use a PID controller to manage battery power. The conventional PID controller requires some adjustment for a quick and dynamically acceptable response. Perform a PID control; a precise adjustment is required to obtain a fast response that adapts dynamically to the model; the circuits of the operational amplifiers are used to measure the parameters of a linear model. The main disadvantage of circuits is their degradation due to time and high temperatures.
The self-excited induction generator used in these motors has the inherent problem of fluctuations in the size and frequency of voltage changes in speed. The solution to this problem is to rectify the variable frequency voltage at the generator terminals and use a PWM inverter to receive and send the electric power. The goal is to track and extract the maximum power of the power system and transfer this power to the local isolated load.

Materials and Methods
. . EV Components. The general characteristics and the components of the electric vehicle are described. It is a Volkswagen sedan car with a 4-cylinder internal combustion engine, model 2000, with a mass of 550 kg. The electric motors used are Chinese manufacture and detailed datasheets were not available. There is a simple description of the engine conditions.
The basic description of the components of EV UPChis01 is described in Table 1.
There are different types of architecture for electric vehicles [6]. Some possibilities are 1 to 4 electrical machines, AC or DC electric machines, with or without a gearbox, high or low voltage batteries, and one or three charging phases. The chosen architecture is shown in Figure 2.
The original design had some problems that affected the performance of the engine and batteries. The batteries are composed of a liquid electrolyte of sulfuric acid and lead plates forming the anode and the cathode. This type of battery was the most common for traction of electric vehicles, given its robustness, great offer in the market, and low price. However, they require periodic revision and replacement of the electrolyte level, which evaporates during recharging. In addition, they have a significant environmental impact if they are not recycled and have a short life cycle.
The efficiency of the batteries is directly affected by the acceleration of the car. On many occasions, the charge of the battery bank was unbalanced. It was estimated that the battery bank should be changed every 2 years and cost is around US$ 3,000. In Mexico, this cost is very high. So it was necessary to perform an energy manager for the EV.
The manufacturers claim that the electric motor reaches speeds above 100 km / h; it was not safe for the user to reach that speed due to the type of batteries used. The electric motor may suffer wear of the bushings, so it should be checked periodically. An adequate way to perform this review is by analyzing the noise and heat levels generated by the engine. If the motor begins to present increases in temperature or noise higher than its normal condition then there is a bushing wear. The engine data sheet does not contain information on these parameters. The operating limits had to be established according to the experience of use of the vehicle. In the average in which the internal part of the engine is inspected in a timely manner and the worn parts are replaced, maintenance cost overruns will be avoided and a better performance of the vehicle will be obtained, as well as a longer service life of the vehicle.
It is clear that these batteries are inadequate for the development of EV. They have a low energy density and low efficiency is usually 70-75%. However, this type of batteries was used because they are popular in Mexico.
It was decided to make changes in the electric car to increase user safety. Table 2 shows the components of the modified version of the EV.  LabVIEW software is used to implement this integrated system in a CompactRIO from the National Instruments Company. A CompactRIO is a real-time embedded industrial controller made for industrial control systems. The Compact-RIO is a combination of a real-time controller, reconfigurable input/output modules, FPGA module, and an ethernet expansion chassis. LabVIEW and National Instruments technology are used in many engineering applications [10].
. . Mathematical Analysis. The forces exerted on the electric vehicle are due to gravity, wind, rolling resistance, and inertial effect being analyzed. Such forces can be observed in Figure 3. In [9,11] there is a detailed analysis of these forces.
The tire force of a vehicle may be described by the following equations: The description of each of the variables in the model is shown in Table 3.   Figure 3: Force analysis.  . . Fuzzy Sets. The main objective of this work was to apply a fuzzy logic controller to verify if the controller improves the power consumption of the EV. Following these ideas, the fuzzy inference system developed is based on rules "if. . . then. . .".
In this section, the development of the fuzzy system will be described. In [8] an experimental test was created for electricity consumed in an EV.
There are several heuristic approaches applied to electric or hybrid vehicles. Using the results of articles 2 and 3, a fuzzy system was built to act as an EV power manager.
In this case, the fuzzy system is a power division manager and controls all systems built into the vehicle. Through a network of CAN controller (Controller Area Network), that is, a communication protocol based on a bus topology for the transmission of messages in a distributed environment, the network is used to communicate all devices each other.
Some of the reasons why triangular and trapezoidal functions are used are explained in [12]. Wu makes a comparison between the different membership functions by identifying the best situations for each use. Three reasons are highlighted below: (1) Construction: it refers to methods to obtain membership functions. Generally, there are two methods to create a membership function: a mathematical model is needed to describe the plant and use optimization techniques to adjust the parameters. It is easier to model variables if a linearization is performed such as to control the current of the battery required by the power controller. (2) Monotonicity: it describe to the system and conservation the original structure during a process. A monotonic function is expressed as a mathematical expression that does not change the given order. A trapezoidal function works better than Gaussian function. (3) Computational cost: it is the control actions in real time depending on the algorithm used. An algorithm that minimizes the number and order of operations is necessary. A controller that performs a faster process is the desired one. For a Mamdani type system with 50 rules or less, the Gaussian function works better. However, in the case of this study, more than 100 rules are used and an inference with trapezoids and triangles functions is made faster. Table 4 indicates the linguistic variables, their membership functions, and the type of function used in each case. Figures 4-7 show the variables of the slope, speed, depth of discharge, and speed corrected, respectively. The systems is a MISO controller type (multiple input single output) which has inputs, road slope, depth of discharge, and driving speed, and output, corrected speed.   . . Fuzzy Rules. Driver tasks slow EV to reduce energy consumption of the vehicle. First, the slope of the inputs is derived from the gradient of the road, depth of discharge is calculated from the EV modeling, and speed is used. The fuzzy controller acts in situations where the depth of discharge is greater than 70% and applied directly on vehicle performance and the system slows to protect the battery  power by reducing the power consumption, since it is directly proportional to the tensile force of the EV. This driver works in different environments (flat slope of the road, ascending and descending scenarios).
There are 140 rules. Figure 8 shows the fuzzy system developed in the Fuzzy System Designer of LabVIEW. For example, one of these rules is as follows: Applied Computational Intelligence and Soft Computing In this case, the fuzzy controller acts in the following manner: the speed is reduced (output variable CORRECTED SPEED) since a discharge of the batteries superior to 70% was detected (ECO MODE set) so that the speed requested by the user is modified by a value of speed adapted to the conditions of the battery and road conditions (FLAT set).

Results and Discussion
In 2015, the design and construction of EV UPChis01 were carried out with financing from the Ministry of Education of Mexico. In 2016, a grant was awarded to improve the EV design. This research began in 2017. The proposal was presented to improve battery performance and improve efficiency using intelligent control.
A driving cycle consists of microtravel and has a period of 5 to 40 minutes. This duration must contain sufficient microtrips that reflect driving behavior in the real world. The following are some basic cycle parameters carried out by a section of the new highway Tuxtla Gutierrez, Suchiapa, Villaflores (Duration: 499 s; distance: 5.4 km; average speed: 60.2 km / h; maximum speed: 85.5 km/h). Figure 9 shows the minitrip used in experimental results.
In any case, it is important to get key variables such as speed, acceleration, distance, and slope of the route. When talking about the development of the management cycle, three steps are important: route selection, data collection, and construction cycle. Route selection involves selecting the course to describe the cycle. It is to determine whether the route is a highway with a constant velocity, arterial roads, or urban driving, for example. Data collection is the ability to collect data parameters with appropriate sensors to describe the driving cycle. Finally, several microtrips are made and once all the data is collected, the time domain function of the vehicle speed is constructed.
Speed driving cycle and controlled speed are expressed in Figure 10. In the chart, the white line represents the speed of a travel cycle without using the fuzzy controller. The red line represents the speed of a trip cycle using the fuzzy controller. If the fuzzy system is deactivated then a higher average speed is observed.     In Tables 5, 6, and 7, the average values of energy consumption, power loss, and current of a travel cycle are shown.
The mean values obtained in the experimental results show a general improvement of 25.7% with the application of the fuzzy system. These results give a sign of improvement in the performance of the battery bank.
In Figure 11, the depth of discharge versus time is illustrated. Increased autonomy of the vehicle is visible when the cycle with the controller has a time interval longer battery to drain all time.
The data is saved and analyzed when an empty battery discharge value is reached. This value is close to 95%. Energy, current, and power loss were analyzed under normal conditions of use and will be purchased with the results obtained with the fuzzy controller. A difference in the discharge level of the batteries is observed in a travel cycle of 10,000 seconds under normal road conditions. It is possible to take a longer route when the fuzzy system acts on the EV (white line).

Conclusions
Experimental tests show that with the integrated controller in the EV desired results were obtained. In all, lower values for all parameters analyzed were generated values, demonstrating the effectiveness of the system implementation. The electric power consumption was reduced in all tests, giving integrity and security to the battery bank.
The results obtained in the different tests, in which the components of the electric vehicle were demanded to the maximum, were able to determine its functionality. This allowed us to carry out the programming of the diffuse system in order to make the most of its efficiency. The results of the tests show that the electric motor does not overheat at any time. The temperature increases gradually to levels below 92 ∘ C.
A longer trip is a success of the system since it prevents the battery discharged. This offers the driver the opportunity to find a nearby charging station. It will be necessary to determine whether the conduct for the highway has the same behavior as the system in an urban environment. It is likely that the speed is reduced naturally by traffic conditions and speed limits that occur in a city.
Presumably, in most scenarios highway speeds higher than the EV can be a viable solution for communication between small towns near the city. Therefore, to improve system analysis and conducting research on different topics are adopted in the project.
Suggestions for future studies are in the sense of improving the model of the electric motor using a battery model Li-Ion or applying new types of controllers such as Fuzzy PID or fuzzy neural networks.
It has a list of mechanical and electrical elements and the restrictions that are required to make the conversion of the internal combustion vehicle into an EV possible.

Data Availability
The software used to support the findings of this study has not been made available because it was developed for Applied Computational Intelligence and Soft Computing 9