Fan speed control method and device, electric appliance, electronic device and medium

CN122544032APending Publication Date: 2026-08-11XIAOMI TECH (WUHAN) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-08
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

[0003]然而,由于风机自身的驱动特性(如电机响应非线性、负载波动)会导致实际转速与目标值之间存在固有偏差,从而难以实现风量的稳定输出

Benefits of technology

本公开实施例通过基于风机的当前转速偏差和当前速度状态,确定相应的转速调控策略,以对风机的转速进行快速、精准的调控,从而可以实现风量的稳定输出。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122544032A_ABST
    Figure CN122544032A_ABST
Patent Text Reader

Abstract

The embodiment of the disclosure discloses a kind of control method, device, electrical equipment, electronic equipment and medium of fan rotating speed, related to household appliance control field, the control method includes: in each first period, if the target rotating speed of fan is greater than 0, the following operation is executed to regulate the rotating speed of the fan: based on the current rotating speed of the fan and the target rotating speed, the current speed state and current rotating speed deviation of the fan are determined;Based on the current speed state and the current rotating speed deviation, the rotating speed regulation strategy of the fan is determined;Based on the rotating speed regulation strategy of the fan, the rotating speed of the fan is regulated;Wherein, the first period is the preset period for carrying out the rotating speed regulation of the fan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of household appliance control, and more specifically, to a method, apparatus, electrical equipment, electronic equipment, and medium for controlling the speed of a fan. Background Technology

[0002] The cooling efficiency and temperature uniformity of household refrigerators largely depend on the precise control of the fan system. In existing technologies, the fan is mostly used as an auxiliary means of regulating the compressor's cooling function. The fan speed is usually only roughly adjusted according to the set temperature, or simply linked with the compressor for control.

[0003] However, due to the inherent driving characteristics of the fan itself (such as nonlinear motor response and load fluctuations), there is an inherent deviation between the actual speed and the target value, making it difficult to achieve a stable output of air volume. Summary of the Invention

[0004] To overcome the technical problems existing in the related technologies, the present disclosure provides a method, device, electrical equipment, electronic equipment and medium for controlling the speed of a fan.

[0005] According to a first aspect of the present disclosure, a method for controlling the speed of a fan is provided, the method comprising: In each first cycle, if the target speed of the fan is greater than 0, the following operation is performed to regulate the speed of the fan: Based on the current speed of the fan and the target speed, determine the current speed state and current speed deviation of the fan; Based on the current speed state and the current speed deviation, the speed control strategy of the fan is determined; Based on the speed control strategy of the fan, the speed of the fan is controlled. The first cycle is a preset cycle used for adjusting the fan speed.

[0006] As an optional implementation, the fan speed control strategy includes: the fan speed control direction and the fan speed control method; The step of determining the fan speed control strategy based on the current speed state and the current speed deviation includes: The direction of fan speed regulation is determined based on the current speed state; The speed control method of the fan is determined based on the current speed deviation.

[0007] As an optional implementation, determining the fan speed control direction based on the current speed state includes: If the current speed status indicates overspeed, determine to reduce the speed of the fan; or, If the current speed status is not overspeeding, determine to accelerate the speed control of the fan.

[0008] As an optional implementation, determining the fan speed control method based on the current speed deviation includes: If the current speed deviation is greater than a first threshold, it is determined that a stepped speed regulation method will be used to adjust the speed of the fan; or... If the current speed deviation is less than or equal to the first threshold, it is determined that the speed of the fan is controlled by an incremental proportional-integral-derivative PID control method.

[0009] As an optional implementation, the method further includes: Based on the first speed of the fan after regulation and the target speed, a first real-time speed deviation is determined. The first speed is the current speed after the fan speed is regulated by step speed regulation. If the first real-time speed deviation is less than or equal to the first threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0010] As an optional implementation, the step-speed regulation method for controlling the fan speed includes: Based on the preset first correspondence, determine the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs; Based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan. The first correspondence includes the correspondence between multiple speed deviation ranges and the step compensation values ​​corresponding to each speed deviation range. If the step compensation value is a positive integer, it is used to characterize the acceleration control of the fan speed; If the step compensation value is a negative integer, it is used to indicate that the speed of the fan is reduced and controlled.

[0011] As an optional implementation, the incremental PID control method for regulating the fan speed includes: Based on the target speed and the current speed, the first increment is determined by an incremental PID algorithm; Based on the first increment and the PWM duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

[0012] As an optional implementation, the method further includes: Based on the second speed of the fan after adjustment and the target speed, the second real-time speed deviation is determined; Based on the second real-time speed deviation, it is determined whether the speed of the fan remains constant.

[0013] As an optional implementation, determining whether the fan speed remains constant based on the second real-time speed deviation includes: If the second real-time speed deviation is less than or equal to the second threshold, determine to maintain the PWM duty cycle corresponding to the current speed unchanged and output it, so that the speed of the fan remains unchanged; or, If the second real-time speed deviation is greater than the second threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0014] As an optional implementation, the method further includes: If the target speed is 0, determine to clear the PWM duty cycle corresponding to the current speed to zero and shut down the fan.

