Temperature sensor testing device and temperature sensor compensation method

The temperature sensor testing device and method compensate for actual temperature values using a fitting curve obtained from calibrated thermostatic baths, addressing the high cost and accuracy issues of existing calibration methods by eliminating the need for separate circuits.

CN114689214BActive Publication Date: 2024-12-17WUHAN XIANJIE ELECTRONICS CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210434584.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2024-12-17
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

Existing methods for calibrating temperature sensors by setting temperature detection and reference circuits are costly and increase the overall cost of the sensor, while also affecting measurement accuracy due to zero drift and temperature drift.

Method used

A temperature sensor testing device and method that utilizes a constant temperature bath, temperature sensor, temperature value acquisition module, and fitting curve acquisition module to obtain a fitting curve for temperature compensation without the need for a temperature detection circuit or reference circuit, using a fluid medium in calibrated thermostatic baths to generate initial temperature signals and compensate for actual values.

Benefits of technology

Reduces the cost of temperature sensors by eliminating the need for additional circuits and improves measurement accuracy by compensating for actual temperature values, while also saving calibration time and enhancing calibration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114689214B_ABST
    Figure CN114689214B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of sensor technology, and provides a temperature sensor testing device and a temperature sensor compensation method, the temperature sensor compensation method comprising the following steps: S1, providing m thermostatic baths storing fluid media and calibrating different preset temperature values ​​respectively; S2, immersing at least part of the temperature sensor to be tested in the fluid medium in the thermostatic bath, sensing the temperature of the fluid medium and generating an initial temperature signal according to the temperature of the fluid medium; S3, receiving the initial temperature signal to generate an initial temperature value; S4, obtaining the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve; S5, obtaining a temperature compensation value according to the fitting curve and using the temperature compensation value to compensate for the actual temperature value of the temperature sensor to be tested. The present invention does not need to set a temperature detection circuit and a reference circuit, can reduce the cost of the temperature sensor, and improve the measurement accuracy of the temperature sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of sensor technology, and in particular to a temperature sensor testing device and a temperature sensor compensation method. Background Art

[0002] Temperature is one of the seven basic quantities of the International System of Units. There are various sensors for measuring temperature. Temperature sensors are the core part of temperature measuring instruments and are very important. As the name suggests, temperature sensors refer to sensors that can sense temperature and convert it into a usable output signal. Temperature sensors are the core part of temperature measuring instruments and come in a wide variety of varieties. They can be divided into two categories: contact and non-contact according to the measurement method, and can be divided into two categories: thermal resistors and thermocouples according to the sensor materials and electronic component characteristics.

[0003] The existence of zero drift and temperature drift will affect the measurement accuracy of the temperature sensor, resulting in inaccurate measurement results. In order to eliminate the influence of zero drift and temperature drift on the measurement accuracy of the temperature sensor, the existing method generally calibrates the temperature sensor separately by setting a temperature detection circuit and a reference circuit, and calibrates the output voltage of the temperature detection circuit and the output voltage of the reference circuit to the required accuracy range, which can improve the accuracy of the measurement results of the temperature sensor. However, the need to set up a temperature detection circuit and a reference circuit will undoubtedly increase the cost of the temperature sensor, which is relatively high and needs to be improved. Summary of the invention

[0004] Based on this, in order to solve the problem that the existing method calibrates the temperature sensor separately by setting a temperature detection circuit and a reference circuit, which is costly, the present invention provides a temperature sensor test device and a temperature sensor compensation method, and its specific technical solution is as follows:

[0005] A temperature sensor testing device comprises a constant temperature bath, a temperature sensor to be tested, a temperature value acquisition module, a fitting curve acquisition module and a compensation module.

[0006] m thermostatic baths are calibrated with different preset temperature values, and a fluid medium is stored in the thermostatic baths. The temperature sensor to be measured is at least partially immersed in the fluid medium in the thermostatic baths, senses the temperature of the fluid medium and generates an initial temperature signal according to the temperature of the fluid medium.

[0007] The temperature value acquisition module is connected to the temperature sensor to be measured and is used to receive an initial temperature signal to generate an initial temperature value.

