A Real-Time Simulink Interfaced Fast-Charging Methodology of Lithium-Ion Batteries under Temperature Feedback with Fuzzy Logic Control

The lithium-ion battery has high energy and power density, long life cycle, low toxicity, low discharge rate, more reliability, and better efficiency compared to other batteries. On the other hand, the issue of a reduction in charging time of the lithium-ion battery is still a bottleneck for the commercialization of electric vehicles (EVs). Therefore, an approach to charge lithium-ion batteries at a faster rate is needed. This paper proposes an efficient, real-time, fast-charging methodology of lithium-ion batteries. Fuzzy logic was adopted to drive the charging current trajectory. A temperature control unit was also implemented to evade the effects of fast charging on the aging mechanism. The proposed method of charging also protects the battery from overvoltage and overheating. Extensive testing and comprehensive analysis were conducted to examine the proposed charging technique. The results show that the proposed charging strategy favors a full battery recharging in 9.76% less time than the conventional constant-current–constant-voltage (CC/CV) method. The strategy charges the battery at a 99.26% state of charge (SOC) without significant degradation. The entire scheme was implemented in real time, using Arduino interfaced with MATLABTM Simulink. This decrease in charging time assists in the fast charging of cell phones and notebooks and in the large-scale deployment of EVs.


Introduction
The extensive use of petrol, diesel, and other fossil fuels in automobiles has had adverse effects on global warming and greenhouse gas (GHG) emissions [1][2][3].In addition to global warming and GHG, the fossil fuel prices are increasing rapidly, which is a setback in the automobile industry.To overcome these economic and pollution problems, electric vehicles (EVs) and plug-in hybrid electric vehicles (PHEVs) are becoming a transportation secondary option [4][5][6][7][8].By 2050, the annual sale of EVs and PHEVs is expected to reach approximately 100 million [9].This growth in the demand for EVs and PHEVs has captivated many researchers to design rechargeable batteries [10][11][12].Lithium-ion, lead acid, and nickel-metal hydride(NiMH) batteries have been adopted as energy charge storage devices in EVs and PHEVs [13].The lithium-ion battery is preferred because of its long life cycle, reliability, high energy density, low toxicity, low self-discharge rate, high power density, and high efficiency [14][15][16][17].
A single cell of a lithium-ion battery has a low voltage.Therefore, a combination of cells is used in series to boost the voltage, but its outcomes are deep discharging, overcharging, and a decrease in battery storage capacity.The undercharged and overcharged conditions influence the life cycle of a battery [18].The undercharged condition prevents reaching the maximum storage capacity, and the overcharged condition damages the battery physically.In addition to these deficiencies, a critical concern is the long charging time.
In recent years, decreasing the charging time of lithium-ion batteries without affecting their capacity and physical condition has been a serious concern for researchers.For the charging of lithium-ion batteries, different charging techniques, such as constant current and constant voltage (CC/CV), pulse charging (PC) algorithm, model-based charging, and multistage current charging algorithm (MSCC), have been reported [19][20][21][22][23][24][25][26][27][28][29][30][31][32][33][34].The CC/CV techniques is computationally efficient and can be implemented easily.This technique has two main steps.In the first step, a constant current is provided to the battery until the battery voltage reaches the preset voltage.In the second interval, the constant voltage mode is turned ON, and the battery current begins to decrease exponentially until it reaches a preset small charging current [19].In this method, different sensors are required to check the current and battery voltage.Many variants of the CC/CV charging algorithm have been reported, e.g., the double-loop charger (DL-CC/CV).In the DL-CC/CV technique, the role of the current sensor is eliminated by taking the feedback of the battery voltage [20].Tsang and Chan presented the concept of the PC algorithm.In the PC algorithm, the main part is to control the frequency of the pulse to check the response of the current [21].The optimal frequency can be achieved at low battery impedance, resulting in the maximum charging current.
Similarly, the MSCC algorithm has been implemented to charge the battery, in which different charging currents are applied at different intervals, but the hindrance is how to determine the appropriate current for different charging intervals.For this purpose, a controller or computer is necessary to calculate the values.The Taguchi methodology decides the charging current by estimating the state of charge (SOC) of the battery [22].In the model-based charge control, the estimation of the SOC is a crucial step.Several previous studies have discussed equivalent circuit models to estimate the SOC.However, the SOC and capacity determination is still a challenging task because it is difficult to measure it with sensors.Recently, Wei and coauthors [23][24][25] presented recursive online models to estimate the SOC of a lithium-ion battery.Wei et al. [23] indicated the problem of biased results for the estimation of the SOC using conventional identification methods in the model-based charging technique.They proposed a recursive least square-based Frisch scheme to enhance the model identification and estimation of the SOC in the presence of noise.In their subsequent work, Wei et al. [24] proposed a multi-timescale method for dual estimation of the SOC with the online battery model.Their results suggest that this method determines SOC and capacity with fast convergence and high accuracy.In a recent study of Wei et al. [25], a novel recursive total least square-based observer method was proposed to suppress the noise effect in a model.The authors were able to estimate the SOC with high accuracy.However, the equivalent circuit model for a lithium-ion battery varies from a simple representation to a very complex mathematical form.A simple model can simulate the dynamic characteristics of the battery up to a certain accuracy.On the other hand, a complex model shows much better results as compared to the simple one, but these are difficult to implement in real time.
Furthermore, Guo et al. [26] reported another way to improve the charging time and life cycle using a universal voltage protocol.Zhang et al. [27] proposed that a dynamic optimization algorithm can be utilized to determine the optimal charging time.Liu et al. [28] implemented the ant colony algorithm to find the optimal current to charge a lithium-ion battery.In addition to these methodologies, a fuzzy logic controller (FLC) could be beneficial [29][30][31][32][33][34].Huang et al. [29] used FLC to find the charging current for different intervals, in which the inputs of the controller were the temperature rise and the deviation of the temperature rise.The proposed methodology increased the charging implemented the FLC to equalize the voltages of a cell in a string.This reduced the equalization time of voltages in a string compared to the conventional process.Ho et al. [31] implemented the FLC with the Taguchi method to improve the charging time.The Taguchi method was utilized to determine the optimal output membership function of the FLC.The temperature of the battery and the gradient of temperature rise were the inputs of the FLC.Lyn et al. [32] used battery voltage and charging current as inputs of the FLC, and the longer time consumption for higher charging efficiency was the limitation of this methodology.Hsieh et al. [33] used the FLC by monitoring the charging state of the battery and replaced the CV mode of the CC/CV method with the proposed methodology.This only reduces the charging time of the CV mode; however, the overall charging time improvement was not so high.
This paper proposes the MSCC technique embedded with fuzzy logic and temperature feedback for series-connected lithium-ion batteries.The voltage and temperature were fed to the controller to find the optimal charging current within the safe temperature limit.The proposed method charges the battery in a faster way.Also, the temperature control unit avoids the effects of fast charging on the aging mechanism and protects the battery from an overvoltage condition.The proposed technique was implemented on a three-cell lithium-ion battery.Figure 1 presents the general diagram of the proposed system.The FLC and temperature control units were implemented using Arduino MEGA 2560 interfaced with MATLAB TM Simulink 2017.Extensive testing and comprehensive analysis were done to validate the proposed technique.The charging time, charging capacity, and life cycle of the battery are discussed.The paper is organized as follows.Section 2 describes the fuzzy logic control temperaturefeedback battery-charging system.Section 3 presents the experimental setup.Section 4 discusses the results.The conclusions are summarized in the last section.

