Method for optimizing control parameters of cooling fan and system thereof
10379552 ยท 2019-08-13
Assignee
Inventors
Cpc classification
G05D23/1951
PHYSICS
International classification
Abstract
After a temperature point of the cooling fan is set according to a plurality of temperatures corresponding to a plurality of first consecutive time intervals, control a duty cycle of the cooling fan according to the temperature point, acquire temperature variation data of the cooling fan during a plurality of second consecutive time intervals, generate a gain factor and a frequency factor of the cooling fan according to the temperature variation data, and generate a proportional gain factor, an integral time factor and a derivative time factor of a proportional-integral-derivative controller of the cooling fan according to the gain factor and the frequency factor of the cooling fan. The plurality of first consecutive time intervals are followed by the plurality of second consecutive time intervals.
Claims
1. A method for optimizing control parameters of a cooling fan comprising: setting a temperature point of the cooling fan according to a plurality of temperatures corresponding to a plurality of first consecutive time intervals; controlling a duty cycle of the cooling fan according to the temperature point; acquiring temperature variation data of the cooling fan during a plurality of second consecutive time intervals, wherein the plurality of first consecutive time intervals are followed by the plurality of second consecutive time intervals; generating a gain factor and a frequency factor of the cooling fan according to the temperature variation data; and generating a proportional gain factor, an integral time factor and a derivative time factor of a proportional-integral-derivative controller of the cooling fan according to the gain factor and the frequency factor of the cooling fan; wherein controlling the duty cycle of the cooling fan according to the temperature point, acquiring the temperature variation data of the cooling fan during the plurality of second consecutive time intervals, and generating the gain factor and the frequency factor of the cooling fan according to the temperature variation data comprise: subtracting an offset from the temperature point to generate an initial temperature point; setting a high duty cycle and a low duty cycle of the cooling fan; acquiring a temperature of the cooling fan in each time interval of the plurality of second consecutive time intervals; controlling the duty cycle of the cooling fan to operate in the low duty cycle and storing the temperature variation data to a memory device if the temperature is smaller than the initial temperature point; controlling the duty cycle of the cooling fan to operate in the high duty cycle and storing the temperature variation data to the memory device if the temperature is greater than the initial temperature point; and generating the gain factor and the frequency factor according to the temperature variation data of the plurality of second consecutive time intervals.
2. The method of claim 1, wherein setting the temperature point of the cooling fan according to the plurality of temperatures corresponding to the plurality of first consecutive time intervals comprises: acquiring N temperatures corresponding to N first consecutive time intervals of the plurality of first consecutive time intervals; averaging the N temperatures to generate an average temperature; acquiring K temperature differences corresponding to K first consecutive time intervals of the plurality of first consecutive time intervals following the N first consecutive time intervals, wherein a k.sup.th temperature difference of the K temperature differences is a temperature difference between the average temperature and a temperature of a k.sup.th first time interval of the K first consecutive time intervals, N and K are two positive integers greater than two, and Kk1; and if the K temperature differences are all smaller than a tolerance value, selecting one of K temperatures of the K first consecutive time intervals to be the temperature point of the cooling fan.
3. The method of claim 1, wherein setting the temperature point of the cooling fan according to the plurality of temperatures corresponding to the plurality of first consecutive time intervals comprises: acquiring N temperatures corresponding to N first consecutive time intervals of the plurality of first consecutive time intervals; averaging the N temperatures to generate an average temperature; acquiring K temperature differences corresponding to K first consecutive time intervals of the plurality of first consecutive time intervals following the N first consecutive time intervals, wherein a k.sup.th temperature difference of the K temperature differences is a temperature difference between the average temperature and a temperature of a k.sup.th first time interval of the K first consecutive time intervals, N and K are two positive integers greater than two, and Kk1; and when at least one of the K temperature differences is greater than a tolerance value, resampling temperatures of the cooling fan; and if K temperature differences of following K first consecutive time intervals are all smaller than the tolerance value, selecting one of K resampled temperatures of the following K first consecutive time intervals to be the temperature point of the cooling fan.
4. The method of claim 1, wherein the high duty cycle is equal to F+(F), 0.10.03, and F is an initial duty cycle.
5. The method of claim 1, wherein the low duty cycle is equal to F(F), 0.10.03, and F is an initial duty cycle.
6. The method of claim 1, wherein a temperature curve corresponding to the temperature variation data is approximately a sinusoidal function, and the frequency factor is a frequency value of the sinusoidal function.
7. The method of claim 6, wherein the gain factor is equal to (4h)/(a), h is a predetermined constant, and a is an average amplitude of the sinusoidal function.
8. The method of claim 1, wherein the proportional gain factor is equal to K.sub.u/2.2, the integral time factor is equal to P.sub.u/0.45, the derivative time factor is equal to P.sub.u/6.3, K.sub.u is the gain factor, and P.sub.u is the frequency factor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7)
(8)
(9) Here, step S201 to step S203 are illustrated below. The detail principles and examples of step S201 to step S203 are also illustrated later. Since the cooling fan 11 is disposed on the electronic device 14, heat dissipation can be achieved by using a forced convection method which heat can be transferred from the electronic device 14 to ambient air through the cooling fan 11. Thus, a temperature of the cooling fan 11 is substantially equal to a temperature of the electronic device 14 detected by the temperature sensor 12 since the cooling fan 11 adjoins the electronic device 14 closely. In other words, a convection path is generated from the electronic device 14 to the cooling fan 11. In step S201, the plurality of temperatures of the cooling fan 11 corresponding to a plurality of first consecutive time intervals are detected. For example, the temperature sensor 12 can sample temperatures during a predetermined time period. Thus, the plurality of temperatures in step S201 can be regarded as a plurality of sampled temperatures in consecutive time intervals. The processor 10 can generate the temperature point ID of the cooling fan 11 according to the plurality of sampled temperatures by invoking an algorithm. Particularly, the temperature point ID can be regarded as a temperature of the cooling fan 11 operated under a stable condition. In step S202, the processor 10 can control the duty cycle of the cooling fan 11 and acquiring temperature variation data of the cooling fan 11 during a plurality of second consecutive time intervals. Here, the plurality of first consecutive time intervals are followed by the plurality of second consecutive time intervals. In other words, in step S201, a relay feedback process can be introduced. The temperature point ID of the cooling fan 11 can be generated during the plurality of first consecutive time intervals. Then, in step S202, the processor 10 controls the duty cycle of the cooling fan 11 and further monitors temperature variation of the cooling fan 11. In step S202, the processor 10 can store temperature data variation during the plurality of second consecutive time intervals. Then, when the data of the temperature variation is sufficient statistic, the processor 10 can generate the gain factor K.sub.u and the frequency factor P.sub.u of the cooling fan 11 according to the temperature variation data. Definitions of the gain factor K.sub.u and the frequency factor P.sub.u are illustrated later. In step S203, the processor 10 can generate the proportional gain factor K.sub.c, the integral time factor T.sub.i and the derivative time factor T.sub.d of the PID controller of the cooling fan 11 according to the gain factor K.sub.u and the frequency factor P.sub.u. Specifically, the processor 10 can use any reasonable method to generate the proportional gain factor K.sub.c, the integral time factor T.sub.i and the derivative time factor T.sub.d. For example, the processor 10 can generate PID parameters by using specific equations. The generation method is also illustrated later. Briefly, three steps are introduced for optimizing the PID parameters of the cooling fan 11. Step S201 can be regarded as a preprocessing process. Step S202 can be regarded as a system identification process. Step S203 can be regarded as a PID parameters calculation process.
(10)
(11) In step S301, the temperature sensor 12 acquiring the N temperatures of the cooling fan 11 corresponding to the N consecutive time intervals of the first consecutive time intervals. For example, the temperature sensor 12 can detect temperatures T(1), T(2), . . . T(N). Specifically, the temperatures T(1), T(2), . . . T(N) can be regarded as N temperatures sampled by the temperature sensor 12. In the embodiment, N is a user-defined positive integer greater than two. When N is sufficiently large, a set of sampled temperatures is also spanned, thereby leading to high reliability. Then, in step S302, the processor 10 averages the N temperatures to generate the average temperature m=.sub.n=1.sup.NT(n)/N, and initializes the flag i equal to zero (i=0). However, any method for counting process can be introduced. For example, a flag-based method can be introduced to the embodiment. The embodiment can also use a counter for counting process. After the N temperatures are sampled during the N consecutive time intervals and the average temperature M is calculated, the temperature sensor 12 is performed to continue detecting temperatures. In step S303, the temperature sensor 12 acquires k.sup.th temperature difference T(k) corresponding to k.sup.th time interval following the N consecutive time intervals. Here, k is denoted as an index of k.sup.th time interval. The temperature difference T(k) is defined as T(k)=MT(k). For example, after the N consecutive time intervals, the temperature sensor 12 acquires a temperature T(k=1). Then, the processor 10 can generate a temperature difference T(k=1) by using T(k=1)=MT(k=1). In the following, the temperature sensor 12 acquires a temperature T(k=2). Then, the processor 10 can generate a temperature difference T(k=2) by using T(k=2)=MT(k=2). Without loss of generality, the temperature difference of the k.sup.th time interval is denoted as T(k) in step S303. Further, as aforementioned illustration, the temperature difference T(k) is defined as a difference between a sampled temperature T(k) and the average temperature M. In step S304, the processor 10 determines if T(k)<. If T(k)<, execute step S305, else executing step S306. Here, is a tolerance value (i.e., a user defined value or a system built-in value), such as 0.01. In step S304, stability of temperature of cooling fan 11 can be determined based on the temperature difference T(k). When the temperature difference T(k) is greater than the tolerance value (i.e., T(k)>), it implies that the cooling fan 11 is operated under unstable condition. Thus, in step S306, the flag i is reset equal to zero. The index k becomes k+1. The processor 10 executes the step S303 again for processing a loop including the step S303, the step S304, and the step S306. When the temperature difference T(k) is smaller than the tolerance value (i.e., T(k)<), it implies that the cooling fan 11 is operated under stable condition. Thus, in step S305, the flag i becomes i+1. The index k becomes k+1. In other words, a value of the flag i can be regarded as the number of time intervals of the cooling fan 11 continuously operated under the stable condition. Thus, In step S307, the processor 10 determines if iK. When iK, executing step S308. When i<K, going back to step S303. Here, K is a positive integer greater than 2 and Kk1. In other words, when K temperature differences (i.e., T(k=1) to T(k=K)) are all smaller than the tolerance value , it implies that the number of time intervals of the cooling fan 11 continuously operated under the stable condition reaches to K. Then, in step S308, the processor 10 selects one of K temperatures to be the temperature point ID of the cooling fan 11. The processor 10 can also average K temperatures to be the temperature point ID of the cooling fan 11. On the contrary, when the number of time intervals of the cooling fan 11 continuously operated under the stable condition has not reached K, go back to step S303 for processing a loop including step S303 to step S307.
(12) Briefly, the aforementioned steps S301 to S308 can be regarded as a relay feedback process. When K temperature differences of the K consecutive time intervals are all smaller than the tolerance value , the cooling fan 11 is operated under the stable condition. Thus, the temperature point ID can be determined by the processor 10. When at least one of the K temperature differences is greater than the tolerance value , the cooling fan 11 is operated under the unstable condition. Hereafter, the temperature sensor 12 resamples temperatures of the cooling fan 11 until the cooling fan 11 is stable. By doing so, the temperature point ID can be generated by the processor 10.
(13)
(14) In step S401, the processor 10 acquires the temperature point ID of the cooling fan 11. Specifically, the temperature point ID can be generated by using step S301 to step S308 in
(15) For presentation completeness, a concrete example is introduced to illustrate the system identification process.
(16)
K.sub.u=(4h)(a),
where h is a difference between the high duty cycle F.sub.high and the initial duty cycle F or a difference between the low duty cycle F.sub.low and the initial duty cycle F. For example, in the embodiment, the high duty cycle F.sub.high is equal to 50%+(10%50%)=55%. The low duty cycle F.sub.low is equal to 50%(10%50%)=45%. Thus, h can be calculated as a predetermined constant equal to 5%. is a circular constant substantially equal to 3.1415926. Constant a is an average amplitude of the sinusoidal function. In
(17) In the following, the PID parameters calculation process corresponding to step S203 in
K.sub.c=K.sub.u/2.2
T.sub.i=P.sub.u/0.45
T.sub.d=P.sub.u/6.3
(18) The gain factor K.sub.u and the frequency factor P.sub.u are defined previously. Thus, after the system 100 performs the preprocessing process, the system identification process, and the PID parameters calculation process, the proportional gain factor K.sub.c, the integral time factor T.sub.i, and the derivative time factor T.sub.d can be generated for driving the cooling fan 11 to operate under optimal condition.
(19) To sum up, the present invention discloses a method and a system for optimizing control parameters of a cooling fan. Specifically, the system can automatically adjust, learning, and determine optimal PID parameters. Further, since sampled temperature data is required to be sufficient, the PID parameters generated by the system have very high reliability. Instead of using a trial and error process-based method for adjusting the PID parameters, the PID parameters generated by the system of the present invention can drive the cooling fan to operate under optimal condition.
(20) Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.