Method and device for optimizing high and low temperature precision of NTC (Negative Temperature Coefficient) sampling circuit

By dynamically switching the sampling circuit according to the temperature range, the problem of inaccurate sampling of NTC resistors at high and low temperatures is solved, sampling accuracy and system reliability are improved, and additional costs and signal delay are avoided.

CN119051655APending Publication Date: 2024-11-29HANGZHOU LIVOLTEK POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410950507.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The temperature drop of NTC resistors does not significantly at high temperatures, and the resistance value is too large at low temperatures, resulting in inaccurate sampling voltage of the microcontroller's AD port and large errors. The existing methods have problems in introducing additional costs and signal delays.

Method used

By connecting the NTC resistor to different sampling units, a high-temperature or low-temperature sampling circuit is formed according to the temperature range, and the sampling method is determined by the pressure difference value, which avoids additional filtering circuits and temperature sensors, and electrical parameter detection is directly completed through the controller.

Benefits of technology

It improves the sampling accuracy of NTC resistors, solves the problem of inaccurate sampling at high and low temperatures in a targeted manner, increases the reliability and accuracy of the system, and avoids additional costs and signal delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119051655A_ABST
    Figure CN119051655A_ABST
Patent Text Reader

Abstract

The invention provides an NTC sampling circuit high and low temperature precision optimization method and device, and belongs to the technical field of photovoltaic energy storage. The method comprises the following steps: S1, acquiring corresponding first circuit output voltages of a first sampling circuit at different temperatures; s2, calculating a difference value of two first circuit output voltages corresponding to two adjacent temperatures to obtain a voltage difference; s3, if the pressure difference is smaller than a first preset value, a corresponding actual temperature range is obtained through calculation; s4, if the actual temperature range is larger than the first preset temperature, the second sampling unit is connected with the NTC resistor to form a high-temperature sampling circuit, and the NTC resistor is sampled according to the high-temperature sampling circuit; and S5, if the actual temperature range is smaller than the second preset temperature, connecting the third sampling unit with the NTC resistor to form a low-temperature sampling circuit, and sampling the NTC resistor according to the low-temperature sampling circuit. The high-temperature sampling circuit and the low-temperature sampling circuit are respectively formed according to the high-temperature and low-temperature conditions to detect the temperature value, so that the precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of photovoltaic energy storage technology, and in particular to a method and device for optimizing high and low temperature accuracy of an NTC sampling circuit. Background Art

[0002] NTC (Negative Temperatrue Coefficient) is a resistor with a negative temperature coefficient. Its resistance decreases exponentially with the increase of temperature. It cannot generate signal output by itself and requires excitation voltage or current to measure the resistance of the sensor, that is, a small current flows through the sensor to generate voltage. The ADC of the microcontroller collects this voltage to calculate the resistance of the NTC at this time and then deduce its temperature value. However, the temperature drop of the NTC resistor is not obvious at high temperature, and the resistance is too large at low temperature, which leads to inaccurate voltage sampling at the AD port of the microcontroller at high temperature and large error.

[0003] Power electronic devices are devices that perform power conversion and require switching tubes for boosting, inversion, and rectification. Switching tubes generate a lot of heat when working, which will affect the performance and life of the inverter, so temperature monitoring is required to take timely measures for regulation. NTC temperature sampling circuit is a commonly used temperature monitoring method. However, the sampling accuracy of NTC resistors is affected by temperature drift, thermal cross-linking effects, and the nonlinear characteristics of its own resistance value changing with temperature, resulting in inaccurate sampling at high and low temperatures.

[0004] There are three main methods to solve this problem:

[0005] 1. Temperature compensation can be performed by adding a temperature sensor (such as a PTC resistor or LM35 temperature sensor) to the circuit. The additional temperature sensor is used to collect ambient temperature information and the measured value of the NTC resistor is corrected based on this information to improve the sampling accuracy.

[0006] 2. According to the nonlinear characteristics of NTC resistors, linear calibration is performed. Through experimental measurement, a linear relationship between temperature and resistance is established to improve sampling accuracy.

[0007] 3. Add appropriate filter capacitors in the sampling circuit to filter out interference signals and noise, improve signal stability and reliability, and thus improve temperature sampling accuracy.

[0008] These three methods all have the problem of introducing additional costs and signal delays. Summary of the invention

