Fan rotating speed control method and device, electronic equipment and medium
By generating fan speed curves and adjusting voltage or duty cycle in real time, and combining AI learning and machine learning to optimize fan performance models, the problem of performance degradation caused by individual fan differences and long-term use is solved, achieving fast and accurate fan speed control and heat dissipation.
Patent Information
- Application Number
- CN202311701293.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Traditional fan speed control methods cannot effectively solve the problems of inconsistent fan speeds and heat dissipation performance caused by individual fan differences, and cannot be adjusted in real time to adapt to changes in load and environment.
By generating a fan speed curve, the voltage or duty cycle is adjusted in real time to match the predetermined speed. The fan performance model is updated by combining AI learning and machine learning to optimize speed control.
It enables rapid and accurate control of fan speed, improves heat dissipation efficiency, adapts to performance degradation during long-term use, and enhances the user experience.
Smart Images

Figure CN117536912B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to fan control technology in electronic and electrical equipment, and particularly to a fan speed control method, device, electronic device and storage medium. Background Technology
[0002] In modern life, fans are widely used for cooling electronic devices such as air conditioners and computers. Controlling fan speed is crucial to ensuring the normal operation and efficient functioning of these devices. Traditional methods for controlling fan speed include fixed voltage / duty cycle control and fixed speed curve control.
[0003] The inventors discovered that a fixed voltage / duty cycle control method, due to individual fan speed differences (the speed tolerance of the same fan model can reach ±10% or more), results in significant differences in fan speed under the same voltage / duty cycle, leading to large differences in fan performance and consequently, large differences in the overall heat dissipation performance of electronic and electrical equipment. A fixed speed curve control method avoids the above problems, but it also has the following issues: due to the differences between individual fans, the actual speed curves are not consistent, and a fixed speed curve will cause large differences in the time it takes for the same equipment to reach the predetermined fan speed. Summary of the Invention
[0004] The purpose of this invention is to provide a fan speed control method, device, electronic device, and storage medium that can make fan speed control faster and more accurate.
[0005] To address the aforementioned technical problems, one embodiment of the present invention provides a fan speed control method, the method comprising:
[0006] Generate the fan speed curve based on the preset fan speed curve type;
[0007] Based on the predetermined fan speed and the speed curve, the initial voltage or duty cycle is calculated, and the actual fan speed is obtained when the fan is running according to the initial voltage or duty cycle.
[0008] When the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, the voltage or duty cycle of the fan is adjusted until the error between the actual fan speed and the predetermined fan speed is within the preset threshold.
[0009] Another embodiment of the present invention also provides a fan speed control device, the device comprising:
[0010] The fan speed curve generation module is used to generate the fan speed curve based on the preset fan speed curve type.
[0011] The actual fan speed acquisition module is used to calculate the initial voltage or duty cycle based on the predetermined fan speed and the speed curve, and to acquire the actual fan speed when the fan is running according to the initial voltage or duty cycle.
[0012] The speed adjustment module is used to adjust the fan voltage or duty cycle when the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, until the error between the actual fan speed and the predetermined fan speed is within the preset threshold.
[0013] Other embodiments of the present invention also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the fan speed control method described above.
[0014] Other embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described fan speed control method.
[0015] In an embodiment of the present invention, by comparing the actual fan speed obtained from the fan speed curve with the predetermined fan speed when the fan is running, the fan voltage or duty cycle is adjusted to make the actual fan speed close to the predetermined fan speed. Compared with the traditional fixed voltage / duty cycle control method or fixed speed curve control method, the embodiments of the present invention can adjust the fan voltage or duty cycle in real time, making speed control faster and ultimately making the actual fan speed close to the predetermined fan speed, thus making speed control more accurate.
[0016] Additionally, adjusting the voltage or duty cycle of the fan includes:
[0017] Adjust the voltage or duty cycle of the fan according to the preset step size.
[0018] In addition, before generating the fan speed curve according to the preset fan speed curve type, the method further includes:
[0019] Based on the characteristics of the fan, pre-select the fan speed curve type.
[0020] In addition, generating the fan speed curve according to the preset fan speed curve type includes:
[0021] Determine the type of fan speed curve;
[0022] When the fan speed curve type is a linear curve, the fan speed curve is generated through a preset mathematical formula;
[0023] When the fan speed curve is a non-linear curve, a mathematical model of the speed curve is fitted based on experimental measurements or existing fan performance data, and the fan speed curve is plotted based on the mathematical model.
[0024] In addition, the method also includes:
[0025] The fan speed curve is updated based on the fan speed recorded periodically during actual use by the user through AI learning.
[0026] In addition, the step of periodically sampling and recording the fan speed during actual user use through AI learning, and updating the fan speed curve based on the actual fan speed during use, includes:
[0027] The fan speed data during actual use is periodically sampled and recorded using sensors.
[0028] The collected fan speed data is stored in a database, and the fan speed data is used to learn AI through machine learning algorithms to obtain a fan performance model;
[0029] Based on the fan performance model, the fan speed is predicted and controlled in real time to update the fan speed curve.
[0030] In addition, the process of using machine learning algorithms to perform AI learning on the fan speed data to obtain a fan performance model includes:
[0031] The fan speed data is preprocessed, and features are extracted from the fan speed data using machine learning algorithms;
[0032] The extracted features are used to train the model and establish a fan performance model;
[0033] The trained fan performance model is evaluated, and based on the evaluation results, the fan performance model is updated and optimized to obtain the updated fan performance model.
[0034] This invention utilizes fan speed data learned by AI during actual use to update and optimize the fan speed curve, thereby solving the problem of performance degradation or poor user experience caused by prolonged fan use. Attached Figure Description
[0035] One or more embodiments of the present invention are illustrated by way of example with the corresponding images in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute a limitation on scale.
[0036] Figure 1 This is a flowchart of a fan speed control method according to an embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of the structure of a fan speed control device according to another embodiment of the present invention;
[0038] Figure 3 This is a schematic diagram of the structure of an electronic device provided according to another embodiment of the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details are presented in the various embodiments of the present invention to facilitate a better understanding of this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the following embodiments is for ease of description and should not constitute any limitation on the specific implementation of the embodiments. The various embodiments can be combined with and referenced by each other without contradiction.
[0040] One embodiment of this invention relates to a fan speed control method applied to electronic and electrical equipment. It should be understood that electronic and electrical equipment generates heat during operation, causing the temperature of internal components to rise rapidly. If this heat is not dissipated in time, the continued temperature rise can lead to overheating and failure of internal components, resulting in decreased performance or even damage to the electronic equipment. Therefore, heat dissipation is crucial for electronic and electrical equipment. In the prior art, fans are generally used for heat dissipation, and fan speed is a significant factor affecting the heat dissipation effect. The fan speed control method described in this embodiment aims to provide a fast and accurate fan speed control method. In this embodiment, by comparing the actual fan speed obtained from the fan speed curve with a predetermined fan speed, the fan voltage or duty cycle is adjusted to bring the actual fan speed closer to the predetermined fan speed. Compared to traditional fixed voltage / duty cycle control methods or fixed speed curve control methods, this embodiment allows for real-time adjustment of the fan voltage or duty cycle, resulting in faster speed control and ultimately bringing the actual fan speed closer to the predetermined fan speed, thus making the speed control more accurate.
[0041] The following is a detailed description of the implementation details of the fan speed control method in this embodiment. The following content is only for the convenience of understanding and is not necessary for implementing this solution.
[0042] like Figure 1 As shown, in step 101, the fan speed curve is generated according to the preset fan speed curve type;
[0043] In this embodiment of the invention, the fan speed curve type can be pre-selected based on the characteristics of the fan. For example, different fan speed curve types can be selected based on the varying workload range of the electronic equipment: if the workload range of the electronic equipment is large, a curve type with a large dynamic range may be selected to adapt to the heat dissipation requirements under different workloads; different fan speed curve types can also be selected based on the temperature range of the electronic equipment: if the operating environment temperature of the electronic equipment varies greatly, a curve type that can adapt to different temperatures needs to be selected to ensure appropriate heat dissipation under different temperature conditions; or different fan speed curve types can be selected based on control complexity.
[0044] The fan speed curve type may include a linear curve (y = ax + b) or a nonlinear curve (y = ax + b). 2 +bx+c). The linear curve refers to the fan speed changing linearly with the input voltage or control signal, that is, the speed is proportional to the input signal; and the nonlinear curve refers to the fan speed changing nonlinearly with the input voltage or control signal, which may have a threshold or saturation effect.
[0045] Furthermore, in other embodiments of the present invention, the fan speed curve type may also include an S-shaped curve, that is, the fan speed changes in an S-shape with the input voltage or control signal, that is, there is a transition phase between low speed and high speed; and a custom curve, that is, the fan speed is customized according to a specific control algorithm or requirement, and can be flexibly adjusted according to the actual situation, etc.
[0046] Furthermore, in this embodiment of the invention, generating the fan speed curve according to a preset fan speed curve type includes:
[0047] Determine the type of fan speed curve, such as linear, non-linear, S-curve, etc.
[0048] When the fan speed curve type is a linear curve, the speed curve is generated through a preset mathematical relationship. For example, if the speed is proportional to the input voltage, a straight line can be drawn directly.
[0049] When the fan speed curve is a non-linear curve (or an S-curve), a mathematical model of the speed curve is fitted based on experimental measurements or existing fan performance data, and the fan speed curve is plotted according to the mathematical model. In practical engineering, the fan speed curve is usually obtained through experimental measurements, or by using performance data provided by the fan manufacturer for simulation and prediction.
[0050] In step 102, the initial voltage or duty cycle is calculated based on the predetermined fan speed and the speed curve, and the actual fan speed is obtained when the fan is running according to the initial voltage or duty cycle.
[0051] In one embodiment of the present invention, the initial voltage or duty cycle can be calculated based on a predetermined fan speed and the speed curve using the following method:
[0052] Determine the required target speed, such as 1000 RPM, based on actual needs or design requirements;
[0053] Based on the rotational speed curve, the voltage or duty cycle corresponding to the target rotational speed is obtained. For example, if the voltage corresponding to the target rotational speed on the rotational speed curve is 5V, then the initial voltage is 5V. If the rotational speed curve is non-linear, the voltage or duty cycle corresponding to the target rotational speed needs to be obtained through calculation or fitting.
[0054] Furthermore, in this embodiment of the invention, the fan is controlled to operate based on the calculated initial voltage or duty cycle, and the actual fan speed is obtained.
[0055] It should be noted that the actual fan speed is affected by a variety of factors, such as load, ambient temperature, and power supply stability. Therefore, the actual fan speed may deviate slightly. In practical applications, it is necessary to adjust and calibrate according to the actual situation.
[0056] In step 103, when the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, the voltage or duty cycle of the fan is adjusted until the error between the actual fan speed and the predetermined fan speed is within the preset threshold.
[0057] In this embodiment of the invention, the threshold can be set according to the actual situation, and its specific size is not limited. For example, the threshold can be set to 100 RPM.
[0058] Specifically, the step of adjusting the fan voltage or duty cycle when the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, until the error between the actual fan speed and the predetermined fan speed is within the preset threshold, includes:
[0059] Determine the error between the actual fan speed and the predetermined fan speed;
[0060] When the error value is greater than or equal to a preset threshold, adjust the voltage or duty cycle of the fan, and return to the step of judging the error between the actual fan speed and the predetermined fan speed;
[0061] When the error value is less than a preset threshold, the process returns to the step of determining the error between the actual fan speed and the predetermined fan speed after a preset time.
[0062] In one embodiment of the present invention, the voltage or duty cycle of the fan can be adjusted according to a preset step size.
[0063] This invention compares the actual fan speed with the predetermined fan speed and adjusts the fan voltage or duty cycle in real time, making speed control faster and ultimately bringing the actual fan speed closer to the predetermined fan speed, thus making speed control more accurate.
[0064] Furthermore, during the use of electronic and electrical equipment, as the fan ages, its performance gradually declines over time, and its speed gradually deviates from the curve. The number of iterations required for the fan to reach the predetermined speed increases, and the time required for stabilization lengthens, leading to a poor user experience. Therefore, this embodiment of the invention, in executing the above-described fan speed control method, further includes the following steps:
[0065] The fan speed curve is updated based on the fan speed recorded periodically during actual user operation using AI learning. Specifically, this includes:
[0066] Using sensors or other devices, periodically sample and record fan speed data during actual user use, including fan speed, voltage or duty cycle, ambient temperature, load conditions, etc.
[0067] The collected fan speed data is stored in a database, and the fan speed data is used to learn AI through machine learning algorithms to obtain a fan performance model;
[0068] Based on the fan performance model, the fan speed is predicted and controlled in real time to update the fan speed curve.
[0069] The embodiments of the present invention can discover the changing patterns of the fan speed curve through machine learning algorithms, thereby updating the fan's performance model. Furthermore, by utilizing the updated speed curve, real-time control of the fan can be achieved, enabling it to better adapt to actual usage environments and needs, and solving the problem of performance degradation or poor user experience caused by prolonged fan use.
[0070] Furthermore, in one embodiment of the present invention, the step of using a machine learning algorithm to perform AI learning on the fan speed data to obtain a fan performance model includes:
[0071] The fan speed data is preprocessed, including data cleaning, noise reduction, and outlier handling, to ensure the accuracy and integrity of the data for subsequent analysis and modeling.
[0072] Machine learning algorithms are used to extract features from fan speed data, including the relationship between fan speed and voltage, the relationship between fan speed and ambient temperature, and the relationship between fan speed and load.
[0073] By selecting appropriate machine learning algorithms, such as regression analysis and neural networks, and using the extracted features to train the model, the model will be able to discover the changing patterns of the speed curve and establish a fan performance model by learning from a large amount of fan speed data.
[0074] The trained fan performance model is evaluated to ensure its accuracy in predicting fan performance. In this embodiment of the invention, methods such as cross-validation and error analysis can be used to evaluate the fan performance model.
[0075] Based on the evaluation results, the fan performance model is updated and optimized, including adjusting the model parameters, adding more features, and improving the algorithm, resulting in an updated fan performance model.
[0076] By following the steps above, the fan speed data learned by AI during actual use can be used to update and optimize the fan speed curve, thereby improving the fan's performance and adaptability.
[0077] The steps described above are for clarity only. In practice, they can be combined into one step or some steps can be broken down into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.
[0078] Another embodiment of the present invention relates to a fan speed control device. For example... Figure 2As shown, the fan speed control device includes: a speed curve generation module 201, used to generate a fan speed curve according to a preset fan speed curve type; an actual speed acquisition module 202, used to calculate an initial voltage or duty cycle according to a predetermined fan speed and the speed curve, and acquire the actual fan speed when the fan operates according to the initial voltage or duty cycle; and a speed adjustment module 203, used to adjust the fan voltage or duty cycle when the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, until the error between the actual fan speed and the predetermined fan speed is within the preset threshold.
[0079] In this embodiment of the invention, the speed curve generation module 201 can pre-select the fan speed curve type according to the characteristics of the fan. For example, this embodiment of the invention can select different fan speed curve types according to the different workload ranges of the electronic and electrical equipment: if the workload range of the electronic and electrical equipment is large, it may be necessary to select a curve type with a large dynamic range to adapt to the heat dissipation requirements under different workloads; different fan speed curve types can also be selected according to the temperature range of the electronic and electrical equipment: if the operating environment temperature of the electronic and electrical equipment is large, it is necessary to select a curve type that can adapt to different temperatures to ensure that appropriate heat dissipation can be provided under different temperature conditions; or different fan speed curve types can be selected according to the control complexity.
[0080] The fan speed curve type may include a linear curve (y = ax + b) or a nonlinear curve (y = ax + b). 2 +bx+c). The linear curve refers to the fan speed changing linearly with the input voltage or control signal, that is, the speed is proportional to the input signal; and the nonlinear curve refers to the fan speed changing nonlinearly with the input voltage or control signal, which may have a threshold or saturation effect.
[0081] Furthermore, in other embodiments of the present invention, the fan speed curve type may also include an S-shaped curve, that is, the fan speed changes in an S-shape with the input voltage or control signal, that is, there is a transition phase between low speed and high speed; and a custom curve, that is, the fan speed is customized according to a specific control algorithm or requirement, and can be flexibly adjusted according to the actual situation, etc.
[0082] Furthermore, in this embodiment of the invention, the speed curve generation module 201 generates the fan speed curve using the following method:
[0083] Determine the type of fan speed curve, such as linear, non-linear, S-curve, etc.
[0084] When the fan speed curve type is a linear curve, the speed curve is generated through a preset mathematical relationship. For example, if the speed is proportional to the input voltage, a straight line can be drawn directly.
[0085] When the fan speed curve is a non-linear curve (or an S-curve), a mathematical model of the speed curve is fitted based on experimental measurements or existing fan performance data, and the fan speed curve is plotted according to the mathematical model. In practical engineering, the fan speed curve is usually obtained through experimental measurements, or by using performance data provided by the fan manufacturer for simulation and prediction.
[0086] Furthermore, in one embodiment of the present invention, the actual rotational speed acquisition module 202 can calculate the initial voltage or duty cycle using the following method:
[0087] Determine the required target speed, such as 1000 RPM, based on actual needs or design requirements;
[0088] Based on the rotational speed curve, the voltage or duty cycle corresponding to the target rotational speed is obtained. For example, if the voltage corresponding to the target rotational speed on the rotational speed curve is 5V, then the initial voltage is 5V. If the rotational speed curve is non-linear, the voltage or duty cycle corresponding to the target rotational speed needs to be obtained through calculation or fitting.
[0089] Furthermore, in this embodiment of the invention, the actual speed acquisition module 202 controls the fan to operate based on the calculated initial voltage or duty cycle, and obtains the actual fan speed.
[0090] It should be noted that the actual fan speed is affected by a variety of factors, such as load, ambient temperature, and power supply stability. Therefore, the actual fan speed may deviate slightly. In practical applications, it is necessary to adjust and calibrate according to the actual situation.
[0091] In this embodiment of the invention, the threshold can be set according to the actual situation, and its specific size is not limited. For example, the threshold can be set to 100 RPM.
[0092] Specifically, the speed adjustment module 203 determines the error between the actual fan speed and the predetermined fan speed; when the error value is greater than or equal to a preset threshold, it adjusts the voltage or duty cycle of the fan and continues to determine the error between the actual fan speed and the predetermined fan speed; when the error value is less than the preset threshold, it continues to determine the error between the actual fan speed and the predetermined fan speed after a preset time.
[0093] In one embodiment of the present invention, the speed adjustment module 203 can adjust the voltage or duty cycle of the fan according to a preset step size.
[0094] This invention compares the actual fan speed with the predetermined fan speed and adjusts the fan voltage or duty cycle in real time, making speed control faster and ultimately bringing the actual fan speed closer to the predetermined fan speed, thus making speed control more accurate.
[0095] Furthermore, during the use of electronic and electrical equipment, as fans age, their performance gradually declines over time, and their speed gradually deviates from the curve. The number of iterations required for the fan to reach the predetermined speed increases, and the time required for stabilization lengthens, leading to a poor user experience. Therefore, in this embodiment of the invention, the fan speed control device may further include an AI learning module, used to periodically sample and record the fan speed during actual user use through AI learning, and update the fan speed curve based on the actual fan speed during use.
[0096] In detail, the AI learning module uses sensors or other devices to periodically sample and record fan speed data during actual user use, including fan speed, voltage or duty cycle, ambient temperature, load conditions, etc.; the collected fan speed data is stored in a database, and the fan speed data is used to learn AI through machine learning algorithms to obtain a fan performance model; based on the fan performance model, the fan speed is predicted and controlled in real time to update the fan speed curve.
[0097] In this embodiment of the invention, the AI learning module can discover the changing patterns of the speed curve through machine learning algorithms, thereby updating the fan's performance model. Furthermore, by utilizing the updated speed curve, real-time control of the fan can be achieved, enabling it to better adapt to actual usage environments and needs, and solving the problem of performance degradation or poor user experience caused by prolonged fan use.
[0098] Furthermore, in one embodiment of the present invention, the AI learning module obtains the fan performance model using the following method:
[0099] The fan speed data is preprocessed, including data cleaning, noise reduction, and outlier handling, to ensure the accuracy and integrity of the data for subsequent analysis and modeling.
[0100] Machine learning algorithms are used to extract features from fan speed data, including the relationship between fan speed and voltage, the relationship between fan speed and ambient temperature, and the relationship between fan speed and load.
[0101] By selecting appropriate machine learning algorithms, such as regression analysis and neural networks, and using the extracted features to train the model, the model will be able to discover the changing patterns of the speed curve and establish a fan performance model by learning from a large amount of fan speed data.
[0102] The trained fan performance model is evaluated to ensure its accuracy in predicting fan performance. In this embodiment of the invention, methods such as cross-validation and error analysis can be used to evaluate the fan performance model.
[0103] Based on the evaluation results, the fan performance model is updated and optimized, including adjusting the model parameters, adding more features, and improving the algorithm, resulting in an updated fan performance model.
[0104] Through the above AI learning modules, the fan speed data learned by AI during actual use can be used to update and optimize the fan speed curve, thereby improving the fan's performance and adaptability.
[0105] It is not difficult to see that this embodiment is a device embodiment corresponding to the above method embodiment, and this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the above method embodiment.
[0106] It is worth mentioning that all modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this embodiment, units that are not closely related to solving the technical problem proposed in this embodiment are not introduced. However, this does not mean that other units are absent from this embodiment.
[0107] Another embodiment of the present invention relates to an electronic device, such as Figure 3 As shown, it includes at least one processor 301; and a memory 302 communicatively connected to the at least one processor; wherein the memory 302 stores instructions executable by the at least one processor 301, the instructions being executed by the at least one processor 301 to enable the at least one processor 301 to perform the fan speed control method as described above.
[0108] The memory 302 and processor 301 are connected via a bus, which can include any number of interconnecting buses and bridges. The bus connects various circuits of one or more processors 301 and memory 302 together. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by processor 301 is transmitted over a wireless medium via an antenna, which further receives data and transmits it to processor 301.
[0109] Processor 301 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory 302 can be used to store data used by processor 301 during operation.
[0110] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the above-described method embodiments.
[0111] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0112] Those skilled in the art will understand that the above embodiments are specific examples of implementing this embodiment, and in practical applications, various changes can be made in form and detail without departing from the spirit and scope of this embodiment.
Claims
1. A fan speed control method, characterized in that, The method includes: Generate the fan speed curve based on the preset fan speed curve type; Based on the predetermined fan speed and the speed curve, the initial voltage or duty cycle is calculated, and the actual fan speed is obtained when the fan is running according to the initial voltage or duty cycle. When the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, the voltage or duty cycle of the fan is adjusted until the error between the actual fan speed and the predetermined fan speed is within the preset threshold. The fan speed data during actual use is periodically sampled and recorded using sensors. The collected fan speed data is stored in a database, and the fan speed data is used to learn AI through machine learning algorithms to obtain a fan performance model; Based on the fan performance model, the fan speed is predicted and controlled in real time to update the fan speed curve; The step of generating the fan speed curve according to the preset fan speed curve type includes: Determine the type of fan speed curve; When the fan speed curve type is a linear curve, the fan speed curve is generated through a preset mathematical formula; When the fan speed curve is a non-linear curve, a mathematical model of the speed curve is fitted based on experimental measurements or existing fan performance data, and the fan speed curve is plotted based on the mathematical model.
2. The fan speed control method according to claim 1, characterized in that, Adjusting the voltage or duty cycle of the fan includes: Adjust the voltage or duty cycle of the fan according to the preset step size.
3. The fan speed control method according to claim 1, characterized in that, Before generating the fan speed curve according to the preset fan speed curve type, the method further includes: Based on the characteristics of the fan, pre-select the fan speed curve type.
4. The fan speed control method according to claim 1, characterized in that, The step of using machine learning algorithms to perform AI learning on the fan speed data to obtain a fan performance model includes: The fan speed data is preprocessed, and features are extracted from the fan speed data using machine learning algorithms; The extracted features are used to train the model and establish a fan performance model; The trained fan performance model is evaluated, and based on the evaluation results, the fan performance model is updated and optimized to obtain the updated fan performance model.
5. A fan speed control device, characterized in that, include: The fan speed curve generation module is used to generate the fan speed curve based on the preset fan speed curve type. The speed curve generation module is also specifically used to determine the type of fan speed curve. When the fan speed curve type is a linear curve, the fan speed curve is generated through a preset mathematical relationship. When the fan speed curve type is a nonlinear curve, the mathematical model of the speed curve is fitted according to experimental measurements or existing fan performance data, and the fan speed curve is drawn according to the mathematical model. The actual fan speed acquisition module is used to calculate the initial voltage or duty cycle based on the predetermined fan speed and the speed curve, and to acquire the actual fan speed when the fan is running according to the initial voltage or duty cycle. The speed adjustment module is used to adjust the voltage or duty cycle of the fan when the error between the actual fan speed and the predetermined fan speed exceeds a preset threshold, until the error between the actual fan speed and the predetermined fan speed is within the preset threshold. The AI learning module is used to periodically sample and record fan speed data during actual user use using sensors. The collected fan speed data is stored in a database, and the fan speed data is used to learn AI through machine learning algorithms to obtain a fan performance model. Based on the fan performance model, the fan speed is predicted and controlled in real time to update the fan speed curve.
6. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the fan speed control method as described in any one of claims 1 to 4.
7. A computer-readable storage medium storing 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 to 4.
Citation Information
Patent Citations
Fan rotating speed monitoring method, monitoring device, monitoring equipment and storage medium
CN112324693A
Method and device for controlling flow rate of fan, computer apparatus, and readable storage medium
WO2021031971A1
