The supersonic range finder of band temperature and humidity compensation
Technical field
The utility model relates to a kind of supersonic range finder, is a kind of supersonic range finder that has the temperature and humidity compensation specifically.
Background technology
Supersonic range finder is widely used in thing position (liquid level) monitoring, and robot is crashproof, and various ultrasound waves are near switch, and association area such as burglar alarm, has many advantages such as reliable operation, easy for installation, sensitivity height.The ultimate principle of supersonic range finder is: supersonic range finder emission ultrasound wave, and reception runs into the reflection echo of testee, then according to determining the distance of ultrasonic transducer to the velocity of sound (under the standard state, the velocity of sound in the dry air is 331.5 meter per seconds) time that receives echo and the known air to testee from the emission ultrasound wave.This supersonic range finder is more accurate under the little environment of temperature and relative humidity variations, but because the airborne velocity of sound is subjected to the influence of environment temperature, humidity bigger, therefore supersonic range finder is when temperature and humidity changes big environment, can produce bigger measuring error, influence measuring accuracy.
Summary of the invention
The purpose of this utility model provides a kind of supersonic range finder with the temperature and humidity compensation, to remedy the deficiencies in the prior art.
Technical conceive of the present utility model: mainly comprising microprocessor module, on the basis of the existing supersonic range finder that power amplifier and ultrasonic transducer are formed, consider that THE VELOCITY OF SOUND IN AIR is subjected to the influence of environment temperature and humidity, the temperature-measuring module testing environment temperature of at first utilizing existing one-line digital temperature sensor to constitute, detect relative humidity with the moisture measurement module of pulse output, according to the known relation of THE VELOCITY OF SOUND IN AIR and temperature and relative humidity the velocity of sound is compensated then and obtain real velocity of sound, and calculate tested distance according to the velocity of sound that compensated.
The utility model comprises the supersonic range finder of being made up of ultrasonic transducer, power amplifier and microprocessor module, it is characterized in that also being included in a temperature-measuring module and a moisture measurement module of connecting respectively on the microprocessor module, and in microprocessor module, be solidified with the program that velocity of sound compensation is carried out in variation according to temperature and humidity.
The utility model has not only improved the distance accuracy of original supersonic range finder, and has saved the analog to digital conversion circuit that typical temperature, humidity collection need, and has advantages such as simple in structure, with low cost.
Description of drawings
Fig. 1 is a general structure synoptic diagram of the present utility model.
Fig. 2 is a program circuit synoptic diagram of the present utility model.
Wherein, 1 microprocessor module, 2 temperature-measuring modules, 3 moisture measurement modules, 4 input/output port, 5 counter input ports, 6 power amplifiers, 7 ultrasonic transducers.
Embodiment
As shown in Figure 1, the utility model comprises power amplifier 6 that is connected on the microprocessor module 1 and the ultrasonic transducer 7 that is connected with power amplifier 6, it is characterized in that also being included on the input/output port 4 of microprocessor module 1 and be connected with temperature-measuring module 2, with on the counter input port 5 of microprocessor module 1, be connected with moisture measurement module 3, and in microprocessor module 1, be solidified with according to temperature and humidity and change the program carry out velocity of sound compensation.
The one-line digital temperature sensor DS18B20 that said temperature measurement module 2 is produced for DALLAS company, microprocessor module 1 is by the temperature data of an input/output port 4 collecting temperature measurement modules 2 outputs.
Above-mentioned moisture measurement module 3 is that main element constitutes with humidity-sensitive capacitor HS1101 and TLC555, the proportional pulse signal of its output frequency and humidity, and be connected with the counter input port 5 of microprocessor module 1.Microprocessor module 1 calculates humidity by the frequency of measuring moisture measurement module 3 output pulse signals.
With single chip computer AT 89S52 is the microprocessor module 1 of main element, and microprocessor module 1 calculates real velocity of sound under the environment at the scene according to the relation of THE VELOCITY OF SOUND IN AIR and environment temperature, humidity, finishes compensation.
Fig. 2 is the program flow diagram of the present utility model that is solidificated in the microprocessor module 1.Its flow process is as follows: the pulse signal frequency of measurement counter input port 5 input at first, promptly the pulse signal of moisture measurement module 3 outputs is counted within a certain period of time; Obtain relative humidity according to the frequency of moisture measurement module output signal and the existing computing formula of relative humidity again; Microprocessor module 1 is according to the temperature data of communication protocol collecting temperature measurement module 2 outputs of line formula digital temperature sensor DS18B20; And then obtain the saturated vapor pressure of collecting temperature value correspondence according to the saturated vapor pressure table of existing water vapor; With the saturated vapor pressure of above-mentioned water vapor with gather relative humidity and multiply each other and obtain the partial pressure of water in air steam; At last calculate acoustic velocity value under Current Temperatures, the relative humidity, finish compensation according to the existing relation of the partial pressure of collecting temperature, relative humidity, above-mentioned water in air steam and the velocity of sound.