Fan temperature control method, system, device and equipment and storage medium

The voltage differential amplification and proportional-integral-differential adjustment collected by the temperature sensor are performed through the hardware circuit to directly control the fan speed, solving the high cost problem in the existing technology, realizing closed-loop control of the equipment temperature and fan speed, and reducing costs.

CN120592894APending Publication Date: 2025-09-05BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510431523.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Existing fan temperature control systems require the development of main control chips and embedded software, resulting in high costs.

Method used

A hardware circuit is used to perform differential amplification and proportional-integral-differential adjustment of the voltage value collected by the temperature sensor to directly control the fan speed, avoiding the use of a main control chip and embedded software.

Benefits of technology

This achieves closed-loop control of device temperature and fan speed, reducing costs and saving the overhead of manual code development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120592894A_ABST
    Figure CN120592894A_ABST
Patent Text Reader

Abstract

The invention provides a fan temperature control method, system, device and equipment and a storage medium, and relates to the technical field of heat dissipation control, the method is applied to a hardware circuit in a fan temperature control system, and the fan temperature control system comprises a temperature sensor, the hardware circuit and a fan; the method comprises the following steps: determining a first voltage difference value according to a first voltage value and a reference voltage value; the first voltage values are obtained by collecting the temperatures of the measured points through a temperature sensor, and the temperatures of different measured points correspond to different first voltage values; performing proportional integral differential adjustment on the first voltage difference value to obtain a target voltage value; wherein the target voltage value is connected to a fan control pin of the fan after the target fixed resistor limits the current of the target voltage value, and the fan control pin is used for controlling the rotating speed of the fan. Closed-loop control over the equipment temperature and the fan rotating speed is achieved in a pure hardware mode, so that use of a main control chip is saved, code development by embedded software personnel is not needed, and labor cost is also saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of heat dissipation control technology, and in particular to a fan temperature control method, system, device, equipment and storage medium. Background Art

[0002] Fan temperature control systems are commonly used in electronic equipment or computer hardware. Their purpose is to control the temperature of the device by adjusting the fan speed and operating status to ensure that the device operates within a safe operating temperature range.

[0003] In existing technology, fan temperature control systems are equipped with a temperature sensor. After obtaining the temperature sensor's temperature through a main control chip, the fan speed control variable, such as a digital-to-analog converter (DAC) value or a pulse width modulation (PWM) waveform, is adjusted using a control algorithm or proportional-integral-derivative (PID) algorithm to control the fan speed, thereby achieving a constant temperature control system. In other words, fan temperature control systems require the main control chip's central processing unit (CPU) to run the control algorithm to control the fan speed and dissipate heat from the device. However, this results in high costs for main control chip and code development. Summary of the Invention

[0004] The present invention provides a fan temperature control method, system, device, equipment and storage medium to address the high cost defect of the existing technology. It uses a pure hardware method to achieve closed-loop control of device temperature and fan speed, thereby saving the use of main control chips, eliminating the need for embedded software personnel to develop code, and saving labor costs.

[0005] In a first aspect, the present invention provides a fan temperature control method, which is applied to a hardware circuit in a fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the method includes the following steps: determining a first voltage difference according to the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; The first voltage difference is adjusted by proportional-integral-differential method to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0006] According to a fan temperature control method provided by the present invention, the hardware circuit includes a differential amplifier circuit; and determining the first voltage difference according to the first voltage value and the reference voltage value includes: Determining a second voltage difference value through the differential amplifier circuit according to the first voltage value and the reference voltage value; The second voltage difference is amplified by a first operational amplifier in the differential amplifier circuit to obtain the first voltage difference.

[0007] According to a fan temperature control method provided by the present invention, the hardware circuit also includes a hardware proportional-integral-differential circuit; the hardware proportional-integral-differential circuit includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit; the differential adjustment unit includes a first capacitor and a first fixed resistor, the integral adjustment unit includes a first sliding rheostat and a second capacitor, and the proportional adjustment unit includes a first sliding rheostat, a first fixed resistor, a rated voltage, and a second fixed resistor.

[0008] According to a fan temperature control method provided by the present invention, performing proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value includes: Connecting the first voltage difference to the input of the second operational amplifier via a first fixed resistor by the differential adjustment unit, and adding a first capacitor in the feedback loop to obtain a second voltage difference after differential adjustment; According to the second voltage difference after differential adjustment, a target proportional multiple is obtained by adjusting the first sliding rheostat in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat and the first fixed resistor; the target proportional multiple is used to adjust the second voltage difference after differential adjustment to obtain a third voltage difference; The third voltage difference is connected to the input terminal of the second capacitor through the integral adjustment unit, and the output of the second capacitor is connected to the reverse input terminal; the reverse input terminal is the first sliding resistor in the proportional adjustment unit; The second operational amplifier is used to determine a target voltage value according to an input signal of the inverting input terminal.