[0009] In order to solve the above problems, the embodiments of the present application provide a method and device for optimizing the high and low temperature accuracy of an NTC sampling circuit.

[0010] In a first aspect, the present application provides a method for optimizing the high and low temperature accuracy of an NTC sampling circuit, comprising the following steps:

[0011] S1: Connecting a first sampling unit to an NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures;

[0012] S2: Calculate the difference between the output voltages of the two first circuits corresponding to two adjacent temperatures to obtain a voltage difference;

[0013] S3: If the pressure difference is not less than the first preset value, sampling the NTC resistor according to the first sampling circuit; if the pressure difference is less than the first preset value, calculating the two adjacent temperatures to obtain a corresponding actual temperature range;

[0014] S4: If the actual temperature range is greater than the first preset temperature, the second sampling unit is connected to the NTC resistor to form a high temperature sampling circuit, and the NTC resistor is sampled according to the high temperature sampling circuit;

[0015] S5: If the actual temperature range is less than the second preset temperature, the third sampling unit is connected to the NTC resistor to form a low-temperature sampling circuit, and the NTC resistor is sampled according to the low-temperature sampling circuit.

[0016] Preferably, the first preset value is 0.008-0.012V.

[0017] Preferably, the second sampling unit includes a first power supply, a first single-chip microcomputer, and a first resistor; one end of the first power supply is connected to one end of the NTC resistor, one end of the first resistor and one end of the first single-chip microcomputer are respectively connected to the other end of the NTC resistor, and the other end of the first resistor is connected to the ground to form a high-temperature sampling circuit.

[0018] Preferably, the third sampling unit includes a second power supply, a second single-chip computer, a second resistor, and a third resistor; one end of the NTC resistor is connected to the second power supply, and the other end is connected to the second single-chip computer, the second resistor is connected to the NTC resistor in parallel, and one end of the third resistor is connected to one end of the NTC resistor close to the second single-chip computer, and the other end is connected to the ground, so as to form a low-temperature sampling circuit.

[0019] Preferably, the calculation of the first resistance value of the first resistor includes: obtaining the first boundary temperature T h.min To the second boundary temperature T h.max The first temperature range between Calculate the first boundary temperature T h.min The corresponding first boundary resistance TR h.min ,according to Calculate the second boundary temperature T h.maxThe corresponding second boundary resistance TR h.max , where T0 is the first preset reference temperature when the high temperature sampling circuit is sampling, R0 is the first reference resistance value of the NTC resistor at the first preset reference temperature, and B is a constant; according to Calculate and obtain the first resistance R1 corresponding to the first resistor, where V cc is the voltage value of the first power supply; a resistor with a first resistance value is selected as the first resistor, and a high temperature sampling circuit is formed according to the first resistor.

[0020] Preferably, the calculation of the second resistance value of the second resistor and the third resistance value of the third resistor includes: obtaining the temperature T l.min To the fourth boundary temperature T l.max The first temperature range between Calculate the third boundary temperature T l.min The corresponding third boundary resistance TR l.min ,according to Calculate and obtain the fourth boundary temperature T l.max The corresponding second boundary resistance TR l.max , where T0 is the second preset reference temperature when the low temperature sampling circuit is sampling, R0 is the second reference resistance value of the NTC resistor at the second preset reference temperature, and B is a constant; according to Calculate and obtain the second resistance value R1 of the second resistor and the third resistance value R2 of the third resistor, where V cc is the voltage value of the second power supply; a resistor with the second resistance value is selected as the second resistor, and a resistor with the third resistance value is selected as the third resistor, and a low-temperature sampling circuit is formed according to the second resistor and the third resistor.

[0021] Preferably, the first sampling unit includes a third power supply and a third single-chip microcomputer; two ends of the NTC resistor are respectively connected to the third power supply and the third single-chip microcomputer to form a first sampling circuit.

[0022] In a second aspect, the embodiment of the present application provides a device for optimizing the high and low temperature accuracy of an NTC sampling circuit, comprising:

[0023] A first sampling module, used for connecting the first sampling unit and the NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures;

[0024] A first calculation module, used for calculating the difference between two first circuit output voltages corresponding to two adjacent temperatures to obtain a voltage difference;

[0025] A first judgment module is used to sample the NTC resistor according to the first sampling circuit if the pressure difference is not less than the first preset value, and to calculate the two adjacent temperatures to obtain a corresponding actual temperature range if the pressure difference is less than the first preset value;