[0008] The fitting curve acquisition module is used to obtain the difference between a preset temperature values ​​and the initial temperature value and the scatter plot between the corresponding initial temperature values, and fit the scatter plot to obtain the fitting curve.

[0009] The compensation module is used to obtain a temperature compensation value according to the fitting curve and use the temperature compensation value to compensate the actual temperature value of the temperature sensor to be measured. Wherein, a≤m.

[0010] The temperature sensor testing device obtains the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fits the scatter plot to obtain a fitting curve. The fitting curve is used to obtain a temperature compensation value to compensate for the actual temperature value of the temperature sensor to be tested. There is no need to set a temperature detection circuit and a reference circuit, which can reduce the cost of the temperature sensor and improve the measurement accuracy of the temperature sensor. This solves the problem of high cost in the existing method of separately calibrating the temperature sensor by setting a temperature detection circuit and a reference circuit.

[0011] Furthermore, the fitting curve acquisition module includes:

[0012] A fitting accuracy acquisition unit, used to calculate the fitting accuracy δ of the fitting curve acquired for the first time;

[0013] Curve fitting unit, used to determine whether the fitting accuracy is less than the preset threshold δ max If the fitting accuracy is greater than a preset threshold, the differences between multiple preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values ​​are re-acquired, and the re-acquired scatter plots are fitted to obtain a new fitting curve until the fitting accuracy is less than the preset threshold.

[0014] Furthermore, the fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve;

[0015] Among them, T i Indicates the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

[0016] Further, the order of the fitting curve is 3 or 4.

[0017] A temperature sensor compensation method comprises the following steps:

[0018] S1, providing m constant temperature baths storing fluid media and calibrated with different preset temperature values;

[0019] S2, immersing at least part of the temperature sensor to be measured into the fluid medium in the constant temperature bath, sensing the temperature of the fluid medium and generating an initial temperature signal according to the temperature of the fluid medium;

[0020] S3, receiving an initial temperature signal to generate an initial temperature value;

[0021] S4, obtaining a scatter plot of differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve;

[0022] S5, obtaining a temperature compensation value according to the fitting curve and using the temperature compensation value to compensate for the actual temperature value of the temperature sensor to be measured.

[0023] Further, in step S4, a specific method of obtaining a scatter plot of differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve includes the following steps:

[0024] S40, calculating the fitting accuracy δ of the fitting curve;

[0025] S41, determine whether the fitting accuracy is less than a preset threshold δ max If the fitting accuracy is greater than or equal to the preset threshold, the differences between the preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values ​​are re-obtained, and the re-obtained scatter plots are fitted to obtain a new fitting curve until the fitting accuracy δ is less than the preset threshold δ max .

[0026] Furthermore, the fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve;

[0027] Among them, T i Indicates the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

[0028] Furthermore, the present invention provides a computer-readable storage fluid medium, wherein the computer-readable storage fluid medium stores a computer program, and when the computer program is executed, the temperature sensor compensation method is implemented.

[0029] Furthermore, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the temperature sensor compensation method is implemented when the processor executes the computer program. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.

[0031] Figure 1It is a schematic diagram of the overall flow of a temperature sensor compensation method in one embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with its embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the protection scope of the present invention.

[0033] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0035] The “first” and “second” mentioned in the present invention do not represent specific quantities and orders, but are merely used to distinguish names.

[0036] Embodiment 1:

[0037] The invention provides a temperature sensor testing device, which comprises a constant temperature bath, a temperature sensor to be tested, a temperature value acquisition module, a fitting curve acquisition module and a compensation module.

[0038] m thermostatic baths are calibrated with different preset temperature values, and fluid medium is stored in the thermostatic baths. The fluid medium includes but is not limited to water. By heating the fluid medium in the thermostatic baths, different preset temperature values ​​can be calibrated for the thermostatic baths.

[0039] When the preset temperature values ​​of the m thermostatic baths are calibrated respectively, the temperature of the fluid medium in the thermostatic baths may be measured by a standard temperature sensor, and then the temperature of the fluid medium in the thermostatic baths may be calibrated.