[0015] According to a second aspect of the present disclosure, a fan speed control device is provided, the control device comprising: a processor and a controller, wherein... In each first cycle, if the target rotational speed of the fan is greater than 0, then: The processor is configured to determine the current speed state and current speed deviation of the wind turbine based on the current speed of the wind turbine and the target speed; and to determine the speed control strategy of the wind turbine based on the current speed state and the current speed deviation. The controller is used to regulate the speed of the fan based on the fan speed regulation strategy; The first cycle is a preset cycle used for adjusting the fan speed.

[0016] As an optional implementation, the fan speed control strategy includes: the fan speed control direction and the fan speed control method; When determining the fan speed control strategy based on the current speed state and the current speed deviation, the processor is specifically used for: The direction of fan speed regulation is determined based on the current speed state; The speed control method of the fan is determined based on the current speed deviation.

[0017] As an optional implementation, when the processor determines the fan speed control direction based on the current speed state, it is specifically used for: If the current speed status indicates overspeed, determine to reduce the speed of the fan; or, If the current speed status is not overspeeding, determine to accelerate the speed control of the fan.

[0018] As an optional implementation, when the processor determines the fan speed control method based on the current speed deviation, it is specifically used for: If the current speed deviation is greater than a first threshold, it is determined that a stepped speed regulation method will be used to adjust the speed of the fan; or... If the current speed deviation is less than or equal to the first threshold, it is determined that the speed of the fan is controlled by an incremental proportional-integral-derivative PID control method.

[0019] As an optional implementation, the processor is further configured to: Based on the first speed of the fan after regulation and the target speed, a first real-time speed deviation is determined. The first speed is the current speed after the fan speed is regulated by step speed regulation. If the first real-time speed deviation is less than or equal to the first threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0020] As an optional implementation, when the controller regulates the speed of the fan using a stepped speed regulation method, it is specifically used for: Based on the preset first correspondence, determine the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs; Based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan. The first correspondence includes the correspondence between multiple speed deviation ranges and the step compensation values ​​corresponding to each speed deviation range. If the step compensation value is a positive integer, it is used to characterize the acceleration control of the fan speed; If the step compensation value is a negative integer, it is used to indicate that the speed of the fan is reduced and controlled.

[0021] As an optional implementation, when the controller uses incremental PID regulation to control the speed of the fan, it is specifically used for: Based on the target speed and the current speed, the first increment is determined by an incremental PID algorithm; Based on the first increment and the PWM duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

[0022] As an optional implementation, the processor is further configured to: Based on the second speed of the fan after adjustment and the target speed, the second real-time speed deviation is determined; Based on the second real-time speed deviation, it is determined whether the speed of the fan remains constant.

[0023] As an optional implementation, when the processor determines whether the fan speed remains constant based on the second real-time speed deviation, it is specifically used for: If the second real-time speed deviation is less than or equal to the second threshold, determine to maintain the PWM duty cycle corresponding to the current speed unchanged and output it, so that the speed of the fan remains unchanged; or, If the second real-time speed deviation is greater than the second threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0024] As an optional implementation, the processor is further configured to: If the target speed is 0, determine to clear the PWM duty cycle corresponding to the current speed to zero and shut down the fan.

[0025] According to a third aspect of the present disclosure, an electrical device is provided, comprising: a fan, and a fan speed control device as described in any one of the second aspects, the fan speed control device being used to regulate the speed of the fan.

[0026] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the method as described in any one of the first aspects.

[0027] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method as described in any one of the first aspects.

[0028] The beneficial effects of the technical solutions provided in this disclosure are: The embodiments disclosed herein determine a corresponding speed control strategy based on the current speed deviation and current speed state of the fan, so as to quickly and accurately control the speed of the fan, thereby achieving a stable output of air volume. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments of this disclosure will be briefly introduced below.

[0030] Figure 1 A flowchart illustrating a method for controlling fan speed according to an embodiment of this disclosure; Figure 2a A schematic diagram of a fan speed sampling method provided in this embodiment of the present disclosure. Figure 1 ; Figure 2b A schematic diagram (2) of a fan speed sampling method provided in this embodiment of the present disclosure; Figure 2c A schematic diagram of a fan speed sampling method provided in this embodiment of the present disclosure. Figure 3 ; Figure 3 This is a schematic diagram of the structure of a fan speed control device provided in an embodiment of the present disclosure; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation

[0031] The embodiments of this disclosure are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this disclosure, and do not constitute a limitation on the technical solutions of the embodiments of this disclosure.

[0032] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this disclosure mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element are connected through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term, for example, “A and / or B” or “A, B” indicates implementation as “A,” or implementation as “B,” or implementation as “A and B.”

[0033] To make the objectives, technical solutions, and advantages of this disclosure clearer, the embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings.

[0034] The cooling efficiency and temperature uniformity of a household refrigerator largely depend on the precise control of its fan system. As one of the core power components for cold air circulation, the refrigerator fan's control technology has evolved from simple start-stop to stepless speed regulation. Early refrigerator fans mostly operated at constant speeds or with simple speed settings, unable to dynamically respond to the actual heat load of the compartments, resulting in large temperature fluctuations, high energy consumption, and noticeable noise. With the popularization of inverter technology and intelligent control algorithms, current mainstream solutions begin to use fan speed adjustment to assist in temperature control.