[0026] A high temperature sampling module, for connecting the second sampling unit with the NTC resistor to form a high temperature sampling circuit if the actual temperature range is greater than the first preset temperature, and sampling the NTC resistor according to the high temperature sampling circuit;

[0027] The low temperature sampling module is used to connect the third sampling unit with the NTC resistor to form a low temperature sampling circuit if the actual temperature range is less than the second preset temperature, and to sample the NTC resistor according to the low temperature sampling circuit.

[0028] In a third aspect, an embodiment of the present application 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 steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect or any possible implementation of the first aspect.

[0030] The beneficial effects of the present invention are as follows: when the pressure difference is less than a first preset value, two adjacent temperatures are obtained to obtain a corresponding actual temperature range; if the actual temperature range is greater than the first preset temperature, the second sampling unit is connected to the NTC resistor to form a high-temperature sampling circuit, and the NTC resistor is sampled according to the high-temperature sampling circuit; if the actual temperature range is less than the second preset temperature, the third sampling unit is connected to the NTC resistor to form a low-temperature sampling circuit, and the NTC resistor is sampled according to the low-temperature sampling circuit; by forming a high-temperature sampling circuit and a low-temperature sampling circuit respectively for detecting temperature values ​​according to high and low temperature conditions, the accuracy is increased, and the problem of inaccurate sampling at high and low temperatures is specifically solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A schematic diagram of a flow chart of a method for optimizing high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of the structure of a high and low temperature precision optimization device for an NTC sampling circuit provided in an embodiment of the present application;

[0034] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 4 An operation flow chart of a method for optimizing high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application;

[0036] Figure 5 A circuit diagram of a high temperature sampling circuit in a method for optimizing high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application;

[0037] Figure 6 A circuit diagram of a low-temperature sampling circuit in a method for optimizing high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application;

[0038] Figure 7 A fitting curve diagram of TR resistance and temperature in a high and low temperature precision optimization method for an NTC sampling circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0040] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0041] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0042] See also Figure 1 . Figure 1 : is a flow chart of a method for optimizing the high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application. In an embodiment of the present application, the method comprises the following steps:

[0043] S1: Connecting a first sampling unit to an NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures;

[0044] S2: Calculate the difference between the output voltages of the two first circuits corresponding to two adjacent temperatures to obtain a voltage difference;

[0045] S3: If the pressure difference is not less than the first preset value, sampling the NTC resistor according to the first sampling circuit; if the pressure difference is less than the first preset value, calculating the two adjacent temperatures to obtain a corresponding actual temperature range;

[0046] S4: If the actual temperature range is greater than the first preset temperature, the second sampling unit is connected to the NTC resistor to form a high temperature sampling circuit, and the NTC resistor is sampled according to the high temperature sampling circuit;

[0047] S5: If the actual temperature range is less than the second preset temperature, the third sampling unit is connected to the NTC resistor to form a low-temperature sampling circuit, and the NTC resistor is sampled according to the low-temperature sampling circuit.

[0048] In the embodiment of the present application, the present application does not need to add a filter circuit and a temperature sensor. The detection of relevant electrical parameters is completed by the controller, which improves the reliability and accuracy of the system. According to the temperature characteristic curve of the NTC resistor, the problem of inaccurate sampling at high and low temperatures is solved in a targeted manner.

[0049] In one possible implementation, the first preset value is 0.008-0.012V.

[0050] In the embodiment of the present application, the first preset value may be 0.01V.

[0051] In one possible implementation, the second sampling unit includes a first power supply, a first single-chip microcomputer, and a first resistor; one end of the first power supply is connected to one end of the NTC resistor, one end of the first resistor and one end of the first single-chip microcomputer are respectively connected to the other end of the NTC resistor, and the other end of the first resistor is connected to the ground to form a high-temperature sampling circuit.

[0052] In the examples of this application, see Figure 5 , Figure 5 This is the circuit diagram corresponding to the high temperature sampling circuit.

[0053] In one possible implementation, the third sampling unit includes a second power supply, a second single-chip computer, a second resistor, and a third resistor; one end of the NTC resistor is connected to the second power supply, and the other end is connected to the second single-chip computer, the second resistor is connected to the NTC resistor in parallel, and one end of the third resistor is connected to one end of the NTC resistor close to the second single-chip computer, and the other end is connected to the ground, so as to form a low-temperature sampling circuit.