[0009] In a second aspect, the present invention further provides a fan temperature control system, the fan temperature control system comprising a temperature sensor, a hardware circuit and a fan; a temperature sensor for collecting the temperature of a measured point, wherein different temperatures of the measured point correspond to different resistance values, and the first voltage value is obtained by dividing the resistance value with a third fixed resistor; the temperature sensor is a negative temperature coefficient thermistor; and different temperatures of the measured point correspond to different first voltage values; The hardware circuit is configured to determine a first voltage difference value based on the first voltage value and a reference voltage value; Performing proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value; The fan is used to control the speed of the fan according to the current-limited level of the fan control pin connected to the fan; the current-limited level is obtained after the target fixed resistor limits the target voltage value.

[0010] According to a fan temperature control system provided by the present invention, the fan temperature control system further includes a temperature setting module; The temperature setting module is used to obtain a reference voltage value by dividing the voltage between the second sliding rheostat and the fourth fixed resistor; the reference voltage value is a voltage value corresponding to a reference temperature.

[0011] In a third aspect, the present invention further provides a fan temperature control device, which is applied to the hardware circuit in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the device includes the following modules: A determination module, configured to determine a first voltage difference according to a first voltage value and a reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured point correspond to different first voltage values; The regulating module is used to perform proportional-integral-differential regulation on the first voltage difference to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0012] In a fourth aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the fan temperature control method as described above is implemented.

[0013] In a fifth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the fan temperature control methods described above.

[0014] In a sixth aspect, the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the fan temperature control method as described above is implemented.

[0015] The fan temperature control method, system, device, equipment and storage medium provided by the present invention are applied to the hardware circuit in the fan temperature control system, and the fan temperature control system includes a temperature sensor, a hardware circuit and a fan; the method first determines a first voltage difference based on a first voltage value and a reference voltage value; wherein the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and the temperatures of different measured points correspond to different first voltage values; then, the first voltage difference is adjusted by proportional integral differential to obtain a target voltage value; wherein the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0016] In the present invention, a hardware circuit first determines a first voltage difference between a first voltage value corresponding to the temperature of a measured point collected by a temperature sensor and a reference voltage value. The hardware circuit then performs proportional-integral-differential (PID) adjustment on the first voltage difference to obtain a target voltage value. This hardware-based PID adjustment stabilizes the fan speed, achieving closed-loop control of device temperature and fan speed using pure hardware. This eliminates the need for a main control chip and eliminates the need for embedded software developers to develop code, saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 It is a structural diagram of a fan control system in the prior art.

[0019] Figure 2 It is a flow chart of the fan temperature control method provided by the present invention.

[0020] Figure 3 This is one of the structural diagrams of the fan temperature control system provided by the present invention.

[0021] Figure 4 It is a schematic diagram of the circuit principle of the fan temperature control method provided by the present invention.

[0022] Figure 5 This is the second structural diagram of the fan temperature control system provided by the present invention.

[0023] Figure 6 It is a structural schematic diagram of the fan temperature control device provided by the present invention.

[0024] Figure 7It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0026] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects. For example, the first node can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] In order to more clearly understand the various embodiments provided by the present invention, the technical content involved in the present invention is first introduced as follows.

[0028] Here is some technical background on fan cooling control systems: 1. Temperature Sensor: Modern electronic devices are often equipped with temperature sensors to monitor the device's temperature in real time. These sensors can be placed in key locations on the device to accurately monitor temperature changes across the device.

[0029] 2. Control Algorithm: The fan cooling control system uses a preset control algorithm to determine whether to adjust the fan speed based on the temperature data obtained by the sensor. Generally speaking, when the device temperature exceeds the set threshold, the system automatically starts the fan to reduce the device temperature.

[0030] 3. Pulse Width Modulation (PWM): Pulse width modulation is a common method used to control fan speed. By varying the duty cycle of the PWM signal, the fan speed can be precisely controlled, thereby achieving the purpose of adjusting the cooling effect.

[0031] 4. Intelligent Control: Some advanced fan cooling control systems use intelligent algorithms, such as proportional-integral-derivative (PID) controllers, to achieve more refined and adaptive temperature regulation. These systems can dynamically adjust fan speed based on the device's workload and ambient temperature.

