Method and device for controlling the speed of an electrically controlled silicone oil fan
By combining fuzzy controllers and PID controllers, the problems of insufficient speed control accuracy and stability of electronically controlled silicone oil fans have been solved, achieving more efficient speed control and improving control precision and responsiveness.
Patent Information
- Application Number
- CN202410378800.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-03-29
AI Technical Summary
In the existing technology, the PID control algorithm of the electronically controlled silicone oil fan has insufficient control accuracy and stability when facing nonlinearity, uncertainty and variability, resulting in poor speed control effect.
By combining a fuzzy controller with a PID controller, the deviation and error rate between the set speed and the actual speed are obtained. Fuzzification, fuzzy inference and declarative processing are used to obtain the adjustment coefficient increment, and the adjustment coefficient of the PID controller is adjusted to achieve precise control of the speed of the electronically controlled silicone oil fan.
It improves the debugging accuracy and responsiveness of the PID controller, quickly obtains more accurate PID debugging parameters, enhances the control accuracy of the speed of the electronically controlled silicone oil fan, and reduces the workload and debugging time of the experimenters.
Smart Images

Figure CN118030261B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent control technology, and in particular to a method and device for controlling the speed of an electronically controlled silicone oil fan. Background Technology
[0002] For electrically controlled silicone oil fans, PID (Proportional-Integral-Differential) control is the most important and direct indicator for evaluating the performance of these fans. The PID control of an electrically controlled silicone oil fan directly determines its quality. PID tuning is the core of the entire silicone oil fan control system, and it is also the most time-consuming and difficult part.
[0003] However, faced with increasingly complex nonlinearities, uncertainties, and variability, the shortcomings of classic PID control algorithms in terms of insufficient control accuracy and stability are becoming increasingly apparent, resulting in poor control performance of the speed of electronically controlled silicone oil fans. Therefore, an effective solution is urgently needed to address these problems. Summary of the Invention
[0004] This invention provides a method and apparatus for controlling the speed of an electronically controlled silicone oil fan, which solves the problem of poor control effect of electronically controlled silicone oil fan speed in the prior art and achieves precise control of the speed of electronically controlled silicone oil fan.
[0005] This invention provides a method for controlling the speed of an electronically controlled silicone oil fan, comprising:
[0006] Obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation and error rate between the actual speed and the set speed;
[0007] The deviation value and the error rate are processed based on the set fuzzy controller to obtain the adjustment coefficient increment;
[0008] The adjustment coefficient of the PID controller is adjusted according to the increment of the adjustment coefficient.
[0009] The deviation value is input to the PID controller for processing to obtain the speed control value, and the speed of the target electronically controlled silicone oil fan is controlled according to the speed control value.
[0010] According to the present invention, a method for controlling the rotational speed of an electronically controlled silicone oil fan is provided, wherein the fuzzy controller includes a fuzzification layer, a fuzzy inference layer, and a declarative layer;
[0011] The fuzzy controller, based on a set parameters, processes the deviation value and the error rate to obtain the adjustment coefficient increment, including:
[0012] Based on the fuzzification layer, the deviation value and the error rate are fuzzified to obtain the first membership degree of the deviation value and the second membership degree of the error rate.
[0013] Based on the fuzzy inference layer, fuzzy inference is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment;
[0014] The third membership degree is then processed by the sharpening layer to obtain the adjustment coefficient increment.
[0015] According to the present invention, a method for controlling the rotational speed of an electronically controlled silicone oil fan is provided, wherein the fuzzification layer includes multiple fuzzy subsets and membership functions;
[0016] The step of fuzzifying the deviation value and the error rate based on the fuzzification layer to obtain the first membership degree of the deviation value and the second membership degree of the error rate includes:
[0017] Based on the membership function, determine the first membership degree to which the deviation value belongs to each of the fuzzy subsets; and,
[0018] Based on the membership function, the second membership degree to which the error rate belongs to each of the fuzzy subsets is determined.
[0019] According to the present invention, a method for controlling the speed of an electronically controlled silicone oil fan is provided, wherein the fuzzy inference layer includes a fuzzy rule table corresponding to the adjustment coefficient increment;
[0020] The step of performing fuzzy inference on the first membership degree and the second membership degree based on the fuzzy inference layer to obtain the third membership degree of the adjustment coefficient increment includes:
[0021] According to the fuzzy rule table, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree to which the adjustment coefficient increment belongs to each of the fuzzy subsets.
[0022] According to the present invention, a method for controlling the speed of an electronically controlled silicone oil fan is provided, wherein the fuzzy rule table includes multiple initial fuzzy rules;
[0023] The step of performing fuzzy inference on the first membership degree and the second membership degree according to the fuzzy rule table to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets includes:
[0024] Based on the first membership degree and the second membership degree, at least one target fuzzy rule is selected from the plurality of initial fuzzy rules;
[0025] According to the target fuzzy rules, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets.
[0026] According to the present invention, a method for controlling the speed of an electrically controlled silicone oil fan, before adjusting the adjustment coefficient of the PID controller based on the adjustment coefficient increment, further includes:
[0027] Collect the spectrum of the actual speed fluctuation of the target electronically controlled silicone oil fan;
[0028] The road spectrum was analyzed to obtain a fitting curve;
[0029] A PID controller is constructed based on the fitted curve, and the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller.
[0030] According to the present invention, a method for controlling the speed of an electrically controlled silicone oil fan includes the following steps: constructing a PID controller based on the fitted curve and adjusting the adjustment coefficient of the PID controller based on the fuzzy controller.
[0031] In the Simulink environment, proportional units, integral units, and differential units are constructed based on the fitted curve.
[0032] A PID controller is determined based on the proportional unit, the integral unit, and the derivative unit.
[0033] The PID controller was debugged, and the debugging results were obtained;
[0034] If the debugging results do not meet the set results, the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller;
[0035] Continue executing the steps of debugging the PID controller and obtaining the debugging results until the debugging results meet the set results.
[0036] The present invention also provides a speed control device for an electronically controlled silicone oil fan, comprising:
[0037] The calculation module is configured to obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation value and error rate between the actual speed and the set speed;
[0038] The processing module is configured to process the deviation value and the error rate based on a set fuzzy controller to obtain the adjustment coefficient increment;
[0039] The adjustment module is configured to adjust the adjustment coefficient of the PID controller according to the increment of the adjustment coefficient;
[0040] The control module is configured to input the deviation value into the PID controller for processing to obtain the speed control value, and control the speed of the target electro-hydraulic oil fan according to the speed control value.
[0041] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the speed control method for the electronically controlled silicone oil fan described above.
[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the speed control method for an electronically controlled silicone oil fan as described above.
[0043] The present invention provides a method and apparatus for controlling the speed of an electrically controlled silicone oil fan. This involves acquiring the set speed and actual speed of the target electrically controlled silicone oil fan, and calculating the deviation and error rate between the actual speed and the set speed. Based on a set fuzzy controller, the deviation and error rate are processed to obtain an adjustment coefficient increment. The adjustment coefficient of the PID controller is adjusted according to the adjustment coefficient increment. The deviation value is input to the PID controller for processing to obtain a speed control value, and the speed of the target electrically controlled silicone oil fan is controlled according to the speed control value. The introduction of a fuzzy controller in this invention greatly improves the debugging accuracy and responsiveness of the PID controller, allowing for the rapid acquisition of more precise PID debugging parameters (speed control values), thereby improving the accuracy of controlling the speed of the electrically controlled silicone oil fan. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating the speed control method for an electronically controlled silicone oil fan provided by the present invention.
[0046] Figure 2 This is a schematic diagram of the principle of electronically controlled silicone oil fan speed control provided by the present invention;
[0047] Figure 3 This is a schematic diagram of the fuzzy-PID controller provided in this application;
[0048] Figure 4 This is a design flowchart of the fuzzy controller provided by the present invention;
[0049] Figure 5 This is a fluctuation curve diagram of the electronically controlled silicone oil fan provided by the present invention;
[0050] Figure 6 This is a schematic diagram of the fitting curve provided by the present invention;
[0051] Figure 7 This is a schematic diagram of the process for building a PID controller provided by the present invention;
[0052] Figure 8 This is a schematic diagram of the adjustment result of the fuzzy-PID controller provided by the present invention;
[0053] Figure 9 This is a schematic diagram of the speed control result of the fuzzy-PID controller provided by the present invention;
[0054] Figure 10 This is a schematic diagram of the speed control result of the PID controller provided by the present invention;
[0055] Figure 11 This is a schematic diagram of the speed control device for the electronically controlled silicone oil fan provided by the present invention;
[0056] Figure 12 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0057] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0058] First, a brief description of the relevant content of this invention will be given.
[0059] As a crucial component of the engine cooling system, the performance of the electronically controlled silicone oil fan directly impacts the radiator's heat dissipation efficiency. Simultaneously, the operation of the electronically controlled silicone oil fan is a significant consumer of engine power and a major source of noise and vibration. To meet the engine's cooling requirements, reduce the power consumption of the electronically controlled silicone oil fan, lower engine fuel consumption, and minimize noise and vibration, it is essential to rationally set and precisely control the fan's speed.
[0060] In related technologies, by using the operating status of the air compressor in the air conditioner, and taking the target control pressure and actual output pressure of the gaseous refrigerant output by the air compressor as inputs, a PID control algorithm is used to determine the set speed of the electronically controlled silicone oil fan. Then, using the set speed and actual speed of the electronically controlled silicone oil fan as inputs, a PID control algorithm is used to determine the control signal for controlling the operation of the electronically controlled silicone oil fan, thereby achieving the purpose of controlling the current operating speed of the electronically controlled silicone oil fan. Thus, by combining the operating status of the air compressor in the air conditioner with the actual operating speed of the electronically controlled silicone oil fan, a closed-loop PID control algorithm can accurately and smoothly control the operating speed of the electronically controlled silicone oil fan, thereby improving the performance of the air conditioner and the operating efficiency of the engine, and ultimately improving the comfort and economy of the vehicle.
[0061] However, in the actual debugging and calibration process, the above method requires R&D personnel to conduct on-site calibration on the actual vehicle, consuming a lot of manpower and resources to debug the electronically controlled silicone oil fan; moreover, it controls the speed of the electronically controlled silicone oil fan by adjusting the set speed of the fan; not only that, the debugging site environment is harsh, which puts great pressure on the physical and mental health of the R&D personnel.
[0062] The following is combined with Figures 1 to 12 The present invention describes a method and apparatus for controlling the rotational speed of an electronically controlled silicone oil fan.
[0063] See Figure 1 , Figure 1 This is a flowchart illustrating the speed control method for an electrically controlled silicone oil fan provided by the present invention, including steps 101-104, wherein:
[0064] Step 101: Obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation value and error rate between the actual speed and the set speed.
[0065] In practical applications, electronically controlled silicone oil fans do not need to maintain the same speed as the engine at all times. When the engine temperature is detected to be higher than the limit, the electronically controlled silicone oil fan will automatically increase its speed to dissipate heat under the control of the ECU (Electronic Control Unit). When the engine temperature drops to the limit, it will maintain a lower speed. This greatly reduces the fan's power consumption on the engine and also greatly reduces the noise of the entire machine. However, the entire control process involves a complex electronic control system.
[0066] See Figure 2 , Figure 2This invention provides a schematic diagram of the principle of electronically controlled silicone oil fan speed control. Key parameters for actual electronically controlled silicone oil fan speed control include: a) coolant and engine oil temperatures; b) intake air temperature after intercooler; c) engine air conditioning status; d) engine load; f) engine regeneration status; and g) engine braking status and hydraulic retarder status. By monitoring the status of these six key parameters in real time, six set speeds for the electronically controlled silicone oil fan are calculated. The maximum value among these six set speeds is then selected as the candidate set speed, i.e., the set speed is determined based on environmental conditions. To ensure the normal operation of each system, the candidate set speed is compared with the value of the fan differential thermal protection and the value of sensor failure to select the final set speed. Therefore, the set speed x(t) of the target electronically controlled silicone oil fan can be obtained by following this process.
[0067] The actual rotational speed of the target electrically controlled silicone oil fan can be obtained by collecting the actual rotational speed y(t) of the target electrically controlled silicone oil fan using a speed sensor.
[0068] Furthermore, the difference between the actual speed and the set speed, or the absolute value of the difference, is taken as the deviation value e(t), and the error rate ec is obtained by differentiating the deviation value e(t), i.e., ec = de(t) / dt.
[0069] Step 102: Process the deviation value and the error rate based on the set fuzzy controller to obtain the adjustment coefficient increment.
[0070] Specifically, the adjustment coefficient increments include the proportional adjustment coefficient increment ΔKP, the integral adjustment coefficient increment ΔKI, and the derivative adjustment coefficient increment ΔKD. The fuzzy controller can be a Mamdani-type fuzzy controller.
[0071] In practical applications, see Figure 2 Typically, the set speed of the electronically controlled silicone oil fan is transmitted to the ECU control system. The ECU then compares the actual fan speed transmitted from the sensor with the set speed. The ECU then uses PID control to make real-time adjustments, ensuring the actual fan speed quickly catches up to the set speed – this is fan speed control. However, with increasingly complex nonlinearities, uncertainties, and variability, the shortcomings of the classic PID control algorithm in terms of control accuracy and stability are becoming increasingly apparent.
[0072] Therefore, this invention introduces fuzzy control theory to optimize the shortcomings of the classic PID control algorithm. Fuzzy control algorithm is an important control algorithm in the field of intelligent control, and its combination with PID control algorithm can better achieve the control of electrically controlled silicone oil fans. Intelligent control theory combines modern control theory with artificial intelligence, enabling precise control of the controlled object. Fuzzy control theory is an intelligent algorithm that uses computers to simulate human brain logic based on fuzzy rules and fuzzy reasoning, and it is one of the important research contents in the field of intelligent control algorithms.
[0073] The most important characteristic of fuzzy control algorithms is that they do not require a precise mathematical model of the controlled object. Instead, they rely on fuzzy inference rules derived from experience to precisely control the object. (See also...) Figure 3 , Figure 3 This is a schematic diagram of the fuzzy-PID controller provided in this application: The fuzzy-PID controller refers to a controller combining a fuzzy controller and a PID controller. Taking the deviation value e(t) and the error rate ec as inputs, the fuzzy controller undergoes three processes—fuzzification, fuzzy inference, and declarative processing—to obtain the proportional gain increment ΔKP, integral gain increment ΔKI, and derivative gain increment ΔKD. The deviation value e(t) is determined based on the set speed x(t) and actual speed y(t) of the target electronically controlled silicone oil fan, and the error rate ec is obtained by differentiating the deviation value e(t), i.e., ec = de(t) / dt.
[0074] Step 103: Adjust the adjustment coefficient of the PID controller according to the adjustment coefficient increment.
[0075] Specifically, the adjustment coefficients include the proportional adjustment coefficient KP, the integral adjustment coefficient KI, and the derivative adjustment coefficient KD.
[0076] In practical applications, see Figure 3 The PID controller includes a proportional unit, an integral unit, and a derivative unit. After obtaining the increments of the proportional control coefficient ΔKP, integral control coefficient ΔKI, and derivative control coefficient ΔKD, these increments are input into the PID controller. Based on the increment of the proportional control coefficient ΔKP, the proportional control coefficient KP of the proportional unit is adjusted (KP = KP + ΔKP). Based on the increment of the integral control coefficient ΔKI, the integral control coefficient KI of the integral unit is adjusted (KI = KI + ΔKI). Finally, based on the increment of the derivative control coefficient ΔKD, the derivative control coefficient KD of the derivative unit is adjusted (KD = KD + ΔKD).
[0077] It should be noted that in a PID controller, the value of KP is determined by the system's response speed. Increasing KP improves the response speed and reduces steady-state deviation; however, an excessively large KP will result in significant overshoot and may even destabilize the system. Decreasing KP reduces overshoot and improves stability, but an excessively small KP will slow down the response speed and prolong the settling time. Therefore, KP should be set to a relatively large value in the initial stage of settling to improve the response speed, while a smaller value should be used in the middle stage to ensure a smaller overshoot and a certain response speed. Finally, KP should be adjusted to a larger value in the later stage of settling to reduce steady-state error and improve control accuracy.
[0078] In system control, KI is mainly used to eliminate the steady-state deviation of the system. Due to certain reasons (such as saturation nonlinearity), the integral process may experience integral saturation in the early stages of the control process, leading to a large overshoot. Therefore, in the early stages of the control process, to prevent integral saturation, its integral action should be weaker, or even zero; in the middle stages of the control process, to avoid affecting stability, its integral action should be moderate; and finally, in the later stages of the process, the integral action should be enhanced to reduce the control error.
[0079] KD is primarily introduced for processes with large inertia. The role of the derivative coefficient is to alter the dynamic characteristics of the system. The system's derivative coefficient reflects the trend of signal changes and can introduce an effective early correction signal into the system before the deviation signal changes too much, thereby accelerating the response speed, reducing the settling time, and eliminating oscillations. Ultimately, this changes the dynamic performance of the system. Therefore, the value of KD has a significant impact on the dynamic characteristics of the regulation. If KD is too large, the braking during the regulation process will be too advanced, resulting in an excessively long settling time; if KD is too small, the braking during the regulation process will be too lagging, leading to increased overshoot. Based on practical experience, in the initial stage of regulation, the derivative action should be increased to achieve a smaller or even avoidable overshoot; in the middle stage, because the regulation characteristics are more sensitive to changes in KD, KD should be appropriately smaller and kept constant; then in the later stage of regulation, KD should be decreased to reduce the braking effect of the controlled process, thereby compensating for the extended settling time caused by the larger KD in the initial stage of regulation.
[0080] Step 104: Input the deviation value into the PID controller for processing to obtain the speed control value, and control the speed of the target electronically controlled silicone oil fan according to the speed control value.
[0081] In practical applications, see Figure 3After adjusting the regulation coefficients of the PID controller, the deviation value e(t) is input into the PID controller: the proportional unit adjusts the deviation value e(t) proportionally to obtain the proportional adjustment result; the integral unit adjusts the deviation value e(t) integrally to obtain the integral adjustment result; the derivative unit adjusts the deviation value e(t) proportionally to obtain the derivative adjustment result; then the proportional, integral, and derivative adjustment results are fused to obtain the speed control value u(t). Further, the speed of the target electronically controlled silicone oil fan can be controlled according to the speed control value.
[0082] The present invention provides a method for controlling the speed of an electrically controlled silicone oil fan. This method involves acquiring the set speed and actual speed of the target electrically controlled silicone oil fan, and calculating the deviation and error rate between the actual speed and the set speed. Based on a set fuzzy controller, the deviation and error rate are processed to obtain an adjustment coefficient increment. The adjustment coefficient of the PID controller is adjusted according to the adjustment coefficient increment. The deviation value is input to the PID controller for processing to obtain a speed control value, and the speed of the target electrically controlled silicone oil fan is controlled according to the speed control value. The introduction of a fuzzy controller in this invention greatly improves the debugging accuracy and responsiveness of the PID controller, allowing for the rapid acquisition of more precise PID debugging parameters (speed control values), thereby improving the accuracy of controlling the speed of the electrically controlled silicone oil fan.
[0083] In one or more optional embodiments of the present invention, the fuzzy controller includes a fuzzification layer, a fuzzy inference layer, and a defuzzification layer; correspondingly, the fuzzy controller based on the set parameters processes the deviation value and the error rate to obtain the adjustment coefficient increment, and the specific implementation process can be as follows:
[0084] Based on the fuzzification layer, the deviation value and the error rate are fuzzified to obtain the first membership degree of the deviation value and the second membership degree of the error rate.
[0085] Based on the fuzzy inference layer, fuzzy inference is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment;
[0086] The third membership degree is then processed by the sharpening layer to obtain the adjustment coefficient increment.
[0087] In practical applications, the fuzzification layer of the fuzzy controller mainly performs fuzzification processing on the data. That is, the fuzzification layer performs fuzzification processing on the deviation value to obtain the first membership degree of the deviation value, and performs fuzzification processing on the error rate to obtain the second membership degree of the error rate.
[0088] In the fuzzy inference layer of the fuzzy controller, the main task is to perform fuzzy inference processing on the data. That is, the fuzzy inference layer infers the third membership degree of the adjustment coefficient increment based on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment.
[0089] In the defuzzy controller's defuzzification layer, the main task is to defuzzify the data (defuzzify it). That is, the defuzzification layer performs defuzzification based on the third membership degree of the adjustment coefficient increment: multiply the third membership degree by the corresponding membership value to calculate the solution of the output value, which is the adjustment coefficient increment.
[0090] Thus, by fuzzification, fuzzy reasoning, and declarative analysis, the efficiency and accuracy of obtaining the adjustment coefficient increment can be improved.
[0091] In one or more optional embodiments of the present invention, the fuzzification layer includes multiple fuzzy subsets and membership functions; correspondingly, the fuzzification process of the deviation value and the error rate based on the fuzzification layer to obtain the first membership degree of the deviation value and the second membership degree of the error rate can be implemented as follows:
[0092] Based on the membership function, determine the first membership degree to which the deviation value belongs to each of the fuzzy subsets; and,
[0093] Based on the membership function, the second membership degree to which the error rate belongs to each of the fuzzy subsets is determined.
[0094] In practical applications, we can first determine the fuzzy subsets and membership functions, such as using trigonometric functions as membership functions. Based on this, for the deviation value, we can calculate the first membership degree of the deviation value to each fuzzy subset using the membership functions; for the error rate, we can calculate the second membership degree of the error rate to each fuzzy subset using the membership functions. This improves the efficiency and accuracy of determining the first and second membership degrees.
[0095] In one or more optional embodiments of the present invention, the fuzzy inference layer includes a fuzzy rule table corresponding to the adjustment coefficient increment; correspondingly, the step of performing fuzzy inference on the first membership degree and the second membership degree based on the fuzzy inference layer to obtain the third membership degree of the adjustment coefficient increment can be implemented as follows:
[0096] According to the fuzzy rule table, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree to which the adjustment coefficient increment belongs to each of the fuzzy subsets.
[0097] In practical applications, fuzzy control rules (fuzzy rule table) can be established first: fuzzy frames are made for the incremental proportional control coefficient ΔKP, the incremental integral control coefficient ΔKI, and the incremental derivative control coefficient ΔKD, respectively, resulting in 49 fuzzy frames. The deviation value and error rate are then combined according to the fuzzy frames to obtain 49 different fuzzy rules, i.e., the fuzzy rule table.
[0098] Furthermore, fuzzy inference is performed on the first and second membership degrees according to the 49 different fuzzy rules in the fuzzy rule table to obtain the third membership degree of the adjustment coefficient increment belonging to each fuzzy subset. This improves the efficiency and accuracy of obtaining the third membership degree.
[0099] In one or more optional embodiments of the present invention, the fuzzy rule table includes a plurality of initial fuzzy rules; correspondingly, the step of performing fuzzy inference on the first membership degree and the second membership degree according to the fuzzy rule table to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets can be specifically implemented as follows:
[0100] Based on the first membership degree and the second membership degree, at least one target fuzzy rule is selected from the plurality of initial fuzzy rules;
[0101] According to the target fuzzy rules, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets.
[0102] Specifically, the initial fuzzy rule refers to the original fuzzy rule table contained in the fuzzy rule table. The target fuzzy rule refers to the selected fuzzy rule.
[0103] In practical applications, to reduce data processing volume and improve the efficiency of determining the third membership degree, fuzzy rules in the fuzzy rule table can be filtered based on the first and second membership degrees to select those fuzzy rules whose first and second membership degrees are relatively consistent. Further, for each selected fuzzy rule, fuzzy inference is performed on the first and second membership degrees according to that rule to obtain the third membership degree of the adjustment coefficient increment belonging to that fuzzy subset; this process is repeated for all selected fuzzy rules to obtain the third membership degree of the adjustment coefficient increment belonging to each fuzzy subset.
[0104] It should be noted that designing a fuzzy controller is required before using it. For details, see [link to relevant documentation]. Figure 4 , Figure 4The design flowchart of the fuzzy controller provided by this invention is as follows: determine the input quantity (deviation value and error rate) and the output quantity (adjustment coefficient increment), then determine the fuzzy controller structure, then determine the fuzzy subset and membership function; then establish fuzzy control rules, then perform simulation, and check whether the simulation result of the fuzzy controller reaches the control accuracy. If not, adjust the parameters of the fuzzy controller and continue the simulation; if yes, the design is completed, that is, the current fuzzy controller can be put into use.
[0105] In one or more optional embodiments of the present invention, before adjusting the adjustment coefficient of the PID controller according to the adjustment coefficient increment, the method further includes:
[0106] Collect the spectrum of the actual speed fluctuation of the target electronically controlled silicone oil fan;
[0107] The road spectrum was analyzed to obtain a fitting curve;
[0108] A PID controller is constructed based on the fitted curve, and the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller.
[0109] In practical applications, a PID controller needs to be built before using it. For the PID controller of an electrically controlled silicone oil fan, the most important thing is to obtain a fitting curve of the actual speed fluctuation. Therefore, it is possible to first collect the spectrum of large fluctuations in the actual fan speed to form a fluctuation curve. (See also...) Figure 5 , Figure 5 This is a fluctuation curve of the electrically controlled silicone oil fan provided by the present invention. The speed of the electrically controlled silicone oil fan fluctuates periodically outside ±200, indicating that the PID parameters are not suitable at this time.
[0110] The control logic of the electronically controlled silicone oil fan is divided into three parts: pre-control, control mode, and in-window PID control logic. For the pre-control module, it is necessary to collect the actual duty cycle of the silicone oil fan in advance at different engine speeds and different set speeds when the actual speed stabilizes at the set speed. When the difference between the set speed and the actual speed of the electronically controlled silicone oil fan is too large, the fan's duty cycle is quickly adjusted to achieve a stable duty cycle. Therefore, it is necessary to adjust the PID parameters through a model to stabilize the speed at the set value, such as 1500 rpm. At this point, the fitted curve can be obtained from the original waveform graph (fluctuation curve graph).
[0111] For example, see Figure 6 , Figure 6 This is a schematic diagram of the fitting curve provided by the present invention: the fitting function corresponding to the fitting curve is y = -163.55x. 2 +2840.1x-10765, R 2 =0.8421.
[0112] After obtaining the fitted curve, a PID controller can be built based on it. To improve the control accuracy of the PID controller, the adjustment coefficient can be adjusted using a fuzzy controller. This further ensures the accuracy of speed control.
[0113] Furthermore, to reduce the manpower and material resources required for experiments and alleviate the tuning burden on R&D personnel, a PID controller can be built based on Simulink, while ensuring the initial debugging of the electrically controlled silicone oil fan. Specifically, the PID controller is built based on the fitted curve, and the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller. The specific implementation process is as follows:
[0114] In the Simulink environment, proportional units, integral units, and differential units are constructed based on the fitted curve.
[0115] A PID controller is determined based on the proportional unit, the integral unit, and the derivative unit.
[0116] The PID controller was debugged, and the debugging results were obtained;
[0117] If the debugging results do not meet the set results, the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller;
[0118] Continue executing the steps of debugging the PID controller and obtaining the debugging results until the debugging results meet the set results.
[0119] In practical applications, PID controllers are built using Simulink. In the Simulink environment, proportional, integral, and derivative units are first built based on the fitted curve. These units are then combined to obtain the PID controller. Further, an existing fuzzy controller in MATLAB (such as a Mamdani-type fuzzy controller) is used in conjunction with the PID controller in Simulink to adjust the PID controller's control coefficients: the PID controller is debugged to obtain the debugging results. If the debugging results do not meet the set parameters, the control coefficients of the PID controller are adjusted based on the fuzzy controller in MATLAB. This process of debugging the PID controller continues until the debugging results meet the set parameters, resulting in a completed PID controller.
[0120] For example, see Figure 7 , Figure 7This is a flowchart illustrating the process of building a PID controller provided by the present invention: In the Simulink environment, the actual speed fluctuation spectrum of the target electrically controlled silicone oil fan is collected and analyzed to obtain a fitting curve; that is, based on the collected actual speed fluctuation spectrum of the target electrically controlled silicone oil fan, the spectrum is analyzed to obtain a fitting curve; PID units (proportional unit, integral unit, and derivative unit) are built based on the fitting curve; the PID controller is built; the PID controller is debugged; the debugging results are compared with the set results; if they do not match, the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller, and the PID controller is re-debugged; if they match, the process is complete, that is, the PID controller is built.
[0121] The following is combined with Figures 8-10 The method for controlling the speed of an electronically controlled silicone oil fan provided by this invention will be described.
[0122] See Figure 8 , Figure 8 This is a schematic diagram of the adjustment result of the fuzzy-PID controller provided by the present invention: Compared with the PID adjustment without the addition of the fuzzy controller, the PID adjustment with the addition of the fuzzy controller did not exhibit overshoot, and it only took about 4 seconds to reach stability, which is half the time. Therefore, after adding the fuzzy controller to adjust the coefficients of the PID controller, overshoot can be avoided and stability can be quickly achieved, which greatly improves the accuracy and responsiveness of subsequent control of the silicone oil fan.
[0123] See Figure 9 , Figure 9 This is a schematic diagram of the speed control results of the fuzzy-PID controller provided by the present invention; see also Figure 10 , Figure 10 This is a schematic diagram of the speed control results of the PID controller provided by this invention. (Comparison) Figure 9 and Figure 10 As can be seen, this invention can quickly debug silicone oil fans. The introduction of a fuzzy controller greatly improves the accuracy and responsiveness of the PID controller, allowing for rapid acquisition of PID control parameters, significantly reducing the workload of experimental personnel and greatly improving work efficiency.
[0124] The following describes the speed control device for the electrically controlled silicone oil fan provided by the present invention. The speed control device for the electrically controlled silicone oil fan described below can be referred to in correspondence with the speed control method for the electrically controlled silicone oil fan described above.
[0125] See Figure 11 , Figure 11 This is a schematic diagram of the speed control device for an electrically controlled silicone oil fan provided by the present invention, comprising:
[0126] The calculation module 1101 is configured to obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation value and error rate between the actual speed and the set speed;
[0127] The processing module 1102 is configured to process the deviation value and the error rate based on a set fuzzy controller to obtain the adjustment coefficient increment;
[0128] The adjustment module 1103 is configured to adjust the adjustment coefficient of the PID controller according to the adjustment coefficient increment;
[0129] The control module 1104 is configured to input the deviation value into the PID controller for processing to obtain the speed control value, and control the speed of the target electro-hydraulic oil fan according to the speed control value.
[0130] The present invention provides a speed control device for an electrically controlled silicone oil fan. This device acquires the set speed and actual speed of the target electrically controlled silicone oil fan, and calculates the deviation and error rate between the actual speed and the set speed. Based on a set fuzzy controller, the deviation and error rate are processed to obtain an adjustment coefficient increment. The adjustment coefficient of the PID controller is adjusted according to the adjustment coefficient increment. The deviation value is input to the PID controller for processing to obtain a speed control value, and the speed of the target electrically controlled silicone oil fan is controlled according to the speed control value. The introduction of a fuzzy controller in this invention greatly improves the debugging accuracy and responsiveness of the PID controller, allowing for the rapid acquisition of more accurate PID debugging parameters (speed control values), thereby improving the accuracy of controlling the speed of the electrically controlled silicone oil fan.
[0131] Optionally, the fuzzy controller includes a fuzzification layer, a fuzzy inference layer, and a defuzzification layer;
[0132] The processing module 1102 is further configured as follows:
[0133] Based on the fuzzification layer, the deviation value and the error rate are fuzzified to obtain the first membership degree of the deviation value and the second membership degree of the error rate.
[0134] Based on the fuzzy inference layer, fuzzy inference is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment;
[0135] The third membership degree is then processed by the sharpening layer to obtain the adjustment coefficient increment.
[0136] Optionally, the fuzzification layer includes multiple fuzzy subsets and membership functions;
[0137] The processing module 1102 is further configured as follows:
[0138] Based on the membership function, determine the first membership degree to which the deviation value belongs to each of the fuzzy subsets; and,
[0139] Based on the membership function, the second membership degree to which the error rate belongs to each of the fuzzy subsets is determined.
[0140] Optionally, the fuzzy inference layer includes a fuzzy rule table corresponding to the adjustment coefficient increment;
[0141] The processing module 1102 is further configured as follows:
[0142] According to the fuzzy rule table, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree to which the adjustment coefficient increment belongs to each of the fuzzy subsets.
[0143] Optionally, the fuzzy rule table includes multiple initial fuzzy rules;
[0144] The processing module 1102 is further configured as follows:
[0145] Based on the first membership degree and the second membership degree, at least one target fuzzy rule is selected from the plurality of initial fuzzy rules;
[0146] According to the target fuzzy rules, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets.
[0147] Optionally, the device further includes a construction module configured to:
[0148] Collect the spectrum of the actual speed fluctuation of the target electronically controlled silicone oil fan;
[0149] The road spectrum was analyzed to obtain a fitting curve;
[0150] A PID controller is constructed based on the fitted curve, and the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller.
[0151] Optionally, the building module is further configured as follows:
[0152] In the Simulink environment, proportional units, integral units, and differential units are constructed based on the fitted curve.
[0153] A PID controller is determined based on the proportional unit, the integral unit, and the derivative unit.
[0154] The PID controller was debugged, and the debugging results were obtained;
[0155] If the debugging results do not meet the set results, the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller;
[0156] Continue executing the steps of debugging the PID controller and obtaining the debugging results until the debugging results meet the set results.
[0157] Figure 12 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 12 As shown, the electronic device may include a processor 1210, a communication interface 1220, a memory 1230, and a communication bus 1240, wherein the processor 1210, the communication interface 1220, and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 can call logic instructions in the memory 1230 to execute a speed control method for an electrically controlled silicone oil fan. The method includes: acquiring a set speed and an actual speed of the target electrically controlled silicone oil fan, and calculating the deviation value and error rate between the actual speed and the set speed; processing the deviation value and the error rate based on a set fuzzy controller to obtain an adjustment coefficient increment; adjusting the adjustment coefficient of the PID controller according to the adjustment coefficient increment; inputting the deviation value into the PID controller for processing to obtain a speed control value, and controlling the speed of the target electrically controlled silicone oil fan according to the speed control value.
[0158] Furthermore, the logical instructions in the aforementioned memory 1230 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0159] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is able to execute the speed control method for an electrically controlled silicone oil fan provided by the above methods, the method including: obtaining a set speed and an actual speed of a target electrically controlled silicone oil fan, and calculating a deviation value and an error rate between the actual speed and the set speed; processing the deviation value and the error rate based on a set fuzzy controller to obtain an adjustment coefficient increment; adjusting the adjustment coefficient of a PID controller according to the adjustment coefficient increment; inputting the deviation value into the PID controller for processing to obtain a speed control value, and controlling the speed of the target electrically controlled silicone oil fan according to the speed control value.
[0160] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the speed control methods for the electrically controlled silicone oil fan provided above. The method includes: acquiring a set speed and an actual speed of the target electrically controlled silicone oil fan, and calculating a deviation value and an error rate between the actual speed and the set speed; processing the deviation value and the error rate based on a set fuzzy controller to obtain an adjustment coefficient increment; adjusting the adjustment coefficient of a PID controller according to the adjustment coefficient increment; inputting the deviation value into the PID controller for processing to obtain a speed control value, and controlling the speed of the target electrically controlled silicone oil fan according to the speed control value.
[0161] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling the speed of an electronically controlled silicone oil fan, characterized in that, include: Obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation and error rate between the actual speed and the set speed; The deviation value and the error rate are processed based on the set fuzzy controller to obtain the adjustment coefficient increment; The adjustment coefficient of the proportional-integral-derivative PID controller is adjusted according to the increment of the adjustment coefficient. The deviation value is input to the PID controller for processing to obtain the speed control value, and the speed of the target electronically controlled silicone oil fan is controlled according to the speed control value; The fuzzy controller includes a fuzzification layer, a fuzzy inference layer, and a defuzzification layer; The fuzzy controller, based on a set parameters, processes the deviation value and the error rate to obtain the adjustment coefficient increment, including: Based on the fuzzification layer, the deviation value and the error rate are fuzzified to obtain the first membership degree of the deviation value and the second membership degree of the error rate. Based on the fuzzy inference layer, fuzzy inference is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment; The third membership degree is then processed by the sharpening layer to obtain the adjustment coefficient increment.
2. The speed control method for an electronically controlled silicone oil fan according to claim 1, characterized in that, The fuzzification layer includes multiple fuzzy subsets and membership functions; The step of fuzzifying the deviation value and the error rate based on the fuzzification layer to obtain the first membership degree of the deviation value and the second membership degree of the error rate includes: Based on the membership function, determine the first membership degree to which the deviation value belongs to each of the fuzzy subsets; and, Based on the membership function, the second membership degree to which the error rate belongs to each of the fuzzy subsets is determined.
3. The speed control method for an electronically controlled silicone oil fan according to claim 2, characterized in that, The fuzzy inference layer includes a fuzzy rule table corresponding to the adjustment coefficient increment; The step of performing fuzzy inference on the first membership degree and the second membership degree based on the fuzzy inference layer to obtain the third membership degree of the adjustment coefficient increment includes: According to the fuzzy rule table, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree to which the adjustment coefficient increment belongs to each of the fuzzy subsets.
4. The speed control method for an electronically controlled silicone oil fan according to claim 3, characterized in that, The fuzzy rule table includes multiple initial fuzzy rules; The step of performing fuzzy inference on the first membership degree and the second membership degree according to the fuzzy rule table to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets includes: Based on the first membership degree and the second membership degree, at least one target fuzzy rule is selected from the plurality of initial fuzzy rules; According to the target fuzzy rules, fuzzy reasoning is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment belonging to each of the fuzzy subsets.
5. The speed control method for an electronically controlled silicone oil fan according to any one of claims 1-4, characterized in that, Before adjusting the adjustment coefficient of the proportional-integral-derivative PID controller according to the adjustment coefficient increment, the method further includes: Collect the spectrum of the actual speed fluctuation of the target electronically controlled silicone oil fan; The road spectrum was analyzed to obtain a fitting curve; A PID controller is constructed based on the fitted curve, and the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller.
6. The speed control method for an electronically controlled silicone oil fan according to claim 5, characterized in that, The step of constructing a PID controller based on the fitted curve and adjusting the adjustment coefficient of the PID controller based on the fuzzy controller includes: In the Simulink environment, proportional units, integral units, and differential units are constructed based on the fitted curve. A PID controller is determined based on the proportional unit, the integral unit, and the derivative unit. The PID controller was debugged, and the debugging results were obtained; If the debugging results do not meet the set results, the adjustment coefficient of the PID controller is adjusted based on the fuzzy controller; Continue executing the steps of debugging the PID controller and obtaining the debugging results until the debugging results meet the set results.
7. A speed control device for an electronically controlled silicone oil fan, characterized in that, include: The calculation module is configured to obtain the set speed and actual speed of the target electronically controlled silicone oil fan, and calculate the deviation value and error rate between the actual speed and the set speed; The processing module is configured to process the deviation value and the error rate based on a set fuzzy controller to obtain the adjustment coefficient increment; The adjustment module is configured to adjust the adjustment coefficient of the PID controller according to the increment of the adjustment coefficient; The control module is configured to input the deviation value into the PID controller for processing to obtain the speed control value, and control the speed of the target electronically controlled silicone oil fan according to the speed control value; The fuzzy controller includes a fuzzification layer, a fuzzy inference layer, and a defuzzification layer; The processing module is specifically configured as follows: Based on the fuzzification layer, the deviation value and the error rate are fuzzified to obtain the first membership degree of the deviation value and the second membership degree of the error rate. Based on the fuzzy inference layer, fuzzy inference is performed on the first membership degree and the second membership degree to obtain the third membership degree of the adjustment coefficient increment; The third membership degree is then processed by the sharpening layer to obtain the adjustment coefficient increment.
8. An electronic 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 program, it implements the steps of the speed control method for the electronically controlled silicone oil fan as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the speed control method for the electronically controlled silicone oil fan as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Fan rotating speed adjusting method and device for dry battery power supply and storage medium
CN113606179A
Control method of silicone oil fan, control equipment of silicone oil fan and vehicle
CN115750063A