[0054] In the examples of this application, see Figure 6 , Figure 6 This is the circuit diagram corresponding to the low-temperature sampling circuit.

[0055] In the embodiment of the present application, a table lookup method is used for temperature detection, and a temperature sampling circuit is designed using conventional methods to calculate the voltage value output to the DSP AD terminal at each temperature. Then, a difference is made to obtain a range with a small voltage difference and low resolution. It can be found that the sampling accuracy is poor at low and high temperatures.

[0056] At low temperatures, the resistance change rate of the thermistor TR is large, but its resistance is very different from the voltage divider resistance, resulting in no obvious change in the output voltage at different temperatures, affecting the sampling accuracy. At high temperatures, the calculation formula for the thermistor TR resistance is: T is the absolute temperature. According to the specific NTC characteristics, a fitting curve of TR resistance and temperature is made, see Figure 7 It can be seen that the resistance change rate is small at high temperature, which will cause the output voltage to change insignificantly and affect the accuracy. Therefore, the sampling circuit can be redesigned for high temperature and low temperature conditions respectively.

[0057] In one possible implementation, calculating the first resistance value of the first resistor includes: obtaining the first boundary temperature T h.min To the second boundary temperature T h.max The first temperature range between Calculate the first boundary temperature T h.min The corresponding first boundary resistance TR h.min ,according to Calculate the second boundary temperature T h.max对 The corresponding second boundary resistance TR h.max , where T0 is the first preset reference temperature when the high temperature sampling circuit is sampling, R0 is the first reference resistance value of the NTC resistor at the first preset reference temperature, and B is a constant; according to Calculate and obtain the first resistance R1 corresponding to the first resistor, where V cc is the voltage value of the first power supply; a resistor with a first resistance value is selected as the first resistor, and a high temperature sampling circuit is formed according to the first resistor.

[0058] In the embodiment of the present application, Case 1: According to the high temperature range (T h.min ~Th.max ), calculate the TR resistance at the boundary temperature. The temperature is T h.min hour, Temperature is T h.max hour, Calculate the corresponding A / DV at this time respectively ad The voltage is: The MCU input voltage range is 0~V AD , that is to say, its sampling range is 0~V AD The ADC resolution is 2 n , 0~V AD The voltage is divided into 2 n Equal parts. Precision calculation formula: V AD / 2 n Therefore, the input voltage range at high temperature should be as close to V AD .Depend on The input voltage range V AD Functions about the independent variable R1 The above function is differentiated to obtain its monotonicity, Explore its positive and negative values. The denominator is always greater than 0, and the numerator is a quadratic function of one variable. Verify the number of its solutions. 2 -4ac=4[TR h.min TxD .max (TR h.max -TR h.min )(TR h.max -3TR h.min )]>0, according to the characteristics of its solution, there are two solutions, one positive and one negative. Therefore, F(R1) increases first and then decreases on (0, +∞), and according to its monotonicity, it can be solved to get V AD Corresponding to the first resistance R1 of the first resistor.

[0059] In one embodiment, the calculation of the second resistance value of the second resistor and the third resistance value of the third resistor includes: obtaining the temperature T l.min To the fourth boundary temperature T l.max The first temperature range between Calculate the third boundary temperature T l.min The corresponding third boundary resistance TR l.min ,according to Calculate and obtain the fourth boundary temperature T l.max The corresponding second boundary resistance TR l.max , where T0 is the second preset reference temperature when the low temperature sampling circuit is sampling, R0 is the second reference resistance value of the NTC resistor at the second preset reference temperature, and B is a constant; according to Calculate and obtain the second resistance value R1 of the second resistor and the third resistance value R2 of the third resistor, where Vcc is the voltage value of the second power supply; a resistor with the second resistance value is selected as the second resistor, and a resistor with the third resistance value is selected as the third resistor, and a low-temperature sampling circuit is formed according to the second resistor and the third resistor.

[0060] In the embodiment of the present application, Case 2: The circuit diagram under low temperature is as follows Figure 6 As shown. According to the low temperature range (T l.min ~T l.max ), calculate the TR resistance at the boundary temperature.

[0061] R1>0, R2>0, calculate the corresponding A / DV ad The voltage is: The output voltage range can be set to V l.min ~V l.max , V l.min >0, V l.max <V AD , set according to the needs and actual situation. Let V ad1 =V l.max , V ad2 =V l.min , the second resistance value R1 of the second resistor and the third resistance value R2 of the third resistor are obtained by combined solution.