[0040] The temperature sensor to be measured is at least partially immersed in the fluid medium in the constant temperature bath. The temperature sensor to be measured senses the temperature of the fluid medium and generates an initial temperature signal according to the temperature of the fluid medium.

[0041] The temperature value acquisition module is connected to the temperature sensor to be measured, and is used to receive the initial temperature signal to generate the initial temperature value. Here, the temperature acquisition module includes but is not limited to a processor or an industrial computer.

[0042] The fitting curve acquisition module is used to obtain the difference between a preset temperature values ​​and the initial temperature value and the scatter plot between the corresponding initial temperature values, and fit the scatter plot to obtain the fitting curve.

[0043] As the curve fitting method for scattered data is a conventional technical means in the art, it will not be described in detail here.

[0044] The compensation module is used to obtain a temperature compensation value according to the fitting curve and use the temperature compensation value to compensate the actual temperature value of the temperature sensor to be measured. Wherein, a≤m.

[0045] Specifically, the obtained fitting curve is used as a function, the initial temperature value of the temperature sensor to be measured is used as an independent variable, and the dependent variable is the temperature compensation value.

[0046] The temperature sensor testing device obtains the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fits the scatter plot to obtain a fitting curve. The fitting curve is used to obtain a temperature compensation value to compensate for the actual temperature value of the temperature sensor to be tested. There is no need to set a temperature detection circuit and a reference circuit, which can reduce the cost of the temperature sensor and improve the measurement accuracy of the temperature sensor. This solves the problem of high cost in the existing method of separately calibrating the temperature sensor by setting a temperature detection circuit and a reference circuit.

[0047] By obtaining the differences between a preset temperature values ​​and the initial temperature value and a scatter plot of the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve, the initial temperature values ​​of the temperature sensor to be measured in m constant temperature baths are collected, and the actual temperature values ​​of each point of the temperature sensor to be measured can be compensated. While improving the measurement accuracy of the temperature sensor to be measured and reducing the cost, it can also save calibration time and improve the calibration efficiency of the temperature sensor to be measured.

[0048] Embodiment 2:

[0049] The invention provides a temperature sensor testing device, which comprises a constant temperature bath, a temperature sensor to be tested, a temperature value acquisition module, a fitting curve acquisition module and a compensation module.

[0050] m thermostatic baths are calibrated with different preset temperature values, and fluid medium is stored in the thermostatic baths. The fluid medium includes but is not limited to water. By heating the fluid medium in the thermostatic baths, different preset temperature values ​​can be calibrated for the thermostatic baths.

[0051] When the preset temperature values ​​of the m thermostatic baths are calibrated respectively, the temperature of the fluid medium in the thermostatic baths may be measured by a standard temperature sensor, and then the temperature of the fluid medium in the thermostatic baths may be calibrated.

[0052] The temperature sensor to be measured is at least partially immersed in the fluid medium in the constant temperature bath. The temperature sensor to be measured senses the temperature of the fluid medium and generates an initial temperature signal according to the temperature of the fluid medium.

[0053] The temperature value acquisition module is connected to the temperature sensor to be measured, and is used to receive the initial temperature signal to generate the initial temperature value. Here, the temperature acquisition module includes but is not limited to a processor or an industrial computer.

[0054] The fitting curve acquisition module is used to obtain the difference between a preset temperature values ​​and the initial temperature value and the scatter plot between the corresponding initial temperature values, and fit the scatter plot to obtain the fitting curve.

[0055] As the curve fitting method for scattered data is a conventional technical means in the art, it will not be described in detail here.

[0056] The compensation module is used to obtain a temperature compensation value according to the fitting curve and use the temperature compensation value to compensate the actual temperature value of the temperature sensor to be measured. Wherein, a≤m.

[0057] Specifically, the obtained fitting curve is used as a function, the initial temperature value of the temperature sensor to be measured is used as an independent variable, and the dependent variable is the temperature compensation value.