[0035] Existing technologies often treat the fan as an auxiliary means of regulating compressor refrigeration, with its speed typically adjusted only coarsely proportionally based on the set temperature or through simple linkage control with the compressor. However, this control mode has certain drawbacks: firstly, the fan's own driving characteristics (such as nonlinear motor response and load fluctuations) lead to an inherent deviation between the actual speed and the target value, making it difficult to achieve accurate calculation and stable output of airflow; secondly, the system fails to establish an independent closed-loop feedback control circuit for the fan, preventing it from responding autonomously to the specific temperature changes in each compartment in real time. The inability of existing methods to achieve independent, precise, and rapid control of airflow in each air supply branch has become a key bottleneck restricting further improvements in the overall temperature uniformity and control accuracy of the refrigerator.

[0036] In other words, existing pure PID control has a slow response speed when the fan speed deviation is large, and is prone to system overshoot and oscillation; while single step speed regulation is difficult to eliminate steady-state error.

[0037] Therefore, to address this problem, this application proposes a segmented collaborative speed regulation mechanism. Specifically, during the large deviation phase, a stepped lookup table speed regulation is used to achieve rapid approximation; during the small deviation phase, incremental PID control is switched in to achieve precise positioning; and combined with overshoot state machine monitoring, oscillations are effectively suppressed, improving dynamic response speed and steady-state accuracy.

[0038] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0039] Figure 1 This is a flowchart illustrating a method for controlling the speed of a fan according to an embodiment of this disclosure. Figure 1 As shown, the method includes: within each first cycle, if the target speed of the fan is greater than 0, performing the following operation to regulate the speed of the fan: S101. Based on the current speed of the fan and the target speed, determine the current speed state and current speed deviation of the fan.

[0040] Specifically, in the embodiments of this disclosure, determining the current speed state of the fan based on the current rotational speed of the fan and the target rotational speed may include: comparing the current rotational speed of the fan with the target rotational speed of the fan; if the current rotational speed is less than or equal to the target rotational speed, the current speed state is "not overspeeding" (i.e., acceleration is required when adjusting the rotational speed later); if the current rotational speed is greater than the target rotational speed, the current speed state is "overspeeding" (i.e., deceleration is required when adjusting the rotational speed later).

[0041] Specifically, in the embodiments of this disclosure, determining the current speed deviation of the fan based on the current speed of the fan and the target speed may include: determining the absolute value of the difference between the current speed of the fan and the target speed of the fan as the current speed deviation of the fan (which may also be described as speed error, but is not limited thereto).

[0042] It should be understood that the current speed of the fan is the actual speed measured at the moment.

[0043] For example, assuming the target speed is 1500 rpm and the current speed is 1300 rpm, the speed deviation is 200 rpm. Since the current speed is less than the target speed, the current speed status is "not overspeeding". For example, assuming the target speed is 1500 rpm and the current speed is 1600 rpm, the speed deviation is 100 rpm. Since the current speed is greater than the target speed, the current speed status is "overspeed".

[0044] S102. Based on the current speed state and the current speed deviation, determine the speed control strategy of the fan.

[0045] As an optional embodiment, the fan speed control strategy includes: the fan speed control direction and the fan speed control method.

[0046] Specifically, in the embodiments disclosed herein, the direction of fan speed control refers to whether the fan speed is accelerated or decelerated.

[0047] In some alternative embodiments, the direction of fan speed regulation is determined based on the current speed state. Specifically, in embodiments of this disclosure, if the current speed state is overspeeding, it is determined to decelerate the fan speed; or, if the current speed state is not overspeeding, it is determined to accelerate the fan speed.

[0048] For example, in step S101, if the current speed state is determined to be "overspeed", the fan speed is decelerated; if the current speed state is determined to be "not overspeed", the fan speed is accelerated.

[0049] Specifically, in the embodiments disclosed herein, the fan speed control method refers to controlling the fan speed through either a stepped speed regulation method or an incremental PID (Proportional-Integral-Derivative Control) regulation method.

[0050] In some optional embodiments, the fan speed control method is determined based on the current speed deviation. Specifically, in embodiments of this disclosure, if the current speed deviation is greater than a first threshold, a stepped speed regulation method is used to regulate the fan speed; or, if the current speed deviation is less than or equal to the first threshold, an incremental proportional-integral-derivative PID control method is used to regulate the fan speed.

[0051] In some embodiments, the first threshold can be set based on actual application requirements. The first threshold is used to determine whether to perform coarse or fine adjustment (or fine adjustment) on the fan speed. The first threshold can be understood as a boundary value for the speed deviation; for example, if the speed deviation is greater than this value, coarse adjustment is performed, and if it is less than or equal to this value, fine adjustment is performed.

[0052] Optionally, the first threshold can be a value greater than or equal to 100 revolutions per second and less than or equal to 500 revolutions per second, but is not limited to this. Preferably, the first threshold can be 300 revolutions per second, but is not limited to this.

