A method for measuring ultrasonic liquid level in small blind area and large range
By intelligently controlling the number of pulses and the gain amplification factor of the ultrasonic liquid level meter, the problem of increasing blind zones in the existing technology is solved, and liquid level measurement with a small blind zone and a large range is realized, the measurement accuracy and stability are improved, and the measurement range is expanded. scope.
Patent Information
- Application Number
- CN202210771652.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The existing ultrasonic liquid level meter has an enlarged blind area when the measuring range is large, and it is impossible to unify the small blind area with the large range. It is especially difficult to install and debug in harsh environments.
Using a measurement system including CPU, drive circuit, variable gain amplifier circuit, bandpass filter circuit and rectifier circuit, through intelligent control of the number of pulses and gain amplification coefficient, the signal amplification and reception of the ultrasonic transducer is optimized to achieve a large number of small blind spots. Ultrasonic liquid level measurement.
It effectively reduces the blind zone, improves the accuracy and stability of ultrasonic liquid level measurement, expands the measurement range, and achieves liquid level measurement with a wide range ratio without reducing the measuring range.
Smart Images

Figure CN115235582B
Abstract
Description
Technical Field
[0001] The invention relates to a method for measuring the height of non-gaseous materials, in particular to a method for measuring a small blind area and a large range ultrasonic liquid level. Background Art
[0002] At present, ultrasonic level meters and ultrasonic differential level meters on the market have obvious shortcomings, which are mainly reflected in the blind area distance and range. The blind area of products with large ranges is also correspondingly larger, and it is impossible to unify small blind areas with large ranges, which affects the actual application of liquid level measurement. In addition, in harsh environments such as closed containers, installation and debugging in narrow spaces will cause great trouble. Summary of the invention
[0003] The purpose of the present invention is to provide a method for measuring a large-range ultrasonic liquid level in a small blind area.
[0004] The present invention is implemented by the following technical solution: a method for measuring a large-range ultrasonic liquid level in a small blind area, which is implemented based on the following measurement system:
[0005] The measuring system comprises a CPU, a driving circuit, a variable gain amplifier circuit, a bandpass filter circuit, a rectifier circuit, and an ultrasonic transducer;
[0006] The CPU is connected to the driving circuit to control the driving circuit to output an excitation signal;
[0007] The driving circuit is connected to the ultrasonic transducer and is used to convert the excitation signal into a sound wave signal through the ultrasonic transducer and transmit and receive the sound wave signal;
[0008] The CPU is connected to the variable gain amplifier circuit to control the gain coefficient;
[0009] The ultrasonic transducer is also connected to the CPU in sequence through a variable gain amplifier circuit, a bandpass filter circuit, and a rectifier circuit, so that the CPU processes the received sound wave signal and calculates the liquid level distance;
[0010] The specific steps of the measurement method are as follows:
[0011] S1: The CPU sends a single pulse to the driving circuit, which sends and receives sound wave signals after the ultrasonic transducer converts the sound wave signals and converts the received sound wave signals into electrical signals, while controlling the variable gain amplifier circuit to output the minimum gain to amplify the converted electrical signals;
[0012] S2: The electrical signal amplified in S1 is processed by the bandpass filter circuit, converted by the rectifier circuit and output to the CPU;
[0013] S3: The CPU processes the signal processed by S2 to determine whether a correct normal echo is received;
[0014] S4: If a normal echo is received, the distance is calculated; then the next measurement is started again at step 1;
[0015] S5: No normal echo is received, enter multi-pulse mode, and intelligently adjust the number of pulses;
[0016] S6: The CPU sends multiple pulses to the driving circuit, which converts the sound wave signal through the ultrasonic transducer and sends and receives the sound wave signal and converts it into an electrical signal. At the same time, the variable gain amplifier circuit is controlled to output the minimum gain to amplify the received electrical signal; then repeat S2, S3, and S4 to determine whether a correct normal echo is received; if a normal echo is received, calculate the distance; re-enter step 1 to start the next measurement;
[0017] S7: If S6 does not receive a normal echo, the CPU controls to increase the gain coefficient of the variable gain amplifier circuit;
[0018] S8: Determine whether the maximum gain coefficient is exceeded;
[0019] S9: If the maximum gain factor is exceeded, the number of pulses is adjusted intelligently;
[0020] S10: Determine whether the maximum number of pulses is exceeded.
[0021] S11: If the maximum number of pulses is exceeded, re-enter step 1 to start the next measurement;
[0022] S12: The maximum number of pulses is not exceeded, the variable gain amplifier circuit returns to the initial signal value, and returns to S6 to start running.
[0023] Compared with the previous technology, the beneficial effects of the present invention are:
[0024] 1. It can control the gain amplification factor of the variable gain amplifier circuit to the minimum, and reduce the blind area without reducing the ultrasonic liquid level range; use multiple pulses to control the drive circuit to output signals to the ultrasonic transducer to emit high-energy ultrasonic signals, reduce the number of pulses when the ultrasonic liquid level is in close-range measurement, and increase the number of pulses when the ultrasonic liquid level is in long-range measurement. It can intelligently control the gain amplification factor of the variable gain amplifier circuit to ensure that the ultrasonic wave is stably emitted and received each time, thereby improving the accuracy and stability of ultrasonic liquid level measurement. It can achieve ultrasonic liquid level measurement with a wide range ratio.
[0025] 2. The ultrasonic level measurement process is that the transducer emits a high-frequency ultrasonic pulse. After the sound wave is reflected by the surface of the measured medium, part of the reflected echo is received by the same transducer and converted into an electrical signal. The ultrasonic pulse propagates at the speed of sound waves. The distance from the transducer to the surface of the measured medium can be calculated by the time difference between emission and reception. Since it adopts a non-contact measurement method, there is no restriction on the measured medium, and it can be widely used to measure the height of various liquids and solid materials.
[0026] 3. When ultrasonic waves propagate in the air, they will be greatly attenuated. The ultrasonic echo obtained during large-scale measurement is very weak. In order for the ultrasonic receiving circuit to obtain reliable ultrasonic echoes, the ultrasonic transducer must obtain a high-energy excitation signal. In order to perform good processing, it must be amplified. Therefore, multiple pulses are required to control the output signal of the drive circuit, and the gain amplification factor of the variable gain amplifier circuit needs to be controlled to be the maximum. The present invention realizes large-scale measurement through multiple pulses and large gain amplification factors.
[0027] 4. In order to expand the measurement range of ultrasonic liquid level and reduce the blind area without reducing the ultrasonic liquid level range, when the measurement distance is close, the energy of the echo is large, and a single pulse is needed to control the output signal of the driving circuit, and the gain amplification factor of the variable gain amplifier circuit needs to be controlled to be minimum. The present invention realizes the measurement of small blind areas through a single pulse with a small gain amplification factor. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a flow chart of the measurement method of the present invention;
[0029] Figure 2 A basic circuit connection diagram of the measurement method of the present invention;
[0030] Figure 3 A circuit diagram of the CPU of the present invention;
[0031] Figure 4 is a circuit relationship diagram of the driving circuit of the present invention;
[0032] Figure 5 is a circuit relationship diagram of a variable gain amplifier circuit of the present invention;
[0033] Figure 6 is a circuit relationship diagram of the bandpass filter circuit of the present invention;
[0034] Figure 7 4 is a circuit diagram of the rectifier circuit of the present invention.
[0035] Figure 8 Schematic diagram of judging normal echo in the present invention DETAILED DESCRIPTION
[0036] The present invention is described in detail below in conjunction with the accompanying drawings:
[0037] A method for measuring a large-range ultrasonic liquid level in a small blind area is implemented based on the following measurement system:
[0038] like Figure 2 As shown: the measuring system includes a CPU, a driving circuit, a variable gain amplifier circuit, a bandpass filter circuit, a rectifier circuit, and an ultrasonic transducer;
[0039] The CPU is connected to the driving circuit to control the driving circuit to output an excitation signal;
[0040] The driving circuit is connected to the ultrasonic transducer and is used to convert the excitation signal into a sound wave signal through the ultrasonic transducer and transmit and receive the sound wave signal;
[0041] The CPU is connected to the variable gain amplifier circuit to control the gain coefficient;
[0042] The ultrasonic transducer is also connected to the CPU in sequence through a variable gain amplifier circuit, a bandpass filter circuit, and a rectifier circuit, so that the CPU processes the received sound wave signal and calculates the liquid level distance;
[0043] The specific steps of the measurement method are as follows: Figure 1 As shown:
[0044] Step 1: As shown, the CPU passes Figure 3 The PD12 pin sends a single pulse to the Figure 4 The PWM of the driving circuit converts the sound wave signal through the ultrasonic transducer to send and receive the sound wave signal and convert the received sound wave signal into an electrical signal. Figure 3 The PA4 pin controls Figure 5 The DAC initial signal value of the variable gain amplifier circuit amplifies the received electrical signal TRANS with a minimum gain.
[0045] Here, the CPU sends a single pulse to the driving circuit, the driving circuit generates an excitation signal of 1000±50Vpp to drive the ultrasonic transducer, and the ultrasonic transducer generates a sound wave signal to propagate outward; the sound wave signal is reflected when it encounters an obstacle and is transmitted back to the ultrasonic transducer to generate an electrical signal; the electrical signal converted by the ultrasonic transducer passes through the variable gain amplifier circuit, and the CPU outputs a voltage signal to control the variable gain amplifier circuit to amplify the received electrical signal with minimum gain.
[0046] Step 2 Figure 5 The signal single1 is Figure 6 After the bandpass filter circuit is processed, the output is Figure 6 single2, Figure 7 After the rectification circuit, it is output to AD_OUT of the CPU.
[0047] In step 2, the electrical signal amplified by S1 is processed by a bandpass filter circuit to filter out interference signals other than the effective frequency to enhance anti-interference capability, and then the electrical signal (sine wave signal) is converted into a DC pulse signal by a rectifier circuit and output to the CPU for detection.
[0048] Step 3 Figure 3 After receiving the signal, AD_OUT of the CPU processes it to determine whether a correct and normal echo is received.
[0049] Step 4: If a normal echo is received, calculate the distance and re-enter step 1 to start the next measurement.
[0050] Step 5: If no normal echo is received, enter the multi-pulse mode and intelligently adjust the number of pulses.
[0051] Step 6: Pass Figure 3 The PD12 pin sends n pulses to Figure 4 The PWM of the driving circuit converts the sound wave signal through the ultrasonic transducer and sends and receives the sound wave signal and converts it into an electrical signal. Figure 3 The PA4 pin controls Figure 5 The DAC of the variable gain amplifier circuit amplifies the received signal TRANS with the minimum gain. Repeat the above steps 2, 3, and 4 to determine whether a normal waveform is received. Here n is not greater than the maximum number of pulses.
[0052] Step 7: If no normal echo is received, increase the DAC signal value.
[0053] Step 8: Determine whether the maximum gain factor is exceeded. The criterion for determining the maximum gain factor is: the gain of the variable gain amplifier circuit increases with the increase of the output voltage of the DAC, and the available gain control voltage is 0.1 to 2.9V; when the DAC output voltage reaches 2.9V, if no valid signal is received, the gain will no longer be increased.
[0054] Step 9: If the maximum gain coefficient is exceeded, the number of pulses is adjusted intelligently. The method of intelligently adjusting the number of pulses is to add 1 to the previous number of pulses.
[0055] Step 10: Determine whether the maximum number of pulses is exceeded. The maximum number of pulses is preset as 12.
[0056] Step 11: If the maximum number of pulses is exceeded, re-enter step 1 to start the next measurement.
[0057] Step 12: If the maximum number of pulses is not exceeded and the DAC initial signal value is set, return to step 6 and start running.
[0058] The comparison between the measuring method of the present invention and the traditional ultrasonic level meter is shown in the following table:
[0059] Table 1 shows the measurement parameters of traditional ultrasonic level meters:
[0060] Traditional ultrasonic level meter Blind Spot Maximum measuring distance 5m range 0.42m 5.15 m 10m range 0.50m 10.21 m 20m range 0.79m 20.03m
[0061] Table 2 shows the measurement parameters of the ultrasonic level meter using the technology of the present invention:
[0062] Ultrasonic level meter using the technology of the present invention Blind Spot Maximum measuring distance 5m range 0.23m 6.37 m 10m range 0.32m 11.52 m 20m range 0.55m 21.14 m
[0063] The test condition is to measure the distance against a smooth wall. Under the same conditions, the ultrasonic level meter using the technology of the present invention has a smaller blind area and a larger measurable distance.
[0064] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for measuring a large-range ultrasonic liquid level in a small blind area, characterized in that: It is implemented based on the following measurement system: The measuring system comprises a CPU, a driving circuit, a variable gain amplifier circuit, a bandpass filter circuit, a rectifier circuit, and an ultrasonic transducer; The CPU is connected to the driving circuit to control the driving circuit to output an excitation signal; The driving circuit is connected to the ultrasonic transducer and is used to convert the excitation signal into a sound wave signal through the ultrasonic transducer and transmit and receive the sound wave signal; The CPU is connected to the variable gain amplifier circuit to control the gain coefficient; The ultrasonic transducer is also connected to the CPU in sequence through a variable gain amplifier circuit, a bandpass filter circuit, and a rectifier circuit, so that the CPU processes the received sound wave signal and calculates the liquid level distance; The specific steps of the measurement method are as follows: S1: The CPU sends a single pulse to the driving circuit, which sends and receives sound wave signals after the ultrasonic transducer converts the sound wave signals and converts the received sound wave signals into electrical signals, while controlling the variable gain amplifier circuit to output the minimum gain to amplify the converted electrical signals; S2: The electrical signal amplified in S1 is processed by the bandpass filter circuit, converted by the rectifier circuit and output to the CPU; S3: The CPU processes the signal processed by S2 to determine whether a correct normal echo is received; S4: If a normal echo is received, the distance is calculated; then the next measurement is started again at step 1; S5: No normal echo is received, enter multi-pulse mode, and intelligently adjust the number of pulses; S6: The CPU sends multiple pulses to the driving circuit, which converts the sound wave signal through the ultrasonic transducer and sends and receives the sound wave signal and converts it into an electrical signal. At the same time, the variable gain amplifier circuit is controlled to output the minimum gain to amplify the received electrical signal; then repeat S2, S3, and S4 to determine whether a correct normal echo is received; if a normal echo is received, calculate the distance; re-enter step 1 to start the next measurement; S7: If S6 does not receive a normal echo, the CPU controls to increase the gain coefficient of the variable gain amplifier circuit; S8: Determine whether the maximum gain coefficient is exceeded; S9: If the maximum gain factor is exceeded, the number of pulses is adjusted intelligently; S10: Determine whether the maximum number of pulses is exceeded; S11: If the maximum number of pulses is exceeded, re-enter step 1 to start the next measurement; S12: The maximum number of pulses is not exceeded, the variable gain amplifier circuit returns to the initial signal value, and returns to S6 to start running.
2. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: The specific operation mode of S1 is: the CPU sends a single pulse to the driving circuit, the driving circuit generates an excitation signal of 1000±50Vpp to drive the ultrasonic transducer, and the ultrasonic transducer generates a sound wave signal to propagate outward; the sound wave signal is reflected when encountering an obstacle and is transmitted back to the ultrasonic transducer to generate an electrical signal; the electrical signal converted by the ultrasonic transducer passes through the variable gain amplifier circuit, and the CPU outputs a voltage signal to control the variable gain amplifier circuit to amplify the received electrical signal with minimum gain.
3. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S2, the electrical signal amplified by S1 is processed by a bandpass filter circuit to remove interference signals other than the effective frequency to enhance anti-interference capability, and then the electrical signal is converted into a DC pulse signal by a rectifier circuit and output to the CPU for detection.
4. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S3, the CPU compares the DC pulse signal processed in S2 with the signal threshold. If the DC pulse signal amplitude is greater than the corresponding signal threshold, it is considered to be a normal echo.
5. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S6, the number of pulses sent does not exceed the maximum number of pulses.
6. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S8, the criterion for determining the maximum gain coefficient is: the gain of the variable gain amplifier circuit increases as the output voltage of the DAC increases, and the available gain control voltage is 0.1 to 2.9V; when the DAC output voltage reaches 2.9V, if no valid signal is received, the gain will no longer increase.
7. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S9, the method for intelligently adjusting the number of pulses is to add 1 to the previous number of pulses.
8. The method for measuring a small blind area and a large range of ultrasonic liquid level according to claim 1, characterized in that: In S10, the maximum number of pulses is preset to 12.
Citation Information
Patent Citations
Non-contact type liquid level detection system and method based on ultrasonic pulse echo method
CN105758499A
Ultrasonic liquid level measuring method and ultrasonic liquid level measuring device
CN107576371A
Ultrasonic ranging system and method for accurately measuring echo arrival time
CN108279416A
Ultrasonic wave flow and liquid level measuring method based on multi-pulsion automatic gaining control
CN1975348A
Little blind area is journey level gauge in a small amount
CN205192573U