[0032] Figure 1 It is a structural diagram of a fan control system in the prior art, such as Figure 1 As shown, this fan cooling control system is equipped with a temperature sensor. After the main control chip obtains the temperature value collected by the temperature sensor, it uses a control algorithm or PID adjustment algorithm to adjust the control variable (DAC value or PWM wave) that controls the fan speed to achieve the purpose of controlling the temperature. In other words, the main control chip CPU must be used to collect temperature, calculate the deviation between the set value and the collected value through code, and then use the algorithm to calculate the appropriate PWM frequency and pulse width to control the operation of the fan drive circuit. This requires embedded software resources to write the code, which is costly in terms of human resources.

[0033] In general, the fan cooling control system combines temperature sensors, control algorithms, PWM control, and intelligent algorithms to achieve dynamic monitoring and adjustment of device temperature, ensuring stable operation of the device within a safe temperature range and improving the device's cooling efficiency and energy efficiency. This solution is inseparable from the CPU and code, requiring temperature collection, code algorithm calculation, and CPU control of the fan drive circuit.

[0034] In view of the above-mentioned shortcomings, the present invention provides a fan temperature control method, system, device, equipment and storage medium.

[0035] The following combination Figure 2-Figure 6 The present invention describes a fan temperature control method, system, device, equipment and storage medium.

[0036] Figure 2 The fan temperature control method provided by the present invention is a flow chart of the hardware circuit applied to the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit and a fan; Figure 2 As shown, the method includes the following: Step 201: Determine a first voltage difference based on a first voltage value and a reference voltage value; the first voltage value is obtained by collecting the temperature of a measured point through a temperature sensor, and different temperatures of the measured points correspond to different first voltage values; Specifically, it should be noted that the executor of the present invention is the hardware circuit in the fan temperature control system, which is used to solve the defects of requiring a main control chip control circuit and requiring high code development costs, and to achieve closed-loop control of device temperature and fan speed using pure hardware.

[0037] For example, Figure 3 This is one of the structural diagrams of the fan temperature control system provided by the present invention, such as Figure 3 As shown, the system includes a temperature sensor, a hardware circuit and a fan, wherein the hardware circuit includes a differential amplifier circuit and a hardware PID circuit. The temperature sensor sends the collected temperature level to the differential amplifier circuit. The differential amplifier circuit performs differential calculation and amplification based on the temperature level to obtain a temperature difference ΔT related level. The hardware PID circuit performs proportional, integral and differential adjustment on ΔT and sends the adjusted proportional, integral and differential level to the fan to achieve fan speed regulation, that is, adjust the speed.

[0038] In this embodiment, the first voltage value is obtained by collecting the temperature of the measured point through a temperature sensor, wherein the temperature sensor can be a negative temperature coefficient (NTC) temperature sensor. The NTC temperature sensor is a negative temperature coefficient resistor. The resistance is 10K at a normal temperature of 25°C (Celsius). The higher the temperature, the smaller the resistance. Therefore, when the temperature is higher than 25°C, the resistance decreases, and the generated voltage divider (i.e., the first voltage value) V in As the temperature at different measured points increases, different first voltage values ​​correspond to different temperatures. Furthermore, the first voltage value can be sent to the hardware circuit as a temperature level. A temperature level generally refers to the strength or state of the electrical signal output by a temperature sensor when measuring temperature. In electronics and electrical engineering, a level generally refers to the voltage state of a circuit node at a specific moment and can be used to represent different states or information.

[0039] The hardware circuit determines a first voltage difference value based on the first voltage value and the reference voltage value, for example, by using a differential amplifier circuit to calculate the first voltage difference value.

[0040] Step 202: Perform proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0041] Specifically, after determining the first voltage difference (ie, the temperature level), the hardware circuit may further perform proportional-integral-differential adjustment on the first voltage difference in order to make the output value of the connected fan more stable.

[0042] In this embodiment, the hardware PID circuit performs proportional differential adjustment on the first voltage difference to obtain a more stable output value such as the target voltage value V out .

[0043] Furthermore, the target voltage value is connected to a fixed resistor, and the target fixed resistor is connected to the fan control pin after limiting the current of the target voltage value, thereby realizing the control of the fan speed.

[0044] Furthermore, the fan speed is adjusted, the temperature of the measured point drops, the resistance value of the NTC temperature sensor changes, and the generated divided voltage value V in After the above steps are repeated, the target voltage value V is output again. out The fan speed is controlled to decrease, and the cycle is repeated to adjust to a balanced state between temperature and fan speed.