Background of Fuzzy Logic for the Lithium-Ion Battery
The lithium-ion battery is a very complex nonlinear system.Therefore, it is very difficult to determine the precise mathematical model of the lithium-ion battery.Consequently, it is necessary to use a controller, which does not require a precise mathematical model of a battery.In this regard, a fuzzy logic controller is a better choice because it is used for nonlinear mapping of the input data to scalar output data.In this study, a fuzzy logic controller was implemented to enhance the charging efficiency of a lithium-ion battery.
Fuzzification: This converts the input true data value into fuzzy linguistic sets, using a membership function.Fuzzy rule base: This is the main component of the system and the operating control of the system designed in it.In addition, the control law parameters of the system are stored in a database.This requires considerable professional skill and experience to design a fuzzy rule base.Inference engine: This is an operating method that converts a fuzzy linguistic input to a fuzzy The paper is organized as follows.Section 2 describes the fuzzy logic control temperature-feedback battery-charging system.Section 3 presents the experimental setup.Section 4 discusses the results.The conclusions are summarized in the last section.

Background of Fuzzy Logic for the Lithium-Ion Battery
The lithium-ion battery is a very complex nonlinear system.Therefore, it is very difficult to determine the precise mathematical model of the lithium-ion battery.Consequently, it is necessary to use a controller, which does not require a precise mathematical model of a battery.In this regard, a fuzzy logic controller is a better choice because it is used for nonlinear mapping of the input data to scalar output data.In this study, a fuzzy logic controller was implemented to enhance the charging efficiency of a lithium-ion battery.
Fuzzification: This converts the input true data value into fuzzy linguistic sets, using a membership function.Fuzzy rule base: This is the main component of the system and the operating control of the system designed in it.In addition, the control law parameters of the system are stored in a database.This requires considerable professional skill and experience to design a fuzzy rule base.Inference engine: This is an operating method that converts a fuzzy linguistic input to a fuzzy linguistic output according to the control law defined in a fuzzy rule base.Defuzzification: This converts the fuzzy linguistic output to the true value according to the membership function.