[0053] For example, if the current speed deviation determined in step S101 is greater than 300 rpm, the speed of the fan is controlled by a step speed regulation method; if the current speed deviation determined in step S101 is less than or equal to 300 rpm, the speed of the fan is controlled by an incremental PID regulation method.

[0054] S103. Based on the fan speed control strategy, the fan speed is controlled.

[0055] Specifically, in the embodiments of this disclosure, the fan speed is adjusted based on the adjustment direction and method of the fan speed determined in step S102.

[0056] For example, in step S102, if it is determined that the fan speed needs to be accelerated and that a stepped speed regulation method is used to regulate the fan speed, then: the stepped speed regulation method is used to accelerate the fan speed. That is, the fan speed needs to be increased, and the amount of increase needs to be determined by the stepped speed regulation method.

[0057] For example, in step S102, if it is determined that the fan speed needs to be reduced, and a stepped speed regulation method is used to regulate the fan speed, then: the stepped speed regulation method is used to reduce the fan speed. That is, the fan speed needs to be reduced, and the amount of reduction needs to be determined by the stepped speed regulation method.

[0058] For example, in step S102, if it is determined that the fan speed needs to be accelerated, and the fan speed is controlled using an incremental PID control method, then: the fan speed is accelerated using an incremental PID control method. That is, the fan speed needs to be increased, and the amount of increase needs to be determined by the incremental PID control method.

[0059] For example, in step S102, if it is determined that the fan speed needs to be reduced, and the fan speed is controlled using an incremental PID control method, then: the fan speed is reduced using an incremental PID control method. That is, the fan speed needs to be reduced, and the amount of reduction needs to be determined by the incremental PID control method.

[0060] In the above embodiments, the first cycle is a preset cycle for regulating the fan speed. Optionally, the first cycle can be set according to actual application requirements. For example, the duration of the first cycle can be greater than 1 second, such as, but not limited to, 2 seconds, 5 seconds, 8 seconds, 10 seconds, 15 seconds, 20 seconds, etc.

[0061] The embodiments disclosed herein determine a corresponding speed control strategy based on the current speed deviation and current speed state of the fan, so as to quickly and accurately control the speed of the fan, thereby achieving a stable output of air volume.

[0062] Based on the above embodiments, as an optional embodiment, the method further includes: Based on the first speed of the fan after regulation and the target speed, a first real-time speed deviation is determined. The first speed is the current speed after the fan speed is regulated by step speed regulation. If the first real-time speed deviation is less than or equal to the first threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0063] Specifically, in the embodiments of this disclosure, if in step S102 it is determined that the fan speed is controlled using a stepped speed regulation method, and in step S103 the fan speed is controlled using a stepped speed regulation method, then it can be determined whether to continue controlling the fan speed using an incremental PID control method based on whether the deviation between the first real-time speed determined after regulation and the target speed is less than a first threshold. Optionally, when the deviation of the first real-time speed is less than or equal to the first threshold, it is determined that the fan speed will continue to be controlled using an incremental PID control method.

[0064] It should be understood that after the fan speed is adjusted using a stepped speed regulation method, the current speed state can be determined based on the first adjusted speed and the target speed. Based on this speed state, it can be determined whether to increase or decrease the fan speed when the fan speed is further adjusted.

[0065] In this embodiment of the disclosure, intelligent switching of the control mode is achieved by using a preset deviation threshold: in the large deviation stage, a step-by-step lookup table speed adjustment is used to achieve rapid approximation; in the small deviation stage, incremental PID control is switched to achieve precise positioning; and combined with overshoot state monitoring, oscillation is effectively suppressed, thereby improving dynamic response speed and steady-state accuracy.

[0066] Based on the above embodiments, as an optional embodiment, the step-speed regulation method for controlling the fan speed includes: Based on the preset first correspondence, determine the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs; Based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

[0067] Optionally, the first correspondence includes the correspondence between multiple speed deviation ranges and the corresponding step compensation values ​​for each speed deviation range.

[0068] Specifically, in the embodiments of this disclosure, during the coarse adjustment stage, the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs can be determined by looking up a table. Then, based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined, thereby controlling the speed of the fan based on the new PWM duty cycle.

[0069] Optionally, the "table" in this embodiment is preset and includes an acceleration lookup table and a deceleration lookup table consisting of multiple error intervals and their corresponding compensation step values. The error interval can also be described as a speed deviation interval.

[0070] In some optional embodiments, if the step compensation value is a positive integer, it is used to indicate that the speed of the fan is accelerated; if the step compensation value is a negative integer, it is used to indicate that the speed of the fan is decelerated.

[0071] Specifically, in the embodiments of this disclosure, based on the interval to which the current error belongs, the corresponding step compensation value is looked up in the table, and is directly superimposed or subtracted from the PWM duty cycle corresponding to the current speed to obtain a new PWM duty cycle.

[0072] This embodiment solves the problem of delayed response in traditional algorithms by using a segmented ladder lookup table method to drive the fan to quickly approach the target speed during the large error phase.

[0073] Based on the above embodiments, as an optional embodiment, the step of using incremental PID control to regulate the speed of the fan includes: Based on the target speed and the current speed, the first increment is determined by an incremental PID algorithm; Based on the first increment and the PWM duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