[0045] The method provided in this embodiment is applied to a hardware circuit in a fan temperature control system, wherein the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the method first determines a first voltage difference based on a first voltage value and a reference voltage value; wherein the first voltage value is obtained by collecting the temperature of a measured point through a temperature sensor, and the temperatures of different measured points correspond to different first voltage values; then, the first voltage difference is adjusted by proportional-integral-differential adjustment to obtain a target voltage value; wherein the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0046] In the present invention, a hardware circuit first determines a first voltage difference between a first voltage value corresponding to the temperature of a measured point collected by a temperature sensor and a reference voltage value. The hardware circuit then performs proportional-integral-differential (PID) adjustment on the first voltage difference to obtain a target voltage value. This hardware-based PID adjustment stabilizes the fan speed, achieving closed-loop control of device temperature and fan speed using pure hardware. This eliminates the need for a main control chip and eliminates the need for embedded software developers to develop code, saving labor costs.

[0047] According to a fan temperature control method provided by the present invention, the hardware circuit includes a differential amplifier circuit; determining a first voltage difference value based on a first voltage value and a reference voltage value, including: Determining a second voltage difference value through a differential amplifier circuit according to the first voltage value and the reference voltage value; The second voltage difference is amplified by the first operational amplifier in the differential amplifier circuit to obtain the first voltage difference.

[0048] Specifically, in some embodiments, the hardware circuit includes a differential amplifier circuit. Figure 4 FIG. 1 is a schematic diagram of the circuit principle of the fan temperature control method provided by the present invention, as shown in FIG. Figure 4 As shown, the hardware circuit includes a differential amplifier circuit and a hardware PID circuit. Specifically, step 201 can be implemented by the following steps: First, the differential amplifier circuit determines a second voltage difference value according to the first voltage value and the reference voltage value, and amplifies the second voltage difference value through a first operational amplifier in the differential amplifier circuit to obtain a first voltage difference value.

[0049] Among them, the differential amplifier circuit is an important analog circuit structure, which can amplify the difference between two input signals and suppress the common-mode signal, thereby improving the signal's anti-interference ability and gain.

[0050] A differential amplifier circuit typically consists of two symmetrical transistors or operational amplifiers, each receiving two input signals (a first voltage value and a reference voltage value). These two input signals are amplified separately and then compared differentially, ultimately producing a single-ended output signal. The core of a differential amplifier circuit lies in its differential input characteristic: the circuit amplifies the difference between the two input signals while suppressing the common-mode signal (the common portion of the two input signals).

[0051] The method provided in this embodiment uses a differential amplifier circuit to amplify two input signals (a first voltage value and a reference voltage value) respectively and compare them in a differential manner to obtain a single-ended output signal, the first voltage difference. The differential amplifier circuit is an important analog circuit structure. The use of the differential amplifier circuit makes it have significant advantages in improving signal amplification accuracy and stability.

[0052] According to a fan temperature control method provided by the present invention, the hardware circuit also includes a hardware proportional-integral-differential circuit; the hardware proportional-integral-differential circuit includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit; the differential adjustment unit includes a first capacitor and a first fixed resistor, the integral adjustment unit includes a first sliding rheostat and a second capacitor, and the proportional adjustment unit includes a first sliding rheostat, a first fixed resistor, a rated voltage, and a second fixed resistor.

[0053] Specifically, in some embodiments, the hardware circuit further includes a hardware proportional-integral-differential (PID) circuit, which includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit. The hardware PID circuit is an analog circuit that implements three calculations: proportional (P), integral (I), and differential (D). The differential adjustment unit includes a first capacitor C1 and a first fixed resistor R7; the integral adjustment unit includes a first sliding rheostat RT2 and a second capacitor C2; and the proportional adjustment unit includes a first sliding rheostat RT, a first fixed resistor R7, a rated voltage U2, and a second fixed resistor R11.

[0054] For example, Figure 4 FIG. 1 is a schematic diagram of the circuit principle of the fan temperature control method provided by the present invention, as shown in FIG. Figure 4As shown, C1 and R7 form the differential adjustment part, RT2 and C2 form the integral adjustment part, RT2, R7 and U2 op amp, and R11 form the proportional adjustment part. The ratio of RT2 / R7 can be changed by adjusting the sliding rheostat RT2 to adjust the multiple of the proportional adjustment.

[0055] The method provided in this embodiment is that the hardware proportional-integral-differential circuit includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit. The differential adjustment unit includes a first capacitor and a first fixed resistor. The integral adjustment unit includes a first sliding rheostat and a second capacitor. The proportional adjustment unit includes a first sliding rheostat, a first fixed resistor, a rated voltage, and a second fixed resistor. The present invention uses a hardware PID circuit to adjust the first voltage difference, so that the fan can stabilize the speed.