Fuzzy Logic Controller Design
A fuzzy logic base Arduino controller is proposed to control the charging current of the battery.The fuzzy controller has two inputs.The first is the lowest single-cell voltage of the string (VB), and the other one is the highest voltage difference between the two cells of the battery (Vd), as shown in Figure 2. The fuzzifier changes the input data to linguistic fuzzy sets, and the inference engine then determines the optimal value using the input fuzzy data and rule base.The rule base, which is stored in the database of the system, is listed in Table 1.Finally, the defuzzifier changes the fuzzy linguistic sets of the output in the numerical value of the charging current Icharge.The five linguistic variables used in Table 1 are: VS (very small), S (small), M (medium), L (large), and VL (very large).When the variable appears on the horizontal top row in Table 1 (blue color), it shows the voltage difference; similarly, when appearing in the leftmost column of Table 1 (green color), it shows the battery voltage levels, and, when appearing inside Table 1 (black color), it represents different stages of the charge current.Lee et al. [30] used a similar set of rule bases.The fuzzy variables for VB, Vd, and Icharge are µB, µA, and µo, respectively.Figure 3 shows the sets of membership functions of the fuzzy variables.

Fuzzy Logic Controller Design
A fuzzy logic base Arduino controller is proposed to control the charging current of the battery.The fuzzy controller has two inputs.The first is the lowest single-cell voltage of the string (V B ), and the other one is the highest voltage difference between the two cells of the battery (V d ), as shown in Figure 2. The fuzzifier changes the input data to linguistic fuzzy sets, and the inference engine then determines the optimal value using the input fuzzy data and rule base.The rule base, which is stored in the database of the system, is listed in Table 1.Finally, the defuzzifier changes the fuzzy linguistic sets of the output in the numerical value of the charging current I charge .
Table 1.Rule base for linguistic variables.VS, S, M, L, and VL are very small, small, medium, large and very large respectively.

Voltage Difference
The five linguistic variables used in Table 1 are: VS (very small), S (small), M (medium), L (large), and VL (very large).When the variable appears on the horizontal top row in Table 1 (blue color), it shows the voltage difference; similarly, when appearing in the leftmost column of Table 1 (green color), it shows the battery voltage levels, and, when appearing inside Table 1 (black color), it represents different stages of the charge current.Lee et al. [30] used a similar set of rule bases.The fuzzy variables for V B , V d , and I charge are µ B , µ A , and µ o , respectively.Figure 3 shows the sets of membership functions of the fuzzy variables.In defuzzifier and inference engine, the method of the center of gravity and the max-min composition were used.on the basis of the rapid charging control strategy, the fuzzy control rules for battery charging are defined as follows [34,37]: where LGSI and LGSV are the signed disturbance linguistic values in the a th variable of the IO fuzzy sets.The proposed rule base is already defined in Table 1.The design of the proposed fuzzy logic controller is as follow: Step 1: The true value of w  is calculated from the i th input value of the membership function for x and from the j th input value of the membership function for y: Step 2: Using w  and each rule for the k th membership output function, the fuzzy output value µ  () is: Step 3: The fuzzy set for output z is Step 4: The charging current of the battery (Icharge), using the center of gravity method and defuzzification process is expressed as follows: The output of the fuzzy logic controller is the numerical value of the Icharge based on Vd and VB. Figure 4 shows the 3-D graphical representation of the fast-charging fuzzy logic controller, where Vd is presented on the x-axis, VB on the y-axis, and Icharge on the z-axis.Vd and VB are the inputs, and Icharge is the output of the fuzzy controller.The charging current is adjusted automatically on the basis of the value of Vd and VB. Figure 4 indicates that, when the Vd is high, it indicates that one of the battery cells is at a lower potential with reference to the other.Thus, injecting a high current helps to charge the cell in minimum time.However, at the same time, it is necessary to ensure that this high value of current does not affect the battery life.For that particular reason, the temperature control unit was been added which continuously measures and adjusts the current value accordingly.The detail of the temperature control unit are discussed in Section 2.3.In defuzzifier and inference engine, the method of the center of gravity and the max-min composition were used.on the basis of the rapid charging control strategy, the fuzzy control rules for battery charging are defined as follows [34,37]: where LGSI and LGSV are the signed disturbance linguistic values in the a th variable of the IO fuzzy sets.The proposed rule base is already defined in Table 1.The design of the proposed fuzzy logic controller is as follow: Step 1: The true value of w ij is calculated from the i th input value of the membership function for x and from the j th input value of the membership function for y: w ij = min µ Ai (x), µ Bj (y) ; for i = 1, 2, . . . 5 and j = 1, 2, . . . 5 Step 2: Using w ij and each rule for the k th membership output function, the fuzzy output value µ oij (z) is: Step 3: The fuzzy set for output z is Step 4: The charging current of the battery (I charge ), using the center of gravity method and defuzzification process is expressed as follows: The output of the fuzzy logic controller is the numerical value of the I charge based on V d and V B . Figure 4 shows the 3-D graphical representation of the fast-charging fuzzy logic controller, where V d is presented on the x-axis, V B on the y-axis, and I charge on the z-axis.V d and V B are the inputs, and I charge is the output of the fuzzy controller.The charging current is adjusted automatically on the basis of the value of V d and V B . Figure 4 indicates that, when the V d is high, it indicates that one of the battery cells is at a lower potential with reference to the other.Thus, injecting a high current helps to charge the cell in minimum time.However, at the same time, it is necessary to ensure that this high value of current does not affect the battery life.For that particular reason, the temperature control unit was been added which continuously measures and adjusts the current value accordingly.The detail of the temperature control unit are discussed in Section 2.3.