[0062] In one possible implementation, the first sampling unit includes a third power supply and a third single-chip microcomputer; two ends of the NTC resistor are respectively connected to the third power supply and the third single-chip microcomputer to form a first sampling circuit.

[0063] In the embodiments of the present application, the present application increases the accuracy by separately designing circuits to detect temperature values ​​for high and low temperature conditions; and provides detailed design methods and formulas that are suitable for designing values.

[0064] The following will be combined with the attached Figure 2 , a high and low temperature precision optimization device for NTC sampling circuit provided in the embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 The high and low temperature precision optimization device of the NTC sampling circuit shown is used to implement the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0065] See also Figure 2 , Figure 2 Schematic diagram of the structure of a device for optimizing the high and low temperature accuracy of an NTC sampling circuit provided in an embodiment of the present application. Figure 2 As shown, the device comprises

[0066] A first sampling module 201, used to connect the first sampling unit and the NTC resistor to form a first sampling circuit and obtain the first circuit output voltage corresponding to the first sampling circuit at different temperatures;

[0067] A first calculation module 202 is used to calculate the difference between two first circuit output voltages corresponding to two adjacent temperatures to obtain a voltage difference;

[0068] A first judgment module 203 is used to sample the NTC resistor according to the first sampling circuit if the pressure difference is not less than the first preset value, and to calculate the two adjacent temperatures to obtain a corresponding actual temperature range if the pressure difference is less than the first preset value;

[0069] A high temperature sampling module 204, for connecting the second sampling unit with the NTC resistor to form a high temperature sampling circuit if the actual temperature range is greater than the first preset temperature, and sampling the NTC resistor according to the high temperature sampling circuit;

[0070] The low temperature sampling module 205 is used to connect the third sampling unit with the NTC resistor to form a low temperature sampling circuit if the actual temperature range is less than the second preset temperature, and sample the NTC resistor according to the low temperature sampling circuit.

[0071] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit", "module" and "part" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (Field-Programmable Gate Array, FPGA), an integrated circuit (Integrated Circuit, IC), etc.

[0072] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0073] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0074] The communication bus 302 is used to realize the connection and communication between these components.

[0075] The user interface 303 may include a display screen (Display) and a camera (Camera), and the optional user interface 303 may also include a standard wired interface and a wireless interface.

[0076] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0077] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics central processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, and it can be implemented separately through a chip.

[0078] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0079] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call an NTC sampling circuit high and low temperature accuracy optimization application stored in the memory 305, and specifically perform the following operations:

[0080] S1: Connecting a first sampling unit to an NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures;

[0081] S2: Calculate the difference between the output voltages of the two first circuits corresponding to two adjacent temperatures to obtain a voltage difference;

[0082] S3: If the pressure difference is not less than the first preset value, sampling the NTC resistor according to the first sampling circuit; if the pressure difference is less than the first preset value, calculating the two adjacent temperatures to obtain a corresponding actual temperature range;

[0083] S4: If the actual temperature range is greater than the first preset temperature, the second sampling unit is connected to the NTC resistor to form a high temperature sampling circuit, and the NTC resistor is sampled according to the high temperature sampling circuit;

[0084] S5: If the actual temperature range is less than the second preset temperature, the third sampling unit is connected to the NTC resistor to form a low-temperature sampling circuit, and the NTC resistor is sampled according to the low-temperature sampling circuit.

[0085] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0086] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0087] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0088] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program code.

[0092] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct the relevant hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0093] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for optimizing the high and low temperature accuracy of an NTC sampling circuit, characterized in that: The steps include: S1: Connecting a first sampling unit to an NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures; S2: Calculate the difference between the output voltages of the two first circuits corresponding to two adjacent temperatures to obtain a voltage difference; S3: If the pressure difference is not less than the first preset value, sampling the NTC resistor according to the first sampling circuit; if the pressure difference is less than the first preset value, calculating the two adjacent temperatures to obtain a corresponding actual temperature range; S4: If the actual temperature range is greater than the first preset temperature, the second sampling unit is connected to the NTC resistor to form a high temperature sampling circuit, and the NTC resistor is sampled according to the high temperature sampling circuit; S5: If the actual temperature range is less than the second preset temperature, the third sampling unit is connected to the NTC resistor to form a low-temperature sampling circuit, and the NTC resistor is sampled according to the low-temperature sampling circuit.