[0056] According to a fan temperature control method provided by the present invention, a proportional-integral-differential adjustment is performed on the first voltage difference to obtain a target voltage value, including: Connecting the first voltage difference to the input of the second operational amplifier via a first fixed resistor through a differential adjustment unit, and adding a first capacitor in a feedback loop to obtain a second voltage difference after differential adjustment; According to the second voltage difference after differential adjustment, a target proportional multiple is obtained by adjusting the first sliding rheostat in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat and the first fixed resistor; the target proportional multiple is used to adjust the second voltage difference after differential adjustment to obtain a third voltage difference; The third voltage difference is connected to the input terminal of the second capacitor through the integral adjustment unit, and the output of the second capacitor is connected to the reverse input terminal; the reverse input terminal is the first sliding resistor in the proportional adjustment unit; The second operational amplifier is used to determine a target voltage value according to an input signal at the inverting input terminal.

[0057] Specifically, in some embodiments, the specific implementation process of the hardware circuit performing proportional-integral-differential adjustment on the first voltage difference in step 202 includes the following steps: First of all, it should be noted that the basic principle of the hardware PID circuit is as follows: 1. Proportional (P) Control: Proportional control is the most basic control method. It adjusts the output based on the current error signal (i.e., the difference between the setpoint and the actual value). The proportional gain determines the output's sensitivity to the error signal. Proportional control can quickly respond to errors but cannot eliminate steady-state errors.

[0058] 2. Integral (I) Control: Integral control eliminates steady-state errors by integrating (accumulating) the error signal. The strength of the integral effect depends on the integral time constant: a larger constant weakens the integral effect, and vice versa. Integral control can eliminate errors, but it may slow system response.

[0059] 3. Derivative (D) Control: Derivative control predicts and adjusts the rate of change (i.e., the derivative) of the error signal. Derivative control can predict the error trend, thereby accelerating system response and reducing overshoot. However, derivative control is sensitive to noise, so the selection of the derivative time constant requires caution.

[0060] The process of implementing proportional-integral-derivative adjustment in this embodiment is as follows: First, the first voltage difference is connected to the input terminal of the second operational amplifier through the first fixed resistor R7 by the differential adjustment unit, and the first capacitor C1 is added to the feedback loop to obtain the second voltage difference after differential adjustment.

[0061] Furthermore, based on the second voltage difference after differential adjustment, a target scaling factor is obtained by adjusting the first sliding rheostat RT2 in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat RT2 and the first fixed resistor R7. It will be appreciated that the target scaling factor is used to adjust the second voltage difference after differential adjustment to obtain the third voltage difference.

[0062] Furthermore, the third voltage difference is connected to the input end of the second capacitor C2 through the integral adjustment unit, and the output of the second capacitor C2 is connected to the reverse input end, which is the first sliding resistor RT2 in the proportional adjustment unit.

[0063] Furthermore, the second operational amplifier determines the target voltage value V according to the input signal of the reverse input terminal. out .

[0064] In the method provided in this embodiment, the hardware PID circuit connects the first voltage difference to the input end of the second operational amplifier through the first fixed resistor through the differential adjustment unit, and adds the first capacitor in the feedback loop to obtain the second voltage difference after differential adjustment. Then, according to the second voltage difference after differential adjustment, the target proportional multiple is obtained by adjusting the first sliding rheostat in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat and the first fixed resistor; the target proportional multiple is used to adjust the second voltage difference after differential adjustment to obtain a third voltage difference; further, the third voltage difference is connected to the input end of the second capacitor through the integral adjustment unit, and the output of the second capacitor is connected to the reverse input end, wherein the reverse input end is the first sliding rheostat in the proportional adjustment unit; the second operational amplifier is used to determine the target voltage value according to the input signal of the reverse input end.

[0065] The present invention adjusts the first voltage difference through a PID adjustment circuit to obtain a target voltage difference, and controls the fan speed based on the target voltage difference, so as to stabilize the fan speed and realize closed-loop control of temperature and fan speed through pure hardware.

