Research on Fuzzy PID Charging Control of Battery Pack

Battery groups are widely used in production and life. Optimal charging can not only shorten the charge time, but also improve the performance and life of the battery pack. A constant current or constant voltage charging method is commonly used. This type of method cannot adjust the charge capacity in time according to the change of charging capacity of storage battery, and the charge performance is not high. This paper designs a fuzzy PID controller. In the case of variable load and interference, the battery group can still be charged by the optimal charging current. Through the simulation results, the fuzzy PID controller works well and verifies the feasibility of the charging controller.

During the actual charge, the late charging is often accompanied by a lot of water electrolysis reaction.The reaction equation is: The chemical reaction of the lead-acid battery during the charging process is shown in Figure 1.

The Main Parameters That Affect Charging of the Battery Pack 1) Charge acceptance
Charge acceptance refers to the maximum charge current the electrolyte can accept under the premise of producing only a small amount of gas [3].When the battery charge current for the battery pack is greater than its acceptable maximum charging current, it will have intense electric hydrolysis reaction inside, the pressure increase and the temperature rise will accelerate and there will be serious gassing phenomenon.

2) Temperature
The voltage of the battery cell will drop by about 4 mV for every 1˚C increase in temperature [3].In order to ensure adequate power, the charging voltage must be adjusted with the temperature coefficient of the battery voltage.

3) Battery capacity
The battery capacity represents the ability of the battery to store electricity.
During charging, the charging capacity of the battery can be: where i is the charging current (A); t is the charging time (h); K is the charging coefficient of the lead-acid battery.

Problems with the Traditional PID Charging Control
The working process of the battery pack is non-linear and its characteristics vary with the working time and the environment.When the battery characteristics change, the charging current must be adjusted in order to get a good control effect.The traditional constant current or constant voltage charging does not Figure 1.Sketch map of charge chemistry of lead-acid battery.

X. Y. Xu
have this "adaptive" capability, and its parameter setting is dependent on the experience of the technician, making it difficult to guarantee timeliness and continuity [4].

Fuzzy PID Charge Control
Battery pack management system is a complex nonlinear time-varying system and can establish a precise mathematical model, making it suitable for fuzzy control [5].The structure of the fuzzy PID controller is shown in Figure 2. It consists of a fuzzy controller and a traditional PID controller.The input of the fuzzy system is e (the error of the charging voltage) and ec (the error rate of change), the output is the change value of the PID parameter, and the PID parameter is adjusted in real time according to the designed fuzzy control rule to realize the self-tuning of the PID parameters [6].

1) Fuzzification
Take the subordinating degree function of the input (e, ec) and the output (K P , K I , K D ) as the triangular function [7].
The variation range of e (the input error) and ec (the error rate of change) is defined as the universe of discourse on the fuzzy set:   3) Fuzzy reasoning Take K P as an example, as calculated by the fuzzy inference synthesis rule: Fuzzy relations: ( ) , ,

4) Defuzzification
The maximum subordinative degree method is adopted for defuzzification.

5) Simulation results
In the simulation of MATLAB, there are dedicated Fuzzy modules, which can be simulated only by inputting the designed parameters.Chart of Fuzzy rule is shown in Figure 3.
Response comparison during the load response is shown in Figure 4.
When the system load suddenly changes under the fuzzy PID control, the overshoot generated is about 12 V and the system transition time is less than 0.1 s; and when the system load suddenly changes under the traditional PID control,   the overshoot generated is about 20 V and the system transition time is about 0.25 s.It can be seen from the results that when the load suddenly changes, the fuzzy PID control effect is significantly better than the traditional PID control.
When the interference occurs, the fuzzy PID can make quick adjustment to ensure a stable charging voltage.Comparison of the anti-interference capability is shown in Figure 5.

Simulation Results and Analysis
The charging process and charging method of the battery are analyzed in this paper, combined with the latest research results and simulation experiments.A fuzzy PID controller is designed to meet the requirement of battery charging control.The simulation results show that the output of the fuzzy PID controller can be quickly returned to the setting value when the setting value changes.The overshoot of fuzzy PID controller is very small, and oscillation phenomenon is rare.The fuzzy PID controller, which has improve rapidity and effectiveness of battery charging, has better control effect than PID control.
3 e ec − − − =The variation range of the output P K is defined as the universe of discourse on the fuzzy set:The variation range of the output I K is defined as the universe of discourse on the fuzzy set:The variation range of the output D K is defined as the universe of discourse on the fuzzy set:Suppose the fuzzy subsets of , e ec , P K , I K and D K are: {NB, NM, NS, Z, PS, PM, PB}2) Fuzzy rulesThrough repeated experiments and literature review[8], the fuzzy rules are defined as follows.As shown in Tables 1-3.

Figure 2 .
Figure 2. PID controller of fuzzy self-tuning system.

Figure 4 .
Figure 4. (a) Voltage of PID control with interference; (b) Voltage of Fuzzy-PID control with interference.

Table 1 .
Fuzzy control principle of K P .

Table 2 .
Fuzzy control principle of K I .

Table 3 .
Fuzzy control principle of K D .