Temperature Control Unit
The basic function of the temperature control unit is to maintain the battery temperature to a safe limit predefined by the manufacturer.Figure 5 shows the temperature control flow chart of the Samsung ICR18650-26F lithium-ion battery.In the Samsung ICR18650-26F lithium-ion battery, the charging temperature limit is 0-45 °C [39].Hence, the temperature upper limit check was set to 40 °C to be safe.The temperature control unit continuously senses the battery current (Ib) and the battery temperature (T).If the temperature is below 40 °C, the fuzzy logic output current is supplied to the battery.When the battery temperature (T) crosses the 40 °C limit, the controller compares the battery current (Ib) with the range defined in the flow chart.If Ib lies between 3.6 and 4.1 A, the controller sets Icharge to 3.5 A and continuously checks the temperature every 7 s to verify whether the temperature is increasing or is maintained at the same level.If the temperature is outside the defined limits, it reduces the Icharge to 3 A. Similarly, if the temperature is at the same level, i.e., greater than the defined limit, the controller sets Icharge to 2.6 A, which is the safe current for a battery, as defined by the manufacturer [39].

Temperature Control Unit
The basic function of the temperature control unit is to maintain the battery temperature to a safe limit predefined by the manufacturer.Figure 5 shows the temperature control flow chart of the Samsung ICR18650-26F lithium-ion battery.In the Samsung ICR18650-26F lithium-ion battery, the charging temperature limit is 0-45 • C [39].Hence, the temperature upper limit check was set to 40 • C to be safe.

Temperature Control Unit
The basic function of the temperature control unit is to maintain the battery temperature to a safe limit predefined by the manufacturer.Figure 5 shows the temperature control flow chart of the Samsung ICR18650-26F lithium-ion battery.In the Samsung ICR18650-26F lithium-ion battery, the charging temperature limit is 0-45 °C [39].Hence, the temperature upper limit check was set to 40 °C to be safe.The temperature control unit continuously senses the battery current (Ib) and the battery temperature (T).If the temperature is below 40 °C, the fuzzy logic output current is supplied to the battery.When the battery temperature (T) crosses the 40 °C limit, the controller compares the battery current (Ib) with the range defined in the flow chart.If Ib lies between 3.6 and 4.1 A, the controller sets Icharge to 3.5 A and continuously checks the temperature every 7 s to verify whether the temperature is increasing or is maintained at the same level.If the temperature is outside the defined limits, it reduces the Icharge to 3 A. Similarly, if the temperature is at the same level, i.e., greater than the defined limit, the controller sets Icharge to 2.6 A, which is the safe current for a battery, as defined by the manufacturer [39]. it reduces the I charge to 3 A. Similarly, if the temperature is at the same level, i.e., greater than the defined limit, the controller sets I charge to 2.6 A, which is the safe current for a battery, as defined by the manufacturer [39].

Experimental Setup
The Samsung ICR18650-26F lithium-ion battery was used in the current experimental setup to analyze the methodology.A string of three cells connected in series was used.Figure 6 shows the experimental setup, with different sensors used to measure and monitor the parameters, such as battery voltage, charge current, and temperature.

Experimental Setup
The Samsung ICR18650-26F lithium-ion battery was used in the current experimental setup to analyze the methodology.A string of three cells connected in series was used.Figure 6 shows the experimental setup, with different sensors used to measure and monitor the parameters, such as battery voltage, charge current, and temperature.Figure 7 shows the real-time measuring and monitoring system of the battery charging on Simulink MATLAB TM .The sensor output to the Arduino analogue pins were converted to true values.These values were then passed to module 2, as shown in Figure 8. Figure 8 shows the scheme followed to of find Vd and VB.

Experimental Setup
The Samsung ICR18650-26F lithium-ion battery was used in the current experimental setup to analyze the methodology.A string of three cells connected in series was used.Figure 6 shows the experimental setup, with different sensors used to measure and monitor the parameters, such as battery voltage, charge current, and temperature.Figure 7 shows the real-time measuring and monitoring system of the battery charging on Simulink MATLAB TM .The sensor output to the Arduino analogue pins were converted to true values.These values were then passed to module 2, as shown in Figure 8. Figure 8 shows the scheme followed to of find Vd and VB.These values were then passed to module 2, as shown in Figure 8. Figure 8 shows the scheme followed to of find V d and V B .

