CN111623898A - NTC thermistor temperature and resistance detection method and temperature sensor detection method - Google Patents
NTC thermistor temperature and resistance detection method and temperature sensor detection method Download PDFInfo
- Publication number
- CN111623898A CN111623898A CN202010591458.4A CN202010591458A CN111623898A CN 111623898 A CN111623898 A CN 111623898A CN 202010591458 A CN202010591458 A CN 202010591458A CN 111623898 A CN111623898 A CN 111623898A
- Authority
- CN
- China
- Prior art keywords
- temperature
- resistance
- detection method
- curve
- interval
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K7/00—Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements
- G01K7/16—Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements
- G01K7/22—Measuring temperature based on the use of electric or magnetic elements directly sensitive to heat ; Power supply therefor, e.g. using thermoelectric elements using resistive elements the element being a non-linear resistance, e.g. thermistor
Landscapes
- Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- General Physics & Mathematics (AREA)
- Measuring Temperature Or Quantity Of Heat (AREA)
Abstract
The invention discloses a method for detecting the temperature and the resistance of an NTC thermistor and a method for detecting a temperature sensor, which are based on data analysis and curve fitting, select proper and efficient curve fitting operation for the whole temperature and resistance range of a resistance-temperature table according to the curve characteristics of different sections to obtain a characteristic curve function in an interval, substitute the resistance value in the function to obtain corresponding temperature values, wherein the characteristic curve functions of the different sections are as follows: a low resistance segment, func1(R) ═ p 1R ^3+ p 2R ^2+ p 3R + p 4; the medium resistance interval segment, func2(R) ═ p1 ^ R ^5+ p2 ^ R ^4+ p3 ^ R ^3+ p4 ^ R ^2+ p5 ^ R + p 6; a high resistance segment, func3(R) ═ p1 ^ R4 + p2 ^ R3 + p3 ^ R2 + p4 ^ R + p 5; p1, p2, p3, p4, p5, p6 are constant terms. The temperature detection method disclosed by the invention is based on data analysis and curve fitting, is simple and convenient, and can be used for fitting the characteristic curves in each characteristic interval in a segmented manner, and efficiently calculating the temperature value corresponding to any resistance value in the interval; compared with a table look-up method, the complex table look-up and estimation process is omitted.
Description
Technical Field
The invention relates to the technical field of heat pumps, in particular to an NTC thermistor temperature and resistance detection method and a temperature sensor detection method.
Background
The traditional NTC temperature sensor adopts a method of searching a corresponding temperature table by resistance value search, and the method has the problems of poor precision of the searched temperature result, low table searching efficiency and the like, so that the results of inaccurate data acquisition, high resource consumption of a control system and the like are caused.
To solve this problem, the present invention is hereby proposed.
Disclosure of Invention
The invention aims to provide an NTC thermistor temperature and a resistance detection method, which can obtain a temperature value through a resistance.
The purpose of the invention can be realized by the following technical scheme:
the NTC thermistor temperature and resistance detection method is based on data analysis and curve fitting, selects proper and efficient curve fitting operation for the whole temperature and resistance range of a resistance-temperature table according to the curve characteristics of different sections to obtain a characteristic curve function in an interval, substitutes the resistance value in the function to obtain a corresponding temperature value, and the characteristic curve functions of the different sections are as follows: when the low resistance interval is used, func1(R) is p 1R 3+ p 2R 2+ p 3R + p 4;
during the middle resistance section, func2(R) is p 1R ^5+ p 2R ^4+ p 3R ^3+ p 4R ^2+ p 5R + p 6;
when the high-resistance section is in the high-resistance section, func3(R) is p 1R 4+ p 2R 3+ p 3R 2+ p 4R + p 5;
constant terms p1, p2, p3, p4, p5, p6 in the function are fitted with software.
Further, the low-resistance section is 0< ═ R <10K Ω.
Further, the intermediate resistance section is 10K Ω < ═ R <70K Ω.
Further, the high-resistance section is R > -70K Ω.
The invention aims to provide a temperature sensor detection method which comprises an NTC thermistor.
The purpose of the invention can be realized by the following technical scheme:
a method for detecting a temperature sensor, said sensor comprising an NTC thermistor, said method comprising the steps of:
s1, the temperature sensor detects the temperature and converts the temperature into a resistor;
s2, after the controller detects the resistance value of the temperature sensor, the controller judges which interval the resistance value is in;
and S3, calling a temperature function expression to calculate the temperature.
Further, by the calculated temperature, logic control is performed.
The invention has the beneficial effects that:
temperature sensor detection method who contains NTC thermistor, use data analysis and curve fitting as the basis, the characteristic curve in each characteristic interval is gone out in the segmentation fitting, it is simple convenient to calculate, can calculate the temperature numerical value that any resistance corresponds in the interval of efficient, for traditional table look-up method, loaded down with trivial details table look-up and valuation process have been saved in the aspect of the operation, in the aspect of the temperature result that obtains, temperature resolution ratio and numerical value accuracy improve greatly, when guaranteeing high accuracy temperature detection greatly reduced the resource consumption of micro-control unit, the loaded down with trivial details table look-up has been avoided, the stability of procedure has been improved when simplifying the procedure.
Drawings
The invention will be further described with reference to the accompanying drawings.
FIG. 1 is a resistance versus temperature curve of the present invention.
FIG. 2 is a flow chart of the resistance interval and function expression of the present invention.
Fig. 3 is a flow chart of the temperature sensor detection method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The NTC sensor is a thermistor, and the principle of detecting temperature is that the resistance rapidly decreases as the temperature increases.
Referring to table 1 below, a resistance temperature characteristic table of the NTC thermistor is shown:
referring to table 1, a resistance-temperature curve is obtained, referring to fig. 1, the NTC thermistor temperature and temperature obtaining method in the resistance detection method is based on data analysis and curve fitting, the whole temperature and resistance range of the resistance-temperature table are subjected to proper and efficient curve fitting operation according to curve characteristics of different sections, the coefficient value of a characteristic curve function in the section is obtained, and the resistance value is substituted in the function, so that the corresponding high-precision temperature value can be obtained.
When the resistance-temperature characteristic curve is segmented, the segmentation principle includes curve types and curve curvatures, segmentation is carried out according to a function model of curve approximation, polynomial fitting methods of different orders are selected according to the characteristics of each segment of curve, correlation function polynomial coefficient values are obtained through a mathematical analysis method and a mathematical operation tool, a function relation expression between the resistance and the temperature is obtained, and the temperature value is accurately and efficiently obtained. And the correlation coefficient, variance and root mean square deviation between the fitting curve and the actual curve are simulated and analyzed, and the rationality and accuracy of the fitting curve are analyzed.
According to the change characteristics of the resistance values of different temperature intervals, the whole temperature-resistance interval is divided into three small intervals, the resistance value change is large in the high-temperature period, the temperature-resistance value change curve is steep, the resistance value change is small in the low-temperature period, the temperature-resistance value change curve is gentle, and the middle temperature interval is used as the transition of the high-temperature interval and the low-temperature interval.
In practical application requirements, a mode of converting a resistance value by using digital-to-analog conversion voltage and acquiring a measured temperature through the resistance value is used, and in the mathematical analysis, the resistance is used as an independent variable and the temperature is used as a dependent variable.
And fitting the high-temperature interval curve, and reducing the operation overhead by using a 3-order polynomial according to the characteristic of high temperature-resistance value change rate. Importing the data of the section resistance value-temperature table into a mathematical analysis tool, wherein the resistance is independent variable, the temperature is dependent variable, a curve analysis fitting tool is selected, a fitting method is set to be polynomial fitting, the fitting order is 3 orders, fitting coefficients p1, p2, p3 and p4 of the data are obtained, and then the function expression of the resistance value-temperature can be obtained:
func1(x)=p1*x^3+p2*x^2+p3*x+p4;
the low-resistance high-temperature area, resistance 0< ═ R <10K omega, fitting coefficient:
Linear model Poly3:
f(x)=p1*x^3+p2*x^2+p3*x+p4
Coefficients(with 95% confidence bounds):
p1=-1.937e-07(-2.231e-07,-1.643e-07)
p2=0.0003454(0.0003072,0.0003836)
p3=-0.2254(-0.2394,-0.2113)
p4=29.27(27.91,30.62);
and fitting the low-temperature interval curve, and using a 5-order polynomial to improve the acquisition precision of the low-temperature interval curve according to the characteristic of low temperature-resistance change rate. Importing the data of the section resistance value-temperature table into a mathematical analysis tool, wherein the resistance is independent variable, the temperature is dependent variable, a curve analysis fitting tool is selected, a fitting method is set to be polynomial fitting, the fitting order is 5 orders, fitting coefficients p1, p2, p3, p4, p5 and p6 of the data are obtained, and the function expression of the resistance value-temperature can be obtained:
func3(x)=p1*x^5+p2*x^4+p3*x^3+p4*x^2+p5*x+p6;
in the high-resistance low-temperature region, the resistance R > is 70K omega, and the fitting coefficient is as follows:
Linear model Poly5:
f(x)=p1*x^5+p2*x^4+p3*x^3+p4*x^2+p5*x+p6
Coefficients(with 95% confidence bounds):
p1=-0.009137(-0.0104,-0.007869)
p2=0.2802(0.2472,0.3131)
p3=-3.343(-3.657,-3.028)
p4=19.93(18.58,21.28)
p5=-66.64(-69.16,-64.11)
p6=193.2(191.6,194.8);
and fitting a curve in the middle temperature range, wherein the temperature-resistance value change rate is in the high temperature and low temperature range, and a 4-order polynomial is used to ensure that the precision and the operation cost are reasonable. Importing the data of the section resistance value-temperature table into a mathematical analysis tool, enabling the resistance to be an independent variable and the temperature to be a dependent variable, selecting a curve analysis fitting tool, setting a fitting method to be polynomial fitting, obtaining fitting coefficients p1, p2, p3, p4 and p5 of the data, and obtaining a function expression of the resistance value-temperature:
func2(x)=p1*x^4+p2*x^3+p3*x^2+p4*x+p5;
in the medium-temperature resistance region, the resistance is 10K omega ═ R <70K omega, and the fitting coefficient is as follows:
Linear model Poly4:
f(x)=p1*x^4+p2*x^3+p3*x^2+p4*x+p5
Coefficients(with 95% confidence bounds):
p1=7.26e-06(6.355e-06,8.166e-06)
p2=-0.001407(-0.001546,-0.001269)
p3=0.1053(0.098,0.1126)
p4=-4.093(-4.248,-3.938)
p5=97.02(95.93,98.11)
referring to fig. 2, according to the resistance interval and the three obtained function expressions, the function expression quantizing the whole interval is completed, and the corresponding temperature value can be obtained only by substituting the resistance value, and the flow is as follows:
func1(R)=p1*R^3+p2*R^2+p3*R+p4,0<=R<10KΩ;
func2(R)=p1*R^5+p2*R^4+p3*R^3+p4*R^2+p5*R+p6,10KΩ<=R<70KΩ;
func3(R) ═ p 1R ^4+ p 2R ^3+ p 3R ^2+ p 4R + p5, and R > ═ 70K Ω.
Referring to fig. 3, a temperature sensor detecting method, the sensor including an NTC thermistor, the detecting method including the steps of:
s1, the temperature sensor detects the temperature and converts the temperature into a resistor;
s2, after the controller detects the resistance value of the temperature sensor, the controller judges which interval the resistance value is in;
and S3, calling a temperature function expression to calculate the temperature.
Further, by the calculated temperature, logic control is performed.
The temperature detection method is based on data analysis and curve fitting, the characteristic curves in all characteristic intervals are obtained through piecewise fitting, the calculation is simple and convenient, and the temperature value corresponding to any resistance value in the interval can be calculated efficiently. Compared with the traditional table look-up method, the method saves the fussy table look-up and estimation processes in the aspect of operation, and greatly improves the temperature resolution and the numerical accuracy in the aspect of the obtained temperature result; the detection method greatly reduces the resource consumption of the micro-control unit while ensuring high-precision temperature detection, avoids fussy table lookup, simplifies the program and improves the stability of the program.
While there have been shown and described what are at present considered the fundamental principles and essential features of the invention and its advantages, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing exemplary embodiments, but is capable of other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.
Claims (6)
- The NTC thermistor temperature and resistance detection method is characterized in that based on data analysis and curve fitting, the whole temperature and resistance range of a resistance-temperature table is subjected to proper and efficient curve fitting operation according to curve characteristics of different sections to obtain a characteristic curve function in an interval, the resistance value is substituted into the function to obtain corresponding temperature values, and the characteristic curve functions of the different sections are as follows: a low resistance segment, func1(R) ═ p 1R ^3+ p 2R ^2+ p 3R + p 4;the medium resistance interval segment, func2(R) ═ p1 ^ R ^5+ p2 ^ R ^4+ p3 ^ R ^3+ p4 ^ R ^2+ p5 ^ R + p 6;a high resistance segment, func3(R) ═ p1 ^ R4 + p2 ^ R3 + p3 ^ R2 + p4 ^ R + p 5;constant terms p1, p2, p3, p4, p5, p6 in the function are fitted with software.
- 2. The NTC thermistor temperature and resistance detection method according to claim 1, wherein the low resistance section is 0< ═ R <10K Ω.
- 3. The NTC thermistor temperature and resistance detection method according to claim 2, wherein the intermediate resistance section is 10K Ω < ═ R <70K Ω.
- 4. The NTC thermistor temperature and resistance detection method according to claim 3, wherein the high-resistance segment is R > -70K Ω.
- 5. A temperature sensor detection method is characterized in that the sensor comprises an NTC thermistor,the detection method comprises the following steps:s1, the temperature sensor detects the temperature and converts the temperature into a resistor;s2, after the controller detects the resistance value of the temperature sensor, the controller judges which interval the resistance value is in;and S3, calling a temperature function expression to calculate the temperature.
- 6. The temperature sensor detecting method according to claim 5,with the calculated temperature, logic control is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010591458.4A CN111623898A (en) | 2020-06-24 | 2020-06-24 | NTC thermistor temperature and resistance detection method and temperature sensor detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010591458.4A CN111623898A (en) | 2020-06-24 | 2020-06-24 | NTC thermistor temperature and resistance detection method and temperature sensor detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111623898A true CN111623898A (en) | 2020-09-04 |
Family
ID=72272113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010591458.4A Pending CN111623898A (en) | 2020-06-24 | 2020-06-24 | NTC thermistor temperature and resistance detection method and temperature sensor detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111623898A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112268633A (en) * | 2020-10-22 | 2021-01-26 | 合肥中科离子医学技术装备有限公司 | Temperature and resistance value conversion method for industrial platinum resistor with voltage of 30-73K |
CN112528211A (en) * | 2020-12-17 | 2021-03-19 | 中电科仪器仪表(安徽)有限公司 | Method for fitting solar cell IV curve |
CN113701905A (en) * | 2021-08-05 | 2021-11-26 | 歌联科技(苏州)有限公司 | High-precision temperature measuring method and device |
CN117213658A (en) * | 2023-11-08 | 2023-12-12 | 深圳市千岩科技有限公司 | Warmer, temperature measuring method thereof, and corresponding device and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101922981A (en) * | 2010-09-10 | 2010-12-22 | 中冶南方(武汉)自动化有限公司 | Thermistor temperature detecting method based on DSP (Digital Signal Processing) |
CN103961066A (en) * | 2013-01-24 | 2014-08-06 | 重庆融海超声医学工程研究中心有限公司 | Temperature measurement method and temperature measurement device |
JP2014149252A (en) * | 2013-02-04 | 2014-08-21 | Yoshiro Mizuno | Creation method of calibration data of thermometer, storage device storing calibration data, and thermometer employing the method |
CN104977096A (en) * | 2014-04-04 | 2015-10-14 | 株式会社电装 | Temperature characteristic correcting device of thermistor and temperature characteristic correcting method of thermistor |
CN105466603A (en) * | 2015-12-07 | 2016-04-06 | 上海温尔信息科技有限公司 | An automatic calibration method for temperature measurement by a thermometer, a temperature measurement probe and a thermometer |
CN105588667A (en) * | 2015-12-18 | 2016-05-18 | 上海市计量测试技术研究院 | High-precision thermistor thermometer calibrating device |
CN105738702A (en) * | 2016-02-24 | 2016-07-06 | 延锋伟世通电子科技(南京)有限公司 | NTC thermistor test method used for automobile air-conditioner |
CN106706153A (en) * | 2017-03-17 | 2017-05-24 | 北京航天试验技术研究所 | Method for processing temperature characteristic data of low-temperature thermistor |
-
2020
- 2020-06-24 CN CN202010591458.4A patent/CN111623898A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101922981A (en) * | 2010-09-10 | 2010-12-22 | 中冶南方(武汉)自动化有限公司 | Thermistor temperature detecting method based on DSP (Digital Signal Processing) |
CN103961066A (en) * | 2013-01-24 | 2014-08-06 | 重庆融海超声医学工程研究中心有限公司 | Temperature measurement method and temperature measurement device |
JP2014149252A (en) * | 2013-02-04 | 2014-08-21 | Yoshiro Mizuno | Creation method of calibration data of thermometer, storage device storing calibration data, and thermometer employing the method |
CN104977096A (en) * | 2014-04-04 | 2015-10-14 | 株式会社电装 | Temperature characteristic correcting device of thermistor and temperature characteristic correcting method of thermistor |
CN105466603A (en) * | 2015-12-07 | 2016-04-06 | 上海温尔信息科技有限公司 | An automatic calibration method for temperature measurement by a thermometer, a temperature measurement probe and a thermometer |
CN105588667A (en) * | 2015-12-18 | 2016-05-18 | 上海市计量测试技术研究院 | High-precision thermistor thermometer calibrating device |
CN105738702A (en) * | 2016-02-24 | 2016-07-06 | 延锋伟世通电子科技(南京)有限公司 | NTC thermistor test method used for automobile air-conditioner |
CN106706153A (en) * | 2017-03-17 | 2017-05-24 | 北京航天试验技术研究所 | Method for processing temperature characteristic data of low-temperature thermistor |
Non-Patent Citations (2)
Title |
---|
梅小雨 等: "基于对数的NTC热敏电阻测温系统的设计", 《自动化与仪表》 * |
程双双 等: "NTC热敏电阻分段曲线拟合", 《煤矿机械》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112268633A (en) * | 2020-10-22 | 2021-01-26 | 合肥中科离子医学技术装备有限公司 | Temperature and resistance value conversion method for industrial platinum resistor with voltage of 30-73K |
CN112528211A (en) * | 2020-12-17 | 2021-03-19 | 中电科仪器仪表(安徽)有限公司 | Method for fitting solar cell IV curve |
CN113701905A (en) * | 2021-08-05 | 2021-11-26 | 歌联科技(苏州)有限公司 | High-precision temperature measuring method and device |
CN117213658A (en) * | 2023-11-08 | 2023-12-12 | 深圳市千岩科技有限公司 | Warmer, temperature measuring method thereof, and corresponding device and medium |
CN117213658B (en) * | 2023-11-08 | 2024-02-13 | 深圳市千岩科技有限公司 | Warmer, temperature measuring method thereof, and corresponding device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111623898A (en) | NTC thermistor temperature and resistance detection method and temperature sensor detection method | |
US9784604B2 (en) | Method for determining at least one gas parameter of a flowing gas | |
CN106706153B (en) | A kind of processing method of low temperature temperature-sensitive resistance-temperature characteristic data | |
CN103961066B (en) | A kind of temp measuring method and temperature measuring equipment | |
Schnieders | Comparison of the energy yield predictions of stationary and dynamic solar collector models and the models' accuracy in the description of a vacuum tube collector | |
CN103940507B (en) | Bias voltage compensating circuit | |
CN105221467B (en) | Rotation speed of the fan adjusts system and method | |
CN209878171U (en) | Temperature measurement circuit and household appliance | |
CN106908730B (en) | A method of estimation lithium battery OCV_SOC calibration curve SOC error | |
CN108420320A (en) | Oven temperature control method, device and computer readable storage medium | |
CN104421999B (en) | A kind of accumulation of heat heating system temperature control method and device | |
CN110749028B (en) | Method, system and device for determining air conditioner operation power | |
CN104535257B (en) | A kind of silicon pressure drag temperature-compensating appraisal procedure | |
Deur et al. | Extensions of the LuGre tyre friction model related to variable slip speed along the contact patch length | |
CN110068729A (en) | A kind of signal phasor calculating method | |
CN116680524B (en) | Temperature data monitoring method for burning-type handheld code printer | |
CN109388858A (en) | Nonlinear transducer bearing calibration based on brainstorming optimization algorithm | |
CN108181950A (en) | The temperature control equipment of high-frequency frame non refrigerating infrared imaging detector | |
CN112013964A (en) | Automatic compensation method, system and device for infrared temperature measurement distance and storage medium | |
CN115931178A (en) | BJT-based intelligent temperature sensor correction method | |
CN107368128A (en) | A kind of method and system for adjusting thermal field temperature | |
CN102955482B (en) | Intelligent linear temperature rise control method | |
Zhai et al. | A novel characteristic value correction iteration method | |
Tan et al. | Meshless method for geometry boundary identification problem of heat conduction | |
CN104778149A (en) | Calculating method for carrying capacity inverse problem |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200904 |
|
RJ01 | Rejection of invention patent application after publication |