2. A method for optimizing high and low temperature accuracy of an NTC sampling circuit as claimed in claim 1, characterized in that: The first preset value is 0.008-0.012V.

3. A method for optimizing high and low temperature accuracy of an NTC sampling circuit as claimed in claim 1 or 2, characterized in that: The second sampling unit includes a first power supply, a first single-chip microcomputer, and a first resistor; one end of the first power supply is connected to one end of the NTC resistor, one end of the first resistor and one end of the first single-chip microcomputer are respectively connected to the other end of the NTC resistor, and the other end of the first resistor is connected to the ground to form a high-temperature sampling circuit.

4. The method for optimizing the high and low temperature accuracy of the NTC sampling circuit according to claim 1 or 2, characterized in that: The third sampling unit includes a second power supply, a second single-chip computer, a second resistor, and a third resistor; one end of the NTC resistor is connected to the second power supply, and the other end is connected to the second single-chip computer, the second resistor is connected to the NTC resistor in parallel, and one end of the third resistor is connected to one end of the NTC resistor close to the second single-chip computer, and the other end is connected to the ground to form a low-temperature sampling circuit.

5. A method for optimizing high and low temperature accuracy of an NTC sampling circuit as claimed in claim 3, characterized in that: The calculation of the first resistance value of the first resistor includes: obtaining the first boundary temperature T h.min To the second boundary temperature T h.max The first temperature range between Calculate the first boundary temperature T h.min The corresponding first boundary resistance TR h.min ,according to Calculate the second boundary temperature T h.max The corresponding second boundary resistance TR h.max , where T0 is the first preset reference temperature when the high temperature sampling circuit is sampling, R0 is the first reference resistance value of the NTC resistor at the first preset reference temperature, and B is a constant; according to Calculate and obtain the first resistance R1 corresponding to the first resistor, where V cc is the voltage value of the first power supply; a resistor with a first resistance value is selected as the first resistor, and a high temperature sampling circuit is formed according to the first resistor.

6. A method for optimizing high and low temperature accuracy of an NTC sampling circuit as claimed in claim 4, characterized in that: The calculation of the second resistance value of the second resistor and the third resistance value of the third resistor includes: obtaining the temperature T l.min To the fourth boundary temperature T l.max The first temperature range between Calculate the third boundary temperature T l.min The corresponding third boundary resistance T l.min ,according to Calculate and obtain the fourth boundary temperature T l.max The corresponding second boundary resistance T l.max , where T0 is the second preset reference temperature when the low temperature sampling circuit is sampling, R0 is the second reference resistance value of the NTC resistor at the second preset reference temperature, and B is a constant; according to Calculate and obtain the second resistance value R1 of the second resistor and the third resistance value R2 of the third resistor, where V cc is the voltage value of the second power supply; a resistor with the second resistance value is selected as the second resistor, and a resistor with the third resistance value is selected as the third resistor, and a low-temperature sampling circuit is formed according to the second resistor and the third resistor.

7. A method for optimizing high and low temperature accuracy of an NTC sampling circuit as claimed in claim 1 or 2, characterized in that: The first sampling unit includes a third power supply and a third single-chip microcomputer; two ends of the NTC resistor are respectively connected to the third power supply and the third single-chip microcomputer to form a first sampling circuit.

8. A device for optimizing high and low temperature precision of NTC sampling circuit, characterized by: include A first sampling module, used for connecting the first sampling unit and the NTC resistor to form a first sampling circuit and obtaining a first circuit output voltage corresponding to the first sampling circuit at different temperatures; A first calculation module, used for calculating the difference between two first circuit output voltages corresponding to two adjacent temperatures to obtain a voltage difference; A first judgment module is used to sample the NTC resistor according to the first sampling circuit if the pressure difference is not less than the first preset value, and to calculate the two adjacent temperatures to obtain a corresponding actual temperature range if the pressure difference is less than the first preset value; A high temperature sampling module, for connecting the second sampling unit with the NTC resistor to form a high temperature sampling circuit if the actual temperature range is greater than the first preset temperature, and sampling the NTC resistor according to the high temperature sampling circuit; The low temperature sampling module is used to connect the third sampling unit with the NTC resistor to form a low temperature sampling circuit if the actual temperature range is less than the second preset temperature, and to sample the NTC resistor according to the low temperature sampling circuit.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.