Results and Discussion
A wide range of electrical equipment, such as notebooks, cell phones, MP3 players, and EVs, are operated by batteries.These batteries take several hours to charge, which leads to a long out-ofservice time.Therefore, a reduction in battery charging time has become a significant issue.The basic aim of fast charging is to charge the battery in a fast, safe, and efficient manner.
Figure 1 gives a general overview of the proposed fast-charging methodology.Three series of connected lithium-ion cells were used.The sensors feed the states of the battery to the controller, and the controller is interfaced with MATLAB TM Simulink.Figure 2 shows the fuzzy logic control system in detail.Table 1 and Figure 3 present the rule base and membership functions values, respectively.Figure 4 shows the relationship between the inputs and output of the FLC. Figure 5 presents a flow chart of the temperature control unit of the battery, and Figure 6 shows the experimental setup of the proposed charging system.Figures 7-9 present the MATLAB TM Simulink measuring, monitoring, and control system.Figures 10 and 11 present the charging profile of the battery using the conventional and proposed way of charging, respectively.Figure 12 shows the current profile of battery charging using the proposed technique.Figures 13 and 14 show the temperature during the proposed charging methodology.Figures 15-17 present the battery capacity and discharging curves.The comparison of the life cycle tests between the proposed and the conventional charging methodology is shown in Figure 18.Table 2 summarizes the results of this research.
Several experiments were performed with different initial cell voltages to verify the proposed technique.First, the battery was charged using the CC-CV method (defined by the manufacturer) to determine its normal charging time [39].The initial cell voltages were V1 = 3.391 V, V2 = 3.263 V, and

Results and Discussion
A wide range of electrical equipment, such as notebooks, cell phones, MP3 players, and EVs, are operated by batteries.These batteries take several hours to charge, which leads to a long out-ofservice time.Therefore, a reduction in battery charging time has become a significant issue.The basic aim of fast charging is to charge the battery in a fast, safe, and efficient manner.
Figure 1 gives a general overview of the proposed fast-charging methodology.Three series of connected lithium-ion cells were used.The sensors feed the states of the battery to the controller, and the controller is interfaced with MATLAB TM Simulink.Figure 2 shows the fuzzy logic control system in detail.Table 1 and Figure 3 present the rule base and membership functions values, respectively.Figure 4 shows the relationship between the inputs and output of the FLC. Figure 5 presents a flow chart of the temperature control unit of the battery, and Figure 6 shows the experimental setup of the proposed charging system.Figures 7-9 present the MATLAB TM Simulink measuring, monitoring, and control system.Figures 10 and 11 present the charging profile of the battery using the conventional and proposed way of charging, respectively.Figure 12 shows the current profile of battery charging using the proposed technique.Figures 13 and 14 show the temperature during the proposed charging methodology.Figures 15-17 present the battery capacity and discharging curves.The comparison of the life cycle tests between the proposed and the conventional charging methodology is shown in Figure 18.Table 2 summarizes the results of this research.
Several experiments were performed with different initial cell voltages to verify the proposed technique.First, the battery was charged using the CC-CV method (defined by the manufacturer) to determine its normal charging time [39].The initial cell voltages were V1 = 3.391 V, V2 = 3.263 V, and

