Temperature sampling compensation circuit, temperature measurement system and heat dissipation system based on single-chip microcomputer

By introducing a reference voltage circuit into the temperature sampling circuit, the actual value of the power supply voltage is detected in real time, which solves the problem of inaccurate temperature detection caused by power supply voltage error, realizes high-precision temperature detection, and ensures the temperature management accuracy of the motor and controller of new energy vehicles.

CN225032349UActive Publication Date: 2026-11-27SHENZHEN LONGTECH SMART CONTROL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522340634.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-11-04
Publication Date
2026-11-27
Estimated Expiration
2035-11-04

AI Technical Summary

Technical Problem

Existing temperature sampling circuits may produce inaccurate temperature detection results under extreme temperatures due to small errors between the power supply voltage and the calibration value. This is especially true in new energy vehicles, where the temperature detection errors of the motor and controller are relatively large, affecting the accuracy of heat dissipation management.

Method used

A reference voltage circuit is introduced into the temperature sampling circuit. By detecting the actual value of the power supply voltage in real time and combining it with the temperature detection voltage, the temperature compensation data is calculated to reduce errors.

Benefits of technology

This improves the accuracy of temperature detection, reduces temperature acquisition deviations caused by power supply voltage errors, and ensures the temperature management accuracy of new energy vehicle motors and controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN225032349U_ABST
    Figure CN225032349U_ABST
Patent Text Reader

Abstract

The utility model discloses a temperature sampling compensation circuit, temperature measurement system and heat dissipation system based on singlechip, temperature sampling compensation circuit based on singlechip includes temperature sampling circuit, singlechip and reference voltage circuit, wherein, temperature sampling circuit is used for gathering and exports temperature detection voltage to singlechip, reference voltage circuit is used for gathering and exports reference voltage to singlechip, the power supply voltage detection end of singlechip is used for gathering reference voltage, and according to temperature detection voltage and reference voltage obtains compensation temperature data. Through setting and temperature sampling circuit parallel connection's reference voltage circuit, reference voltage circuit real -time detection reference voltage's actual value, thereby singlechip according to reference voltage's actual value and temperature detection voltage signal obtains the temperature detection value of approaching actual value, reduces the error between temperature detection value and actual temperature, realizes temperature detection compensation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of new energy vehicle electronic technology, and in particular to a temperature sampling compensation circuit, temperature measurement system and heat dissipation system based on a microcontroller. Background Technology

[0002] In the field of automotive electronics technology, thermal management circuits need to be designed to manage the heat generated during vehicle operation, thereby enabling real-time management, cooling, and temperature protection of the temperature of electronic components inside the vehicle. Therefore, accurately monitoring the temperature of various parts inside the vehicle and using the temperature signal as a signal to control heat dissipation and cooling has become the main means of achieving thermal management and reducing the thermal failure of electronic components.

[0003] Since it's impossible to directly measure the chip temperature during system operation, existing technologies typically employ temperature sampling circuits to sense changes in ambient temperature and convert them into real-time electrical signals. Based on the value of these real-time electrical signals, the chip temperature is indirectly estimated by consulting a pre-measured curve showing the relationship between the electrical signal and temperature. However, because the relationship between the output electrical signal and temperature within the temperature sampling circuit itself is non-linear, and even small errors in the power supply voltage compared to the calibration value can lead to significant errors in the temperature readings from the sampling circuit under extreme temperatures, resulting in inaccurate temperature detection values.

[0004] Therefore, existing technologies still need to be improved and developed. Utility Model Content

[0005] In view of the shortcomings of the prior art, the purpose of this utility model is to provide a temperature sampling compensation circuit, temperature measurement system and heat dissipation system based on a microcontroller. The reference voltage circuit collects and outputs the reference voltage at the current moment in real time. The collected reference voltage value replaces the calibration value of the power supply voltage, thereby compensating for the error between the actual temperature and the temperature detection result and improving the accuracy of temperature detection.