[0066] Figure 5 This is the second structural diagram of the fan temperature control system provided by the present invention, as shown in FIG. Figure 5 As shown, the fan temperature control system includes a temperature sensor 510, a hardware circuit 520 and a fan 530; A temperature sensor 510 is configured to collect the temperature of a measured point. Different temperatures of the measured point correspond to different resistance values. The first voltage value is obtained by dividing the resistance value with a third fixed resistor. The temperature sensor is a negative temperature coefficient thermistor. The hardware circuit 520 is configured to determine a first voltage difference based on the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured point correspond to different first voltage values; Performing proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value; The fan 530 is used to control the fan speed according to the current-limited level of the fan control pin connected to the fan; the current-limited level is obtained after the target fixed resistor limits the target voltage value.

[0067] Specifically, it should be noted that the executor of the present invention is a fan temperature control system, which is used to solve the defect that the fan temperature control system must have a main control chip control circuit and requires high code development costs. It realizes the closed-loop control of device temperature and fan speed using pure hardware, reducing costs.

[0068] like Figure 5As shown, the fan temperature control system includes a temperature sensor 510, a hardware circuit 520 and a fan 530. The temperature sensor sends the collected temperature level to the hardware circuit. The hardware circuit performs differential calculation and amplification according to the temperature level, and performs proportional-integral-differential adjustment. The adjusted proportional-integral-differential level is sent to the fan to achieve fan speed regulation, that is, adjust the speed.

[0069] Specifically, the functions of each discrete device are as follows: The temperature sensor 510 is used to collect the temperature of the measured point. Different temperatures of the measured point correspond to different resistance values. The resistance value is divided by the third fixed resistor to obtain the first voltage value. Among them, the temperature sensor uses a negative temperature coefficient thermistor. The resistance is 10K at a normal temperature of 25°C. The higher the temperature, the smaller the resistance. Therefore, when the temperature is higher than 25°C, the resistance decreases, and the generated divided voltage (i.e., the first voltage value) is V in As the temperature at different measured points increases, different first voltage values ​​correspond to different temperatures. Furthermore, the first voltage value can be sent to the hardware circuit as a temperature level. A temperature level generally refers to the strength or state of the electrical signal output by a temperature sensor when measuring temperature. In electronics and electrical engineering, a level generally refers to the voltage state of a circuit node at a specific moment and can be used to represent different states or information.

[0070] Furthermore, the hardware circuit 520 determines a first voltage difference based on the first voltage value and the reference voltage value. The first voltage value is obtained based on the temperature of the measured point, and different temperatures of the measured points correspond to different first voltage values. When the temperature of the measured point changes and increases, the resistance value of the negative temperature coefficient thermistor NTC1 changes, V in The voltage increases, and after passing through the differential amplifier circuit, V in The amplified value of the voltage difference with the reference Vref.

[0071] Furthermore, the hardware circuit 520 performs proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value. In this embodiment, after the hardware PID circuit performs proportional-integral-differential adjustment on the first voltage difference, a more stable output value such as the target voltage value V out , and finally input to the fan control pin to adjust the fan speed and reduce the temperature of the measured point. This cycle is repeated to achieve a state where the temperature and fan speed are balanced.

[0072] The fan 530 is used to control the fan speed according to the current-limited level of the fan control pin connected to the fan, and the current-limited level is obtained after the target fixed resistor limits the target voltage value.

[0073] The system provided in this embodiment comprises a fan temperature control system including a temperature sensor 510, a hardware circuit 520 and a fan 530, wherein the temperature sensor 510 collects the temperature of a measured point, different temperatures of the measured points correspond to different resistance values, and the resistance value is divided by a third fixed resistor to obtain a first voltage value; the temperature sensor is a negative temperature coefficient thermistor; the hardware circuit 520 determines a first voltage difference based on the first voltage value and a reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; the first voltage difference is adjusted proportionally, integrally and differentially to obtain a target voltage value; furthermore, the fan 530 controls the speed of the fan according to the level after current limiting in the fan control pin connected to the fan; the level after current limiting is obtained after the target fixed resistor limits the target voltage value.

[0074] In the present invention, differential amplification and proportional-integral-differential adjustment are performed through hardware circuits, so that the fan speed can be stabilized based on the output level. That is, the present invention uses a pure hardware method to achieve closed-loop control of the device temperature and fan speed, thereby saving the use of a main control chip, eliminating the need for embedded software personnel to develop code, and saving labor costs.

[0075] According to a fan temperature control system provided by the present invention, the fan temperature control system further includes a temperature setting module; The temperature setting module is used to obtain a reference voltage value by dividing the voltage between the second sliding rheostat and the fourth fixed resistor; the reference voltage value is a voltage value corresponding to a reference temperature.