[0074] Specifically, in the embodiments of this disclosure, during the fine-tuning stage, an incremental PID algorithm can be used to determine the first increment based on the target speed and the current speed, and the first increment can be accumulated to the PWM duty cycle corresponding to the current speed to obtain a new PWM duty cycle, thereby controlling the speed of the fan based on the new PWM duty cycle.

[0075] It should be understood that in the implementation of this disclosure, the specific implementation process of determining the first increment based on the target speed and the current speed using an incremental PID algorithm can be implemented with reference to existing related technologies, and will not be elaborated here.

[0076] The embodiments disclosed herein ensure steady-state control accuracy and effectively eliminate static errors by using an incremental PID algorithm during the target approach phase.

[0077] Based on the above embodiments, as an optional embodiment, the method further includes: Based on the second speed of the fan after adjustment and the target speed, the second real-time speed deviation is determined; Based on the second real-time speed deviation, it is determined whether the speed of the fan remains constant.

[0078] Specifically, in the embodiments of this disclosure, during the fine-tuning stage, after the fan speed is adjusted using incremental PID control, it is necessary to determine a second real-time speed deviation based on the adjusted second speed and the target speed, and based on this second real-time speed deviation, determine whether the fan speed remains unchanged. In other words, after fine-tuning the fan speed using incremental PID control, it is necessary to further determine whether the adjusted fan speed can meet the speed control requirements (i.e., approach the target speed).

[0079] Based on the above embodiments, as an optional embodiment, determining whether the fan speed remains constant based on the second real-time speed deviation includes: If the second real-time speed deviation is less than or equal to the second threshold, determine to maintain the PWM duty cycle corresponding to the current speed unchanged and output it, so that the speed of the fan remains unchanged; or If the second real-time speed deviation is greater than the second threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0080] Specifically, in the embodiments of this disclosure, during the fine-tuning stage, after the fan speed is controlled using incremental PID regulation, if the deviation between the controlled second speed and the target speed (determined as a second real-time speed) is less than or equal to a second threshold, it is determined that the controlled fan speed meets the speed control requirements, and the PWM duty cycle corresponding to the current speed can be maintained unchanged. If the deviation between the controlled second speed and the target speed (determined as a second real-time speed) is greater than the second threshold, the fan speed needs to be further controlled, and the deviation between the controlled second speed and the target speed (determined as a real-time speed) needs to be monitored to ensure it is less than or equal to the second threshold, until it is determined that the controlled fan speed meets the speed control requirements.

[0081] In some embodiments, the second threshold can be set based on actual application requirements. The second threshold is used to determine whether to stop fine-tuning the fan speed. Optionally, the second threshold can be a value greater than or equal to 3 revolutions per second and less than or equal to 20 revolutions per second, but is not limited thereto. Preferably, the second threshold can be 8 revolutions per second, but is not limited thereto.

[0082] For example, if the speed of the fan is controlled by incremental PID regulation, and the deviation between the second speed after regulation and the second real-time speed determined by the target speed is less than or equal to 8 revolutions per second, then it is determined that the speed has reached a steady state, and the PWM duty cycle output corresponding to the current speed remains unchanged.

[0083] This embodiment of the present disclosure determines whether the fan speed has reached a steady state by checking whether the speed error during the fine-tuning stage is less than a second threshold, thereby improving the steady-state accuracy of the fan speed regulation.

[0084] Based on the above embodiments, as an optional embodiment, the method further includes: If the target speed is 0, determine to clear the PWM duty cycle corresponding to the current speed to zero and shut down the fan.

[0085] Specifically, in the embodiments disclosed herein, if the target rotational speed is equal to 0, the PWM duty cycle corresponding to the current rotational speed is cleared to zero, and the fan is turned off.

[0086] In this embodiment of the disclosure, when the target speed of the fan is 0, energy saving is achieved by clearing the PWM duty cycle corresponding to the current speed to zero and shutting down the fan.

[0087] The solution of this embodiment can be applied to a multi-channel temperature control system for refrigerators. Based on the difference between the set speed setting and the actual speed, the fan speed is adaptively adjusted to stabilize the cooling input in the controlled temperature zone and achieve precise temperature control.

[0088] Existing multi-duct temperature control systems for refrigerators suffer from regulation oscillations due to feedback lag. Specifically, the fan and air circulation system have significant inertia. Existing continuous PID control or simple voltage adjustment schemes are prone to severe speed overshoot near the target speed due to integral accumulation or feedback delay. Once overshoot occurs, the system will oscillate repeatedly around the target value, generating fluctuating noise that seriously affects user experience and cooling stability.

[0089] Furthermore, existing solutions lack adaptive segmentation strategies. Specifically, existing solutions typically employ a single control logic, which cannot adaptively switch algorithms based on different operating states such as "large error, small error, and overshoot," resulting in poor dynamic performance of the system under all operating conditions.