[0006] The technical solution of this utility model is as follows: Firstly, this utility model provides a temperature sampling compensation circuit based on a microcontroller, which includes a temperature sampling circuit, a microcontroller, and a reference voltage circuit; wherein... The power supply terminal of the temperature sampling circuit is connected to the power supply voltage, and the temperature voltage detection terminal of the temperature sampling circuit is connected to the temperature voltage detection terminal of the microcontroller, which is used to collect and output the temperature detection voltage to the temperature voltage detection terminal of the microcontroller. The power supply terminal of the reference voltage circuit is connected to the power supply terminal of the temperature sampling circuit, and the reference terminal of the reference voltage circuit is connected to the power supply voltage detection terminal of the microcontroller, for collecting and outputting the reference voltage to the power supply voltage detection terminal of the microcontroller. The power supply voltage detection terminal of the microcontroller is used to collect the reference voltage, and the microcontroller is used to obtain compensated temperature data based on the received temperature detection voltage and reference voltage.

[0007] In a further embodiment of this invention, the temperature sampling circuit includes a first resistor, a second resistor, a third resistor, and a temperature detection unit; one end of the first resistor is connected to the temperature voltage detection terminal of the microcontroller, the other end of the first resistor is connected to one end of the temperature detection unit, and the other end of the temperature detection unit is grounded; one end of the second resistor is connected to the common terminal of the temperature voltage detection terminal of the microcontroller and the first resistor, and the other end of the second resistor is grounded; one end of the third resistor is connected to the power supply voltage, and the other end of the third resistor is connected to the common terminal of the first resistor and the second resistor.

[0008] In a further embodiment of this invention, the temperature detection unit is a thermistor.

[0009] In a further embodiment of this invention, the reference voltage circuit includes a fourth reference resistor and a fifth reference resistor. One end of the fourth reference resistor is connected to the power supply voltage, and the other end of the fourth reference resistor is connected to one end of the fifth reference resistor. The other end of the fifth reference resistor is grounded, and the power supply voltage detection terminal of the microcontroller is connected to the common terminal of the fourth and fifth reference resistors.

[0010] In a further embodiment of this invention, the fourth reference resistor and the fifth reference resistor are sampling accuracy resistors, the accuracy of which is 0.1%, and the resistance value drifts with temperature by 50ppm / ℃.

[0011] In a further embodiment of this invention, the resistance values ​​of the fourth reference resistor and the fifth reference resistor are the same.

[0012] In a further embodiment of this invention, the fourth reference resistor is one-half, one-third, or one-quarter of the resistance value of the fifth reference resistor.

[0013] Secondly, this utility model also provides a temperature measurement system, which includes the aforementioned microcontroller-based temperature sampling compensation circuit and motor; wherein, the motor is used to convert electrical energy into rotational kinetic energy and generate heat, and the microcontroller-based temperature sampling compensation circuit is disposed on the motor and used to detect the operating temperature of the motor.

[0014] Thirdly, this utility model also provides a heat dissipation system, which includes: an electronic pump, a heat-conducting medium, a loop pipe, a heat-generating working unit, a heat dissipation unit, and the aforementioned microcontroller-based temperature sampling and compensation circuit; wherein, the heat-generating working unit is connected to the loop pipe and communicates with the heat dissipation unit through the loop pipe; the heat-conducting medium is located in the loop pipe and is used to absorb the heat generated by the heat-generating working unit during operation; The loop pipe is used to carry the heat-conducting medium and to circulate the heat-conducting medium in the heat dissipation unit to the heat dissipation unit; The heat dissipation unit is located on the loop pipe and is used to absorb, conduct, and dissipate heat from the heat-conducting medium. The electronic pump is connected to the circuit pipe and is used to drive the heat transfer medium to circulate back from the heat dissipation unit to the heat generation unit.