[0076] Specifically, in some embodiments, the fan temperature control system further includes a temperature setting module, which is used to obtain a reference voltage value V by dividing the second sliding rheostat RT1 and the fourth fixed resistor 2 and R5. ref The reference voltage value V ref is the voltage value corresponding to the reference temperature, so the reference voltage value V ref It represents the set temperature. For example, if the sliding resistor RT1 is adjusted to a resistance of 10K, it means the temperature is set to 25℃.

[0077] The system provided in this embodiment also includes a temperature setting module, which obtains a reference voltage value by dividing the voltage of the second sliding rheostat and the fourth fixed resistor. The reference voltage value is a voltage value corresponding to the reference temperature. Setting the reference voltage also means setting the reference temperature, which facilitates subsequent control of the fan speed based on the reference temperature and thus controls the temperature, reducing the cost of code writing.

[0078] The fan temperature control device provided by the present invention is described below. The fan temperature control device described below and the fan temperature control method described above can be referenced to each other.

[0079] Figure 6 : This is a schematic diagram of the structure of the fan temperature control device provided by the present invention. The device is applied to the hardware circuit of the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit and a fan; the fan temperature control device 600 includes the following modules: A determination module 610 is configured to determine a first voltage difference based on a first voltage value and a reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured point correspond to different first voltage values; The adjustment module 620 is used to perform proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value; the target voltage value is used for the target fixed resistor to limit the current of the target voltage value and then connect to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0080] The device provided in this embodiment is applied to a hardware circuit in a fan temperature control system. The fan temperature control device 600 includes a determination module 610 and an adjustment module 620. The fan temperature control system includes a temperature sensor, a hardware circuit, and a fan. The determination module 610 is configured to determine a first voltage difference based on a first voltage value and a reference voltage value. The first voltage value is obtained by collecting the temperature of a measured point through the temperature sensor, and different temperatures at different measured points correspond to different first voltage values. The adjustment module 620 is configured to perform proportional, integral, and differential adjustment on the first voltage difference to obtain a target voltage value. The target voltage value is used to provide a target fixed resistor with current limiting to the target voltage value, which is then connected to the fan control pin of the fan. The fan control pin is used to control the speed of the fan.

[0081] In the present invention, a hardware circuit first determines a first voltage difference between a first voltage value corresponding to the temperature of a measured point collected by a temperature sensor and a reference voltage value. The hardware circuit then performs proportional-integral-differential (PID) adjustment on the first voltage difference to obtain a target voltage value. This hardware-based PID adjustment stabilizes the fan speed, achieving closed-loop control of device temperature and fan speed using pure hardware. This eliminates the need for a main control chip and eliminates the need for embedded software developers to develop code, saving labor costs.

[0082] According to a fan temperature control device 600 provided by the present invention, the hardware circuit includes a differential amplifier circuit; the determination module 610 is specifically configured to: Determining a second voltage difference value through the differential amplifier circuit according to the first voltage value and the reference voltage value; The second voltage difference is amplified by a first operational amplifier in the differential amplifier circuit to obtain the first voltage difference.

[0083] According to a fan temperature control device 600 provided by the present invention, the hardware circuit also includes a hardware proportional-integral-differential circuit; the hardware proportional-integral-differential circuit includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit; the differential adjustment unit includes a first capacitor and a first fixed resistor, the integral adjustment unit includes a first sliding rheostat and a second capacitor, and the proportional adjustment unit includes a first sliding rheostat, a first fixed resistor, a rated voltage, and a second fixed resistor.

[0084] According to a fan temperature control device 600 provided by the present invention, the adjustment module 620 is specifically used to: Connecting the first voltage difference to the input of the second operational amplifier via a first fixed resistor by the differential adjustment unit, and adding a first capacitor in the feedback loop to obtain a second voltage difference after differential adjustment; According to the second voltage difference after differential adjustment, a target proportional multiple is obtained by adjusting the first sliding rheostat in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat and the first fixed resistor; the target proportional multiple is used to adjust the second voltage difference after differential adjustment to obtain a third voltage difference; The third voltage difference is connected to the input terminal of the second capacitor through the integral adjustment unit, and the output of the second capacitor is connected to the reverse input terminal; the reverse input terminal is the first sliding resistor in the proportional adjustment unit; The second operational amplifier is used to determine a target voltage value according to an input signal of the inverting input terminal.