[0090] The solution disclosed in this embodiment constructs an adaptive closed-loop regulation system for refrigerator airflow by deeply coupling stepped speed regulation and incremental PID algorithm. The system uses real-time speed deviation as the core feedback and achieves intelligent switching of control modes through a preset deviation threshold: in the large error stage, a segmented stepped lookup table method is used to drive the fan to quickly approach the target speed, solving the problem of lag in traditional algorithms; in the approaching-target stage, the incremental PID algorithm ensures steady-state control accuracy, effectively eliminating static errors. Combined with a unique overshoot detection logic, this system can adjust the output strategy in real time according to the flipping of the speed status indicator, fundamentally balancing the rapid response speed of the cooling operation with the stability of the operation process.

[0091] The fan speed control scheme provided in the embodiments of this disclosure is described in detail below. In some embodiments, the fan speed control scheme provided in the embodiments of this disclosure may include: Step S1: Control cycle timing trigger and speed error extraction.

[0092] Specifically, a fixed speed control period T is set (which can correspond to the first period mentioned above). The system timestamp is used to calculate whether the adjustment time has been reached. When the adjustment period is reached, the set target speed is checked first: if the target speed is 0, the PWM drive duty cycle is directly cleared and the fan is turned off; if the target speed is not 0, the current actual speed (which can correspond to the current speed mentioned above) is compared and calculated with the target speed.

[0093] Status marking mechanism: If the actual speed is less than or equal to the target speed, the difference between the two is calculated as the absolute speed error (which can correspond to the current speed deviation mentioned above), and the current speed status is marked as "not overspeeding" (i.e., acceleration is required); if the actual speed is greater than the target speed, the difference between the two is also calculated as the absolute speed error, and the current speed status is marked as "overspeeding" (i.e., deceleration is required).

[0094] This step provides the basic error data and direction indicators for subsequent speed control direction and algorithm switching. A segmented control strategy will then be implemented based on the magnitude of the speed error.

[0095] Step S2: Combined control of large error step lookup table (coarse adjustment stage) and small error PID (fine adjustment stage).

[0096] Specifically, the coarse-tuning stage uses fast approximation logic (for large error ranges), while the fine-tuning stage uses precise steady-state logic (for small error ranges). A speed error threshold is set for PID intervention (corresponding to the first threshold mentioned above). When the speed error exceeds this threshold (i.e., in the large error range), a stepped speed control program is used to disable the conventional PID controller. The system pre-sets acceleration and deceleration lookup tables consisting of multiple error ranges and their corresponding compensation step values. The system iterates through these tables, extracts the corresponding step compensation value based on the current error range, and directly adds or subtracts it from the current PWM duty cycle.

[0097] When the speed error is less than or equal to this threshold value (i.e., the small error range), it indicates that the speed has approached the target, and the system seamlessly switches to incremental PID control. The target speed and the actual speed are input into the PID calculation module to calculate the tiny increment of the PWM duty cycle, which is then accumulated into the current PWM output to achieve high-precision convergence towards the target value.

[0098] Step S3: Steady-state fine-tuning approximation and PWM output limiting (steady-state stage) Once the state machine enters the "fine-tuning phase," it can determine in real time whether the current speed error is less than the set minimum steady-state threshold (which corresponds to the second threshold mentioned above). If so, it is determined that the rotational speed has reached a steady state, and the state machine enters the "end phase" and maintains the output unchanged.

[0099] In some optional implementations, steps for speed regulation state machine activation and target crossing detection (zero-crossing protection) can be added.

[0100] Specifically, when the speed error calculated in step S1 is greater than the first threshold, the speed regulation state machine is activated, initialized to the "coarse adjustment stage", and the initial speed state at this time is latched.

[0101] Cross-speed detection mechanism: In each subsequent control cycle, the system compares the current real-time speed state with the latched initial speed state. If the two are inconsistent, it indicates that due to physical inertia, the actual speed has crossed the target speed boundary during the adjustment process (e.g., a sudden change from "not overspeeding" to "overspeeding"). At this point, the algorithm immediately abandons all current large-step adjustments, increments the state machine step by 1, and forcibly switches to the "fine-tuning stage," thereby effectively preventing the speed from repeatedly and violently oscillating around the target value.

[0102] This disclosure proposes a composite control method for wind turbine speed regulation based on a combination of "step-by-step lookup table + incremental PID" and target crossing detection. At the algorithm level, this method achieves extremely rapid response to the setpoint through a segmented step-by-step lookup table for large errors, perfectly compensating for the lag problem of traditional PID response. It achieves high-precision locking under steady-state conditions through incremental PID and a single-step fine-tuning mechanism for small errors. Simultaneously, it introduces a crossing detection mechanism involving initial state latching and real-time comparison, fundamentally preventing repeated oscillations in speed near the target value due to overshoot.

[0103] In summary, the solution of this disclosure solves the classic control problems of overshoot and oscillation while ensuring extremely high dynamic response speed, and has strong system stability and engineering application value.

[0104] Furthermore, the solution in this disclosure has a high degree of adaptability and can be used in multi-duct temperature control systems to adaptively adjust the fan speed, thereby stabilizing the cooling input in the controlled temperature zone and achieving precise temperature control. Simultaneously, it enables smooth and rapid switching of the refrigerator's constant temperature compartment.