[0015] This invention provides a microcontroller-based temperature sampling compensation circuit, temperature measurement system, and heat dissipation system. The microcontroller-based temperature sampling compensation circuit includes a temperature sampling circuit, a microcontroller, and a reference voltage circuit. The power supply terminal of the temperature sampling circuit is connected to a power supply voltage. The temperature voltage detection terminal of the temperature sampling circuit is connected to the temperature voltage detection terminal of the microcontroller, used to collect and output the temperature detection voltage to the microcontroller's temperature voltage detection terminal. The power supply terminal of the reference voltage circuit is connected to the power supply terminal of the temperature sampling circuit. The reference terminal of the reference voltage circuit is connected to the power supply voltage detection terminal of the microcontroller, used to collect and output the reference voltage to the microcontroller's power supply voltage detection terminal. The microcontroller's power supply voltage detection terminal is used to collect the reference voltage, and the microcontroller uses the received temperature detection voltage and reference voltage to obtain compensated temperature data. This invention, by setting a reference voltage circuit connected in parallel with the temperature sampling circuit, allows the reference voltage circuit to detect the actual value of the reference voltage in real time. Thus, the microcontroller obtains a temperature detection value close to the actual value based on the actual value of the reference voltage and the temperature detection voltage signal, reducing the error between the temperature detection value and the actual temperature, and achieving temperature detection compensation. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this utility model or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0017] Figure 1 This is a circuit diagram of a temperature sampling circuit in the existing technology.

[0018] Figure 2 This is a structural block diagram of the temperature sampling and compensation circuit based on a microcontroller in this utility model.

[0019] Figure 3 This is a circuit diagram of the temperature sampling compensation circuit based on a microcontroller in this utility model.

[0020] Figure 4 The thermistor R in this utility model NTC2 Temperature-resistance curve.

[0021] The markings in the attached diagram are as follows: 100, temperature sampling circuit; 200, reference voltage circuit. Detailed Implementation

[0022] This utility model provides a temperature sampling compensation circuit, a temperature measurement system, and a heat dissipation system based on a microcontroller. To make the objectives, technical solutions, and effects of this utility model clearer and more explicit, the following detailed description, with reference to the accompanying drawings and examples, further illustrates the utility model. It should be understood that the specific embodiments described herein are merely illustrative of the utility model and are not intended to limit the scope of the utility model.

[0023] In the implementation methods and claims, unless otherwise specified in the text, the terms "a," "an," "the," and "the" may also include plural forms. If the embodiments of this utility model involve descriptions of "first," "second," etc., such descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0024] It should be further understood that the term "comprising" as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, "connected" or "coupled" as used herein can include wireless connections or wireless coupling. The term "and / or" as used herein includes all or any unit and all combinations of one or more associated listed items.

[0025] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0026] Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by this utility model.

[0027] The inventors discovered that in modern industry and electronic equipment, the overall heat dissipation performance of components directly affects system stability and lifespan. Insufficient heat dissipation can cause the temperature of heat-generating components to rise, potentially leading to fires. With the promising future of electric vehicles, their production and sales are increasing year by year, and they are expected to completely replace traditional gasoline-powered vehicles in the future. Compared to traditional vehicles, electric vehicles emit no exhaust fumes, making them very environmentally friendly. However, electric vehicles use electric motors as their power source, and during vehicle operation, the motor and its controller generate a large amount of heat, which can severely affect the lifespan of the motor and controller; therefore, cooling is essential. To ensure the safety of rechargeable consumer electronics products (such as Bluetooth headsets), extremely high requirements are placed on battery charging and discharging management and temperature protection.

[0028] Currently, automotive electronic water pumps or electronic oil pumps mostly use dedicated chips for driving BLDC (Brushless DC Motor) motors, which incorporate an LDO (low dropout regulator). Preferably, the driver chip is model E523.06, which has a built-in 3.3V LDO with an output range of 3-3.6V and poor output accuracy. In existing technology, the temperature sampling circuit uses a temperature sensor with a thermistor R... NTC2 For example, the thermistor R NTC2 The resistance of a thermistor changes with temperature; this includes the thermistors with a positive temperature coefficient (PTC). NTC2 Or a negative temperature coefficient (NTC) thermistor R NTC2 Taking NTC as an example, the relationship between the resistance of NTC and temperature is non-linear. The relationship between ambient temperature and the resistance of NTC is as follows: Figure 4As shown in the figure, it can be seen that the resistance value changes with temperature in the following way: the lower the ambient temperature, the faster the resistance value of the NTC changes, and the higher its sensitivity.

[0029] When the thermistor R NTC2 When a negative temperature coefficient thermistor is selected, the values ​​of the negative temperature coefficient thermistor in the range of -40℃ to -20℃ are shown in Table 1.

