Control method of cooling fan and electronic equipment
By using multiple control signals with different preset frequencies in electronic devices to control the speed of the cooling fan, and calculate the target frequency through acceleration data and vibration data, the problem of vibration frequency resonance in traditional methods is solved, and higher electronics are achieved Equipment stability and service life.
Patent Information
- Application Number
- CN202211721192.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Traditional cooling fan control methods cannot effectively reduce the resonance between the vibration frequency of electronic equipment and the speed regulation frequency of the cooling fan.
By controlling the rotation of the cooling fan based on multiple preset control signals with different preset frequencies at each preset speed, obtaining the electronic device acceleration data corresponding to each preset control signal, determining the vibration data, and calculating the frequency adjustment amount. Determine the candidate frequency and finalize the target frequency to control the cooling fan.
The possibility of the frequency of the control signal resonance with the vibration frequency of the electronic device is reduced, and the service life and robustness of the electronic device are improved.
Smart Images

Figure CN116146518B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of heat dissipation devices, and in particular, relates to a control method for a heat dissipation fan and an electronic device. Background Art
[0002] Electronic devices often generate heat during operation, so a cooling fan is usually installed in the electronic device to dissipate heat from the internal circuit of the electronic device to prevent the components in the electronic device from being damaged due to the high heat generated by the electronic device. The cooling fan usually needs to be controlled in speed during rotation, and the speed control of the cooling fan is usually achieved through a pulse width modulation (PWM) signal. The speed of the cooling fan can be adjusted by controlling the duty cycle of the PWM signal.
[0003] However, the cooling fan will vibrate during the rotation process, and the electronic device will also vibrate. The vibration frequency of the electronic device may resonate with the frequency of the PWM signal (that is, the speed regulation frequency of the cooling fan), which will not only generate a lot of noise, but also affect the service life of the electronic device. In order to reduce the resonance between the vibration frequency of the electronic device and the speed regulation frequency of the cooling fan, it is usually necessary to control the speed regulation frequency of the cooling fan. The commonly used speed regulation frequency control method is frequency control based on feedforward data. This frequency control method controls the speed regulation frequency of the cooling fan based on the vibration data of the cooling fan by measuring the vibration data of the cooling fan. However, the vibration data of the fan is usually difficult to obtain accurately, so it is impossible to effectively reduce the resonance between the vibration frequency of the electronic device and the speed regulation frequency of the cooling fan. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a cooling fan control method and an electronic device to solve the technical problem that the traditional cooling fan control method cannot effectively reduce the resonance between the vibration frequency of the electronic device and the speed regulation frequency of the cooling fan.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a cooling fan, comprising:
[0006] Based on a plurality of preset control signals at each preset speed, the cooling fan is controlled to rotate at each of the preset speeds; the preset speed is between the minimum speed and the maximum speed of the cooling fan, and the preset frequencies of the plurality of preset control signals at each of the preset speeds are different;
[0007] Acquiring acceleration data of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds; the electronic device is the electronic device where the cooling fan is located;
[0008] Determining vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on the acceleration data of the electronic device corresponding to each of the preset control signals;
[0009] Determine the frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, and determine the candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount;
[0010] Based on the candidate frequencies of all the control signals at all the preset rotational speeds, the target frequency of the target control signal at each of the preset rotational speeds is determined.
[0011] In an optional implementation of the first aspect, determining the target frequency of the target control signal at each preset speed based on the candidate frequencies of all the control signals at all the preset speeds includes:
[0012] Marking the candidate frequency of each of the preset control signals at each of the preset speeds in a speed-frequency coordinate system;
[0013] The target frequency corresponding to each preset speed is determined respectively from the candidate frequencies of all the preset control signals at each preset speed; and a curve formed by connecting the target frequencies corresponding to all the preset speeds is a smooth curve.
[0014] In an optional implementation of the first aspect, the acceleration data is a three-axis acceleration of the electronic device, and the vibration data is a three-axis vibration amplitude of the electronic device; correspondingly, the acquisition of the acceleration data of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds includes:
[0015] The three-axis acceleration sensor disposed in the electronic device collects the three-axis acceleration of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds;
[0016] The step of determining the vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on the acceleration data of the electronic device corresponding to each of the preset control signals comprises:
[0017] Based on the three-axis acceleration of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds, the three-axis vibration amplitude of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds is determined.
[0018] In an optional implementation of the first aspect, determining the frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds includes:
[0019] The vibration data corresponding to each of the preset control signals at the preset speed are respectively input into a preset shaper to obtain a frequency adjustment amount of each of the preset control signals at the preset speed.
[0020] In an optional implementation manner of the first aspect, the preset shaper is a zero-vibration input shaper or a super-strength input shaper.
[0021] In an optional implementation manner of the first aspect, determining the candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount includes:
[0022] The sum of the preset frequency of each of the preset control signals and the frequency adjustment amount is determined as the candidate frequency of each of the preset control signals.
[0023] In an optional implementation of the first aspect, after determining the target frequency of the target control signal at each preset speed based on the candidate frequencies of all the control signals at all the preset speeds, the method further includes:
[0024] A target control signal corresponding to the target speed is output to the fan motor, so that the fan motor controls the heat dissipation fan to rotate at the target speed.
[0025] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0026] A rotation control unit, for controlling the cooling fan to rotate at each preset speed based on a plurality of preset control signals at each preset speed; the preset speed is between the minimum speed and the maximum speed of the cooling fan, and the preset frequencies of the plurality of preset control signals at each preset speed are different;
[0027] A first acquisition unit is used to acquire acceleration data of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds; the electronic device is the electronic device where the cooling fan is located;
[0028] A first determining unit, configured to determine vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on acceleration data of the electronic device corresponding to each of the preset control signals;
[0029] a second determining unit, configured to determine a frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, and determine a candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount;
[0030] The third determining unit is used to determine the target frequency of the target control signal at each of the preset speeds based on the candidate frequencies of all the control signals at all the preset speeds.
[0031] In a third aspect, an embodiment of the present application provides another electronic device, comprising a memory and a computer program stored in the memory and executable on a processor, wherein when the processor executes the computer program, the method for controlling a cooling fan as described in any optional implementation of the first aspect above is implemented.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the cooling fan as described in any optional implementation of the first aspect above is implemented.
[0033] The control method of the cooling fan and the electronic device provided by the embodiments of the present application have the following beneficial effects:
[0034] The control method of the heat dissipation fan provided in the embodiment of the present application controls the heat dissipation fan to rotate at each preset speed respectively based on a plurality of preset control signals with different preset frequencies at each preset speed, and obtains the acceleration data of the electronic device corresponding to each preset control signal when the heat dissipation fan rotates at each preset speed; determines the vibration data of the electronic device corresponding to each preset control signal based on the acceleration data corresponding to each preset control signal; determines the frequency adjustment amount of each preset control signal based on the vibration data corresponding to each preset control signal, determines the candidate frequency of each preset control signal based on the preset frequency and the frequency adjustment amount of each preset control signal; determines the target frequency of the target control signal at each preset speed based on the candidate frequencies of all control signals at all preset speeds. In this way, when the heat dissipation fan is controlled to rotate at the preset speed by the target control signal at each preset speed, the possibility of resonance between the frequency of the control signal and the vibration frequency of the electronic device can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic flow chart of a method for controlling a cooling fan provided in an embodiment of the present application;
[0037] Figure 2 A specific implementation flow chart of S105 in a cooling fan control method provided in an embodiment of the present application;
[0038] Figure 3 A schematic diagram of a speed-frequency curve of a cooling fan provided in an embodiment of the present application;
[0039] Figure 4 A schematic flow chart of a method for controlling a cooling fan provided in another embodiment of the present application;
[0040] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0041] Figure 6 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0042] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one", "one or more" refers to one, two or more. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, it is defined that the "first" and "second" features can explicitly or implicitly include one or more of the features.
[0043] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0044] The embodiment of the present application first provides a control method for a heat dissipation fan, which can be applied to an electronic device. The electronic device may be provided with a controller, a heat dissipation fan, and a fan motor. The controller may be connected to the fan motor, and the fan motor may be connected to the heat dissipation fan. The controller may be used to output a control signal for controlling the rotation of the heat dissipation fan to the fan motor, and the fan motor may be used to control the rotation of the heat dissipation fan based on the control signal. Exemplarily, the heat dissipation fan may be a DC brushed fan, the fan motor may be a DC brushed motor, and the control signal for controlling the rotation of the heat dissipation fan may be a pulse width modulation (PWM) signal. Based on this, in a specific application, the speed of the heat dissipation fan may be adjusted by adjusting the duty cycle of the control signal.
[0045] The execution subject of the control method of the cooling fan provided in the embodiment of the present application can be a controller in an electronic device. In a specific application, a target script file can be configured for the controller in the electronic device, and the target script file describes the control method of the cooling fan provided in the embodiment of the present application, so that the controller in the electronic device executes the target script file when it needs to control the cooling fan, thereby executing each step in the control method of the cooling fan provided in the embodiment of the present application. Please refer to Figure 1 , is a schematic flow chart of a method for controlling a cooling fan provided in an embodiment of the present application, such as Figure 1 As shown, the control method of the cooling fan may include S101 to S105, which are described in detail as follows:
[0046] S101, based on a plurality of preset control signals at each preset speed, respectively controlling the cooling fan to rotate at each preset speed.
[0047] The preset rotation speed may be between the minimum rotation speed and the maximum rotation speed of the heat dissipation fan. Specifically, the preset rotation speed may be greater than or equal to the minimum rotation speed of the heat dissipation fan and less than or equal to the maximum rotation speed of the heat dissipation fan.
[0048] In an embodiment of the present application, there may be multiple preset speeds. Optionally, the multiple preset speeds may be multiple equally spaced speeds between the minimum speed and the maximum speed of the cooling fan. The interval between each two adjacent preset speeds may be set according to actual needs. For example, if the minimum speed of the cooling fan is 0 revolutions per second (r / s) and the maximum speed is 50r / s, the multiple preset speeds may be 5r / s, 10r / s, 15r / s, 20r / s, 25r / s, 30r / s, 35r / s, 40r / s, 45r / s and 50r / s, respectively.
[0049] In a specific application, the controller of the electronic device can output a control signal to the fan motor so that the fan motor controls the cooling fan to rotate based on the control signal. For example, when the cooling fan needs to be controlled to rotate at the maximum speed, the controller of the electronic device can output a control signal with a duty cycle of 100% to the fan motor. It is understandable that each preset speed can correspond to multiple preset control signals with the same duty cycle but different preset frequencies, that is, multiple preset control signals with the same duty cycle but different preset frequencies corresponding to the same preset speed can all be used to control the cooling fan to rotate at the same preset speed. Among them, the preset frequencies of the multiple preset control signals at each preset speed can be determined according to actual needs, and there is no limitation on them here.
[0050] For example, assuming that multiple preset speeds are 5r / s, 10r / s and 15r / s respectively, the duty cycles of the preset control signals at the multiple preset speeds are 10%, 20% and 30% respectively, and the preset frequencies of the preset control signals at each preset speed may include f1 Hz, f2 Hz and f3 Hz, then the relationship between the preset speeds and the preset frequencies, duty cycles and identifiers of the multiple preset control signals at each preset speed can be shown in Table 1 below.
[0051] Table 1
[0052]
[0053]
[0054] In a specific implementation, the controller can output multiple preset control signals at various preset speeds to the fan motor so that the fan motor controls the cooling fan to rotate at various preset speeds. For example, as shown in Table 1 above, the controller can output control signal 1, control signal 2, and control signal 3 to the fan motor so that the fan motor controls the cooling fan to rotate at a speed of 5r / s; the controller can output control signal 4, control signal 5, and control signal 6 to the fan motor so that the fan motor controls the cooling fan to rotate at a speed of 10r / s; the controller can output control signal 7, control signal 8, and control signal 9 to the fan motor so that the fan motor controls the cooling fan to rotate at a speed of 15r / s.
[0055] S102, acquiring acceleration data of the electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed.
[0056] In the embodiment of the present application, the above-mentioned electronic device may be an electronic device where a cooling fan is located.
[0057] In one embodiment of the present application, the acceleration data of the electronic device may be the three-axis acceleration of the electronic device. The three-axis acceleration may include the acceleration of the x-axis, the acceleration of the y-axis, and the acceleration of the z-axis. Based on this, a three-axis acceleration sensor may be provided in the electronic device, and the three-axis acceleration sensor may be used to collect the three-axis acceleration of the electronic device. S102 may specifically include the following steps:
[0058] When the cooling fan rotates at each preset speed, the three-axis acceleration of the electronic device corresponding to each preset control signal at each preset speed is collected by a three-axis acceleration sensor arranged in the electronic device.
[0059] In an optional implementation, after the controller in the electronic device obtains the three-axis acceleration of the electronic device corresponding to each preset control signal at each preset speed when the cooling fan rotates at each preset speed, the three-axis acceleration of the electronic device corresponding to each preset control signal at each preset speed can be stored. Exemplarily, the controller in the electronic device can store the three-axis acceleration of the electronic device corresponding to each preset control signal at each preset speed in a table as shown in Table 2.
[0060] Table 2
[0061]
[0062]
[0063] S103, determining vibration data of the electronic device corresponding to each preset control signal at each preset rotational speed based on the acceleration data of the electronic device corresponding to each preset control signal at each preset rotational speed.
[0064] In one embodiment of the present application, the vibration data of the electronic device may be the triaxial vibration amplitude of the electronic device. Based on this, S103 may specifically include the following steps:
[0065] Based on the three-axis acceleration of the electronic device corresponding to each preset control signal at each preset rotation speed, the three-axis vibration amplitude of the electronic device corresponding to each preset control signal at each preset rotation speed is determined.
[0066] In a specific application, the controller in the electronic device can calculate the vibration amplitude of each axis of the electronic device corresponding to each preset control signal at each preset speed based on the acceleration of each axis of the electronic device corresponding to each preset control signal at each preset speed and the existing acceleration-distance calculation formula. It should be noted that since the acceleration-distance calculation formula is an existing formula, the specific principle of the acceleration-distance calculation formula is not described in detail in the embodiment of the present application.
[0067] S104, based on the vibration data corresponding to each preset control signal at each preset speed, determine the frequency adjustment amount of each preset control signal at each preset speed, and based on the preset frequency and frequency adjustment amount of each preset control signal, determine the candidate frequency of each preset control signal.
[0068] It is understandable that when the cooling fan is controlled to rotate at the same speed by control signals of different frequencies, the possibility of resonance between the control signals of different frequencies and the vibration frequency of the electronic device is usually different. Therefore, in order to reduce the possibility of resonance between the frequency of the control signal and the vibration frequency of the electronic device, the controller in the electronic device can determine the frequency adjustment amount of each preset control signal at each preset speed based on the vibration data corresponding to each preset control signal at each preset speed after obtaining the vibration data corresponding to each preset control signal at each preset speed.
[0069] In one embodiment of the present application, the step of determining the frequency adjustment amount of each preset control signal at the preset speed based on the vibration data corresponding to each preset control signal at the preset speed in S104 may specifically include:
[0070] The vibration data of the electronic device corresponding to each preset control signal at the preset speed is respectively input into the preset shaper to obtain the frequency adjustment amount of each preset control signal at the preset speed.
[0071] In this embodiment, the input of the preset shaper is the vibration data corresponding to the control signal, and the output of the preset shaper is the frequency adjustment amount of the control signal. It can be understood that the frequency adjustment amount of the control signal can be a positive value or a negative value, and the embodiment of the present application does not specifically limit it.
[0072] Optionally, the preset shaper may be a zero vibration (ZV) input shaper or an extra intensive (EI) input shaper. It should be noted that since both the ZV input shaper and the EI input shaper are existing devices, the specific working principles of the ZV input shaper and the EI input shaper are not described in detail in this embodiment.
[0073] In the embodiment of the present application, after the controller in the electronic device obtains the frequency adjustment amount of each preset control signal at each preset speed, it can determine the candidate frequency of each preset control signal at each preset speed based on the preset frequency and the frequency adjustment amount of each preset control signal at each preset speed. It should be noted that when the fan motor controls the rotation of the cooling fan with the control signal at each candidate frequency, the possibility of resonance between the frequency of the control signal and the vibration frequency of the electronic device can be reduced.
[0074] In one embodiment of the present application, the step of determining the candidate frequency of each preset control signal based on the preset frequency and the frequency adjustment amount of each preset control signal in S104 may specifically include:
[0075] The sum of the preset frequency and the frequency adjustment amount of each preset control signal is determined as the candidate frequency of each preset control signal.
[0076] In the embodiment of the present application, after obtaining the candidate frequency of each preset control signal at each preset speed, the controller of the electronic device can store the candidate frequency of each preset control signal at each preset speed. Exemplarily, the controller of the electronic device can store the candidate frequency of each preset control signal at each preset speed in a table as shown in Table 3.
[0077] Table 3
[0078]
[0079]
[0080] S105: Determine a target frequency of a target control signal at each preset speed based on the candidate frequencies of all control signals at all preset speeds.
[0081] In an embodiment of the present application, the controller of the electronic device can determine a target frequency from the candidate frequencies of multiple preset control signals at each preset speed, so that the change between the target frequencies at each two adjacent preset speeds is approximately equal. In this way, when the cooling fan is rotated and controlled by the target control signal corresponding to the target frequency at each preset speed, the cooling fan can be smoothly switched between different preset speeds, which not only reduces the possibility of resonance between the frequency of the control signal and the vibration frequency of the electronic device, but also improves the robustness of the electronic device.
[0082] In one embodiment of the present application, S105 can be performed as follows: Figure 2 The implementation of S1051 to S1052 shown is described in detail as follows:
[0083] S1051: Mark the candidate frequency of each preset control signal at each preset speed in the speed-frequency coordinate system.
[0084] For example, take the three preset speeds listed in Table 1 as an example. Figure 3 As shown, the candidate frequencies of control signal 1, control signal 2 and control signal 3 at the preset speed of 5r / s marked in the speed-frequency coordinate system of the controller of the electronic device can be the positions of point A, point B and point C respectively, the candidate frequencies of control signal 4, control signal 5 and control signal 6 at the preset speed of 10r / s can be the positions of point D, point E and point F respectively, and the candidate frequencies of control signal 7, control signal 8 and control signal 9 at the preset speed of 15r / s can be the positions of point G, point H and point I respectively.
[0085] S1052: Determine a target frequency corresponding to each preset speed from candidate frequencies of all preset control signals at each preset speed.
[0086] In this embodiment, the target frequency corresponding to each preset rotational speed determined by the electronic device can make a curve formed by connecting the target frequencies corresponding to all the preset rotational speeds a smooth curve.
[0087] For example, Figure 3 As shown, since the curve formed by connecting point A, point E and point I is a smooth curve, the controller of the electronic device can determine the candidate frequency of the control signal 1 at the preset speed of 5r / s as the target frequency of the target control signal at the preset speed of 5r / s; determine the candidate frequency of the control signal 5 at the preset speed of 10r / s as the target frequency of the target control signal at the preset speed of 10r / s, and determine the candidate frequency of the control signal 9 at the preset speed of 15r / s as the target frequency of the target control signal at the preset speed of 15r / s.
[0088] As can be seen from the above, the control method of the cooling fan provided in this embodiment controls the cooling fan to rotate at each preset speed respectively by using preset control signals with different preset frequencies at each preset speed, and obtains the acceleration data of the electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed; determines the vibration data of the electronic device corresponding to each preset control signal based on the acceleration data corresponding to each preset control signal; determines the frequency adjustment amount of each preset control signal based on the vibration data corresponding to each preset control signal, and determines the candidate frequency of each preset control signal based on the preset frequency and the frequency adjustment amount of each preset control signal; determines the target frequency of the target control signal at each preset speed based on the candidate frequencies of all control signals at all preset speeds. In this way, when the cooling fan is controlled to rotate at a preset speed by the target control signal at each preset speed, the possibility of resonance between the frequency of the control signal and the vibration frequency of the electronic device can be reduced.
[0089] In addition, since the target frequency corresponding to each preset speed can connect the target frequencies corresponding to all preset speeds into a smooth curve, when the rotation of the cooling fan is controlled by the target control signal corresponding to the target frequency at each preset speed, the cooling fan can switch smoothly between different preset speeds, thereby improving the robustness of the electronic device.
[0090] See also Figure 4 , is a schematic flow chart of a method for controlling a cooling fan provided in another embodiment of the present application. Figure 1 The difference between the corresponding embodiments is that, after S105, this embodiment may further include S106, which is described in detail as follows:
[0091] S106, outputting a target control signal corresponding to the target speed to the fan motor, so that the fan motor controls the cooling fan to rotate at the target speed.
[0092] In this embodiment, when the cooling fan needs to be controlled to rotate at a target speed, the controller of the electronic device can output a target control signal corresponding to the target speed to the fan motor, so that the fan motor controls the cooling fan to rotate at the target speed. The target speed can be any preset speed.
[0093] It is understandable that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0094] Based on the control method of the cooling fan provided in the above embodiment, the present application further provides an embodiment of an electronic device that implements the above method embodiment. Figure 5, is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. For ease of description, only the parts related to this embodiment are shown. Figure 5 As shown, the electronic device 50 may include: a rotation control unit 501, a first acquisition unit 502, a first determination unit 503, a second determination unit 504 and a third determination unit 505. Among them:
[0095] The rotation control unit 501 is used to control the cooling fan to rotate at each preset speed based on multiple preset control signals at each preset speed; the preset speed is between the minimum speed and the maximum speed of the cooling fan, and the preset frequencies of the multiple preset control signals at each preset speed are different.
[0096] The first acquisition unit 502 is used to acquire acceleration data of the electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed; the electronic device is the electronic device where the cooling fan is located.
[0097] The first determining unit 503 is used to determine the vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on the acceleration data of the electronic device corresponding to each of the preset control signals.
[0098] The second determination unit 504 is used to determine the frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, and to determine the candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount.
[0099] The third determining unit 505 is configured to determine a target frequency of a target control signal at each of the preset rotational speeds based on the candidate frequencies of all the control signals at all the preset rotational speeds.
[0100] Optionally, the third determination unit 505 may include a marking unit and a target frequency determination unit.
[0101] The marking unit is used to mark the candidate frequency of each of the preset control signals at each of the preset speeds in the speed-frequency coordinate system.
[0102] The target frequency determination unit is used to determine the target frequency corresponding to each preset speed from the candidate frequencies of all the preset control signals at each preset speed; the curve formed by connecting the target frequencies corresponding to all the preset speeds is a smooth curve.
[0103] Optionally, the acceleration data is the three-axis acceleration of the electronic device, and the vibration data is the three-axis vibration amplitude of the electronic device; the first acquisition unit 502 is specifically used to collect the three-axis acceleration of the electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed through a three-axis acceleration sensor provided in the electronic device;
[0104] The first determination unit 503 is specifically configured to determine the triaxial vibration amplitude of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds based on the triaxial acceleration of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds.
[0105] Optionally, the second determination unit 504 is specifically configured to input the vibration data corresponding to each of the preset control signals at the preset speed into a preset shaper, respectively, to obtain a frequency adjustment amount of each of the preset control signals at the preset speed.
[0106] Optionally, the preset shaper is a zero-vibration input shaper or a super-strength input shaper.
[0107] Optionally, the second determining unit 504 is further configured to determine the sum of the preset frequency of each of the preset control signals and the frequency adjustment amount as the candidate frequency of each of the preset control signals.
[0108] Optionally, the rotation control unit 501 is further configured to output a target control signal corresponding to a target rotation speed to the fan motor, so that the fan motor controls the cooling fan to rotate at the target rotation speed.
[0109] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be specifically referred to the method embodiment part and will not be repeated here.
[0110] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of each unit in the above-mentioned electronic device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0111] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided by another embodiment of the present application. Figure 6 As shown, the electronic device 6 provided in this embodiment may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program corresponding to the control method of the cooling fan. When the processor 60 executes the computer program 62, the steps in the control method of the cooling fan are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the above electronic device embodiment are realized, for example Figure 5 The functions of the units 501 to 505 are shown.
[0112] Exemplarily, the computer program 62 may be divided into one or more modules / units, one or more modules / units are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the electronic device 6. For example, the computer program 62 may be divided into a rotation control unit, a first acquisition unit, a first determination unit, a second determination unit, and a third determination unit. For the specific functions of each unit, please refer to Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.
[0113] Those skilled in the art will understand that Figure 6 The electronic device 6 is merely an example and does not limit the electronic device 6 , and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0114] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0115] The memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. The memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card, etc., equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 61 is used to store computer programs and other programs and data required by the electronic device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0116] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, each step of the method for controlling a cooling fan described in the above method embodiment is implemented.
[0117] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device implements the steps in the above-mentioned method embodiments.
[0118] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0119] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0120] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling a cooling fan, characterized in that: include: Based on a plurality of preset control signals at each preset speed, respectively controlling the cooling fan to rotate at each of the preset speeds; The preset speed is between the minimum speed and the maximum speed of the cooling fan, and the preset frequencies of the plurality of preset control signals at each preset speed are different; Acquiring acceleration data of an electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed; the electronic device is an electronic device where the cooling fan is located; Determining vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on the acceleration data of the electronic device corresponding to each of the preset control signals; Determine the frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, and determine the candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount; Determining a target frequency of a target control signal at each of the preset speeds based on the candidate frequencies of all the control signals at all the preset speeds; Each of the target frequencies is used to make a curve formed by connecting the target frequencies corresponding to all the preset rotational speeds a smooth curve.
2. The control method of the cooling fan according to claim 1, characterized in that: The step of determining the target frequency of the target control signal at each preset speed based on the candidate frequencies of all the control signals at all the preset speeds comprises: Marking the candidate frequency of each of the preset control signals at each of the preset speeds in a speed-frequency coordinate system; The target frequency corresponding to each preset speed is determined respectively from the candidate frequencies of all the preset control signals at each preset speed; and a curve formed by connecting the target frequencies corresponding to all the preset speeds is a smooth curve.
3. The control method of the cooling fan according to claim 1, characterized in that: The acceleration data is the three-axis acceleration of the electronic device, and the vibration data is the three-axis vibration amplitude of the electronic device; correspondingly, the acceleration data of the electronic device corresponding to each preset control signal when the cooling fan rotates at each preset speed is obtained, including: The three-axis acceleration sensor disposed in the electronic device collects the three-axis acceleration of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds; The step of determining the vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on the acceleration data of the electronic device corresponding to each of the preset control signals comprises: Based on the three-axis acceleration of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds, the three-axis vibration amplitude of the electronic device corresponding to each of the preset control signals at each of the preset rotational speeds is determined.
4. The control method of the cooling fan according to claim 1, characterized in that: The determining, based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, the frequency adjustment amount of each of the preset control signals at each of the preset speeds comprises: The vibration data corresponding to each of the preset control signals at the preset speed are respectively input into a preset shaper to obtain a frequency adjustment amount of each of the preset control signals at the preset speed.
5. The control method of the cooling fan according to claim 4, characterized in that: The preset shaper is a zero vibration input shaper or a super strength input shaper.
6. The method for controlling a cooling fan according to claim 1, characterized in that: The determining, based on the preset frequency of each of the preset control signals and the frequency adjustment amount, a candidate frequency of each of the preset control signals comprises: The sum of the preset frequency of each of the preset control signals and the frequency adjustment amount is determined as the candidate frequency of each of the preset control signals.
7. The method for controlling a cooling fan according to any one of claims 1 to 6, characterized in that: After determining the target frequency of the target control signal at each preset speed based on the candidate frequencies of all the control signals at all the preset speeds, the method further includes: A target control signal corresponding to the target speed is output to the fan motor, so that the fan motor controls the heat dissipation fan to rotate at the target speed.
8. An electronic device, characterized in that: include: A rotation control unit, for controlling the cooling fan to rotate at each preset speed based on a plurality of preset control signals at each preset speed; The preset speed is between the minimum speed and the maximum speed of the cooling fan, and the preset frequencies of the plurality of preset control signals at each preset speed are different; A first acquisition unit is used to acquire acceleration data of the electronic device corresponding to each of the preset control signals when the cooling fan rotates at each of the preset speeds; the electronic device is the electronic device where the cooling fan is located; A first determining unit, configured to determine vibration data of the electronic device corresponding to each of the preset control signals at each of the preset rotation speeds based on acceleration data of the electronic device corresponding to each of the preset control signals; a second determining unit, configured to determine a frequency adjustment amount of each of the preset control signals at each of the preset speeds based on the vibration data corresponding to each of the preset control signals at each of the preset speeds, and determine a candidate frequency of each of the preset control signals based on the preset frequency of each of the preset control signals and the frequency adjustment amount; a third determining unit, configured to determine a target frequency of a target control signal at each of the preset speeds based on the candidate frequencies of all the control signals at all the preset speeds; Each of the target frequencies is used to make a curve formed by connecting the target frequencies corresponding to all the preset rotational speeds a smooth curve.
9. An electronic device, characterized in that: The method comprises a memory and a computer program stored in the memory and executable on a processor, wherein the processor implements the control method of the cooling fan according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for controlling the cooling fan according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Optimization method for controlling rotating speed of fan
CN110836195A
Temp.-control speed-changing fan motor
CN2454986Y