Temperature compensation ultrasonic liquid level detection device
By introducing a temperature compensation algorithm and optimizing data processing into the ultrasonic liquid level detection device, the problem of large measurement errors in traditional devices under temperature changes is solved, and the accuracy and real-time performance of liquid level measurement are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- JIANGXI COPPER
- Filing Date
- 2025-05-09
- Publication Date
- 2026-04-24
AI Technical Summary
Traditional ultrasonic liquid level detection devices do not fully consider the influence of temperature on the propagation speed of ultrasonic waves, resulting in a significant increase in liquid level measurement errors in environments with large temperature variations. Furthermore, the data processing speed is slow, which cannot meet the real-time requirements in complex scenarios.
The ambient temperature is collected using a CHT11 digital temperature sensor, and combined with a TL852CDR ultrasonic receiver chip and an STM32F103C8T6 microcontroller, the liquid level height calculation parameters are adjusted in real time through a temperature compensation algorithm, and the data processing flow is optimized to improve measurement accuracy and speed.
It enables accurate measurement of liquid level at different temperatures, ensuring timely reflection of liquid level changes and meeting the liquid level measurement needs in complex scenarios.
Smart Images

Figure CN224163225U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of ultrasonic liquid level detection technology, and in particular to a temperature-compensated ultrasonic liquid level detection device. Background Technology
[0002] Temperature-compensated ultrasonic level detection devices, as important equipment for level measurement, are widely used in many fields such as chemical, petroleum, and water conservancy. Based on the principle of ultrasonic reflection, they achieve non-contact measurement of liquid levels in various containers, effectively solving the problems of contact measurement when dealing with corrosive or toxic liquids. In actual operation, the device mainly consists of the following key structures working together:
[0003] 1. In terms of buttons, users can flexibly set the high and low extreme values of temperature and liquid level warnings through the setting button, increase button, decrease button and confirm button to meet the safety monitoring needs in different scenarios.
[0004] 2. Temperature acquisition module, which typically uses CHT11 digital temperature sensor, is responsible for accurately acquiring the ambient temperature and transmitting the data to the microcontroller module to provide basic data for subsequent temperature compensation calculations.
[0005] 3. The receiving module is based on the TL852CDR dedicated ultrasonic receiver chip. It can efficiently receive reflected ultrasonic signals, and the internally integrated adjustable gain control amplifier can achieve 12 levels of gain adjustment through different combinations of the levels of the 4 pins, which enhances the stability and reliability of signal reception.
[0006] Currently, various technologies and equipment are being used in the industry to improve the accuracy and reliability of liquid level detection. Some companies are using high-precision ultrasonic sensors to improve the resolution of liquid level measurements; others are optimizing the signal processing algorithms of their devices to enhance their ability to capture and process weak signals; and some advanced devices are incorporating intelligent control programs to achieve automatic calibration and fault diagnosis functions.
[0007] However, the above-described implementation methods still have the following problems. Regarding temperature compensation, most traditional ultrasonic level detection devices do not fully consider the influence of temperature on the propagation speed of ultrasonic waves. Since ultrasonic waves propagate at different speeds in media at different temperatures, the level measurement error increases significantly in environments with large temperature variations. For example, in chemical production processes, the temperature inside the reactor often fluctuates, and the level data measured by traditional devices may differ significantly from the actual level, thus affecting the precise control of the production process and potentially even causing safety accidents. Regarding the real-time performance of level detection, some devices have slow data processing speeds and cannot promptly reflect rapid changes in the level. The current methods used in some applications, such as oil storage tank level detection, often fail to meet the high real-time requirements of liquid level measurement. To address these issues, this application proposes a solution: an ultrasonic liquid level detection device with precise temperature compensation and rapid data processing capabilities. This device acquires environmental temperature signals and measures ultrasonic wave reception and transmission. Precise temperature compensation is incorporated into the microcontroller's calculation of the liquid level height, enabling real-time measurement of liquid level at different temperatures, significantly improving measurement accuracy. Simultaneously, the optimized data processing flow enhances data processing speed, ensuring timely and accurate reflection of liquid level changes and meeting the liquid level measurement needs of various complex scenarios. Utility Model Content
[0008] To address the shortcomings of existing technologies, this invention provides a temperature-compensated ultrasonic liquid level detection device. This solves the problem that most traditional ultrasonic liquid level detection devices do not fully consider the influence of temperature on the propagation speed of ultrasonic waves. Since ultrasonic waves propagate at different speeds in media with different temperatures, this leads to a significant increase in liquid level measurement errors in environments with large temperature variations.
[0009] To achieve the above objectives, this utility model provides the following technical solution:
[0010] A temperature-compensated ultrasonic liquid level detection device includes buttons, an ultrasonic probe, a liquid medium, a temperature acquisition module, a receiving module, a power supply, a microcontroller module, a transmitting module, a display module, and an alarm module. The buttons include a setting button, an increment button, a decrement button, and an confirm button. The temperature acquisition module acquires the ambient temperature. The microcontroller module receives the data transmitted from the temperature acquisition module. The display module displays the measured ambient temperature and liquid level parameters in real time. The temperature acquisition module is a CHT11 type digital temperature sensor, the receiving module is a TL852CDR type dedicated ultrasonic receiver chip, and the power supply is an MP2625 type battery charging chip.
[0011] Preferably, the microcontroller module is an STM32F103C8T6 microcontroller, and the transmitting module is a T40-160 dedicated ultrasonic transmitting chip.
[0012] Preferably, the display module is an OLED display, which is driven by an SSD1306 driver chip, and the alarm module is a WTN6040 voice alarm.
[0013] Compared with the prior art, the present invention has the following beneficial effects:
[0014] The ambient temperature is collected using a temperature acquisition module. The CHT11 digital temperature sensor can quickly and accurately acquire temperature data and transmit it to the microcontroller module. Combined with the measurement data from ultrasonic reception and transmission, the microcontroller module calculates the liquid level height based on a temperature compensation algorithm. At different temperatures, the system will adjust the calculation parameters in real time according to the collected temperature data, thereby achieving accurate measurement of the liquid level height. Attached Figure Description
[0015] The above description is only an overview of the technical solution of this utility model. In order to better understand the technical means of this utility model and to implement it in accordance with the contents of the specification, the preferred embodiments of this utility model are described in detail below with reference to the accompanying drawings.
[0016] Figure 1 This is a hardware structure diagram of the present invention;
[0017] Figure 2 This is a schematic diagram of the button module of this utility model;
[0018] Figure 3 This is a circuit diagram of the ultrasonic receiving module of this utility model;
[0019] Figure 4 This is the circuit schematic diagram of the power module of this utility model;
[0020] Figure 5 This is a circuit schematic diagram of the microcontroller module of this utility model;
[0021] Figure 6 This is a schematic diagram of the transmitting module circuit of this utility model;
[0022] Figure 7 This is a schematic diagram of the display module circuit of this utility model;
[0023] Figure 8 This is a circuit diagram of the alarm module of this utility model;
[0024] Figure 9 This is a schematic diagram of the liquid level detection principle of this utility model.
[0025] Legend: 1. Set key; 2. Increase key; 3. Decrease key; 4. Confirm key; 5. Ultrasonic probe; 6. Liquid medium; 7. Temperature acquisition module; 8. Receiver module; 9. Power supply; 10. Microcontroller module; 11. Transmitter module; 12. Display module; 13. Alarm module. Detailed Implementation
[0026] This application provides a temperature-compensated ultrasonic liquid level detection device, which effectively solves the problem that most traditional ultrasonic liquid level detection devices do not fully consider the influence of temperature on the propagation speed of ultrasonic waves. Since the propagation speed of ultrasonic waves varies in media at different temperatures, this leads to a significant increase in liquid level measurement errors in environments with large temperature variations. This device collects temperature signals from the environment and measures the reception and transmission of ultrasonic waves. By incorporating precise temperature compensation when the microcontroller calculates the liquid level height, it can measure the liquid level height at different temperatures in real time, greatly improving the accuracy of the measurement. At the same time, it optimizes the data processing flow and improves the data processing speed, ensuring that it can reflect liquid level changes in a timely and accurate manner, meeting the liquid level measurement needs in various complex scenarios. Example
[0027] like Figures 1 to 9 As shown, the technical solution in this application embodiment effectively solves the problem that most traditional ultrasonic liquid level detection devices do not fully consider the influence of temperature on the propagation speed of ultrasonic waves. Since the propagation speed of ultrasonic waves is different in media at different temperatures, this leads to a significant increase in liquid level measurement error in environments with large temperature variations. The overall idea is as follows:
[0028] To address the problems existing in the prior art, this utility model provides a temperature-compensated ultrasonic liquid level detection device, including buttons, an ultrasonic probe 5, a liquid medium 6, a temperature acquisition module 7, a receiving module 8, a power supply 9, a microcontroller module 10, a transmitting module 11, a display module 12, and an alarm module 13. The buttons are used to set the high and low extreme values for temperature and liquid level warnings. The temperature acquisition module 7 collects the ambient temperature and transmits it to the microcontroller module 10. The display module 12 displays the measured ambient temperature and liquid level parameters in real time. When the temperature and liquid level warnings are outside the set extreme value range, the alarm module 13 triggers an alarm. The buttons include a setting button 1, an increase button 2, a decrease button 3, and a confirm button 4. Press key 4, then press key 1 to enter the parameter setting interface. Then, use key 2 and key 3 to set the upper and lower limits of the temperature alarm and the upper and lower limits of the liquid level alarm. Press key 4 to confirm the setting and return. The temperature acquisition module 7 is a CHT11 digital temperature sensor. The temperature acquisition module 7 collects the ambient temperature. The CHT11 digital temperature sensor can quickly and accurately acquire temperature data and transmit it to the microcontroller module 10. Combined with the measurement data of ultrasonic reception and transmission, the microcontroller module 10 calculates the liquid level height according to the temperature compensation algorithm. At different temperatures, the system will adjust the calculation parameters in real time according to the collected temperature data, thereby realizing accurate measurement of the liquid level height.
[0029] Receiver module 8 is a TL852CDR dedicated ultrasonic receiver chip. The TL852CDR integrates an adjustable gain amplifier, with 12 levels of gain adjustment represented by different combinations of high and low levels on four pins. The four control signals are GCA, GCB, GCC, and GCD, which are connected to the PA0, PC13, PC14, and PC15 pins of the STM32 microcontroller, respectively. Power supply 9 is an MP2625 battery charging chip. Microcontroller module 10 is an STM32F103C8T6 microcontroller. Pins 1, 24, 36, 48, and 9 of the STM32F103C8T6 microcontroller are connected to a 3.3V power supply; pins 8, 23, 35, and 47 are grounded; pins 5 and 6 are connected to an external 8MHz clock; pins 3 and 4 are connected to a clock crystal oscillator for clocking purposes; pin 7 is reset at a low level; and pins PA0-PA15 and PB0-PB15 are used as inputs. The output module 11 is a T40-160 type dedicated ultrasonic transmitter chip. The PA8 of the STM32F103C8T6 microcontroller outputs a cluster of square wave signals, causing the transistor Q2 to switch rapidly, generating a voltage 10 times higher on the secondary side of the transformer T1, with a peak voltage of approximately 50V. The secondary coil of the transformer forms a resonant circuit with the ultrasonic probe 5, thereby generating and emitting sound wave pulses on the ultrasonic probe 5. The display module 12 is an OLED display, driven by an SSD1306 driver chip. The OLED display is connected to the STM32F103C8T6 microcontroller via a 4-wire SPI interface, and its BS0, BS1, and BS2 pins are grounded. The alarm module 13 is a WTN6040 type voice alarm, which is connected to the STM32F103C8T6 microcontroller via three control signal lines.
[0030] Working principle:
[0031] The buttons are used to set the high and low extreme values for temperature and liquid level warnings. The temperature acquisition module 7 is used to collect the ambient temperature and transmit it to the microcontroller module 10. The display module 12 displays the measured ambient temperature and liquid level parameters in real time. When the temperature and liquid level warnings are not within the set extreme value range, the alarm module 13 will trigger an alarm. After the liquid has been left to stand for a period of time and is close to room temperature, hold the ultrasonic probe 5 at the opening above the tank. Keep your hand as stable as possible during the distance measurement process. Start timing after the measuring instrument emits ultrasonic waves. When the ultrasonic wave meets the surface of the liquid medium 6, some sound waves at the interface between the air and the liquid medium 6 are reflected back to the receiver. At this time, the receiver records the time as t1. Another part of the sound waves will penetrate the liquid surface and continue to propagate due to refraction until they meet the bottom of the tank and return, passing through the surface of the liquid medium 6 and returning to the receiver. The receiver records the time as t2, where t1 is the transit time between the liquid surface and the measuring instrument, and t2 is the total path time. Therefore, the difference between t2 and t1 is the transit time of the ultrasonic wave in the liquid medium 6. The propagation speed C2 of the ultrasonic wave in the measured liquid medium 6 is calculated based on temperature compensation. Then, according to the formula algorithm of sound speed and temperature compensation, we can calculate the height of the liquid medium 6 from the bottom of the tank as C2*(t2-t1) / 2. The ambient temperature is collected by the temperature acquisition module 7, which uses a CHT11 digital temperature sensor to quickly and accurately acquire temperature data and transmit it to the microcontroller module 10. Combining the measurement data of ultrasonic wave reception and transmission, the microcontroller module 10 calculates the liquid level height according to the temperature compensation algorithm. At different temperatures, the system will adjust the calculation parameters in real time according to the collected temperature data, thereby achieving accurate measurement of the liquid level height.
[0032] Finally, it should be noted that the above embodiments are merely examples for clearly illustrating the present invention and are not intended to limit the implementation. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the protection scope of this invention.
Claims
1. A temperature-compensated ultrasonic liquid level detection device, characterized in that, It includes buttons, an ultrasonic probe (5), a liquid medium (6), a temperature acquisition module (7), a receiving module (8), a power supply (9), a microcontroller module (10), a transmitting module (11), a display module (12), and an alarm module (13); the buttons include a setting button (1), an increase button (2), a decrease button (3), and a confirmation button (4); the temperature acquisition module (7) is used to acquire ambient temperature; The microcontroller module (10) is used to receive data transmitted by the temperature acquisition module (7), the display module (12) displays the measured ambient temperature and liquid level parameters in real time, and the buttons include a setting button (1), an increase button (2), a decrease button (3) and a confirmation button (4); the temperature acquisition module (7) is a CHT11 type digital temperature sensor, and the receiving module (8) is a TL852CDR type dedicated ultrasonic receiving chip.
2. The temperature-compensated ultrasonic liquid level detection device as described in claim 1, characterized in that: The power supply (9) is an MP2625 battery charging chip.
3. The temperature-compensated ultrasonic liquid level detection device as described in claim 1, characterized in that: The microcontroller module (10) is an STM32F103C8T6 microcontroller.
4. The temperature-compensated ultrasonic liquid level detection device as described in claim 1, characterized in that: The transmitting module (11) is a T40-160 type dedicated ultrasonic transmitting chip.
5. The temperature-compensated ultrasonic liquid level detection device as described in claim 1, characterized in that: The display module (12) is an OLED display, which is driven by an SSD1306 driver chip.
6. The temperature-compensated ultrasonic liquid level detection device as described in claim 1, characterized in that: The alarm module (13) is a WTN6040 voice alarm.