[0030] Table 1

[0031] For example, the temperature sampling circuit 100 in the prior art is as follows: Figure 1 As shown, it includes a temperature sensing resistor R. NTC1 The system comprises a first sampling resistor R10, a second sampling resistor R20, and a third sampling resistor R30. One end of the first sampling resistor R10 is connected to the temperature and voltage detection terminal ADC1 of the microcontroller, and the other end of the first sampling resistor R10 is connected to the temperature detection resistor R... NTC1 One end is connected to the temperature sensing resistor R. NTC1 The other end is grounded; one end of the third sampling resistor R30 is connected to the power supply voltage VDD, and the other end of the third sampling resistor R30 is connected to the common terminal of the first sampling resistor R10 and the temperature voltage detection terminal ADC1 of the microcontroller; one end of the second sampling resistor R20 is connected to the common terminal of the third sampling resistor R30 and the first sampling resistor R10, and the other end of the second sampling resistor R20 is grounded. The temperature sampling method uses each sampling resistor and the temperature detection resistor R... NTC1 The voltage is divided, and the voltage value after voltage division is acquired by the temperature and voltage detection terminal ADC1 of the microcontroller. The temperature detection resistor R is then obtained based on the voltage value. NTC1 Resistance value. Specifically, since the resistance values ​​of each resistor in the circuit are predetermined, the temperature sensing resistor R... NTC1 The resistance value can be calculated using Ohm's law or obtained by looking up a mapping in a pre-defined lookup table. The specific implementation of this calculation or mapping is existing technology in this field and will not be elaborated upon here. The first sampling resistor R10 is 1KΩ, the second sampling resistor R20 is 20KΩ, and the third sampling resistor R30 is 10KΩ. According to the theoretical calculation formula, the temperature sensing resistor R... NTC1 The formula for calculating resistance is:

[0032] Among them, V ADC1 The temperature sensing resistor R is obtained by the ADC1 of the microcontroller's temperature and voltage detection terminal. NTC1The resistance value corresponds to the temperature sensing voltage. 3.3V is the theoretical value of the power supply voltage VDD, which is fixed here. Therefore, the temperature sensing resistor R corresponding to this voltage can be obtained according to the above formula. NTC1 The resistance value is determined, and then the current temperature is obtained by referring to Table 1. This method means that even a small deviation in the 3.3V power supply of the temperature sampling circuit 100 can lead to a large temperature sampling error at low temperatures. For example, if the actual power supply voltage VDD connected to the 3.3V network is 3.2V, and the ambient temperature is -40℃, Table 1 shows that the temperature sensing resistor R... NTC1 The resistance is 195.652KΩ. According to the formula for the temperature detection voltage detected by the microcontroller's signal detection terminal, we have:

[0033] Among them, V 3.3V Given the power supply voltage VDD, which is 3.2V in this case, the detected temperature voltage is approximately 2.063V. The microcontroller calculates the temperature detection resistance R based on the port voltage acquired by the signal detection terminal. NTC1 When the resistance value is set, the actual value of the power supply voltage VDD parameter may deviate, but the temperature sensing resistor R... NTC1 The resistance value is still calculated based on 3.3V. Therefore, the temperature sensing resistance R is calculated according to the theoretical values ​​of the temperature sensing voltage and the power supply voltage VDD. NTC1 The theoretical resistance is approximately 99.39 KΩ. Referring to Table 1, the temperature sensing resistor R... NTC1 The resistance reading indicates a current temperature of -27℃ to -28℃, which differs from the actual temperature of -40℃ by 12℃ to 13℃. Therefore, the temperature sensing resistor R... NTC1 Significant measurement errors occur at low temperatures. To address this error, existing temperature detection compensation methods include: 1) Real-time acquisition and detection of the actual 3.3V reference voltage using a chip, maintaining the reference voltage output at the circuit design requirement of 3.3V for compensation; or 2) Adding several reference resistor voltage divider units, with the control module determining the error formula and correction coefficient based on the voltage dataset output from the ADC unit and multiple reference voltages. However, for automotive electronic water pump and oil pump controllers, due to high integration and limited space, both of these compensation methods require significant resources and are costly.