[0105] Figure 2a and Figure 2b A schematic diagram is given showing the overshoot phenomenon (actual speed exceeds target speed) that exists during the process of controlling the speed of a wind turbine by sampling existing related technologies. Figure 2cA schematic diagram is provided illustrating the process of controlling fan speed using a scheme from an embodiment of this disclosure, demonstrating no overshoot across the entire speed range (the actual speed does not exceed the target speed). It should be noted that... Figures 2a to 2c The light gray lines represent the target speed, the dark gray lines represent the actual speed, and the vertical axis represents the numerical value of the fan speed.

[0106] Figure 3 This is a schematic diagram of a fan speed control device provided in an embodiment of this disclosure. Figure 3 As shown, the control device includes a processor 31 and a controller 32. Specifically, in each first cycle, if the target rotational speed of the fan is greater than 0, then: The processor 31 is used to determine the current speed state and current speed deviation of the fan based on the current speed and the target speed of the fan; and to determine the speed control strategy of the fan based on the current speed state and the current speed deviation; the controller 32 is used to control the speed of the fan based on the speed control strategy of the fan; wherein, the first period is a preset period for controlling the speed of the fan.

[0107] It should be understood that in this embodiment, the controller 31 may be connected to the fan or the fan actuator to control the fan speed.

[0108] The fan speed control device provided in this embodiment can execute the fan speed control method provided in this embodiment. The implementation principle is similar. The actions performed by each module in the fan speed detection device provided in each embodiment correspond to the steps in the fan speed control method provided in each embodiment. For detailed functional descriptions of each module of the fan speed detection device provided in this embodiment, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0109] The embodiments disclosed herein determine a corresponding speed control strategy based on the current speed deviation and current speed state of the fan, so as to quickly and accurately control the speed of the fan, thereby achieving a stable output of air volume.

[0110] In some optional embodiments, the fan speed control strategy includes: the fan speed control direction and the fan speed control method; When determining the fan speed control strategy based on the current speed state and the current speed deviation, the processor 31 is specifically used for: The direction of fan speed regulation is determined based on the current speed state; The speed control method of the fan is determined based on the current speed deviation.

[0111] In some alternative embodiments, when the processor 31 determines the direction of fan speed regulation based on the current speed state, it is specifically used for: If the current speed status indicates overspeed, determine to reduce the speed of the fan; or, If the current speed status is not overspeeding, determine to accelerate the speed control of the fan.

[0112] In some alternative embodiments, when determining the fan speed control method based on the current speed deviation, the processor 31 is specifically used for: If the current speed deviation is greater than a first threshold, it is determined that a stepped speed regulation method will be used to adjust the speed of the fan; or... If the current speed deviation is less than or equal to the first threshold, it is determined that the speed of the fan is controlled by an incremental proportional-integral-derivative PID control method.

[0113] In some alternative embodiments, the processor 31 is further configured to: Based on the first speed of the fan after regulation and the target speed, a first real-time speed deviation is determined. The first speed is the current speed after the fan speed is regulated by step speed regulation. If the first real-time speed deviation is less than or equal to the first threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0114] In some alternative embodiments, when the controller 32 regulates the speed of the fan using a stepped speed regulation method, it is specifically used for: Based on the preset first correspondence, determine the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs; Based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan. The first correspondence includes the correspondence between multiple speed deviation ranges and the step compensation values ​​corresponding to each speed deviation range. If the step compensation value is a positive integer, it is used to characterize the acceleration control of the fan speed; If the step compensation value is a negative integer, it is used to indicate that the speed of the fan is reduced and controlled.

[0115] In some alternative embodiments, when the controller 32 regulates the speed of the fan using incremental PID control, it is specifically used for: Based on the target speed and the current speed, the first increment is determined by an incremental PID algorithm; Based on the first increment and the PWM duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

[0116] In some alternative embodiments, the processor 31 is further configured to: Based on the second speed of the fan after adjustment and the target speed, the second real-time speed deviation is determined; Based on the second real-time speed deviation, it is determined whether the speed of the fan remains constant.

[0117] In some alternative embodiments, when the processor 31 determines whether the fan speed remains constant based on the second real-time speed deviation, it is specifically configured to: If the second real-time speed deviation is less than or equal to the second threshold, determine to maintain the PWM duty cycle corresponding to the current speed unchanged and output it, so that the speed of the fan remains unchanged; or, If the second real-time speed deviation is greater than the second threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

[0118] In some alternative embodiments, the processor 31 is further configured to: If the target speed is 0, determine to clear the PWM duty cycle corresponding to the current speed to zero, and control the controller 32 to shut down the fan.

[0119] Based on the same inventive concept, this disclosure provides an electrical device, including: a fan, and a fan speed control device, wherein the fan speed control device is used to regulate the fan speed.

[0120] In some embodiments, the electrical equipment includes, but is not limited to: refrigerators, air conditioners, dehumidifiers, fresh air systems, air purifiers, range hoods, electric fans, air coolers, heaters, heat pump dryers, integrated fresh air and air conditioning units, or smart home devices with ventilation / heat exchange functions.

[0121] In some embodiments, the fan includes, but is not limited to: brushless DC fan (e.g., four-wire DC brushless fan), brushed DC fan, AC asynchronous fan, variable frequency fan, and fixed frequency fan.