[0058] The temperature sensor testing device obtains the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fits the scatter plot to obtain a fitting curve. The fitting curve is used to obtain a temperature compensation value to compensate for the actual temperature value of the temperature sensor to be tested. There is no need to set a temperature detection circuit and a reference circuit, which can reduce the cost of the temperature sensor and improve the measurement accuracy of the temperature sensor. This solves the problem of high cost in the existing method of separately calibrating the temperature sensor by setting a temperature detection circuit and a reference circuit.

[0059] By obtaining the differences between a preset temperature values ​​and the initial temperature value and a scatter plot of the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve, the initial temperature values ​​of the temperature sensor to be measured in m constant temperature baths are collected, and the actual temperature values ​​of each point of the temperature sensor to be measured can be compensated. While improving the measurement accuracy of the temperature sensor to be measured and reducing the cost, it can also save calibration time and improve the calibration efficiency of the temperature sensor to be measured.

[0060] In this embodiment, the fitting curve acquisition module includes a fitting accuracy acquisition unit and a curve fitting unit.

[0061] The fitting accuracy acquisition unit is used to calculate the fitting accuracy δ of the fitting curve acquired for the first time.

[0062] The curve fitting unit is used to determine whether the fitting accuracy is less than the preset threshold δ max If the fitting accuracy is greater than a preset threshold, the differences between multiple preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values ​​are re-acquired, and the re-acquired scatter plots are fitted to obtain a new fitting curve until the fitting accuracy is less than the preset threshold.

[0063] Specifically, the fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve; where T i represents the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

[0064] Preferably, the number of times the fitting curve is fitted is 3 or 4. Experiments show that when the number of times the fitting curve is fitted is 3 or 4, the function represented by the fitting curve can compensate for the actual temperature value of the temperature sensor to be measured, so as to improve the calibration efficiency and calibration accuracy of the temperature sensor to be measured.

[0065] By calculating the fitting accuracy of the fitting curve and determining whether the fitting accuracy is less than a preset threshold, if not, reacquiring a new fitting curve until the fitting accuracy of the fitting curve is less than the preset threshold, the temperature sensor measuring device can further improve the measurement accuracy of the temperature sensor to be measured by improving the fitting accuracy of the fitting curve.

[0066] Embodiment three:

[0067] like Figure 1 As shown, this embodiment provides a temperature sensor compensation method, which includes the following steps:

[0068] S1, providing m constant temperature baths storing fluid media and calibrated with different preset temperature values.

[0069] S2, immersing at least part of the temperature sensor to be measured into the fluid medium in the constant temperature bath, sensing the temperature of the fluid medium and generating an initial temperature signal according to the temperature of the fluid medium.

[0070] S3, receiving an initial temperature signal to generate an initial temperature value.

[0071] S4, obtaining a scatter plot of the differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve.

[0072] S5, obtaining a temperature compensation value according to the fitting curve and using the temperature compensation value to compensate for the actual temperature value of the temperature sensor to be measured.

[0073] The temperature sensor compensation method obtains the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fits the scatter plot to obtain a fitting curve, collects the initial temperature value of the temperature sensor to be measured in m constant temperature baths, and can compensate for the actual temperature value of each point of the temperature sensor to be measured. While improving the measurement accuracy of the temperature sensor to be measured and reducing the cost, it can also save calibration time and improve the calibration efficiency of the temperature sensor to be measured.

[0074] Embodiment 4:

[0075] like Figure 1 As shown, this embodiment provides a temperature sensor compensation method, which includes the following steps:

[0076] S1, providing m constant temperature baths storing fluid media and calibrated with different preset temperature values.

[0077] S2, immersing at least part of the temperature sensor to be measured into the fluid medium in the constant temperature bath, sensing the temperature of the fluid medium and generating an initial temperature signal according to the temperature of the fluid medium.

[0078] S3, receiving an initial temperature signal to generate an initial temperature value.

[0079] S4, obtaining a scatter plot of the differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve.

[0080] S5, obtaining a temperature compensation value according to the fitting curve and using the temperature compensation value to compensate for the actual temperature value of the temperature sensor to be measured.

