Fan speed control method, device, electronic device, storage medium and vehicle
By collecting altitude pressure in real time and adjusting it using a PID controller and correction factor, the accuracy problem of fan speed adjustment in different altitude environments is solved, and stable control of fan speed is achieved.
Patent Information
- Application Number
- CN202310010041.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In environments with different altitudes, the existing fan speed control method is difficult to accurately respond to the fan speed adjustment needs. Especially in high-altitude environments, the silicone oil fan driving torque is reduced and the clutch engagement rate is increased, resulting in poor speed adjustment sensitivity and even speed oscillation and inability to disengage.
By collecting altitude pressure in real time, a proportional-integral-differential controller (PID controller) is used to adjust the fan speed. The PID controller is adjusted at different altitudes using proportional, integral, and differential correction factors. Combined with the altitude pressure correction factor, this ensures that the actual duty cycle is output accurately to control the fan speed in various altitude environments.
Accurate control of fan speed is achieved in different altitude environments, avoiding speed overshoot and oscillation, and ensuring stable operation of the fan under various altitude conditions.
Smart Images

Figure CN116025583B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of vehicle control, and more particularly, to a fan speed control method, device, electronic device, storage medium, and vehicle. Background Art
[0002] The relevant fan speed control method is often designed for use under plain conditions. However, the atmospheric pressure of the air, that is, the altitude pressure, is different in different altitude environments. Especially in high-altitude environments, due to the low atmospheric pressure, the vehicle's silicone oil fan driving torque is reduced, the clutch engagement rate is increased, and the silicone oil fan speed regulation sensitivity becomes worse. The fan control method used in the plains may be difficult to respond accurately and effectively to the fan speed adjustment requirements in high-altitude environments.
[0003] Based on this, a solution is needed that can effectively adjust the fan speed in different altitude environments. Summary of the Invention
[0004] In view of this, the purpose of this application is to propose a fan speed control method, device, electronic device, storage medium and vehicle to solve the problem of difficulty in effectively controlling the fan speed in different altitude environments.
[0005] Based on the above objectives, the present application provides a method for controlling fan speed, including:
[0006] Real-time collection of the fan's current altitude pressure;
[0007] When the altitude pressure is lower than a preset first threshold, the obtained target duty cycle is input into a preset proportional-integral-differential controller, and the proportional-integral-differential controller is used to adjust the actual duty cycle of the output according to the target duty cycle;
[0008] When the altitude pressure is higher than a preset second threshold, adjusting the proportional-integral-differential controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and correcting the adjusted proportional-integral-differential controller according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold;
[0009] The actual fan speed of the fan is controlled using the actual duty cycle.
[0010] Furthermore, after collecting the fan's current altitude pressure in real time, the following is also included:
[0011] Based on the real-time judgment of altitude pressure, the changing trend of the altitude pressure at which the fan is located is determined;
[0012] When it is determined that the change trend of the altitude pressure is from below the second threshold to before the second threshold, the target duty cycle is input into the proportional-integral-differential controller, and the actual duty cycle outputted by the proportional-integral-differential controller is adjusted according to the target duty cycle;
[0013] When it is determined that the change trend of the altitude pressure is decreasing from being higher than the first threshold to being lower than the first threshold, the proportional-integral-differential controller is adjusted using the proportional correction factor, the integral correction factor, and the differential correction factor, and the output of the proportional-integral-differential controller is corrected according to the current altitude pressure of the fan to obtain an actual duty cycle.
[0014] Furthermore, the proportional-integral-derivative controller is used to adjust the actual duty cycle of the output according to the target duty cycle, including:
[0015] According to an error between the target duty cycle and the current duty cycle, adjusting the current duty cycle of the fan using a preset proportional unit, a preset integral unit, and a preset differential unit in the proportional-integral-differential controller;
[0016] After adjustment, an actual duty cycle that is the same as the target duty cycle is output.
[0017] Further, adjusting the proportional-integral-derivative controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor includes:
[0018] Determining the proportional correction factor, the integral correction factor, and the differential correction factor by collecting the fan target speed, the fan actual speed, and the engine speed;
[0019] Correcting the proportional unit in the proportional-integral-derivative controller using the proportional correction factor;
[0020] Correcting the integration unit in the proportional-integral-derivative controller using the integration correction factor;
[0021] The differential unit in the proportional-integral-derivative controller is corrected using the differential correction factor.
[0022] Furthermore, the proportional correction factor, the integral correction factor, and the differential correction factor are determined by collecting the fan target speed, the fan actual speed, and the engine speed, including:
[0023] determining a first difference between the fan target speed and the engine speed, and determining a second difference between the fan actual speed and the engine speed;
[0024] Under a combined operating condition of the first difference and the second difference, the proportional correction factor, the integral correction factor, and the differential correction factor pre-calibrated corresponding to the combined operating condition are determined.
[0025] Furthermore, the adjusted proportional-integral-derivative controller is corrected according to the current altitude pressure of the fan, including:
[0026] Comparing the acquired altitude pressure with a plurality of preset altitude pressure intervals to determine the altitude pressure interval into which the altitude pressure falls, wherein each altitude pressure interval is corresponding to a preset altitude pressure correction factor;
[0027] The adjusted proportional-integral-derivative controller is corrected using the altitude pressure correction factor corresponding to the altitude pressure interval that the altitude pressure falls into.
[0028] Based on the same inventive concept, the present application also provides a fan speed control device, comprising: an altitude pressure acquisition module, a first controller output module, a second controller output module and a fan control module;
[0029] The altitude pressure acquisition module is configured to acquire the altitude pressure of the fan in real time;
[0030] The first controller output module is configured to, when the altitude pressure is lower than a preset first threshold, input the obtained target duty cycle to a preset proportional-integral-differential controller, and use the proportional-integral-differential controller to adjust the actual duty cycle of the output according to the target duty cycle;
[0031] The second controller output module is configured to, when the altitude pressure is higher than a preset second threshold, adjust the proportional-integral-differential controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and correct the adjusted proportional-integral-differential controller according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold;
[0032] The fan control module is configured to control the actual fan speed of the fan using the actual duty cycle.
[0033] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the fan speed control method as described in any one of the above items is implemented.
[0034] Based on the same inventive concept, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the fan speed control method as described above.
[0035] Based on the same inventive concept, the present application also provides a vehicle, which includes a fan speed control device and an electronic device, and the electronic device executes the fan speed control method as described in any one of the above.
[0036] As can be seen from the above description, the fan speed control method, device, electronic device, storage medium, and vehicle provided in the present application are based on the collected altitude pressure. When the altitude pressure is lower than a first threshold, the proportional-integral-differential controller is directly used to output the actual duty cycle according to the acquired target duty cycle; when the altitude pressure is higher than a second threshold, the proportional-integral-differential controller is adjusted using a calibrated proportional correction factor, integral correction factor, and differential correction factor, and the corresponding altitude pressure correction factor is further determined based on the current altitude pressure. This allows the proportional-integral-differential controller to be corrected using the altitude pressure correction factor, so that the proportional-integral-differential controller can output an accurate actual duty cycle in working environments with different altitude pressures to accurately respond to the fan target speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in this application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are merely embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0038] Figure 1 This is a flow chart of a method for controlling fan speed according to an embodiment of the present application;
[0039] Figure 2 A schematic diagram of a PID controller according to an embodiment of the present application;
[0040] Figure 3 This is a schematic diagram of the structure of a fan speed control device according to an embodiment of the present application;
[0041] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of this application more clear, this application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0043] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should have the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0044] As described in the background technology section, the related fan speed control method is still difficult to meet the needs of adjusting the fan in actual use.
[0045] In the process of implementing this application, the applicant discovered that the main problem with the relevant fan speed control method is that the atmospheric pressure of the air, that is, the altitude pressure, is different in different altitude environments. Especially in high-altitude environments, due to the low atmospheric pressure, the vehicle's silicone oil fan driving torque is reduced, the clutch engagement rate is increased, and the silicone oil fan speed regulation sensitivity becomes worse. The control method of the fan used in the plains may cause the actual speed of the silicone oil fan to overshoot, the speed to oscillate, and even the silicone oil fan to be often engaged and unable to disengage in a high-altitude environment.
[0046] Based on this, one or more embodiments of the present application provide a method for controlling fan speed, which modifies a proportional-integral-differential controller based on different altitude pressures to obtain the actual fan speed for controlling the fan.
[0047] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0048] In the embodiments of the present application, a vehicle provided with a silicone oil fan is taken as a specific example, and in this embodiment, the silicone oil fan in the vehicle is simply referred to as a fan.
[0049] Specifically, the vehicle is also provided with an altitude pressure sensor, an ECM (Engine Control Moudle) and a PID controller (Proportion-Integration-Differentiation controller).
[0050] The altitude pressure sensor can be used to detect the current altitude pressure of the vehicle.
[0051] Furthermore, the ECM can collect altitude pressure data detected by the altitude pressure sensor in real time.
[0052] Furthermore, the ECM can also monitor the current engine speed of the vehicle and the current actual fan speed of the silicone oil fan in real time.
[0053] In this embodiment, the ECM can also collect the heat dissipation requirements of the vehicle in all working conditions in real time, for example, the heat dissipation requirements of the engine water temperature, the heat dissipation requirements of the engine intake temperature, and the heat dissipation requirements of the transmission.
[0054] Based on this, the ECM can determine the target for regulating the fan speed according to the vehicle's comprehensive operating conditions and various heat dissipation requirements, and use this target as the fan's target speed.
[0055] Furthermore, the ECM can collect the output of the PID controller and can control the actual speed of the fan.
[0056] refer to Figure 1 A fan speed control method according to an embodiment of the present application is applied to a vehicle control system, such as an ECM, and specifically includes the following steps:
[0057] Step S101: collecting the fan's current altitude pressure in real time.
[0058] In the embodiment of the present application, as mentioned above, the ECM can acquire the data of the altitude pressure sensor in real time, and can obtain the current altitude pressure of the vehicle in real time, that is, the altitude pressure at which the fan is currently working.
[0059] In this embodiment, when the vehicle is at different altitudes, the altitude pressure of the fan is different. When the altitude pressure value is higher, it means that the current altitude is lower, and when the altitude pressure value is lower, it means that the current altitude is higher.
[0060] In a specific example, the current altitude collected by the ECM may be 40 KPa, 45 KPa, 50 KPa, 70 KPa or other values.
[0061] Based on this step, the fan's current altitude and pressure can be known in real time, so that the following corrections can be performed on the PID control according to the working environment at different altitudes and pressures.
[0062] Step S102: When the altitude pressure is lower than a preset first threshold, the obtained target duty cycle is input into a preset proportional-integral-differential controller, and the proportional-integral-differential controller is used to adjust the actual duty cycle of the output according to the target duty cycle.
[0063] In an embodiment of the present application, based on the collected altitude pressure data, when it is determined that the altitude pressure at which the vehicle or fan is currently located is low, the PID controller provided in the vehicle can be used to control the actual duty cycle of the output according to the target duty cycle obtained by the ECM.
[0064] Specifically, the altitude pressure at which the fan is currently located may be determined by setting a first threshold and a second threshold.
[0065] When the altitude pressure collected by the ECM is lower than a preset first threshold, it can be considered that the altitude pressure at which the fan is currently located is low.
[0066] In a specific example, the first threshold may be set to 45 KPa.
[0067] Furthermore, when the altitude pressure collected by the ECM is less than 45 kPa, it is considered that the altitude pressure at which the fan is currently located is relatively low.
[0068] Furthermore, as described above, based on the fan target speed and the engine speed determined by the ECM, a preset target duty cycle corresponding to the combined operating condition of the fan target speed and the engine speed can be determined accordingly.
[0069] In this embodiment, for each combination of different fan target speeds and different engine speeds, the corresponding target duty cycle can be calibrated.
[0070] Specifically, a plurality of different possible fan target rotation speeds and a plurality of different engine rotation speeds are set.
[0071] Each fan target speed may correspond to a plurality of different engine speeds. The fan target speed and each engine speed are taken as a set of combined operating conditions, and the target duty cycle under the combined operating condition is calibrated.
[0072] Based on this, for each fan target speed, the target duty cycle corresponding to each different engine speed can be calibrated, thereby obtaining the target duty cycle under the combined working conditions of each fan target speed and each engine speed.
[0073] In a specific example, take the target duty cycle table shown in Table 1 below as an example:
[0074] Table 1. Target duty cycle table
[0075]
[0076]
[0077] In the specific example of the present application, it can be seen from Table 1 that the engine speed is divided into 800rpm / min, 1000rpm / min, 1200rpm / min, 1500rpm / min, 2000rpm / min, 2500rpm / min, 3000rpm / min, 3500rpm / min, 4000rpm / min, 4500rpm / min, 5000rpm / min, 5500rpm / min and 6000rpm / min; and the fan target speed is divided into 200rpm / min, 50rpm / min, 80rpm / min, 1000rpm / min, 1500rpm / min, 2000rpm / min, 2500rpm / min, 3000rpm / min, 3500rpm / min, 4000rpm / min, 4500rpm / min, 5000rpm / min, 5500rpm / min and 6000rpm / min.
[0078] In this example, based on the fan target speed being 200 rpm / min, the target duty cycle is calibrated to 0 within the engine speed range of 800 rpm / min to 600 rpm / min.
[0079] Furthermore, based on the fan target speed of 500rpm / min, if the engine speed is 800rpm / min, the target duty cycle can be calibrated to 70% under this combined operating condition; further, based on the fan target speed of 500rpm / min, if the engine speed is 2000rpm / min, the target duty cycle can be calibrated to 50% under this combined operating condition; further, still based on the fan target speed of 500rpm / min, if the engine speed is 6000rpm / min, the target duty cycle can be calibrated to 19% under this combined operating condition.
[0080] Furthermore, based on the fan target speed of 3500rpm / min, if the engine speed is 800rp, the target duty cycle can be calibrated to 100% under this combined operating condition; further, based on the fan target speed of 3500rpm / min, if the engine speed is 2000rpm / min, the target duty cycle can be calibrated to 90% under this combined operating condition; further, still based on the fan target speed of 3500rpm / min, if the engine speed is 6000rpm / min, the target duty cycle can be calibrated to 67% under this combined operating condition.
[0081] It can be seen that when the fan target speed is fixed at 500 rpm / min, or 3500 rpm / min, or other values, corresponding target duty cycles can be calibrated corresponding to different engine speeds.
[0082] Furthermore, after the current target fan speed is determined, a target duty cycle may be determined from pre-calibrated data according to the current engine speed.
[0083] Furthermore, when the altitude pressure collected by the ECM is lower than a preset first threshold, the actual duty cycle can be directly controlled by the PID controller based on the determined target duty cycle, and the actual duty cycle can be output specifically according to the target duty cycle to control the rotation of the fan.
[0084] Specifically, the determined target duty cycle can be input into a pre-set PID controller, and the PID controller can be used to output the actual duty cycle, and the actual duty cycle can be used to control the rotation of the fan, and the actual duty cycle can be controlled to be the same value as the target duty cycle, and kept stable.
[0085] Specifically, if Figure 2 As shown, Figure 2 An example of a specific PID controller is shown.
[0086] In this example, the target duty cycle is input to the PID controller and is Figure 2 Indicated as Setpoint.
[0087] Among them, such as Figure 2 As shown, the PID controller includes a proportional unit P, an integral unit I, and a differential unit D; wherein the proportional formula is set in the proportional unit P: K p e(t), the integral formula is set in the integral unit I: And, the differential formula is set in the differential unit:
[0088] Among them, K p Represents the preset scale parameter, K i Represents the preset integral parameter, K d represents the preset differential parameter, and e represents the error value between the target duty cycle and the actual duty cycle.
[0089] Furthermore, the target duty cycle is input into the PID controller, and the current duty cycle of the fan is adjusted through the proportional formula, the integral formula and the differential formula.
[0090] Specifically, the PID controller can make the actual duty cycle of the output infinitely close to the target duty cycle according to the target duty cycle, and approximately have the same value.
[0091] Furthermore, through the proportional formula, the integral formula and the differential formula, the actual duty cycle of the output can be kept stable in the process of approaching the target duty cycle.
[0092] It can be seen that based on the first threshold, when the altitude pressure is lower than the first threshold, the PID controller can be directly used to output the actual duty cycle for controlling the fan speed according to the target duty cycle, so as to achieve precise control of the fan speed.
[0093] Step S103: When the altitude pressure is higher than a preset second threshold, the proportional-integral-differential controller is adjusted using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and the adjusted proportional-integral-differential controller is corrected according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold.
[0094] In an embodiment of the present application, based on the collected altitude pressure data, when it is determined that the vehicle or fan is currently located at a high altitude pressure, the proportional correction factor, integral correction factor, and differential correction factor of the PID controller can be determined using the collected fan target speed, actual fan speed, and engine speed to adjust the PID controller, and the output of the controller can be further corrected according to the collected altitude pressure to output the actual duty cycle.
[0095] Specifically, as mentioned above, the altitude pressure at which the fan is currently located can be determined by setting a first threshold and a second threshold.
[0096] Furthermore, when the altitude pressure collected by the ECM reaches a preset second threshold, that is, greater than or equal to the second threshold, it can be considered that the altitude pressure at which the fan is currently located is high. In this embodiment, the set first threshold is less than the second threshold.
[0097] In a specific example, the second threshold may be set to 50 KPa.
[0098] Furthermore, when the altitude pressure collected by the ECM reaches 50 KPa, that is, greater than or equal to 50 KPa, it is considered that the altitude pressure at which the fan is currently located is relatively high.
[0099] Furthermore, when the altitude pressure collected by the ECM reaches a preset second threshold, the PID controller needs to be adjusted according to the fan target speed, the fan actual speed, and the engine speed.
[0100] Specifically, based on the fan target speed, the fan actual speed, and the engine speed collected by the ECM, the first difference and the second difference are determined according to the following formula:
[0101] First difference X=fan target speed-engine speed
[0102] Second difference Y=actual fan speed-engine speed
[0103] In this embodiment, for each combined operating condition with different first difference values and different second difference values, a corresponding target duty cycle can be calibrated.
[0104] Specifically, a plurality of different first difference values and a plurality of different second difference values that may occur are set.
[0105] Among them, for each first difference, there may be corresponding multiple different second differences. The first difference and each second difference are regarded as a group of combined operating conditions, and the proportional correction factor, integral correction factor and differential correction factor under the combined operating condition are calibrated.
[0106] In a specific example, when determining the proportional correction factor, the proportional correction factor table shown in Table 2 below is taken as an example:
[0107] Table 2. Proportional Correction Factor Table
[0108]
[0109]
[0110] In the specific example of the present application, it can be seen from Table 2 that the first difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 300, 500 and 800; and the second difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 250, 300, 500 and 800.
[0111] Furthermore, TBD in Table 2 represents a specific value of the calibrated proportional correction factor, which may range from 0 to 8192.
[0112] For example, based on the first difference being 50 and the second difference being 150, the proportional correction factor corresponding to the combined working condition is calibrated to 569.
[0113] Furthermore, after the current first difference and the second difference are determined, the specific value of the proportional correction factor can be determined from the pre-calibrated Table 2.
[0114] In this example, when determining the integral correction factor, the integral correction factor table shown in Table 3 below is taken as an example:
[0115] Table 3. Integral correction factor table
[0116]
[0117]
[0118] In the specific example of the present application, it can be seen from Table 3 that the first difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 300, 500 and 800; and the second difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 250, 300, 500 and 800.
[0119] Furthermore, TBD in Table 3 represents a specific value of the calibrated integral correction factor, which may range from 0 to 8192.
[0120] For example, based on the first difference being 50 and the second difference being 150, the integral correction factor corresponding to the combined operating condition is calibrated to 569.
[0121] Furthermore, after the current first difference and the second difference are determined, the specific value of the integral correction factor can be determined from the pre-calibrated Table 3.
[0122] In this example, when determining the differential correction factor, the differential correction factor table shown in Table 4 below is taken as an example:
[0123] Table 4. Differential correction factor table
[0124]
[0125]
[0126] In the specific example of the present application, it can be seen from Table 4 that the first difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 300, 500 and 800; and the second difference is divided into -500, -300, -200, -100, -50, 0, 50, 100, 150, 200, 250, 300, 500 and 800.
[0127] Furthermore, TBD in Table 4 represents a specific value of the calibrated differential correction factor, which may range from 0 to 8192.
[0128] For example, based on the first difference being 50 and the second difference being 150, the differential correction factor corresponding to the combined operating condition is calibrated to 569.
[0129] Furthermore, after the current first difference and the second difference are determined, the specific value of the differential correction factor can be determined from the pre-calibrated Table 4.
[0130] Furthermore, the proportional unit in the PID controller can be adjusted using the determined proportional correction factor, the integral unit in the PID controller can be adjusted using the determined integral correction factor, and the differential unit in the PID controller can be adjusted using the determined differential correction factor.
[0131] In a specific example, the proportional correction factor can be used as a coefficient and compared with the proportional formula K in the proportional unit. p Multiply e(t); use the integral correction factor as a coefficient and the integral formula in the integral unit Multiply; use the differential correction factor as a coefficient and add it to the differential formula in the differential unit Multiply.
[0132] Furthermore, based on the adjustment of the PID controller, an altitude pressure correction factor can be determined according to the collected altitude pressure of the fan, and the adjusted PID controller can be corrected using the altitude pressure correction factor.
[0133] Specifically, multiple working conditions with different altitude pressures can be set to represent different altitudes.
[0134] Among them, when the vehicle is at different altitudes, the atmospheric pressure of the fan is different, which makes it difficult for the fan to obtain the same actual duty cycle through the same PID control method.
[0135] Based on this, it is necessary to set the respective altitude pressure correction factors for different altitude pressure working conditions.
[0136] In a specific example, Table 5 shown below is taken as a specific example of correcting the basic ascent rate.
[0137] Table 5. Altitude pressure correction factor table
[0138]
[0139] Furthermore, it can be seen from Table 5 that the operating conditions of altitude pressure can be divided into 40 KPa, 50 KPa, 60 KPa, 70 KPa, 80 KPa, 90 KPa, and 100 KPa.
[0140] Furthermore, TBD in Table 5 represents a specific value of the calibrated altitude pressure correction factor, which may range from 0 to 8192.
[0141] For example, when the altitude pressure is 50, the corresponding altitude pressure correction factor is calibrated to 1659.
[0142] Furthermore, the adjusted PID controller may be corrected using the determined altitude pressure correction factor.
[0143] In a specific example, the altitude pressure correction factor can be used as a coefficient and multiplied by the output of the adjusted PID controller to obtain the actual fan speed.
[0144] In another embodiment of the present application, based on the real-time determination of the altitude pressure at which the fan is currently located, the change trend of the altitude pressure can be determined.
[0145] Furthermore, the interval between the first threshold and the second threshold may be used as a hysteresis interval.
[0146] Furthermore, when the changing trend of the altitude pressure shows that the altitude pressure decreases from a value greater than or equal to the second threshold to the first threshold, and then decreases to a value less than the second threshold but still does not decrease to a value less than the first threshold, it can be considered that the altitude pressure at this time is in the hysteresis range of higher altitude pressure.
[0147] Furthermore, when the changing trend of the altitude pressure shows that the altitude pressure rises from a value less than the first threshold to the second threshold, and then rises to a value greater than or equal to the first threshold but still does not rise to a value equal to the second threshold, it can be considered that the altitude pressure at this time is in the hysteresis range of the lower altitude pressure.
[0148] Furthermore, when the altitude pressure of the fan is in a hysteresis range of a lower altitude pressure, the PID controller can be directly used to output the actual duty cycle without adjusting or correcting the PID controller.
[0149] Furthermore, when the altitude pressure of the fan is in the hysteresis range of higher altitude pressure, it is necessary to use the proportional correction factor, integral correction factor and differential correction factor to adjust the proportional unit, integral unit and differential unit of the PID controller respectively, and use the altitude pressure correction factor to correct the adjusted PID controller to obtain the actual duty cycle.
[0150] It can be seen that when the altitude pressure is high, the proportional correction factor, integral correction factor and differential correction factor are determined according to the actual fan speed, the fan target speed and the engine speed to adjust the PID controller, and further correct it through the altitude pressure correction factor, so that the PID controller can output an accurate actual duty cycle in various altitude pressure environments.
[0151] Step S104: controlling the actual fan speed of the fan using the actual duty cycle.
[0152] In the embodiment of the present application, the actual rotation speed of the fan can be effectively controlled by utilizing the obtained actual duty cycle.
[0153] Specifically, based on the actual duty cycle output by the PID controller in the aforementioned steps, the voltage of the fan can be controlled to control the actual speed of the fan so as to stably maintain the actual speed value the same as the target speed of the fan.
[0154] It can be seen that the fan speed control method of the embodiment of the present application is based on the collected altitude pressure. When the altitude pressure is lower than the first threshold, the PID controller is directly used to output the actual duty cycle according to the acquired target duty cycle; when the altitude pressure is higher than the second threshold, the calibrated proportional correction factor, integral correction factor and differential correction factor are used to adjust the PID control, and the corresponding altitude pressure correction factor is further determined according to the current altitude pressure, so that the altitude pressure correction factor can be used to correct the PID controller, so that in working environments with different altitude pressures, the PID controller can output an accurate actual duty cycle to achieve accurate response to the fan target speed.
[0155] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario and completed by multiple devices working together. In the case of such a distributed scenario, one of the multiple devices may only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the method described.
[0156] It should be noted that the above description is limited to some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in an order different from that described in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0157] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a device for controlling the speed of a fan.
[0158] refer to Figure 3 , the fan speed control device includes: an altitude pressure acquisition module 301, a first controller output module 302, a second controller output module 303 and a fan control module 304;
[0159] The altitude pressure acquisition module 301 is configured to acquire the altitude pressure of the fan in real time;
[0160] The first controller output module 302 is configured to input the obtained target duty cycle into a preset proportional-integral-differential controller when the altitude pressure is lower than a preset first threshold, and use the proportional-integral-differential controller to adjust the actual duty cycle of the output according to the target duty cycle;
[0161] The second controller output module 303 is configured to, when the altitude pressure is higher than a preset second threshold, adjust the proportional-integral-differential controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and correct the adjusted proportional-integral-differential controller according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold;
[0162] The fan control module 304 is configured to control the actual fan speed of the fan using the actual duty cycle.
[0163] As an optional embodiment, the altitude pressure acquisition module 301 is specifically configured to:
[0164] After collecting the fan's current altitude pressure in real time, the fan's altitude pressure change trend is determined based on the real-time judgment of the altitude pressure;
[0165] When it is determined that the change trend of the altitude pressure is from below the second threshold to before the second threshold, the target duty cycle is input into the proportional-integral-differential controller, and the actual duty cycle outputted by the proportional-integral-differential controller is adjusted according to the target duty cycle;
[0166] When it is determined that the change trend of the altitude pressure is decreasing from being higher than the first threshold to being lower than the first threshold, the proportional-integral-differential controller is adjusted using the proportional correction factor, the integral correction factor, and the differential correction factor, and the output of the proportional-integral-differential controller is corrected according to the current altitude pressure of the fan to obtain an actual duty cycle.
[0167] As an optional embodiment, the first controller output module 302 is specifically configured to:
[0168] According to an error between the target duty cycle and the current duty cycle, adjusting the current duty cycle of the fan using a preset proportional unit, a preset integral unit, and a preset differential unit in the proportional-integral-differential controller;
[0169] After adjustment, an actual duty cycle that is the same as the target duty cycle is output.
[0170] As an optional embodiment, the second controller output module 303 is specifically configured as follows:
[0171] Determining the proportional correction factor, the integral correction factor, and the differential correction factor by collecting the fan target speed, the fan actual speed, and the engine speed;
[0172] Correcting the proportional unit in the proportional-integral-derivative controller using the proportional correction factor;
[0173] Correcting the integration unit in the proportional-integral-derivative controller using the integration correction factor;
[0174] The differential unit in the proportional-integral-derivative controller is corrected using the differential correction factor.
[0175] The proportional correction factor, the integral correction factor, and the differential correction factor are determined by collecting the fan target speed, the fan actual speed, and the engine speed, including:
[0176] determining a first difference between the fan target speed and the engine speed, and determining a second difference between the fan actual speed and the engine speed;
[0177] Under a combined operating condition of the first difference and the second difference, the proportional correction factor, the integral correction factor, and the differential correction factor pre-calibrated corresponding to the combined operating condition are determined.
[0178] Furthermore, the obtained altitude pressure is compared with a plurality of preset altitude pressure intervals to determine the altitude pressure interval into which the altitude pressure falls, wherein each altitude pressure interval is respectively corresponding to a preset altitude pressure correction factor;
[0179] The adjusted proportional-integral-derivative controller is corrected using the altitude pressure correction factor corresponding to the altitude pressure interval that the altitude pressure falls into.
[0180] For the convenience of description, the above devices are described as being divided into various modules according to their functions. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0181] The device of the above embodiment is used to implement the corresponding fan speed control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0182] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the fan speed control method as described in any of the above embodiments is implemented.
[0183] Figure 4 10 is a schematic diagram showing a more specific hardware structure of an electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other within the device via the bus 1050.
[0184] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0185] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of the present application are implemented through software or firmware, the relevant program codes are stored in the memory 1020 and called and executed by the processor 1010.
[0186] The input / output interface 1030 is used to connect an input / output module to implement information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0187] The communication interface 1040 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).
[0188] The bus 1050 comprises a path for transmitting information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0189] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the embodiments of the present application, and does not necessarily include all the components shown in the figure.
[0190] The device of the above embodiment is used to implement the corresponding fan speed control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0191] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, which includes a fan speed control device and an electronic device, and the electronic device executes the fan speed control method described in any one of the above-mentioned embodiments.
[0192] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the fan speed control method described in any of the above embodiments.
[0193] The computer-readable media of this embodiment include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0194] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the fan speed control method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0195] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0196] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the drawings provided. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the following fact, that is, the details of the implementation of these block diagram devices are highly dependent on the platform of the embodiment to be implemented in the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). When specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it will be apparent to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0197] Although the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may utilize the embodiments discussed.
[0198] The embodiments of the present application are intended to encompass all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for controlling fan speed, characterized in that: include: Real-time collection of the fan's current altitude pressure; When the altitude pressure is lower than a preset first threshold, the obtained target duty cycle is input into a preset proportional-integral-differential controller, and the proportional-integral-differential controller is used to adjust the actual duty cycle of the output according to the target duty cycle; When the altitude pressure is higher than a preset second threshold, adjusting the proportional-integral-differential controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and correcting the adjusted proportional-integral-differential controller according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold; controlling an actual fan speed of the fan using the actual duty cycle; The step of adjusting the actual duty cycle of the output according to the target duty cycle by using the proportional-integral-differential controller includes: According to an error between the target duty cycle and the current duty cycle, adjusting the current duty cycle of the fan using a preset proportional unit, a preset integral unit, and a preset differential unit in the proportional-integral-differential controller; After adjustment, an actual duty cycle that is the same as the target duty cycle is output.
2. The method according to claim 1, characterized in that After collecting the fan's current altitude pressure in real time, the method further includes: Based on the real-time judgment of altitude pressure, the changing trend of the altitude pressure at which the fan is located is determined; When it is determined that the change trend of the altitude pressure is from below the second threshold to before the second threshold, the target duty cycle is input into the proportional-integral-differential controller, and the actual duty cycle outputted by the proportional-integral-differential controller is adjusted according to the target duty cycle; When it is determined that the change trend of the altitude pressure is decreasing from being higher than the first threshold to being lower than the first threshold, the proportional-integral-differential controller is adjusted using the proportional correction factor, the integral correction factor, and the differential correction factor, and the output of the proportional-integral-differential controller is corrected according to the current altitude pressure of the fan to obtain an actual duty cycle.
3. The method according to claim 1, characterized in that The adjusting the proportional-integral-derivative controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor includes: Determining the proportional correction factor, the integral correction factor, and the differential correction factor by collecting the fan target speed, the fan actual speed, and the engine speed; Correcting the proportional unit in the proportional-integral-derivative controller using the proportional correction factor; Correcting the integration unit in the proportional-integral-derivative controller using the integration correction factor; The differential unit in the proportional-integral-derivative controller is corrected using the differential correction factor.
4. The method according to claim 3, characterized in that The method of determining the proportional correction factor, the integral correction factor, and the differential correction factor by collecting the fan target speed, the fan actual speed, and the engine speed includes: determining a first difference between the fan target speed and the engine speed, and determining a second difference between the fan actual speed and the engine speed; Under a combined operating condition of the first difference and the second difference, the proportional correction factor, the integral correction factor, and the differential correction factor pre-calibrated corresponding to the combined operating condition are determined.
5. The method according to claim 1, wherein The method of modifying the adjusted proportional-integral-derivative controller according to the current altitude pressure of the fan includes: Comparing the acquired altitude pressure with a plurality of preset altitude pressure intervals to determine the altitude pressure interval into which the altitude pressure falls, wherein each altitude pressure interval is corresponding to a preset altitude pressure correction factor; The adjusted proportional-integral-derivative controller is corrected using the altitude pressure correction factor corresponding to the altitude pressure interval that the altitude pressure falls into.
6. A fan speed control device, characterized in that: include: Altitude pressure acquisition module, first controller output module, second controller output module and fan control module; The altitude pressure acquisition module is configured to acquire the altitude pressure of the fan in real time; The first controller output module is configured to, when the altitude pressure is lower than a preset first threshold, input the obtained target duty cycle to a preset proportional-integral-differential controller, and use the proportional-integral-differential controller to adjust the actual duty cycle of the output according to the target duty cycle; The second controller output module is configured to, when the altitude pressure is higher than a preset second threshold, adjust the proportional-integral-differential controller using the obtained proportional correction factor, the obtained integral correction factor, and the obtained differential correction factor, and correct the adjusted proportional-integral-differential controller according to the current altitude pressure of the fan to obtain an actual duty cycle, wherein the first threshold is less than the second threshold; The fan control module is configured to control the actual fan speed of the fan using the actual duty cycle; Among them, the first controller output module is further configured to adjust the current duty cycle of the fan using a preset proportional unit, a preset integral unit and a preset differential unit in the proportional-integral-differential controller according to the error between the target duty cycle and the current duty cycle; and after adjustment, output an actual duty cycle that is the same as the target duty cycle.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 5.
9. A vehicle, characterized in that: The device comprises the fan speed control device according to claim 6 or the electronic device according to claim 7.
Citation Information
Patent Citations
Altitude correction method and system for regulating and controlling server fan
CN106909209A
Electronically controlled silicon oil fan control method and controller
CN108518268A