[0085] Figure 7 An example of a physical structure diagram of an electronic device is shown below. Figure 7 As shown, the electronic device may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740, wherein the processor 710, the communications interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute a fan temperature control method, which is applied to the hardware circuit in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the method includes: determining a first voltage difference according to the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; The first voltage difference is adjusted by proportional-integral-differential method to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0086] Furthermore, the logic instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0087] On the other hand, the present invention further provides a computer program product, comprising a computer program, which may be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fan temperature control method provided by each of the above methods, which is applied to a hardware circuit in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the method includes: determining a first voltage difference according to the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; The first voltage difference is adjusted by proportional-integral-differential method to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0088] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the fan temperature control method provided by each of the above methods is implemented. The method is applied to a hardware circuit in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit, and a fan; the method includes: determining a first voltage difference according to the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; The first voltage difference is adjusted by proportional-integral-differential method to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

[0089] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0090] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A fan temperature control method, characterized in that: A hardware circuit is used in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit and a fan; the method includes: determining a first voltage difference according to the first voltage value and the reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured points correspond to different first voltage values; The first voltage difference is adjusted by proportional-integral-differential method to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

2. The fan temperature control method according to claim 1, characterized in that: The hardware circuit includes a differential amplifier circuit; and determining the first voltage difference according to the first voltage value and the reference voltage value includes: Determining a second voltage difference value through the differential amplifier circuit according to the first voltage value and the reference voltage value; The second voltage difference is amplified by a first operational amplifier in the differential amplifier circuit to obtain the first voltage difference.

3. The fan temperature control method according to claim 1, characterized in that: The hardware circuit also includes a hardware proportional-integral-differential circuit; the hardware proportional-integral-differential circuit includes a second operational amplifier, a differential adjustment unit, an integral adjustment unit, and a proportional adjustment unit; the differential adjustment unit includes a first capacitor and a first fixed resistor, the integral adjustment unit includes a first sliding rheostat and a second capacitor, and the proportional adjustment unit includes a first sliding rheostat, a first fixed resistor, a rated voltage, and a second fixed resistor.

4. The fan temperature control method according to claim 3, characterized in that: The performing proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value includes: Connecting the first voltage difference to the input of the second operational amplifier via a first fixed resistor by the differential adjustment unit, and adding a first capacitor in the feedback loop to obtain a second voltage difference after differential adjustment; According to the second voltage difference after differential adjustment, a target proportional multiple is obtained by adjusting the first sliding rheostat in the proportional adjustment unit and / or adjusting the ratio between the first sliding rheostat and the first fixed resistor; the target proportional multiple is used to adjust the second voltage difference after differential adjustment to obtain a third voltage difference; The third voltage difference is connected to the input terminal of the second capacitor through the integral adjustment unit, and the output of the second capacitor is connected to the reverse input terminal; the reverse input terminal is the first sliding resistor in the proportional adjustment unit; The second operational amplifier is used to determine a target voltage value according to an input signal of the inverting input terminal.

5. A fan temperature control system, characterized in that: The fan temperature control system includes a temperature sensor, a hardware circuit and a fan; a temperature sensor for collecting the temperature of a measured point, wherein different temperatures of the measured point correspond to different resistance values, and the first voltage value is obtained by dividing the resistance value with a third fixed resistor; the temperature sensor is a negative temperature coefficient thermistor; The temperatures of different measured points correspond to different first voltage values; The hardware circuit is configured to determine a first voltage difference based on the first voltage value and a reference voltage value; Performing proportional-integral-differential adjustment on the first voltage difference to obtain a target voltage value; The fan is used to control the speed of the fan according to the current-limited level of the fan control pin connected to the fan; the current-limited level is obtained after the target fixed resistor limits the target voltage value.

6. The fan temperature control system according to claim 5, characterized in that: The fan temperature control system also includes a temperature setting module; The temperature setting module is used to obtain a reference voltage value by dividing the voltage between the second sliding rheostat and the fourth fixed resistor; the reference voltage value is a voltage value corresponding to a reference temperature.

7. A fan temperature control device, characterized in that: A hardware circuit used in the fan temperature control system; the fan temperature control system includes a temperature sensor, a hardware circuit and a fan; the device includes: A determination module, configured to determine a first voltage difference according to a first voltage value and a reference voltage value; the first voltage value is obtained by collecting the temperature of the measured point by the temperature sensor, and different temperatures of the measured point correspond to different first voltage values; The regulating module is used to perform proportional-integral-differential regulation on the first voltage difference to obtain a target voltage value; the target voltage value is used for a target fixed resistor to limit the current of the target voltage value and then connected to the fan control pin of the fan, and the fan control pin is used to control the speed of the fan.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the fan temperature control method according to any one of claims 1 to 4 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fan temperature control method according to any one of claims 1 to 4 is implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the fan temperature control method according to any one of claims 1 to 4 is implemented.