[0034] To address the technical problems existing in the prior art, firstly, please refer to... Figure 2This invention provides a temperature sampling compensation circuit based on a microcontroller, comprising a temperature sampling circuit 100, a microcontroller 1, and a reference voltage circuit 200. The power supply terminal of the temperature sampling circuit 100 is connected to a power supply voltage VDD. The temperature voltage detection terminal ADC1 of the temperature sampling circuit 100 is connected to the temperature voltage detection terminal ADC1 of the microcontroller 1, and is used to collect and output a temperature detection voltage to the microcontroller 1. The power supply terminal of the reference voltage circuit 200 is connected to the power supply terminal of the temperature sampling circuit 100. The reference terminal of the reference voltage circuit 200 is connected to the power supply voltage detection terminal ADC2 of the microcontroller 1, and is used to collect and output a reference voltage to the microcontroller 1. The power supply voltage detection terminal ADC2 of the microcontroller 1 is used to collect the reference voltage, and the microcontroller 1 is used to obtain compensated temperature data based on the received temperature detection voltage and reference voltage.

[0035] Specifically, this invention adds a reference voltage sampling channel as a reference voltage circuit 200 to the original temperature sampling circuit 100. This introduces the actual value of the power supply voltage VDD as the reference voltage when acquiring the actual ambient temperature, instead of a fixed 3.3V. Compensated temperature data can be obtained through the reference voltage and the temperature detection voltage. The calculation steps for obtaining the compensated temperature data through the sampled reference voltage and temperature detection voltage can employ any existing calculation method, which will not be elaborated upon here. This eliminates the temperature acquisition deviation caused by the error in the input power supply voltage VDD of the temperature sampling circuit 100, and outputs compensated temperature data after temperature compensation. The microcontroller 1 can be any type of microcontroller unit (MCU). For example, the microcontroller 1 can be an E523.06 to implement a cooling water pump, or it can be an ESP8266, ESP32, 51 microcontroller, or STM32, etc.

[0036] Please refer to the preferred embodiments of this utility model as well. Figure 2 and Figure 3The temperature sampling circuit 100 includes a first resistor R1, a second resistor R2, a third resistor R3, and a temperature detection unit 110. One end of the first resistor R1 is connected to the temperature voltage detection terminal ADC1 of the microcontroller 1, and the other end of the first resistor R1 is connected to one end of the temperature detection unit 110, the other end of which is grounded. One end of the second resistor R2 is connected to the common terminal of the temperature voltage detection terminal ADC1 of the microcontroller 1 and the first resistor R1, and the other end of the second resistor R2 is grounded. One end of the third resistor R3 is connected to the power supply voltage VDD, and the other end of the third resistor R3 is connected to the common terminal of the first resistor R1 and the second resistor R2. Specifically, the first resistor R1 and the temperature detection unit 110 are connected in series, and then the two are connected in parallel with the second resistor R2, and together as a whole, they are connected in series with the third resistor R3 between the power supply voltage VDD and ground. With the first resistor R1, the second resistor R2, and the third resistor R3 participating in voltage division, when the ambient temperature changes, the parameters of the temperature detection unit 110 change, causing a corresponding change in the voltage of the temperature voltage detection terminal ADC1 of the microcontroller 1. The voltage value of the temperature voltage detection terminal ADC1 is used to obtain the thermistor R... NTC2 The resistance value.

[0037] In a preferred embodiment of this utility model, the temperature detection unit 110 is a thermistor R. NTC2 The thermistor R NTC2 A positive temperature coefficient (PTC) thermistor or a negative temperature coefficient (NTC) thermistor can be selected. The resistance of the PTC thermistor increases with increasing temperature, while the resistance of the NTC thermistor decreases with increasing temperature. Preferably, the thermistor R... NTC2 It is a negative temperature coefficient thermistor.

