The content of the invention
In order to solve above mentioned problem existing for prior art, the invention provides a kind of side for improving temperature measurement accuracy
Method.
To achieve the above object, the present invention takes following technical scheme:A kind of method for improving temperature measurement accuracy, it is wrapped
Include following steps:1) intelligent thermometer for including power module, temperature-measuring module and microprocessor is set, power module with
Temperature-measuring module is connected with microprocessor;Temperature-measuring module uses thermistor and a/d converter;Thermistor is with temperature
Analog voltage signal caused by degree change is transmitted to a/d converter, a/d converter is converted into digital voltage by analog voltage signal
Transmitted after signal to microprocessor;2) using step 1) set intelligent thermometer to body temperature carry out first group of measurement, first group
Body temperature is taken multiple measurements in measurement, the result repeatedly measured is transmitted to microprocessor;Microprocessor to receive first
Group measurement result is averaged, and obtains the average value of first group of digital voltage signal;3) both positive and negative polarity of a/d converter is converted, is used
Intelligent thermometer carries out second group of measurement, the number measured in second group of measurement to body temperature and the survey in step 2) to body temperature
Amount number is identical, and the result repeatedly measured is transmitted to microprocessor;Microprocessor is carried out to the second group of measurement result received
It is average, obtain the average value of second group of digital voltage signal;4) first group of digital voltage signal obtaining step 2) is averaged
Value subtracts after the average value of second group of digital voltage signal that step 3) obtains again divided by 2 obtain voltage effective value, microprocessor
The resistance value of corresponding thermistor is calculated according to voltage effective value;5) according to used in model thermistor temperature and its
Corresponding relation between resistance, and the resistance value of thermistor that step 4) obtains, where the resistance value for determining thermistor
Interval range, and obtain the matched curve parameter of its residing interval range;Electricity using once linear equation to thermistor
Temperature value corresponding to resistance is fitted to obtain actual temperature value.
Further, in the step 1), a/d converter uses model HY11P54 chip.
For the present invention due to taking above technical scheme, it has advantages below:The present invention is chosen based on thermistor can
The high-precision AD converter of polarity is configured, thermistor varies with temperature caused analog voltage signal and transmitted to AD conversion
Analog voltage signal is converted into transmitting after digital voltage signal to microprocessor by device, a/d converter, and microprocessor passes through determination
Interval range where the resistance value of thermistor, and obtain the matched curve parameter of its residing interval range;Recycle once
Linear equation is fitted to obtain actual temperature value;Therefore, the precision of measurement of bldy temperature can be greatly improved using the present invention.
Embodiment
The invention provides a kind of method for improving temperature measurement accuracy, it comprises the following steps:
1) intelligent thermometer for including power module, temperature-measuring module and microprocessor is set, wherein, power module
It is connected with temperature-measuring module with microprocessor.
Thermistor and high-precision a/d converter of the temperature-measuring module using high stability;Thermistor becomes with temperature
Analog voltage signal caused by change transmits to a/d converter, a/d converter analog voltage signal being converted into digital voltage signal
After transmit to microprocessor.
2) according to practical application scene, suitable temperature range, such as the suitable temperature for clinical thermometer interception are intercepted
Scope is 32~42 degrees Celsius, and the suitable temperature range for environment temperature interception is 40~125 degrees Celsius.Using step 1)
The intelligent thermometer of setting carries out first group of measurement to body temperature, and body temperature is taken multiple measurements in first group of measurement.Repeatedly measurement
Result transmit to microprocessor.In measurement process, the full scale test of a/d converter is realized substantially, quantifies to miss so as to reduce
Difference.Microprocessor is averaged to the first group of measurement result received, obtains first group of measurement result, i.e. set of number electricity
Press the average value of signal.
3) both positive and negative polarity of a/d converter is converted, second group of measurement, second group of measurement are carried out to body temperature using intelligent thermometer
In the number that is measured to body temperature it is identical with the pendulous frequency in step 2).The result repeatedly measured is transmitted to microprocessor.
Microprocessor is averaged to the second group of measurement result received, obtains second group of measurement result, i.e. second group of digital voltage
The average value of signal.By converting the polarity of a/d converter, the temperature drift and common-mode error of a/d converter in itself can be eliminated significantly.
4) average value for first group of digital voltage signal for obtaining step 2) subtracts second group of numeral that step 3) obtains
After the average value of voltage signal again divided by 2 obtain voltage effective value, corresponding heat is calculated according to voltage effective value in microprocessor
The resistance value of quick resistance.
5) corresponding relation used between the temperature and its resistance of the thermistor of model, and step 4) obtain
The resistance value of thermistor, the interval range where the resistance value of thermistor is determined, and obtain the plan of its residing interval range
Close parameter of curve;The temperature value corresponding to the resistance value of thermistor is fitted to obtain using once linear equation actual
Temperature value.
Above-mentioned steps 1) in, a/d converter uses the model HY11P54 high-precision chip that can configure polarity.
The method that the present invention improves temperature measurement accuracy is based on thermistor, chooses the high-precision AD turn that can configure polarity
Parallel operation, microprocessor obtain the plan of its residing interval range by the interval range where determining the resistance value of thermistor
Close parameter of curve;Actual temperature value is obtained using once linear equation model, can greatly improve body temperature using the present invention surveys
The precision of amount, through experiment, measured precision is more than 0.05 DEG C.
The present invention is not limited to above-mentioned preferred forms, and anyone can show that other are various under the enlightenment of the present invention
The product of form, however, make any change in its shape or structure, it is every that there is skill identical or similar to the present application
Art scheme, is within the scope of the present invention.