Results and Discussion
A wide range of electrical equipment, such as notebooks, cell phones, MP3 players, and EVs, are operated by batteries.These batteries take several hours to charge, which leads to a long out-of-service time.Therefore, a reduction in battery charging time has become a significant issue.The basic aim of fast charging is to charge the battery in a fast, safe, and efficient manner.
Figure 1 gives a general overview of the proposed fast-charging methodology.Three series of connected lithium-ion cells were used.The sensors feed the states of the battery to the controller, and the controller is interfaced with MATLAB TM Simulink.Figure 2 shows the fuzzy logic control system in detail.Table 1 and Figure 3 present the rule base and membership functions values, respectively.Figure 4 shows the relationship between the inputs and output of the FLC. Figure 5 presents a flow chart of the temperature control unit of the battery, and Figure 6 shows the experimental setup of the proposed charging system.Figures 7-9 present the MATLAB TM Simulink measuring, monitoring, and control system.Figures 10 and 11 present the charging profile of the battery using the conventional and proposed way of charging, respectively.Figure 12 shows the current profile of battery charging using the proposed technique.Figures 13 and 14 show the temperature during the proposed charging methodology.Figures 15-17 present the battery capacity and discharging curves.The comparison of the life cycle tests between the proposed and the conventional charging methodology is shown in Figure 18.Table 2 summarizes the results of this research.
Several experiments were performed with different initial cell voltages to verify the proposed technique.First, the battery was charged using the CC-CV method (defined by the manufacturer) to determine its normal charging time [39].The initial cell voltages were V 1 = 3.391 V, V 2 = 3.263 V, and V 3 = 3.353V.Figure 10 shows the conventional charging profile of the battery.The process took 8997 s (2.5 h) to fully charge the battery (see Figure 10); the same charging time (2.5 h) was also mentioned by the manufacturer [39].
Energies 2018, 11, x FOR PEER REVIEW 9 of 15 V3 = 3.353V.Figure 10 shows the conventional charging profile of the battery.The process took 8997 s (2.5 h) to fully charge the battery (see Figure 10); the same charging time (2.5 h) was also mentioned by the manufacturer [39].The proposed charging technique was applied to a three-cell battery with different initial cell voltages.In this case, the initial voltages were V1 = 3.393 V, V2 = 3.367 V, and V3 = 3.273 V. Figures 11  and 12 show the charging profiles using the proposed technique.The proposed charging technique was applied to a three-cell battery with different initial cell voltages.In this case, the initial voltages were V 1 = 3.393 V, V 2 = 3.367 V, and V 3 = 3.273 V. Figures 11  and 12 show the charging profiles using the proposed technique.
Energies 2018, 11, x FOR PEER REVIEW 9 of 15 V3 = 3.353V.Figure 10 shows the conventional charging profile of the battery.The process took 8997 s (2.5 h) to fully charge the battery (see Figure 10); the same charging time (2.5 h) was also mentioned by the manufacturer [39].The proposed charging technique was applied to a three-cell battery with different initial cell voltages.In this case, the initial voltages were V1 = 3.393 V, V2 = 3.367 V, and V3 = 3.273 V. Figures 11  and 12 show the charging profiles using the proposed technique.The battery took 8118 s (2.25 h) to charge, as shown in Figures 11 and 12.This was almost 15 min (879 s) less than the normal charging time.The spike shown in the graph was attributed to the overtemperature limit.When the temperature increased to more than 40 °C, the charging current reduced to manage the temperature, as described in Section 2.3 and shown in the magnified part of Figure 11.The temperature was monitored and measured using a thermocouple and FLUKE VT04A visual infrared IR thermometer.The thermocouple provided the input directly to the controller, and an IR thermometer was used to monitor the temperature manually.Figure 13 presents some of the images captured during the proposed charging using the IR thermometer.The temperature of the cells was 27.3 °C at the beginning of charging, as shown in Figure 13a.As charging began, the temperature started to rise because of the high charging current and reached 40.9 °C (Figure 13c).The temperature control unit then reduced the charging current to control the temperature of the battery.Owing to the reduction in the charging current, a spike in the charging The battery took 8118 s (2.25 h) to charge, as shown in Figures 11 and 12.This was almost 15 min (879 s) less than the normal charging time.The spike shown in the graph was attributed to the over-temperature limit.When the temperature increased to more than 40 • C, the charging current reduced to manage the temperature, as described in Section 2.3 and shown in the magnified part of Figure 11.The temperature was monitored and measured using a thermocouple and FLUKE VT04A visual infrared IR thermometer.The thermocouple provided the input directly to the controller, and an IR thermometer was used to monitor the temperature manually.Figure 13 presents some of the images captured during the proposed charging using the IR thermometer.The battery took 8118 s (2.25 h) to charge, as shown in Figures 11 and 12.This was almost 15 min (879 s) less than the normal charging time.The spike shown in the graph was attributed to the overtemperature limit.When the temperature increased to more than 40 °C, the charging current reduced to manage the temperature, as described in Section 2.3 and shown in the magnified part of Figure 11.The temperature was monitored and measured using a thermocouple and FLUKE VT04A visual infrared IR thermometer.The thermocouple provided the input directly to the controller, and an IR thermometer was used to monitor the temperature manually.Figure 13 presents some of the images captured during the proposed charging using the IR thermometer.The temperature of the cells was 27.3 °C at the beginning of charging, as shown in Figure 13a.As charging began, the temperature started to rise because of the high charging current and reached 40.9 °C (Figure 13c).The temperature control unit then reduced the charging current to control the temperature of the battery.Owing to the reduction in the charging current, a spike in the charging The temperature of the cells was 27.3 • C at the beginning of charging, as shown in Figure 13a.As charging began, the temperature started to rise because of the high charging current and reached 40.9 • C (Figure 13c).The temperature control unit then reduced the charging current to control the temperature of the battery.Owing to the reduction in the charging current, a spike in the charging curve was observed (Figure 11).The temperature then began to decrease because the battery started to draw a low current (Figure 13e-g).After charging, the temperature of the battery was 27.4 • C, as shown in Figure 13h.The temperature-versus-time graph of the battery during charging is shown in Figure 14.curve was observed (Figure 11).The temperature then began to decrease because the battery started to draw a low current (Figure 13e-g).After charging, the temperature of the battery was 27.4 °C, as shown in Figure 13h.The temperature-versus-time graph of the battery during charging is shown in Figure 14.The charging capacity of the battery using this technique was approximately 99.26%, which was the same as that of a 1 C charge.The proposed technique did not reduce the life cycle of battery because the temperature of the battery remained within the safe limit (below 45 °C). Figure 15 shows the discharging curve of the battery at 0.23 C (0.6 A). Figure 16 shows the relationship between the voltage and the capacity (mAh) of the battery during the discharging condition.The charging capacity of the battery using this technique was approximately 99.26%, which was the same as that of a 1 C charge.The proposed technique did not reduce the life cycle of the battery because the temperature of the battery remained within the safe limit (below 45 • C). Figure 15 shows the discharging curve of the battery at 0.23 C (0.6 A). curve was observed (Figure 11).The temperature then began to decrease because the battery started to draw a low current (Figure 13e-g).After charging, the temperature of the battery was 27.4 °C, as shown in Figure 13h.The temperature-versus-time graph of the battery during charging is shown in Figure 14.The charging capacity of the battery using this technique was approximately 99.26%, which was the same as that of a 1 C charge.The proposed technique did not reduce the life cycle of the battery because the temperature of the battery remained within the safe limit (below 45 °C). Figure 15 shows the discharging curve of the battery at 0.23 C (0.6 A). Figure 16 shows the relationship between the voltage and the capacity (mAh) of the battery during the discharging condition.Figure 16 shows the relationship between the voltage and the capacity (mAh) of the battery during the discharging condition.Using the proposed technique, the charging time of the battery was decreased without affecting its life cycle and charge capacity.A total of 50 experiments were performed to validate the proposed technique.The comparison of cycle life tests between the proposed and the CCCV technique is shown in Figure 18.Using the proposed technique, the charging time of the battery was decreased without affecting its life cycle and charge capacity.A total of 50 experiments were performed to validate the proposed technique.The comparison of cycle life tests between the proposed and the CCCV technique is shown in Figure 18.Some other experiments were performed by changing the number of fuzzy variables and the value of the membership functions.By adopting three fuzzy variables, the decrease in the charging time was 3 to 4 min, and by increasing the value of the membership function, the temperature increased at a rapid pace.In the proposed technique, five fuzzy variables were selected with the membership value mentioned in Table 1 and Figure 3. Different experiments were performed with different initial voltages.The results are shown in Table 2.In recent years, many intelligent charging methods have been applied using microprocessors and computers.One of these techniques is to control the charging process by sensing the tuning points.These tuning points have been selected based on the battery temperature, voltage, and lapsed charging time [40].The control algorithm changes the charging behavior only at the tuning points, and the period outside the tuning points is unaffected.The ant colony algorithm was used to optimize the MSCC profile [28].This optimization algorithm does not use the real-time measurements of the state of the battery to change the charging current, but rather finds the best charging profile for the entire process.Saberi et al. [41] applied a genetic algorithm (GA) to solve the charging problem for the lithium-ion battery.The performance of the GA was dependent on the system accuracy; the robustness of the GA decreased because of the noise and time variance properties of the battery.Chen et al. [42] used the grey prediction technique for battery charging without taking the temperature into consideration.The advantages of the proposed methodology over the previous techniques are that it is easy to implement and that all battery states are considered during the charging state.Therefore, the battery can be protected from overvoltage, overcharging, and overheating conditions.The results show an almost 15 min decrease in the charging time without affecting the capacity and life cycle, which is significant for the battery life.