[0038] Further, the reference voltage circuit 200 includes a fourth reference resistor R4 and a fifth reference resistor R5. One end of the fourth reference resistor R4 is connected to the power supply voltage VDD, and the other end of the fourth reference resistor R4 is connected to one end of the fifth reference resistor R5. The other end of the fifth reference resistor R5 is grounded. The power supply voltage detection terminal ADC2 of the microcontroller 1 is connected to the common terminal of the fourth reference resistor R4 and the fifth reference resistor R5. The fourth reference resistor R4 and the fifth reference resistor R5 are sampling accuracy resistors with an accuracy of 0.1% and a resistance drift of 50ppm / ℃ with temperature. It should be noted that the above-mentioned accuracy requirements and temperature drift are preferred values ​​as examples. They can also be selected to meet high-precision low-temperature drift requirements, thereby avoiding the introduction of new errors by setting high-precision low-temperature drift. The reference voltage circuit 200 can also use several reference resistors for voltage division. The specific number of reference resistors can be determined according to the reference voltage value and the resistance value of each reference resistor.

[0039] In some preferred embodiments of this invention, the fourth reference resistor R4 and the fifth reference resistor R5 have the same resistance value, and the reference voltage is the voltage value after being divided by the fourth reference resistor R4 and the fifth reference resistor R5. That is, in this preferred embodiment, the detected reference voltage is half of the current power supply voltage VDD. In another preferred embodiment of this invention, the fourth reference resistor R4 is half, one-third, or one-quarter of the resistance value of the fifth reference resistor R5. The fourth reference resistor R4 and the fifth reference voltage are used to divide the power supply voltage VDD to obtain a reference voltage for indicating the actual value of the power supply voltage VDD. The resistance values ​​and specific ratio of the fourth and fifth reference voltages can be set according to the relationship between the reference voltage and the compensation temperature data. When the correspondence between the reference voltage and the compensation temperature data is fixed, the resistance ratio of the fourth reference resistor R4 and the fifth reference resistor R5 is also determined accordingly, which will not be elaborated further here.

[0040] Specifically, the temperature sampling compensation circuit based on the microcontroller 1 described in this utility model is as follows: Figure 3As shown, in the original temperature sampling circuit 100, a resistor voltage divider unit is added as a reference voltage circuit 200 to collect the actual voltage value of the 3.3V power supply voltage VDD. Specifically, the reference voltage circuit 200 uses two fourth reference resistors R4 and R5 with an accuracy of 0.1% and a resistance drift of 50ppm / ℃ with temperature. The resistance values ​​of the fourth reference resistor R4 and the fifth reference resistor R5 are the same, and the high-precision, low-temperature-drift resistors avoid introducing new errors. One end of the fourth reference resistor R4 is connected to the 3.3V power supply network of the temperature sensor, and the other end of the fourth reference resistor R4 is connected to one end of the fifth reference resistor R5. The other end of the fifth reference resistor R5 is grounded. The connection point of the fourth reference resistor R4 and the fifth reference resistor R5 is the sampling point of the 3.3V network voltage, which is connected to the power supply voltage detection terminal ADC2 of the microcontroller 1. In one sampling cycle, the power supply voltage detection terminal ADC2 of the microcontroller 1 collects the actual value of the 3.3V reference voltage, and the channel of the temperature voltage detection terminal ADC1 collects the thermistor R... NTC2 The voltage division value. This is obtained by obtaining the thermistor R. NTC2 When the current resistance value is obtained, the fixed power supply voltage VDD is replaced with a variable value, and the actual sampled value of the 3.3V network voltage, i.e., the reference voltage V3.3V, is introduced. Specifically, the thermistor R... NTC2 The resistance formula is:

[0041] Specifically, in actual operation, the thermistor R NTC2 The resistance value can be obtained according to the calculation formula, by looking up mapping information using the reference voltage and temperature detection voltage, or by other methods, the specific implementation of which is existing technology. Based on the actual collected thermistor R... NTC2 The current ambient temperature can be obtained by looking up the resistance value in Table 1. Therefore, this invention achieves a high-precision temperature sampling scheme that eliminates power supply voltage errors under limited resources by adding two extremely low-cost sampling resistors to acquire the power supply voltage of the temperature sampling circuit 100.

