Charging pile module fan control method and system
The PID controller is optimized through genetic algorithm to adjust the fan speed of the charging pile, which solves the problem of poor temperature control in the charging pile, and realizes effective control of power loss and noise, extends the equipment life and improves the user experience.
Patent Information
- Application Number
- CN202411007224.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-12
AI Technical Summary
The existing charging pile fans cannot stabilize the internal temperature during use, resulting in increased power loss and it is difficult to reduce the internal temperature of the charging pile.
Genetic algorithms are used to optimize the proportional constant, integral constant and differential constant of the PID controller, adjust the fan speed in real time to achieve temperature compensation, and dynamically adjust the fan speed through rolling optimization to keep the internal temperature of the charging pile within the set range.
Effectively control the power loss on the fan side and the noise of the whole machine, extend the service life of the charging pile, reduce maintenance costs, improve user experience, and provide green and efficient operation support for electric vehicle charging facilities.
Smart Images

Figure CN118934697A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of charging piles, and relates to a method and system for controlling a fan of a charging pile module. Background Art
[0002] With the development of the charging pile industry, intelligence has been increasingly valued in the industry, and smart charging piles have become an important development direction for charging piles in the future. Smart charging piles are charging devices that use technologies such as the Internet of Things, the Internet, and AI to achieve automation, intelligence, and safety. They can support a variety of payment charging modes, such as swiping cards and scanning codes. In addition, they can be charged by time or power, and have automatic power-off, smoke detection, and power identification to prevent risks such as overload and fire.
[0003] At present, the heat dissipation methods of charging piles include fan heat dissipation and liquid cooling heat dissipation. A fixed method is adopted. When the charging pile is started, the fan runs at a fixed speed or the liquid cooling oil flows at a fixed flow rate, which will increase the internal friction of the charging pile during use. When the charging vehicle reaches the later charging stage, the charging current decreases and the temperature rise in the charging pile is relatively low. Only a low-speed fan or a low-flow liquid cooling oil heat dissipation can meet the requirements.
[0004] The technical problem is how to provide a fan control strategy for controlling the fan speed of the charging pile so that the charging pile can output the optimal fan speed during use to stabilize the internal temperature of the charging pile and reduce the internal loss of the charging pile. Summary of the invention
[0005] The present invention provides a charging pile module fan control method and system to solve the technical problem that the fan speed output by the charging pile during use cannot stabilize the internal temperature of the charging pile and cannot reduce the internal loss of the charging pile.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] The present invention provides a charging pile module fan control method and system, the method comprising: obtaining the current temperature value of the charging pile module in real time, if there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, then based on the current temperature value, using the genetic algorithm IGA to obtain the proportional constant K p , integration constant K i and the differential constant K d ;
[0008] Based on the proportionality constant K p , integration constant K i and the differential constant K dThe fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to realize temperature compensation of the charging pile module.
[0009] Furthermore, the proportionality constant K p , integration constant K i and the differential constant K d is the input of the PID controller; the output of the PID controller is:
[0010] u(k)=K p Δe(k)+K i e(k)+K d Δ 2 e(k)
[0011] Where u(k) is the fan speed increment, e(k) is the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δe(k) is the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δ 2 e(k) is the change value of the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value.
[0012] Furthermore, the e(k) is, e(k)=ry; the Δe(k) is, Δe(k)=e(k)-e(k-1); the Δ 2 e(k) is, Δ 2 e(k)=e(k)-2e(k-1)+e(k-2); wherein r is the set temperature value of the charging pile module, y is the current temperature value of the charging pile module, k is the current moment, k-1 is the past moment, and k-2 is the past two moments.
[0013] Furthermore, the genetic algorithm includes: setting the proportional constant K p , integration constant K i and the differential constant K d The parameter range constitutes the search space; the population is initialized according to the search space; the fitness of the individuals in the population is calculated; whether the termination condition is met is determined based on the fitness of the individuals in the population; if the termination condition is met, the PID parameter value is output; if the termination condition is not met, genetic operations are performed to form a new population, and then return to the previous step to calculate the fitness.
[0014] Furthermore, the fitness is Among them, J(i) is the performance index of individual i in the current population, and ε is a constant.
[0015] Furthermore, the objective function J is
[0016]
[0017] Where, e(t) is the temperature deviation in the charging pile, u(t) is the fan speed control value, w1, w2, w3, w4 are weighted coefficients, and w4>>w1, t u is the rise time, and Δy(t) is the output increment.
[0018] Furthermore, the output increment Δy(t) is
[0019] Δy(t)=y(t)-y(t-1)
[0020] Among them, y(t) is the temperature value inside the charging pile at the current moment, and y(t-1) is the temperature value inside the charging pile at the previous moment.
[0021] The present invention also provides a charging pile module fan control system, including an acquisition module: real-time acquisition of the current temperature value of the charging pile module, if there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, then based on the current temperature value, the genetic algorithm IGA is used to obtain the proportional constant K p , integration constant K i and the differential constant K d ; Control module: Based on the proportional constant K p , integration constant K i and the differential constant K d The fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to realize temperature compensation of the charging pile module.
[0022] The present invention also provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the device is special in that when the processor executes the computer program, the steps of the above-mentioned charging pile module fan control method are implemented.
[0023] The present invention also provides a computer-readable storage medium, which stores a computer program, characterized in that when the computer program is executed by a processor, the steps of the charging pile module fan control method described in any one of the above are implemented.
[0024] Compared with the prior art, the present invention has the following beneficial technical effects:
[0025] The present invention discloses a method for controlling a fan of a charging pile module. A temperature sensor is installed in the charging pile module to monitor the internal temperature of the charging pile in real time. It is determined whether there is a temperature difference between the current temperature value of the charging pile module and the set temperature value. If there is a temperature difference, the fan speed needs to be adjusted. When adjustment is required, the PID controller outputs a proportional constant K according to the genetic algorithm. p , integration constant K i and the differential constant K d The fan speed is adjusted in real time based on the current temperature value to achieve the optimal state. By real-time monitoring of the internal temperature of the charging pile and dynamically adjusting the fan speed through rolling optimization, the power loss on the fan side of the charging pile and the noise of the whole machine are effectively controlled, providing strong support for the green and efficient operation of electric vehicle charging facilities. In addition, it can also extend the service life of the charging pile, reduce maintenance costs, and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a flow chart of a charging pile module fan control method of the present invention;
[0027] Figure 2 This is a schematic diagram of a charging pile module fan control method of the present invention;
[0028] Figure 3 Flowchart of the genetic algorithm in the embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] The present invention provides a charging pile module fan control method, which realizes precise control of fan speed, output power and operation stability, reduces power loss and noise by optimizing the parameters of PID controller, and the parameters of PID controller are realized by genetic algorithm of genetic controller.
[0031] like Figure 1 As shown, it includes obtaining the current temperature value of the charging pile module in real time. If there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, the genetic algorithm IGA is used to obtain the proportional constant K based on the current temperature value. p , integration constant K i and the differential constant K d ; Based on the proportionality constant K p, integration constant K i and the differential constant K d The fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to achieve temperature compensation of the charging pile module. Specifically, the fan speed is adjusted in real time according to the obtained fan speed increment to increase or decrease the heat dissipation of the charging pile module. The fan speed is continuously adjusted by rolling optimization so that the temperature of the charging pile module is maintained near the set temperature value during the entire operation of the charging pile.
[0032] The temperature difference is positive or negative, based on the current temperature value, using the proportional constant K output by the genetic algorithm IGA p , integration constant K i and the differential constant K d The PID controller is controlled; the PID controller uses rolling optimization to control the fan by outputting the fan speed increment and performs temperature compensation.
[0033] Temperature value: The set temperature value of the charging pile module is 45° in this embodiment. If the current temperature value of the charging pile module is 45°, the speed of the fan will not be adjusted. If the current temperature value of the charging pile module minus the set temperature value is a positive deviation, the PID controller is adjusted to increase the fan speed increment for cooling. If the current temperature value of the charging pile module minus the set temperature value is a negative deviation, the PID controller is adjusted to reduce the fan speed increment, and no cooling is required at the current moment.
[0034] The temperature difference is adjusted in steps of 5°. The minimum fan speed is 0. The temperature difference decreases or increases by one order of magnitude at 0-5°, decreases or increases by two orders of magnitude at 5-10°, decreases or increases by three orders of magnitude at 10-15°, and so on.
[0035] Genetic Algorithm IGA: The genetic algorithm aims to minimize temperature deviation, optimize fan loss, and reduce noise. The genetic algorithm continuously adjusts the three key parameters of the PID controller through genetic iterative calculation. The three key parameters include the proportional constant K p , integration constant K i and the differential constant K d In each genetic algorithm, a new set of proportional constants K is generated o , integration constant K i and the differential constant K d , and evaluate, select parameter combinations, and generate the next generation through crossover and mutation operations until the preset convergence condition is reached or the number of iterations is 300.
[0036] PID controller: The PID controller receives the optimal proportional constant K from the genetic controller p , integration constant K i and the differential constant K d The parameter value is calculated based on the deviation between the current actual temperature and the target temperature, and the fan speed that should be adjusted is calculated. The output of the PID controller is the fan speed value that should be set at present, which is sent to the fan drive system through a control signal.
[0037] Rolling optimization: The charging pile system adopts a rolling optimization strategy, re-evaluating the current environmental status at any time and possibly adjusting the stable set value. When the temperature set value changes, the genetic controller will restart or continue its optimization process to find a new optimal PID parameter combination. The PID controller adjusts the fan speed in real time according to the new parameter combination and the current temperature deviation to achieve temperature compensation and ensure that the internal temperature of the charging pile remains within the set range.
[0038] The charging pile can achieve precise control of the fan, ensuring effective heat dissipation under different working conditions, while reducing unnecessary energy consumption and noise, extending the service life of the equipment and improving the user experience.
[0039] The output of the PID controller is:
[0040] u(k)=K p Δe(k)+K i e(k)+K d Δ 2 e(k)
[0041] Where u(k) is the fan speed increment, e(k) is the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δe(k) is the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δ 2 e(k) is the change value of the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value.
[0042] e(k)=ry, r is the set temperature value of the charging pile module, y is the current temperature value of the charging pile module;
[0043] Δe(k)=e(k)-e(k-1), k is the current moment, k-1 is the past moment, Δ 1 e(k)=e(k)-2e(k-1)+e(k-2), where k-2 represents the past two moments.
[0044] like Figure 3 As shown, the genetic algorithm includes: setting the proportional constant K o , integration constant K i and the differential constant Kd The parameter range constitutes a search space; the population is initialized according to the search space; the fitness of the individuals in the population is calculated; whether the termination condition is reached according to the fitness of the individuals in the population; if the termination condition is reached, the PID parameter value is output; if the termination condition is not reached, a genetic operation is performed to form a new population. If the number of genetic iterations reaches a set value, in this embodiment, the number of genetic iterations is three hundred times, the PID parameter value is obtained, and if the number of genetic iterations is not reached, the fitness is calculated by returning to the step of calculating the fitness of the individuals. The genetic operation includes a crossover operation and a mutation operation.
[0045] Parameter range, the genetic algorithm optimization object is the three parameters K of the PID controller p , K i and K d ,like Figure 2 As shown in the figure, three parameter values are determined by trial and error, that is, by changing the integral value first, until it is determined that the temperature deviation is in a decreasing state, the initial integral value can be obtained; then by changing the proportional value, it is determined that the temperature deviation continues to be in a decreasing state, and an initial proportional value can be obtained; finally, by changing the differential value, it is determined that when the temperature deviation continues to be in a decreasing state, the initial differential value can be output. Thus, three parameter values are determined. And the parameter range is selected around the parameter value, and the parameter range forms a search space, which is recorded as [a1, a2], [a3, a4] and [a5, a6].
[0046] Population initialization: divide the search space into 8 subspaces, randomly select n individuals from each space to form an initial population PT0 of size 8n, and express it in decimal numbers.
[0047] Calculate the fitness of the individuals in the population. The fitness function is an indicator for evaluating the performance of an individual in the population, while the objective function is a performance indicator for evaluating the control effect of a system. In order to make the charging pile temperature control system have better stability, accuracy and speed, the control amount, absolute value of deviation, rise time and overshoot are used as influencing factors of the objective function. The objective function is selected as:
[0048]
[0049] Where, e(t) is the temperature deviation in the charging pile, u(t) is the fan speed control value, w1, w2, w3, w4 are weighted coefficients, and w4>>w1, t u is the rise time, and Δy(t) is the output increment.
[0050] Δy(t)=y(t)-y(t-1)
[0051] y(t) is the temperature value inside the charging pile at the current moment, and y(t-1) is the temperature value inside the charging pile at the previous moment. The smaller the objective function is, the better the control performance of the system is. According to the maximization principle, the inverse of the objective function is selected as the fitness function.
[0052]
[0053] Among them, J(i) represents the performance index value of individual i in the current population, avoiding the denominator being zero, ε represents a very small constant, specifically 0.0001, and f(i) represents the fitness value of individual i in the current population.
[0054] The genetic operation selects the selection operator that combines elite preservation and roulette, and then uses the selection operator to perform survival of the fittest on individuals in the group. Suppose the population size is N and the fitness of individual i is f(i), then the probability that individual i is selected is P(i)
[0055]
[0056] The population crossover operation uses a single-point crossover operator, and then the two paired chromosomes exchange some genes according to the single-point crossover method, thereby generating two new individuals. The population mutation operation uses a basic bit mutation operator, which replaces the number on the corresponding bit of the replaced individual data with the number on a certain bit of other individuals. The functions of the crossover operator and the mutation operator are both to generate new individuals in the population, but the new individuals are generated in different ways. The former generates new individuals as a result of internal gene exchange, while the latter is generated by external interference gene mutation. The crossover operator determines whether to perform a crossover operation on each individual in the population based on the crossover probability, and the mutation operator determines whether to perform a mutation operation based on the mutation probability. If the crossover probability remains unchanged, the algorithm cannot converge in the later stage. Therefore, the crossover probability should be large in the early stage and small in the later stage, so that the crossover operator will not affect the generation of excellent new individuals and will not lose convergence. The mutation probability should also change with the algorithm search progress. The mutation probability should not be too small in the early stage, otherwise the algorithm will easily fall into the local optimum and lose the multi-directional development of the population individuals. It should not be too large in the later stage, otherwise the algorithm will lose the convergence direction. In order to effectively adjust the algorithm search progress, fuzzy control algorithm or other algorithms can be used to automatically adjust the crossover probability and mutation probability. The main heat generating object in the charging pile is the charging module. During multiple simulations and measurements of the charging module using the fuzzy control algorithm, it was found that the crossover probability output value range is mostly between 21% and 80%, and the mutation probability output value range is between 10% and 63%. At this time, the entire pile can converge quickly. Outside the range, the convergence time is longer or even diverges.
[0057] Determine whether the genetic algorithm stops. The termination condition is that the number of genetic iterations reaches the set value. If the termination condition is met, the optimal parameters are obtained and the population iteration operation ends. Otherwise, the selection, crossover and mutation processes continue.
[0058] The present invention discloses a method for controlling a fan of a charging pile module. A temperature sensor is installed in the charging pile module to monitor the internal temperature of the charging pile in real time. It is determined whether there is a temperature difference between the current temperature value of the charging pile module and the set temperature value. If there is a temperature difference, the fan speed needs to be adjusted. When adjustment is required, the PID controller outputs a proportional constant K according to the genetic algorithm. p , integration constant K i and the differential constant K d The fan speed is adjusted in real time based on the current temperature value to achieve the optimal state. By real-time monitoring of the internal temperature of the charging pile and dynamically adjusting the fan speed through rolling optimization, the power loss on the fan side of the charging pile and the noise of the whole machine are effectively controlled, providing strong support for the green and efficient operation of electric vehicle charging facilities. In addition, it can also extend the service life of the charging pile, reduce maintenance costs, and improve user experience.
[0059] The present invention also provides a charging pile module fan control system, including: an acquisition module: real-time acquisition of the current temperature value of the charging pile module, if there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, then based on the current temperature value, the genetic algorithm IGA is used to obtain the proportional constant K p , integration constant K i and the differential constant K d ; Control module: Based on the proportional constant K p , integration constant K i and the differential constant K d The fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to realize temperature compensation of the charging pile module.
[0060] It should be noted that the charging pile module fan control system provided by the present invention can implement method steps consistent with the above-mentioned method, so it will not be repeated here.
[0061] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The device is special in that when the processor executes the computer program, the steps of the charging pile module fan control method described in any one of the above embodiments are implemented.
[0062] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can operate the charging pile module fan control method.
[0063] The present invention also provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of the charging pile module fan control method described in any one of the above embodiments are implemented.
[0064] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium, which is a memory device in a terminal device for storing programs and data. It is understandable that the computer-readable storage medium here may include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs including program codes. The computer-readable storage medium here may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor may load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the charging pile module fan control method in the above embodiment.
[0065] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
Claims
1. A charging pile module fan control method, characterized in that: The following steps are involved: The current temperature value of the charging pile module is obtained in real time. If there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, the genetic algorithm IGA is used to obtain the proportional constant K based on the current temperature value. p , integration constant K i and the differential constant K d ; Based on the proportionality constant K p , integration constant K i and the differential constant K d The fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to realize temperature compensation of the charging pile module.
2. The charging pile module fan control method according to claim 1, characterized in that: The proportionality constant K p , integration constant K i and the differential constant K d is the input of the PID controller; The output of the PID controller is: u(k)=K p Δe(k)+K i e(k)+K d Δ 2 e(k) Where u(k) is the fan speed increment, e(k) is the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δe(k) is the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value, Δ 2 e(k) is the change value of the rate of change of the deviation between the temperature value set at the current moment of the charging pile and the actual detected output temperature value.
3. The charging pile module fan control method according to claim 2 is characterized in that: The e(k) is, e(k)=ry; The Δe(k) is, Δe(k)=e(k)-e(k-1); The said Δ 2 e(k) is, Δ 2 e(k) = e(k) - 2e(k - 1) + e(k - 2) Among them, r is the set temperature value of the charging pile module, y is the current temperature value of the charging pile module, k is the current moment, k-1 is the past moment, and k-2 is the past two moments.
4. The charging pile module fan control method according to claim 1, characterized in that: The genetic algorithm comprises: The proportionality constant K p , integration constant K i and the differential constant K d The parameter range constitutes the search space; Initialize the population according to the search space; Calculate the fitness of individuals in the population; Determine whether the termination condition is met based on the fitness of the individuals in the population; if the termination condition is met, output the PID parameter value; if the termination condition is not met, perform genetic operations to form a new population, and then return to the previous step to calculate the fitness.
5. The charging pile module fan control method according to claim 4 is characterized in that: The fitness is Among them, J(i) is the performance index of individual i in the current population, and ε is a constant.
6. The charging pile module fan control method according to claim 5 is characterized in that: The objective function J is Where, e(t) is the temperature deviation in the charging pile, u(t) is the fan speed control value, w1, w2, w3, w4 are weighted coefficients, and w4>>w1, t u is the rise time, and Δy(t) is the output increment.
7. The charging pile module fan control method according to claim 6, characterized in that: The output increment Δy(t) is Δy(t)=y(t)-y(t-1) Among them, y(t) is the temperature value inside the charging pile at the current moment, and y(t-1) is the temperature value inside the charging pile at the previous moment.
8. A charging pile module fan control system, characterized in that: include: Acquisition module: acquire the current temperature value of the charging pile module in real time. If there is a temperature difference between the current temperature value of the charging pile module and the set temperature value, the genetic algorithm IGA is used to obtain the proportional constant K based on the current temperature value. p , integration constant K i and the differential constant K d ; Control module: Based on the proportional constant K p , integration constant K i and the differential constant K d The fan speed increment is calculated based on the temperature difference between the current temperature value and the set temperature value. The fan is controlled by rolling optimization according to the obtained fan speed increment to realize temperature compensation of the charging pile module.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a charging pile module fan control method as described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a charging pile module fan control method as described in any one of claims 1-7 are implemented.