Conclusions
A real-time multistage current charging technique embedded with fuzzy logic and temperature feedback was implemented in this paper.The proposed technique was designed and programmed in MATLAB TM Simulink.The methodology was implemented using a three-cell lithium-ion battery.The results revealed a 9.76% reduction in the charging time compared to the conventional way of charging.This method of charging does not decrease the charging capacity and charging efficiency.The temperature feedback was introduced to protect the battery from overheating.The experimental results show that the proposed charging technique for charging a battery is faster and safer than the conventional techniques.

Figure 1 .
Figure 1.General diagram of the proposed battery-charging system.

Figure 1 .
Figure 1.General diagram of the proposed battery-charging system.

Energies 2018 ,
11,  x FOR PEER REVIEW 4 of 15 linguistic output according to the control law defined in a fuzzy rule base.Defuzzification: This converts the fuzzy linguistic output to the true value according to the membership function.

Figure 2 .
Figure 2. Fuzzy logic system; VB = lowest single-cell voltage of the string, Vd = highest voltage difference between two cells of a battery, µB = fuzzy variable of VB, µA = fuzzy variable of Vd, Icharge = Output Charging Current, and µo = fuzzy variable of Icharge.

Figure 2 .
Figure 2. Fuzzy logic system; V B = lowest single-cell voltage of the string, V d = highest voltage difference between two cells of a battery, µ B = fuzzy variable of V B , µ A = fuzzy variable of V d , I charge = Output Charging Current, and µ o = fuzzy variable of I charge .

Figure 3 .
Figure 3. Membership function for a fuzzy controller.

Figure 3 .
Figure 3. Membership function for a fuzzy controller.

15 Figure 4 .
Figure 4. Output surface (Icharge) of the fuzzy logic controller according to Vd and VB.

Figure 4 .
Figure 4. Output surface (I charge ) of the fuzzy logic controller according to V d and V B .

Energies 2018 , 15 Figure 4 .
Figure 4. Output surface (Icharge) of the fuzzy logic controller according to Vd and VB.

Figure 6 .
Figure 6.Hardware configuration of the fast-charging system.