[0042] Secondly, this utility model also provides a temperature measurement system, which includes the aforementioned microcontroller-based temperature sampling compensation circuit and a motor; wherein, the motor is used to convert electrical energy into rotational kinetic energy and generate heat, and the microcontroller-based temperature sampling compensation circuit is disposed on the motor and used to detect the operating temperature of the motor. Specific details are as described in the embodiment of the microcontroller-based temperature sampling compensation circuit, and will not be repeated here.

[0043] Thirdly, this utility model also provides a heat dissipation system, which includes: an electronic pump, a thermally conductive medium, a loop pipe, a heat-generating working unit, a heat dissipation unit, and the aforementioned microcontroller-based temperature sampling and compensation circuit; wherein, the heat-generating working unit is connected to the loop pipe and communicates with the heat dissipation unit through the loop pipe; the thermally conductive medium is located in the loop pipe and is used to absorb the heat generated by the heat-generating working unit during operation; the loop pipe is used to carry the thermally conductive medium and to circulate the thermally conductive medium in the heat dissipation unit to the heat dissipation unit; the heat dissipation unit is located on the loop pipe and is used to absorb, conduct, and dissipate the heat in the thermally conductive medium; the electronic pump is connected to the loop pipe and is used to drive the thermally conductive medium to circulate back from the heat dissipation unit to the heat-generating working unit. Specifically, the thermally conductive medium is used to absorb the heat generated by the heat-generating working unit, and the heat dissipation unit is used to conduct and dissipate the heat in the thermally conductive medium, forming a heat dissipation loop; the microcontroller-based temperature sampling and compensation circuit is set in the heat dissipation loop for temperature detection. The specific implementation of the temperature sampling compensation circuit based on a microcontroller is described in the example, and will not be repeated here.

[0044] The electronic pump can be an electronic water pump, an electronic oil pump, or any other electronic pump used for refrigeration. Specifically, when the electronic pump is an electronic water pump, the heat transfer medium is water; when the electronic pump is an electronic oil pump, the heat transfer medium is an oily substance. In modern industrial and electronic equipment fields, electronic water pumps are widely used in various scenarios due to their ability to achieve precise flow control and high output efficiency. Especially in new energy vehicles, electronic water pumps are the core power component of the entire cooling system, undertaking the important task of circulating cooling for key components such as power batteries and drive motors, playing a crucial role in ensuring the safe and stable operation of new energy vehicles. In some high-end industrial equipment and precision electronic instruments, electronic water pumps are also used for liquid circulation and heat dissipation. The microcontroller-based temperature sampling compensation circuit measures the temperature in the system by corresponding analog voltage values ​​to calibrated temperature values, ensuring that power devices will not have their output power limited due to excessive temperature.

[0045] This invention provides a microcontroller-based temperature sampling compensation circuit, temperature measurement system, and heat dissipation system. The microcontroller-based temperature sampling compensation circuit includes a temperature sampling circuit, a microcontroller, and a reference voltage circuit. The power supply terminal of the temperature sampling circuit is connected to a power supply voltage. The temperature voltage detection terminal of the temperature sampling circuit is connected to the temperature voltage detection terminal of the microcontroller, used to collect and output the temperature detection voltage to the microcontroller's temperature voltage detection terminal. The power supply terminal of the reference voltage circuit is connected to the power supply terminal of the temperature sampling circuit. The reference terminal of the reference voltage circuit is connected to the power supply voltage detection terminal of the microcontroller, used to collect and output the reference voltage to the microcontroller's power supply voltage detection terminal. The microcontroller's power supply voltage detection terminal is used to collect the reference voltage, and the microcontroller uses the received temperature detection voltage and reference voltage to obtain compensated temperature data. This invention, by setting a reference voltage circuit connected in parallel with the temperature sampling circuit, allows the reference voltage circuit to detect the actual value of the reference voltage in real time. Thus, the microcontroller obtains a temperature detection value close to the actual value based on the actual value of the reference voltage and the temperature detection voltage signal, reducing the error between the temperature detection value and the actual temperature, and achieving temperature detection compensation. Meanwhile, this invention proposes a temperature sampling system for an automotive electronic pump that includes a self-monitoring voltage reference channel. The structural improvement over the traditional single-channel thermistor sampling circuit effectively eliminates errors in the final temperature acquisition caused by power supply errors.