[0081] The temperature sensor compensation method obtains the difference between a preset temperature values ​​and the initial temperature value and a scatter plot between the corresponding initial temperature values, and fits the scatter plot to obtain a fitting curve, collects the initial temperature value of the temperature sensor to be measured in m constant temperature baths, and can compensate for the actual temperature value of each point of the temperature sensor to be measured. While improving the measurement accuracy of the temperature sensor to be measured and reducing the cost, it can also save calibration time and improve the calibration efficiency of the temperature sensor to be measured.

[0082] In this embodiment, in step S4, a specific method of obtaining a scatter plot of differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve includes the following steps:

[0083] S40, calculating the fitting accuracy δ of the fitting curve.

[0084] S41, determine whether the fitting accuracy is less than a preset threshold δ max If the fitting accuracy is greater than or equal to the preset threshold, the differences between the preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values ​​are re-obtained, and the re-obtained scatter plots are fitted to obtain a new fitting curve until the fitting accuracy δ is less than the preset threshold δ max .

[0085] Specifically, the fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve; where T i represents the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

[0086] In S41, the specific method includes the following steps:

[0087] S410, determining whether the fitting accuracy is less than a preset threshold δ max When the fitting accuracy is greater than or equal to the preset threshold, a=a+1 is set and the differences between a preset temperature values ​​and the initial temperature value and the scatter plot between the corresponding initial temperature values ​​are re-obtained, and the re-obtained scatter plot is fitted to obtain a new fitting curve.

[0088] S411, determine whether the fitting accuracy of the new fitting curve is less than the preset threshold value, if not, continue a=a+1 and re-obtain the difference between a preset temperature values ​​and the initial temperature value and the scatter plot between the corresponding initial temperature values, and fit the re-obtained scatter plot to obtain a new fitting curve, and in this way, until the fitting accuracy δ of the new fitting curve is less than the preset threshold δ max , then jump out of the loop.

[0089] Furthermore, in step S41, the specific method further includes the following steps:

[0090] Each time a new fitting curve is obtained, the number of fitting times n=n+1; when δ≥δ max When n is greater than n max , if n <n max , then repeat step S410 to step S411 until δ<δ max or n≥nmax ; if n≥n max When the fitting curves obtained by multiple fittings are all greater than the preset threshold, the temperature compensation value is obtained according to the fitting curve with the smallest fitting accuracy and the temperature compensation value is used to compensate the actual temperature value of the temperature sensor to be tested. max Indicates the upper limit of the number of fitting times.

[0091] Thus, by setting the preset threshold δ max And the upper limit of the number of fitting times n max , and compare δ with δ max and n and n max The method can further improve the measurement accuracy of the temperature sensor to be measured, reduce costs, save calibration time, and improve the calibration efficiency of the temperature sensor to be measured.

[0092] By calculating the fitting accuracy of the fitting curve and determining whether the fitting accuracy is less than a preset threshold, if not, reacquiring a new fitting curve until the fitting accuracy of the fitting curve is less than the preset threshold, the temperature sensor measuring device can further improve the measurement accuracy of the temperature sensor to be measured by improving the fitting accuracy of the fitting curve.

[0093] As a more preferred technical solution, the method comprises the following steps:

[0094] The differences between the m preset temperature values ​​and the initial temperature value and the corresponding initial temperature value are randomly combined to obtain C scatter plots, and the C scatter plots are fitted to obtain C fitting curves; according to the formula Calculate the fitting accuracy δ of C fitting curves respectively; compare the fitting accuracy of C fitting curves, and use the fitting curve with the smallest fitting accuracy to compensate the actual temperature value of the temperature sensor to be tested. Here, a represents the number of preset temperature values ​​corresponding to each fitting curve, T i It represents the actual temperature value after the ith compensation of each fitting curve, T i ' represents the i-th preset temperature value of each fitting curve, and b represents the number of fitting curves.

[0095] In this way, the method can obtain multiple fitting curves and use the fitting curve with the smallest fitting accuracy as a standard to compensate for the actual temperature value of the temperature sensor to be measured, which can greatly improve the accuracy of the measurement result of the temperature sensor to be measured.

[0096] As a preferred technical solution, the present invention provides a computer-readable storage fluid medium, wherein the computer-readable storage fluid medium stores a computer program, and when the computer program is executed, the temperature sensor compensation method is implemented.