[0122] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 4As shown, the electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this disclosure.

[0123] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with this disclosure. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0124] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0125] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0126] The memory 4003 is used to store computer programs that execute embodiments of the present disclosure, and is controlled by the processor 4001 to execute them. The processor 4001 is used to execute the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0127] The electronic device package may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0128] This disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0129] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium, a computer-readable medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0130] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments. Compared with the prior art, it can achieve: The terms “first,” “second,” “third,” “fourth,” “1,” “2,” etc. (if present) in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in a sequence other than that shown in the figures or text.

[0131] It should be understood that although arrows indicate various operation steps in the flowcharts of the embodiments of this disclosure, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of the embodiments of this disclosure, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured as required, and the embodiments of this disclosure do not limit this.

[0132] The above are merely optional implementation methods for some implementation scenarios of this disclosure. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this disclosure, without departing from the technical concept of this disclosure, also fall within the protection scope of the embodiments of this disclosure.

Claims

1. A method of controlling the rotational speed of a fan, characterized by, The control method includes: In each first cycle, if the target speed of the fan is greater than 0, the following operation is performed to regulate the speed of the fan: Based on the current speed of the fan and the target speed, determine the current speed state and current speed deviation of the fan; Based on the current speed state and the current speed deviation, the speed control strategy of the fan is determined; Based on the speed control strategy of the fan, the speed of the fan is controlled. The first cycle is a preset cycle used for adjusting the fan speed.

2. The control method according to claim 1, characterized by, The fan speed control strategy includes: the fan speed control direction and the fan speed control method; The step of determining the fan speed control strategy based on the current speed state and the current speed deviation includes: The direction of fan speed regulation is determined based on the current speed state; The speed control method of the fan is determined based on the current speed deviation.

3. The control method according to claim 2, characterized by, Determining the direction of fan speed control based on the current speed state includes: If the current speed status indicates overspeed, determine to reduce the speed of the fan; or, If the current speed status is not overspeeding, determine to accelerate the speed control of the fan.

4. The control method according to claim 2 or 3, characterized by, The method for determining the fan speed control based on the current speed deviation includes: If the current speed deviation is greater than a first threshold, it is determined that a stepped speed regulation method will be used to adjust the speed of the fan; or... If the current speed deviation is less than or equal to the first threshold, it is determined that the speed of the fan is controlled by an incremental proportional-integral-derivative PID control method.

5. The control method according to claim 4, characterized by The method further includes: Based on the first speed of the fan after regulation and the target speed, a first real-time speed deviation is determined. The first speed is the current speed after the fan speed is regulated by step speed regulation. If the first real-time speed deviation is less than or equal to the first threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

6. The control method according to claim 4 or 5, characterized by, The step-speed regulation method for controlling the fan speed includes: Based on the preset first correspondence, determine the step compensation value corresponding to the speed deviation range to which the current speed deviation belongs; Based on the step compensation value and the pulse width modulation (PWM) duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan. The first correspondence includes the correspondence between multiple speed deviation ranges and the step compensation values ​​corresponding to each speed deviation range. If the step compensation value is a positive integer, it is used to characterize the acceleration control of the fan speed; If the step compensation value is a negative integer, it is used to indicate that the speed of the fan is reduced and controlled.

7. The control method according to claim 4 or 5, characterized by, The incremental PID control method for regulating the fan speed includes: Based on the target speed and the current speed, the first increment is determined by an incremental PID algorithm; Based on the first increment and the PWM duty cycle corresponding to the current speed, a new PWM duty cycle is determined and output to regulate the speed of the fan.

8. The control method according to claim 7, characterized by, The method further includes: Based on the second speed of the fan after adjustment and the target speed, the second real-time speed deviation is determined; Based on the second real-time speed deviation, it is determined whether the speed of the fan remains constant.

9. The control method according to claim 8, characterized by, Determining whether the fan speed remains constant based on the second real-time speed deviation includes: If the second real-time speed deviation is less than or equal to the second threshold, determine to maintain the PWM duty cycle corresponding to the current speed unchanged and output it, so that the speed of the fan remains unchanged; or, If the second real-time speed deviation is greater than the second threshold, it is determined that the incremental PID control method will be used to continue to regulate the speed of the fan.

10. The control method according to any one of claims 1-9, characterized in that, The method further includes: If the target speed is 0, determine to clear the PWM duty cycle corresponding to the current speed to zero and shut down the fan.

11. A control device for the rotational speed of a fan, characterized in that include: Processor and controller, of which, In each first cycle, if the target rotational speed of the fan is greater than 0, then: The processor is configured to determine the current speed state and current speed deviation of the wind turbine based on the current speed of the wind turbine and the target speed; and to determine the speed control strategy of the wind turbine based on the current speed state and the current speed deviation. The controller is used to regulate the speed of the fan based on the fan speed regulation strategy; The first cycle is a preset cycle used for adjusting the fan speed.

12. An electrical appliance, characterized in that include: A fan, and a fan speed control device as described in claim 11, wherein the fan speed control device is used to regulate the speed of the fan.

13. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the fan speed control method according to any one of claims 1-10.

14. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the fan speed control method according to any one of claims 1-10.