[0046] It should be understood that the application of this utility model is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A temperature sampling and compensation circuit based on a microcontroller, characterized in that, It includes a temperature sampling circuit, a microcontroller, and a reference voltage circuit; among which, The power supply terminal of the temperature sampling circuit is connected to the power supply voltage, and the temperature voltage detection terminal of the temperature sampling circuit is connected to the temperature voltage detection terminal of the microcontroller, which is used to collect and output the temperature detection voltage to the temperature voltage detection terminal of the microcontroller. The power supply terminal of the reference voltage circuit is connected to the power supply terminal of the temperature sampling circuit, and the reference terminal of the reference voltage circuit is connected to the power supply voltage detection terminal of the microcontroller, for collecting and outputting the reference voltage to the power supply voltage detection terminal of the microcontroller. The power supply voltage detection terminal of the microcontroller is used to collect the reference voltage, and the microcontroller is used to obtain compensated temperature data based on the received temperature detection voltage and reference voltage.

2. The temperature sampling and compensation circuit based on a microcontroller according to claim 1, characterized in that, The temperature sampling circuit includes a first resistor, a second resistor, a third resistor, and a temperature detection unit; one end of the first resistor is connected to the temperature voltage detection terminal of the microcontroller, the other end of the first resistor is connected to one end of the temperature detection unit, and the other end of the temperature detection unit is grounded; one end of the second resistor is connected to the common terminal of the temperature voltage detection terminal of the microcontroller and the first resistor, and the other end of the second resistor is grounded; one end of the third resistor is connected to the power supply voltage, and the other end of the third resistor is connected to the common terminal of the first resistor and the second resistor.

3. The temperature sampling and compensation circuit based on a microcontroller according to claim 2, characterized in that, The temperature detection unit is a thermistor.

4. The temperature sampling and compensation circuit based on a microcontroller according to claim 1, characterized in that, The reference voltage circuit includes a fourth reference resistor and a fifth reference resistor. One end of the fourth reference resistor is connected to the power supply voltage, and the other end of the fourth reference resistor is connected to one end of the fifth reference resistor. The other end of the fifth reference resistor is grounded. The power supply voltage detection terminal of the microcontroller is connected to the common terminal of the fourth and fifth reference resistors.

5. The temperature sampling and compensation circuit based on a microcontroller according to claim 4, characterized in that, The fourth and fifth reference resistors are sampling accuracy resistors, with an accuracy of 0.1% and a resistance drift of 50 ppm / ℃ with temperature.

6. The temperature sampling and compensation circuit based on a microcontroller according to claim 4, characterized in that, The fourth reference resistor and the fifth reference resistor have the same resistance value.

7. The temperature sampling and compensation circuit based on a microcontroller according to claim 4, characterized in that, The fourth reference resistor is one-half, one-third, or one-quarter of the resistance value of the fifth reference resistor.

8. A temperature measurement system, characterized in that, The invention includes a microcontroller-based temperature sampling compensation circuit and a motor as described in any one of claims 1-7; wherein the motor is used to convert electrical energy into rotational kinetic energy and generate heat, and the microcontroller-based temperature sampling compensation circuit is disposed on the motor and used to detect the operating temperature of the motor.

9. A heat dissipation system, characterized in that, The heat dissipation system includes: an electronic pump, a heat-conducting medium, a loop pipe, a heat-generating working unit, a heat dissipation unit, and a microcontroller-based temperature sampling and compensation circuit as described in any one of claims 1-7; wherein, the heat-generating working unit is connected to the loop pipe and communicates with the heat dissipation unit through the loop pipe; the heat-conducting medium is located in the loop pipe and is used to absorb the heat generated when the heat-generating working unit is working; The loop pipe is used to carry the heat-conducting medium and to circulate the heat-conducting medium in the heat dissipation unit to the heat dissipation unit; The heat dissipation unit is located on the loop pipe and is used to absorb, conduct, and dissipate heat from the heat-conducting medium. The electronic pump is connected to the circuit pipe and is used to drive the heat transfer medium to circulate back from the heat dissipation unit to the heat generation unit.