[0097] As a preferred technical solution, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the temperature sensor compensation method is implemented when the processor executes the computer program.

[0098] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0099] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A temperature sensor testing device, characterized in that: The temperature sensor testing equipment comprises: m constant temperature baths calibrated with different preset temperature values, wherein a fluid medium is stored in the constant temperature baths; The temperature sensor to be measured is at least partially immersed in the fluid medium in the constant temperature bath, and is used to sense the temperature of the fluid medium and generate an initial temperature signal according to the temperature of the fluid medium; A temperature value acquisition module is connected to the temperature sensor to be measured and is used to receive an initial temperature signal to generate an initial temperature value; A fitting curve acquisition module is used to obtain a scatter plot of the difference between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and to fit the scatter plot to obtain a fitting curve; A compensation module, used for obtaining a temperature compensation value according to a fitting curve and using the temperature compensation value to compensate for an actual temperature value of the temperature sensor to be measured; Where a≤m; The fitting curve acquisition module comprises: A fitting accuracy acquisition unit, used to calculate the fitting accuracy δ of the fitting curve acquired for the first time; Curve fitting unit, used to determine whether the fitting accuracy is less than the preset threshold δ max , if the fitting accuracy is greater than a preset threshold, then re-obtain the differences between the multiple preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values, and fit the re-obtained scatter plots to obtain a new fitting curve until the fitting accuracy is less than the preset threshold; The fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve; Among them, T i Indicates the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

2. A temperature sensor testing device as claimed in claim 1, characterized in that: The degree of curve fitting is 3 or 4.

3. A temperature sensor compensation method, applied to the temperature sensor testing device as claimed in any one of claims 1 to 2, characterized in that: The temperature sensor compensation method comprises the following steps: S1, providing m constant temperature baths storing fluid media and calibrated with different preset temperature values; S2, immersing at least part of the temperature sensor to be measured into the fluid medium in the constant temperature bath, sensing the temperature of the fluid medium and generating an initial temperature signal according to the temperature of the fluid medium; S3, receiving an initial temperature signal to generate an initial temperature value; S4, obtaining a scatter plot of differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve; S5, obtaining a temperature compensation value according to the fitting curve and using the temperature compensation value to compensate for the actual temperature value of the temperature sensor to be measured.

4. A temperature sensor compensation method as claimed in claim 3, characterized in that: In step S4, a specific method of obtaining a scatter plot of differences between a preset temperature values ​​and the initial temperature value and the corresponding initial temperature values, and fitting the scatter plot to obtain a fitting curve includes the following steps: S40, calculating the fitting accuracy δ of the fitting curve; S41, determine whether the fitting accuracy is less than a preset threshold δ max If the fitting accuracy is greater than or equal to the preset threshold, the differences between the preset temperature values ​​and the initial temperature values ​​and the scatter plots between the corresponding initial temperature values ​​are re-obtained, and the re-obtained scatter plots are fitted to obtain a new fitting curve until the fitting accuracy δ is less than the preset threshold δ max .

5. A temperature sensor compensation method as claimed in claim 4, characterized in that: The fitting accuracy acquisition unit is based on the formula Calculate the fitting accuracy of the fitting curve; Among them, T i Indicates the actual temperature value after the i-th compensation, T i ' represents the i-th preset temperature value, and b represents the number of times the fitting curve is performed.

6. A computer-readable storage fluid medium, characterized in that: The computer-readable storage fluid medium stores a computer program, and when the computer program is executed, the temperature sensor compensation method according to any one of claims 3 to 5 is implemented.

7. 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 temperature sensor compensation method according to any one of claims 3 to 5 is implemented.

Citation Information

Patent Citations

  • Thermometer calibration by immersion in non-electrically conductive liquid

    CN101078655A

  • Compensation process for detecting temperature for temperature sensor

    CN101424572A

  • Temperature sensor calibration device and method

    CN102539018A

  • Value compensation method and device of temperature sensor, and air quality detector

    CN104067118A

  • R-T characteristics testing method of temperature transducer

    CN104374495A