Container liquid level measuring method, system and equipment of pressure sensor and medium
Through dual sensor differential measurement and temperature compensation model, gas phase pressure and sensor drift errors are eliminated, and the high accuracy and stability of liquid level measurement is achieved, and the measurement error problems caused by temperature changes and gas phase pressure fluctuations are solved. It is suitable for complex working conditions.
Patent Information
- Application Number
- CN202510695646.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2045-05-28
AI Technical Summary
When the existing liquid level measurement technology faces severe temperature changes and gas-phase pressure fluctuations, there are problems of large measurement errors and poor stability, especially in closed containers, which are difficult to achieve high-precision measurement.
The dual-sensor differential measurement mechanism is used to eliminate gas-phase pressure interference, combine the temperature compensation model to dynamically correct the liquid density and sensor temperature drift error, and realize systematic correction of the impact of multi-parameter coupling through three-dimensional compensation function and dynamic calibration method, and output liquid level values in real time through the closed-loop signal processing process.
It significantly improves the accuracy and stability of liquid level measurement, can adapt to complex working conditions, and provides high-reliability and high-precision liquid level detection solutions.
Smart Images

Figure CN120385405A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial automation control, and in particular to a container liquid level measurement method, system, equipment and medium of a pressure sensor. Background Art
[0002] Current liquid level measurement technologies in industrial applications mainly rely on float, capacitance, ultrasonic / radar, and traditional pressure methods. Float and capacitance level gauges are easily affected by characteristics such as medium density and dielectric constant, and their mechanical components are prone to wear and tear, resulting in high maintenance costs. Although ultrasonic and radar technologies are non-contact measurements, they have strict requirements on the container structure (such as inner wall smoothness and gas phase space height), and there are measurement blind spots, making them difficult to adapt to complex working conditions. Traditional pressure-type liquid level measurement uses a bottom pressure sensor to infer the liquid level, but does not consider the coupling effects of gas phase pressure fluctuations and temperature changes on the sensor output, resulting in errors as high as 5%-10%. Especially in closed containers, gas phase pressure and temperature drift can significantly interfere with the output of the pressure sensor, and existing technologies lack a dynamic compensation mechanism, making it difficult to achieve high-precision measurements.
[0003] As industrial automation increases the demand for liquid level detection accuracy and stability, the limitations of existing technologies are becoming increasingly prominent. For example, in scenarios with drastic temperature changes (-40°C to 85°C), changes in liquid density with temperature will directly affect liquid level calculations, and the temperature drift characteristics of the sensor itself further exacerbate the error; at the same time, the gas phase pressure and liquid level pressure of the closed container are superimposed, and the traditional single-sensor solution cannot effectively separate the two, causing the measurement results to deviate from the true value. In addition, there is a lack of a systematic correction model for the coupling of multiple parameters (such as temperature, pressure, and density). Existing technologies mostly use single-parameter compensation or static calibration, which cannot adapt to dynamic working conditions. These problems limit the application of liquid level measurement technology in key fields such as energy and chemical industry. There is an urgent need for a high-precision measurement method that can eliminate multiple interference factors in real time and achieve dynamic closed-loop compensation. Summary of the invention
[0004] In view of the above existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a container liquid level measurement method and system using a pressure sensor, which eliminates gas phase pressure interference through dual-sensor differential measurement, dynamically corrects liquid density and sensor temperature drift errors in combination with a temperature compensation model, and uses a three-dimensional compensation function and a dynamic calibration method to achieve systematic correction of multi-parameter coupling effects. It also outputs high-precision liquid level values in real time through a closed-loop signal processing process, solving the problems of large measurement errors and poor stability caused by temperature changes, gas phase pressure fluctuations and sensor drift in the prior art.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for measuring the liquid level of a container using a pressure sensor, comprising:
[0008] Based on sensor measurement interference, combining with a compensation model to achieve dynamic parameter correction;
[0009] Establish a compensation function based on temperature change and a sensor correction model to dynamically adjust parameters in real time;
[0010] Use the sensor for collaborative measurement, combine with the built-in measurement data, and complete the compensation calculation through a preset threshold;
[0011] Design a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction;
[0012] Based on data processing, construct a closed-loop measurement process and output the compensated value.
[0013] As a preferred solution of the method for measuring the liquid level of a container using the pressure sensor of the present invention, wherein: based on sensor measurement interference, combining with a compensation model to achieve dynamic parameter correction, including:
[0014] Through sensor measurement interference, combining with the temperature drift coefficient and the density function to achieve parameter correction;
[0015] Based on the compensation model, dynamically adjust the liquid density and the sensor drift amount.
[0016] As a preferred solution of the method for measuring the liquid level of a container using the pressure sensor of the present invention, wherein: establishing a compensation function based on temperature change and a sensor correction model to dynamically adjust parameters in real time, including:
[0017] Construct a correlation model between liquid density and temperature and a sensor coefficient correction framework;
[0018] Based on real-time temperature data, synchronously update the density calculation and the sensor drift compensation amount.
[0019] As a preferred solution of the method for measuring the liquid level of a container using the pressure sensor of the present invention, wherein: using the sensor for collaborative measurement, combining with the built-in measurement data, and completing the compensation calculation through a preset threshold, including:
[0020] Based on the measurement mechanisms of the bottom and top sensors to eliminate interference, and synchronously integrate the sensors to collect real-time environmental parameters;
[0021] Through the standardized acquisition, filtering, and dynamic compensation threshold matching of multi-source data fusion processing;
[0022] Based on the relationship between temperature and density, construct a compensation calculation model to output the corrected value.
[0023] As a preferred solution of the container liquid level measurement method of the pressure sensor described in the present invention, wherein: a dynamic calibration method is designed to eliminate errors through fixed-point calibration and coefficient correction, including:
[0024] Based on the state, a reference benchmark point is set, and a calibration model is established in combination with the container structure parameters;
[0025] Through the sensor data collected in real time, dynamic compensation and correction are carried out by using the preset structure coefficient.
[0026] As a preferred solution of the container liquid level measurement method of the pressure sensor described in the present invention, wherein: based on data processing, a closed-loop measurement process is constructed and the compensated value is output, including:
[0027] The signals of the sensor and the temperature probe are collected in real time through an analog-to-digital converter, and high-frequency noise interference is eliminated by combining digital filtering technology;
[0028] Based on the preset liquid density table and temperature drift coefficient, the temperature data is input into a three-dimensional compensation model to dynamically adjust the liquid density value, the pressure drift caused by temperature is eliminated through the sensor drift correction coefficient, and the liquid level height is calculated in real time based on the differential pressure value.
[0029] As a preferred solution of the container liquid level measurement method of the pressure sensor described in the present invention, wherein: the dynamic adjustment of the three-dimensional compensation model includes:
[0030] According to the liquid temperature monitored in real time, the preset density-temperature relationship is called to dynamically adjust the liquid density parameter, and the influence of the expansion and contraction of the liquid volume caused by temperature change on the liquid level calculation is compensated;
[0031] Through the calibrated temperature drift coefficient, combined with the temperature probe data, a quadratic function model of the sensor output pressure changing with temperature is established to real-time correct the temperature drift error of the pressure sensor;
[0032] In the liquid level zero state, the gas phase pressure reference value is calibrated by using the reference pressure point, and combined with the container structure coefficient, the gas phase pressure interference and the system cumulative error are periodically corrected.
[0033] In a second aspect, the present invention provides a container liquid level measurement system for a pressure sensor, including:
[0034] An interference compensation module, based on the sensor measurement interference, realizes parameter dynamic correction in combination with a compensation model;
[0035] A temperature parameter adjustment module, establishes a compensation function and a sensor correction model based on temperature change, and dynamically adjusts parameters in real time;
[0036] A collaborative threshold measurement module, uses the sensor for collaborative measurement, combines the built-in measurement data, and completes the compensation calculation through a preset threshold;
[0037] The dynamic calibration module designs a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction;
[0038] The closed-loop processing module constructs a closed-loop measurement process and outputs the compensated value based on data processing.
[0039] In a third aspect, the present invention provides an electronic device, including:
[0040] A memory and a processor;
[0041] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the container liquid level measurement method of the pressure sensor are implemented.
[0042] In a fourth aspect, the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the container liquid level measurement method of the pressure sensor are implemented.
[0043] Compared with the prior art, the beneficial effects of the present invention are as follows: The present invention effectively eliminates the interference of gas-phase pressure on liquid level detection through a dual-sensor differential measurement mechanism, combines a temperature compensation model to dynamically correct the change in liquid density and sensor drift error, and significantly improves the accuracy of initial parameter calibration; through the linkage of a three-dimensional compensation function and real-time temperature data, synchronously adjusts the density calculation and sensor drift correction amount, realizes the dynamic decoupling and adaptive compensation of the multi-parameter coupling effect, and enhances the measurement stability under complex working conditions; based on a closed-loop signal processing flow, integrates high-precision analog-to-digital conversion, digital filtering and dynamic calibration algorithms, ensures the real-time output of the liquid level calculation result and strong anti-interference ability, and solves the problem of cumulative error caused by environmental fluctuations in traditional methods. Finally, the present invention realizes a significant reduction in liquid level measurement error, significantly improves the long-term stability of the system, can adapt to drastic temperature changes, gas-phase pressure fluctuations and multi-medium scenarios, and provides a highly reliable and high-precision liquid level detection solution for the industrial automation field. Description of the Drawings
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 It is a schematic diagram of the overall process of the container liquid level measurement method of the pressure sensor according to an embodiment of the present invention.
[0046] Figure 2 The structural schematic diagram of the method for measuring the liquid level of the container of the pressure sensor according to an embodiment of the present invention. Specific embodiments
[0047] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the following will describe the specific embodiments of the present invention in detail with reference to the accompanying drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present invention.
[0048] Embodiment 1, referring to Figure 1 , which is an embodiment of the present invention, provides a method for measuring the liquid level of a container of a pressure sensor, including:
[0049] S1: Based on the sensor measurement interference, combine with the compensation model to realize dynamic parameter correction;
[0050] S2: Establish a compensation function based on temperature change and a sensor correction model, and dynamically adjust the parameters in real time;
[0051] S3: Use the sensor for collaborative measurement, combine with the built-in measurement data, and complete the compensation calculation through a preset threshold;
[0052] S4: Design a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction;
[0053] S5: Based on data processing, construct a closed-loop measurement process and output the compensated value.
[0054] It should be noted that the existing liquid level measurement technology has problems such as error accumulation and insufficient stability due to gas-phase pressure interference, temperature drift, and multi-parameter coupling effects. Especially in closed containers or complex industrial scenarios, the traditional single-sensor scheme cannot effectively separate the gas-phase pressure and the liquid level pressure, and lacks a dynamic compensation mechanism, making it difficult to meet the high-precision measurement requirements under drastic temperature changes and multi-medium environments.
[0055] Therefore, aiming at the problems of large measurement errors, weak anti-interference ability, and poor long-term stability, through the steps of S1-S5, a dual-sensor differential measurement mechanism is constructed to eliminate gas-phase pressure interference, and the liquid density and sensor drift error are corrected in real time in combination with the temperature compensation model; based on the three-dimensional compensation function, the multi-parameter coupling effect is dynamically decoupled, and the compensation calculation is optimized through collaborative measurement and preset threshold; a dynamic calibration method is designed to periodically correct the system error, and a closed-loop signal processing process is integrated to achieve high-precision data acquisition, noise suppression, and real-time liquid level output, ultimately significantly improving the measurement accuracy and adaptability to complex working conditions; as Figure 1As shown, first read the data measured by the sensor, then the processor performs corresponding calculations according to the set algorithm, and then displays the calculated results.
[0056] Example 2, referring to Figure 2 , which is an embodiment of the present invention. Based on the above embodiment, a method for measuring the liquid level of a container with a pressure sensor is provided.
[0057] In the embodiment of the present application, in step S1, based on the sensor measurement interference, the parameter dynamic correction is realized by combining the compensation model. Through the collaborative differential measurement mechanism of deploying the bottom pressure sensor (P1) and the top pressure sensor (P2), the difference between the total pressure measured by P1 (including the liquid level pressure, the gas phase pressure and the temperature drift amount) and the pure gas phase pressure measured by P2 is used to eliminate the interference of the gas phase pressure on the liquid level calculation; at the same time, a temperature probe is integrated to monitor the liquid temperature in real time, and combined with the preset temperature drift coefficients (k1, k2) and the density-temperature relationship table, the sensor output drift amount and the liquid density change are dynamically corrected to realize the real-time compensation of the temperature and pressure coupling interference, so as to complete the dynamic optimization adjustment of the liquid level parameters.
[0058] In an alternative embodiment, in step S1, based on the sensor measurement interference, the parameter dynamic correction can also be realized by the distributed deployment of a multi-sensor array, that is, multiple groups of pressure sensors are installed at the bottom and side walls of the container, and the pressure gradient characteristics between the sensors are extracted by the redundant data fusion algorithm, and the regional interference of the local gas phase pressure fluctuation and temperature drift on the liquid level calculation is dynamically corrected in combination with the temperature field distribution model.
[0059] In another alternative embodiment, in step S1, based on the sensor measurement interference, the parameter dynamic correction can also be realized by introducing the frequency domain analysis technology of the pressure signal, performing spectral decomposition on the pressure waveform output by the sensor, separating the high-frequency noise and the low-frequency interference components, and combining the temperature compensation model to perform adaptive filtering and dynamic weight allocation on the interference signals in different frequency bands to optimize the real-time performance and anti-interference performance of the liquid level parameter correction.
[0060] In the embodiment of the present application, in step S1, based on the sensor measurement interference, the parameter dynamic correction is realized by combining the compensation model, and further includes:
[0061] The total pressure measured by the pressure sensor installed at the bottom of the container is expressed as:
[0062] p total =ρgh + p gas +Δp temp
[0063] Where ρ represents the liquid density (kg / m 3 ), g represents the acceleration due to gravity (9.80665 m / s2 ), h represents the liquid level height (m), p gas represents the gas phase pressure (Pa), Δp temp represents the temperature drift (Pa);
[0064] The liquid pressure is equal to the density multiplied by the acceleration due to gravity g multiplied by the liquid column height h, that is, ρgh. However, in a closed container, the total pressure at the bottom in addition to the pressure generated by the liquid column height also includes the pressure of the upper part of the air (the pressure in the upper space of the closed container is often higher than the atmospheric pressure, especially in a closed container of a liquid with high temperature and easy evaporation). So the total pressure also needs to add the upper space pressure p gas , and the density and expansion degree of another liquid will change significantly with the temperature. Therefore, the temperature compensation pressure, that is, the temperature drift Δp, also needs to be added temp .
[0065] In the embodiment of the present application, in step S2, a compensation function based on temperature change and a sensor correction model are established. Through the non-linear relationship between liquid density and temperature, a density compensation function including primary and secondary temperature terms is constructed, and the liquid density parameters are dynamically adjusted through a preset density-temperature relationship table to compensate for the volume expansion or contraction of the liquid caused by temperature change; at the same time, combined with the liquid temperature data collected by the temperature probe in real time, a correction model of the output of the pressure sensor changing with temperature is established by using the calibrated sensor temperature drift coefficient (primary and secondary terms), the temperature drift error of the sensor itself is dynamically eliminated, and the temperature-related coefficients are optimized by the least square method to ensure the adaptability of the model in a wide temperature range.
[0066] In an alternative embodiment, in step S2, a compensation function based on temperature change and a sensor correction model can also be established by introducing an environmental temperature gradient monitoring mechanism, combining the synchronous data of the container outer wall temperature sensor and the liquid internal temperature probe, constructing a multi-dimensional temperature field distribution model, dynamically correcting the thermal expansion influence of the environmental temperature on the sensor installation structure, and optimizing the correlation compensation parameters of the liquid density and the temperature drift coefficient based on the thermodynamic transfer relationship.
[0067] In another alternative embodiment, in step S2, a compensation function based on temperature change and a sensor correction model can also be established by an adaptive piecewise linear approximation algorithm. The wide temperature range is divided into multiple intervals, the density compensation coefficient and the sensor temperature drift correction amount are independently calibrated for different temperature segments, and the optimal interval parameters are automatically matched in combination with the real-time temperature data to reduce the accumulation of non-linear errors and at the same time reduce the computational complexity of high-order polynomials.
[0068] In the embodiment of the present application, in step S2, establishing a compensation function based on temperature change and a sensor correction model, and dynamically adjusting parameters in real time, further includes:
[0069] Establish a three-dimensional compensation function:
[0070] ρ(T) = ρ0[1 - α(T - T0) + β(T - T0) 2
[0071] Δp comp = k1ΔT + k2ΔT 2
[0072] where ρ(T) is a compensation for the influence of temperature on the liquid density; Δp comp is the pressure compensation for the influence of the final temperature on the liquid column pressure.
[0073] Implementation method: As Figure 2 shown, the bottom sensor is installed 5 cm from the bottom of the container, the top sensor is installed at the top of the gas phase space, and the temperature sensor is installed closely to the bottom sensor.
[0074] In the figure: Measurement point P1: Bottom pressure sensor, the measured value is ρgh + p gas ;
[0075] Measurement point P2: Top pressure sensor, the measured value is p gas ;
[0076] Temperature probe: Integrated in the P1 sensor, it monitors the liquid temperature in real time;
[0077] Liquid level height h: Calculated by (P1 - P2) / ρg;
[0078] Gas phase pressure elimination: Achieved through differential measurement of dual sensors;
[0079] Density compensation: Temperature data is input into the ρ(T) calculation module.
[0080] In the implementation method of this application, in step S3, sensors are used for collaborative measurement. Combining the built-in measurement data, the compensation calculation is completed through a preset threshold. "Completing the compensation calculation through a preset threshold" is specifically embodied as follows: Through the collaborative arrangement of the bottom pressure sensor and the top pressure sensor, the total pressure (including the liquid level static pressure and the gas phase pressure) at the bottom of the container and the pure gas phase pressure at the top are collected respectively. The interference of the gas phase pressure on the liquid level calculation is eliminated by using differential measurement. At the same time, the temperature probe integrated in the bottom sensor monitors the liquid temperature in real time. Combining the preset liquid density-temperature relationship table and the sensor temperature drift coefficient threshold, the density value and the drift correction amount at the current temperature are dynamically matched. Through the multi-source data fusion and threshold screening mechanism, the temperature compensation and error correction of the pressure difference are completed, and finally a high-precision liquid level calculation result is output.
[0081] In an alternative embodiment, in step S3, collaborative measurement is performed using sensors. Combining the built-in measurement data, the compensation calculation is completed through a preset threshold, and it can also be achieved through multi-position temperature gradient monitoring and adaptive threshold adjustment: Distributed temperature sensors are added to the side wall and the middle section of the liquid level of the container to collect the temperature gradient data of the liquid at different depths in real time. Combining with the preset density-temperature non-linear relationship table, multi-region density correction coefficients are dynamically generated. At the same time, an adaptive threshold algorithm is introduced. According to the environmental temperature change rate and the pressure fluctuation range, the temperature drift compensation threshold range is automatically adjusted to achieve segmented error correction and further optimize the liquid level calculation accuracy.
[0082] In another alternative embodiment, in step S3, collaborative measurement is performed using sensors. Combining the built-in measurement data, the compensation calculation is completed through a preset threshold, and it can also be achieved through a redundant sensor array and a multi-source data fusion strategy: Multiple groups of pressure sensor arrays are deployed at the bottom and top of the container, and the single-point measurement noise is eliminated through a weighted average algorithm. Synchronously integrate the liquid level historical data and the real-time pressure change trend, construct a dynamic threshold adjustment model, expand the compensation dimension by combining the preset medium characteristic parameters (such as viscosity, dielectric constant), and screen the effective signals through multi-source data cross-validation to enhance the anti-interference ability in a complex medium environment.
[0083] In the embodiment of the present application, in step S3, collaborative measurement is performed using sensors. Combining the built-in measurement data, the compensation calculation is completed through a preset threshold, and it further includes:
[0084] Adopt a dual-sensor structure:
[0085] P1 → |Bottom sensor| → ρgh + p gas
[0086] P2 → |Top sensor| → p gas
[0087] Actual liquid level calculation formula:
[0088] h = (P1 - P2) / (ρg)
[0089] According to the pressure formula P = ρgh to find h, that is, h = p / ρg. As mentioned before, the pressure of the liquid column needs to subtract the pressure of the upper space from the total pressure, so P = P1 - P2 here. Finally, h = (P1 - P2) / (ρg); P1 is the total pressure measured by the bottom sensor of the container, and P2 is the pressure of the upper space measured by the top sensor.
[0090] Regarding the composition of the total pressure at the bottom of the container, what we actually need is only the height of the liquid. Therefore, after measuring the total pressure, the pressure p of the gas in the upper space needs to be subtracted gas to obtain the pressure of the liquid column and then calculate the height of the liquid column, that is, the liquid level, according to the pressure formula.
[0091] In the embodiment of the present application, in step S4, a dynamic calibration method is designed to eliminate errors through fixed-point calibration and coefficient correction, including:
[0092] Final compensation formula:
[0093] h = [(P1 - P2) - Δp comp / [ρ(T)g]
[0094] The coefficient is calibrated by the least squares method:
[0095] α: primary temperature coefficient (1 / °C);
[0096] β: secondary temperature coefficient (1 / °C²);
[0097] k1, k2: sensor temperature drift coefficients;
[0098] Due to the influence of temperature on liquid density and expansion, temperature compensation must be introduced to accurately measure the liquid level height h at different temperatures.
[0099] Calibration of the liquid zero level is achieved by setting a reference pressure point:
[0100] When h = 0: p1 ref = P2 + δ
[0101] Calibration formula: p gas = P2 + (P1 - p1 ref ) / γ
[0102] Among them, δ and γ are container structure coefficients; it is equivalent to the setting of the 0 point, that is, when the liquid level is 0, the bottom pressure P1 is not necessarily 0. The pressure P1 measured by the bottom sensor at this time is represented by p1 ref . (Because ideally, when the liquid level in the container is 0, the bottom pressure P1 should be equal to the top pressure P2, that is, p gas ); when the liquid level is 0, the bottom pressure P1 is not necessarily 0, and this part of the pressure also needs to be included in the upper space pressure p gas and subtracted during calculation.
[0103] In the embodiment of the present application, in step S5, based on data processing, a closed-loop measurement process is constructed and the compensated value is output, including:
[0104] Signal processing:
[0105] P1 → |24-bit ADC sampling| → digital filtering
[0106] P2 → |24-bit ADC sampling| → digital filtering
[0107] T → |PT100 temperature measurement| → look up table for compensation
[0108] The calculation process includes:
[0109] Read P1, P2, T;
[0110] Calculate ΔP = P1 - P2;
[0111] Temperature compensation:
[0112] ρ = preset density table [T];
[0113] Δp comp = temperature drift coefficient [T];
[0114] Calculate h = (ΔP - Δp comp ) / (ρg);
[0115] Output the value of h;
[0116] P1 is the pressure value measured by the pressure sensor at the bottom of the container, P2 is the pressure value measured by the top pressure sensor, and T is the temperature of the liquid;
[0117] ΔP is the pressure generated by the liquid column height, and ρ = preset density table [T] means implanting in advance the density values of different liquids to be measured on site in the device, such as water, gasoline, acids and alkalis, etc.
[0118] In summary, the present invention provides a method for measuring the liquid level of a container based on a pressure sensor. Through a dual-sensor differential measurement mechanism, the static pressure of the liquid level and the gas phase pressure are effectively separated. Combining with a temperature compensation model, the change of liquid density and the temperature drift error of the sensor are dynamically corrected, solving the problems of low measurement accuracy and poor stability caused by multi-parameter coupling in the traditional technology. The present invention adopts a collaborative arrangement of bottom and top pressure sensors to collect the total pressure and pure gas phase pressure in real time, and uses differential calculation to eliminate gas phase interference; integrates a temperature probe to monitor the liquid temperature, calls the preset density-temperature relationship table and temperature drift coefficient, and dynamically optimizes the density parameter and drift correction amount; realizes the adaptive decoupling and synchronous correction of multi-parameters such as temperature, pressure and density through a three-dimensional compensation function, significantly improving the anti-interference ability under complex working conditions. In addition, a dynamic calibration method is designed to combine reference pressure point calibration and structural coefficient correction to periodically eliminate the cumulative error of the system and ensure long-term measurement stability. The closed-loop signal processing process integrates high-precision data acquisition, digital filtering and real-time algorithms to optimize the signal quality and output the compensated liquid level value.
[0119] Embodiment 3, an embodiment of the present invention, provides a method for measuring the liquid level of a container with a pressure sensor. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0120] Parameters of a certain storage tank:
[0121] Diameter 2m, height 3m;
[0122] Medium: diesel (ρ0 = 840 kg / m 3 , α = 0.0007 / °C);
[0123] Temperature change: 25°C → 50°C;
[0124] Measured data:
[0125] P1 = 25230 Pa, P2 = 11325 Pa, T = 50°C;
[0126] Compensation calculation:
[0127] ρ = 840×(1 - 0.0007×25) = 823.5 kg / m 3 ;
[0128] Δp comp = 0.05%×(50 - 25)×25230 = 315.4 Pa;
[0129] h = (25230 - 11325 - 315.4) / (823.5×9.80665) = 1.6839 m;
[0130] Actual liquid level 1.6900 m, error 0.36%;
[0131] Here, P1 is the pressure at the bottom of the container, and P2 is the pressure at the top of the container;
[0132] ρ0 is the density of diesel (when the temperature is 25 degrees), and α = 0.0007 / °C is the temperature change coefficient corresponding to diesel, that is, the change in density when the temperature deviates from 25 degrees; in this example, the diesel temperature is T = 50 degrees, which is equivalent to deviating from the standard temperature of 25 degrees;
[0133] p comp is the compensation pressure generated by the temperature deviation from the standard temperature, where 0.05% is the temperature drift coefficient.
[0134] Example 4, the above is a schematic solution of a method for measuring the liquid level of a container using a pressure sensor. It should be noted that the technical solution of the system for measuring the liquid level of a container using a pressure sensor belongs to the same concept as the technical solution of the method for measuring the liquid level of a container using a pressure sensor. For the details not described in detail in the technical solution of the system for measuring the liquid level of a container using a pressure sensor in this example, reference can be made to the description of the technical solution of the method for measuring the liquid level of a container using a pressure sensor.
[0135] This example also provides a system for measuring the liquid level of a container using a pressure sensor, including:
[0136] An interference compensation module that measures interference based on sensors and dynamically corrects parameters by combining a compensation model;
[0137] A temperature parameter adjustment module that establishes a compensation function and a sensor correction model based on temperature changes and dynamically adjusts parameters in real time;
[0138] A collaborative threshold measurement module that uses sensors for collaborative measurement, combines built-in measurement data, and completes compensation calculations through a preset threshold;
[0139] A dynamic calibration module that designs a dynamic calibration method and eliminates errors through fixed-point calibration and coefficient correction;
[0140] A closed-loop processing module that constructs a closed-loop measurement process based on data processing and outputs the compensated value.
[0141] This embodiment also provides an electronic device applicable to the measurement of the liquid level in a container with a pressure sensor, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the method for measuring the liquid level in a container with a pressure sensor as proposed in the above embodiment.
[0142] This embodiment also provides a storage medium on which a computer program is stored, and when the program is executed by a processor, it implements the method for measuring the liquid level in a container with a pressure sensor as proposed in the above embodiment.
[0143] The storage medium proposed in this embodiment and the method for measuring the liquid level in a container with a pressure sensor proposed in the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment can be referred to in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0144] From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software and necessary general-purpose hardware, and of course, it can also be implemented by hardware. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk, or optical disc of a computer, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0145] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered by the scope of the claims of the present invention.
Claims
1. A method for measuring the liquid level of a container of a pressure sensor, characterized in that, Including: Based on sensor measurement interference, combined with a compensation model to achieve dynamic parameter correction; Establish a compensation function based on temperature change and a sensor correction model to dynamically adjust parameters in real time; Use sensors for collaborative measurement, combined with built-in measurement data, and complete compensation calculation through a preset threshold; Design a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction; Based on data processing, construct a closed-loop measurement process and output the compensated value.
2. The method for measuring the liquid level of the container of the pressure sensor according to claim 1, characterized in that, Based on sensor measurement interference, combined with a compensation model to achieve dynamic parameter correction, including: Through sensor measurement interference, combined with the temperature drift coefficient and density function to achieve parameter correction; Based on the compensation model, dynamically adjust the liquid density and sensor drift.
3. The method for measuring the liquid level in the container of the pressure sensor according to claim 2, wherein, Establish a compensation function based on temperature change and a sensor correction model to dynamically adjust parameters in real time, including: Construct a correlation model between liquid density and temperature and a sensor coefficient correction framework; Based on real-time temperature data, synchronously update density calculation and sensor drift compensation.
4. The method for measuring the liquid level of the container of the pressure sensor according to claim 3, characterized in that, Use sensors for collaborative measurement, combined with built-in measurement data, and complete compensation calculation through a preset threshold, including: Based on the measurement mechanisms of bottom and top sensors to eliminate interference, and synchronously integrate sensors to collect real-time environmental parameters; Through the standardized acquisition, filtering, and dynamic compensation threshold matching of multi-source data fusion processing; Based on the relationship between temperature and density, construct a compensation calculation model to output the corrected value.
5. The method for measuring the liquid level of the container of the pressure sensor according to claim 4, characterized in that, Design a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction, including: Based on the status to set a reference benchmark point, combined with the container structure parameters to establish a calibration model; Through the sensor data collected in real time, use the preset structure coefficient for dynamic compensation correction.
6. The method for measuring the liquid level of the container of the pressure sensor according to claim 5, characterized in that, Based on data processing, construct a closed-loop measurement process and output the compensated value, including: Collect the signals of sensors and temperature probes in real time through an analog-to-digital converter, and combine digital filtering technology to eliminate high-frequency noise interference; Based on the preset liquid density table and temperature drift coefficient, input the temperature data into a three-dimensional compensation model to dynamically adjust the liquid density value, eliminate the pressure drift caused by temperature through the sensor drift correction coefficient, and calculate the liquid level height in real time based on the differential pressure value.
7. The method for measuring the liquid level in the container of the pressure sensor according to claim 6, characterized in that, The dynamic adjustment of the three-dimensional compensation model includes: According to the liquid temperature monitored in real time, call the preset density-temperature relationship, dynamically adjust the liquid density parameter, and compensate for the impact of liquid volume expansion and contraction caused by temperature change on liquid level calculation; Through the calibrated temperature drift coefficient, combined with the temperature probe data, establish a quadratic function model of the sensor output pressure changing with temperature, and real-time correct the temperature drift error of the pressure sensor; Under the liquid level zero state, use the reference pressure point to calibrate the gas phase pressure reference value, and combined with the container structure coefficient, periodically correct the gas phase pressure interference and system cumulative error.
8. A container liquid level measurement system for a pressure sensor, applying the method according to any one of claims 1-7, characterized in that, Including: Interference compensation module, based on sensor measurement interference, combined with a compensation model to achieve dynamic parameter correction; Temperature parameter adjustment module, establish a compensation function based on temperature change and a sensor correction model to dynamically adjust parameters in real time; Collaborative measurement threshold module, use sensors for collaborative measurement, combined with built-in measurement data, and complete compensation calculation through a preset threshold; Dynamic calibration module, design a dynamic calibration method to eliminate errors through fixed-point calibration and coefficient correction; The closed-loop processing module constructs a closed-loop measurement process and outputs the compensated value based on data processing.
9. An electronic device, comprising: a memory and a processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the container liquid level measurement method of the pressure sensor according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the container liquid level measurement method of the pressure sensor according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
A heater liquid level density correction data analysis system
CN108168646A
System for measuring liquid level of high-temperature and high-pressure container in marine environment
CN112665682A
System for measuring liquid level of normal-temperature and normal-pressure container in marine environment
CN112665684A
Liquid density and liquid level position measuring device and method
CN113008326A
Crude oil stabilizing tower and outdoor liquid level meter comparison calculation method
CN113758542A
Cited By
Micro-water density monitoring method and system based on multi-sensor fusion compensation
CN120594325A
Distribution transformer oil level wireless monitoring method and system based on passive sensing
CN120831162A
Power distribution transformer oil level wireless monitoring method and system based on passive sensing
CN120831162B
Multi-mode liquid level monitoring method and system based on time sequence characteristic analysis
CN121167204A
A multi-modal liquid level monitoring method and system based on time sequence feature analysis
CN121167204B