Figure 6 .
Figure 6.Hardware configuration of the fast-charging system.

Figure 6 .
Figure 6.Hardware configuration of the fast-charging system.

Figure 7
Figure7shows the real-time measuring and monitoring system of the battery charging on Simulink MATLAB TM .The sensor output to the Arduino analogue pins were converted to true values.

Energies 2018 , 15 Figure 8 .
Figure 8. Finding the largest voltage difference of the cells (Vd) and the lowest battery voltage (VB).

Figure 9
Figure 9 presents the fuzzy logic controller and temperature control unit.Vd and VB are the inputs of the fuzzy logic controller.The output of the fuzzy logic controller is the input of the temperature control unit along with the battery temperature (T) and the battery current (Ib).The temperature control unit was programed using the state flow chart of MATLAB TM .

Figure 9 .
Figure 9. Fuzzy logic controller and temperature control unit.

Figure 8 .
Figure 8. Finding the largest voltage difference of the cells (V d ) and the lowest battery voltage (V B ).

Figure 9 15 Figure 8 .
Figure 9 presents the fuzzy logic controller and temperature control unit.V d and V B are the inputs of the fuzzy logic controller.The output of the fuzzy logic controller is the input of the temperature control unit along with the battery temperature (T) and the battery current (I b ).The temperature control unit was programed using the state flow chart of MATLAB TM .

Figure 9
Figure 9 presents the fuzzy logic controller and temperature control unit.Vd and VB are the inputs of the fuzzy logic controller.The output of the fuzzy logic controller is the input of the temperature control unit along with the battery temperature (T) and the battery current (Ib).The temperature control unit was programed using the state flow chart of MATLAB TM .

Figure 9 .
Figure 9. Fuzzy logic controller and temperature control unit.

Figure 9 .
Figure 9. Fuzzy logic controller and temperature control unit.

Figure 10 .
Figure 10.Charging profile of a lithium-ion battery at 1 C.

Figure 11 .
Figure 11.Charging voltage profile of the lithium-ion battery using the proposed technique.

Figure 10 .
Figure 10.Charging profile of a lithium-ion battery at 1 C.

Figure 10 .
Figure 10.Charging profile of a lithium-ion battery at 1 C.

Figure 11 .
Figure 11.Charging voltage profile of the lithium-ion battery using the proposed technique.Figure 11.Charging voltage profile of the lithium-ion battery using the proposed technique.

Figure 11 .
Figure 11.Charging voltage profile of the lithium-ion battery using the proposed technique.Figure 11.Charging voltage profile of the lithium-ion battery using the proposed technique.

Figure 12 .
Figure 12.Current profile of the lithium-ion battery using the proposed technique.

Figure 12 .
Figure 12.Current profile of the lithium-ion battery using the proposed technique.

Energies 2018 , 15 Figure 12 .
Figure 12.Current profile of the lithium-ion battery using the proposed technique.

Figure 14 .
Figure 14.Temperature of the battery during the proposed charging.

Figure 14 .
Figure 14.Temperature of the battery during the proposed charging.

Figure 14 .
Figure 14.Temperature of the battery during the proposed charging.

Figure 17
Figure 17 presents the discharging curves of the battery at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.These curves show that the battery was charged almost at its full capacity (2600 mAh) using the proposed technique.

Figure 17 .
Figure 17.Discharging curves at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st and 2 C of 29th cycle.

Figure 18 .
Figure 18.Comparison of cycle life tests between the proposed and the CCCV technique.

Figure 17
Figure 17 presents the discharging curves of the battery at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.These curves show that the battery was charged almost at its full capacity (2600 mAh) using the proposed technique.

Figure 17
Figure 17 presents the discharging curves of the battery at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.These curves show that the battery was charged almost at its full capacity (2600 mAh) using the proposed technique.

Figure 17 .
Figure 17.Discharging curves at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.

Figure 18 .
Figure 18.Comparison of cycle life tests between the proposed and the CCCV technique.

Figure 17 .
Figure 17.Discharging curves at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.

Figure 17
Figure 17 presents the discharging curves of the battery at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.These curves show that the battery was charged almost at its full capacity (2600 mAh) using the proposed technique.

Figure 17 .
Figure 17.Discharging curves at 0.38 C of 26th cycle, 0.8 C of 24th cycle, 1 C of 21st cycle, and 2 C of 29th cycle.Using the proposed technique, the charging time of the battery was decreased without affecting its life cycle and charge capacity.A total of 50 experiments were performed to validate the proposed technique.The comparison of cycle life tests between the proposed and the CCCV technique is shown in Figure18.

Figure 18 .
Figure 18.Comparison of cycle life tests between the proposed and the CCCV technique.

Figure 18 .
Figure 18.Comparison of cycle life tests between the proposed and the CCCV technique.

Table 1 .
Rule base for linguistic variables.VS, S, M, L, and VL are very small, small, medium, large and very large respectively.

Table 2 .
Comparison of the charging techniques.