Multi-floater liquid hydrogen liquid level measuring device and method and storage medium
Through multi-float liquid level measurement devices and methods, multiple float structures and current change data are used, combined with median filtering and historical liquid level weighting algorithms, to solve the accuracy problem of liquid level fluctuation measurement in hydrogen high-pressure and low-temperature environments, and achieve rapid , Accurate liquid level measurement.
Patent Information
- Application Number
- CN202410778901.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
The existing float level measurement technology is difficult to measure the liquid level quickly and accurately in hydrogen high-pressure and low-temperature environments, especially when filling and unloading vehicle-mounted liquid hydrogen tanks, especially when the liquid level fluctuates.
Using a multi-float liquid level measurement device and method, through a structure composed of a main float and multiple small floats, and using a thin rod connected to a variable resistor in the measurement circuit, current change data is generated as the liquid level changes, and is filtered through median filtering and mean values. Filtering and historical liquid level weighting algorithm to measure liquid level quickly and accurately.
It achieves fast and accurate measurement of liquid level height under the condition of liquid level fluctuation, overcomes the measurement error caused by liquid level fluctuation, and dynamically adjusts the weighting algorithm to reduce errors when the liquid level fluctuates greatly, and ensures real-time when the fluctuation is small. sex.
Smart Images

Figure CN118776640A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of hydrogen energy technology, and in particular to a multi-float liquid hydrogen level measurement device, method and storage medium. Background Art
[0002] In the field of hydrogen energy, liquid level measurement technology plays a vital role. With the continuous development of hydrogen energy technology, the requirements for liquid level monitoring during the storage, transportation and use of hydrogen are becoming increasingly stringent. Since hydrogen is highly flammable and explosive, the accuracy and reliability of liquid level measurement are directly related to the safety and stability of the hydrogen energy system.
[0003] Traditional liquid level measurement technologies include float type, pressure type, etc. At present, float level measuring instruments include servo level gauges, magnetostrictive level gauges, etc. These level gauges are usually used to measure calm and fluctuating liquid levels.
[0004] However, current liquid level measurement technology is unable to quickly and accurately measure the liquid level in special environments such as high hydrogen pressure and low temperature, and when the liquid level in the on-board liquid hydrogen tank fluctuates during filling and unloading. Summary of the invention
[0005] The present application provides a multi-float liquid hydrogen level measurement device, method and storage medium, which can quickly and accurately measure the liquid level height when the liquid level fluctuates.
[0006] In order to achieve the above objectives, in a first aspect, the present application provides a multi-float liquid hydrogen level measurement method for measuring the liquid level in a tank, the method comprising:
[0007] S1, obtaining first liquid level data of a first float and current change data of a plurality of second floats;
[0008] Wherein, the first float is fixed by a positioning rod placed vertically in the tank body, and floats up and down along the positioning rod as the liquid level changes; the plurality of second floats are respectively connected to the variable resistor of the measuring circuit in the first float cavity through thin rods, and any of the second floats floats around the positioning rod as the liquid level changes to cause the change of the variable resistor, thereby generating the current change data;
[0009] S2. Determine the vertical moving height of each second float relative to the first float based on the first liquid level data and the current change data of the plurality of second floats, and obtain second liquid level data of each second float;
[0010] S3. Filter and aggregate the plurality of second liquid level data collected within a preset period to obtain a target liquid level.
[0011] In a possible implementation manner, step S3 includes:
[0012] S31, performing median filtering on a plurality of second liquid level data collected within a preset period;
[0013] S32, calculating the arithmetic mean of each second liquid level data obtained by median filtering to obtain a first estimated liquid level;
[0014] S33. According to a preset weighting coefficient, weighted sum is performed on the first estimated liquid level and multiple historical liquid levels to obtain a target liquid level. The earlier the historical liquid level is measured, the smaller the corresponding weighting coefficient is.
[0015] In a possible implementation manner, step S33 includes:
[0016] A. calculating the difference between any two of the plurality of second liquid level data for each second float within the preset period;
[0017] B. when the maximum value among the plurality of said differences exceeds a first preset threshold, reducing the weighting coefficient corresponding to the first estimated liquid level and increasing the weighting coefficients corresponding to the plurality of said historical liquid levels according to a preset percentage, to obtain an updated weighting coefficient;
[0018] C. Perform weighted summation of the first estimated liquid level and multiple historical liquid levels according to the updated weighted coefficient to obtain the target liquid level.
[0019] In one possible implementation, the method further includes:
[0020] For the plurality of second liquid level data of each second float within the preset period, calculating the difference between any two of the plurality of second liquid level data;
[0021] When the maximum value among the plurality of difference values is lower than a second preset threshold, the first estimated liquid level is directly used as the target liquid level.
[0022] In a possible implementation manner, the step S1 includes:
[0023] S11, acquiring the first liquid level data from a liquid level sensor fixed on the top of the tank body, wherein the first liquid level data includes a distance from the liquid level sensor to the first float;
[0024] S12, obtaining the current value and voltage value corresponding to each thin rod collected by the measurement circuit.
[0025] In a possible implementation manner, the tank body further includes a data transmission module, and step S1 includes:
[0026] Acquire first liquid level data from the liquid level sensor from the data transmission module;
[0027] The current value corresponding to each thin rod from the measurement circuit is obtained from the data transmission module.
[0028] In a possible implementation manner, the current change data includes a current current value and a current voltage value, and when the liquid levels of the first float and the second float are the same, the resistance of the variable resistor is half of the total resistance, and the step S2 includes:
[0029] For any second float, determining a current resistance change according to the current current value, the current voltage and half of the total resistance value;
[0030] Determine the sliding distance of the corresponding thin rod according to the current resistance change, the given resistivity and the resistance cross-sectional area;
[0031] Determining the vertical moving height of the second float relative to the first float according to the sliding distance and the size data of the thin rod;
[0032] The numerical moving height and the first liquid level data are added to obtain the second liquid level data of the second float.
[0033] In a second aspect, a multi-float liquid hydrogen level measuring device is provided for measuring the liquid level in a tank, the device comprising:
[0034] A positioning rod, vertically fixed in the tank and passing through the first float;
[0035] The first float is a shell containing a cavity, which floats up and down along the positioning rod as the liquid level changes, and a measuring circuit is provided in the cavity;
[0036] A plurality of second floats are connected to the variable resistor of the measuring circuit in the cavity through thin rods, and the thin rods float around the positioning rods along with the connected second floats as the liquid level changes, causing displacement of the variable resistor slices, thereby generating current change data;
[0037] A liquid level sensor, fixed to the top of the tank body, used to measure first liquid level data of the first float;
[0038] A calculation module is used to execute the multi-float liquid hydrogen level measurement method described in claim 1.
[0039] In a possible implementation, the length of the thin rod is positively correlated with the liquid level detection range in the horizontal direction, and the measurement circuit includes: a power supply, a current detection module, and a plurality of variable resistors.
[0040] In a possible implementation, the device further includes a data transmission module, which is used to: obtain first liquid level data from the liquid level sensor and transmit it to the calculation module; obtain current values corresponding to each thin rod from the measurement circuit and transmit it to the calculation module.
[0041] In a possible implementation manner, the multi-float liquid hydrogen level measurement device further includes more functional modules for executing corresponding steps in the multi-float liquid hydrogen level measurement method provided in the first aspect.
[0042] In a third aspect, a chip is provided, which includes a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor, and when the processor executes the instructions, the chip system composed of the processor, the interface circuit and the external memory implements the corresponding steps of the multi-float liquid hydrogen level measurement method provided in the first aspect.
[0043] In a fourth aspect, a computer-readable storage medium is provided, wherein at least one program is stored in the storage medium, and the at least one program is executed by a processor to implement the multi-float liquid hydrogen level measurement method provided in the first aspect.
[0044] In a fifth aspect, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the multi-float liquid hydrogen level measurement method provided in the first aspect is implemented.
[0045] The technical solution provided by this application includes at least the following technical effects:
[0046] (1) A multi-float liquid level measurement structure consisting of a main float and multiple small floats is provided, which can measure the liquid level heights at multiple locations at the same time and overcome the measurement error caused by liquid surface fluctuations.
[0047] (2) By using median filtering, mean filtering and reference historical liquid level weighting, the accurate liquid level height can be quickly obtained even when the liquid level fluctuates.
[0048] (3) When the liquid level fluctuates greatly, changing the weights of the weighted algorithm can specifically reduce the error caused by the fluctuation. When the liquid level fluctuates slightly, canceling the reference to the historical liquid level can ensure the real-time performance of the current measurement.
[0049] In summary, the present application uses multiple float structures to simultaneously measure the liquid level height at different positions of the liquid surface. Filtering and re-aggregating the data at different positions can improve the measurement accuracy, thereby quickly and accurately measuring the liquid level height when the liquid level fluctuates. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a schematic diagram of a multi-float liquid hydrogen level measuring device provided in an embodiment of the present application;
[0051] Figure 2 is a connection diagram of a second float and a measuring circuit provided in an embodiment of the present application;
[0052] Figure 3 It is a flow chart of a multi-float liquid hydrogen level measurement method provided in an embodiment of the present application;
[0053] Figure 4 It is a schematic diagram of the hardware structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] To further illustrate each embodiment, the present application provides drawings. These drawings are part of the disclosure of the present application, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, a person of ordinary skill in the art should be able to understand other possible implementations and the advantages of the present application. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components. The term "at least one" in the present application means one or more, and the term "multiple" in the present application means two or more, for example, multiple floats means two or more floats.
[0055] The present application is now further described in conjunction with the accompanying drawings and specific implementation methods.
[0056] Example 1
[0057] The present application provides a multi-float liquid hydrogen level measuring device for measuring the liquid level in a tank, wherein the tank may be any liquid storage tank, for example, liquid hydrogen, liquid chemicals, and other liquids.
[0058] In an embodiment of the present application, a multi-float liquid hydrogen level measuring device includes: a positioning rod, multiple floats, a liquid level sensor and a computing module.
[0059] The positioning rod is vertically fixed in the tank body and passes through the first float. Exemplarily, the direction of the positioning rod is perpendicular to the bottom and top of the tank body.
[0060] The plurality of floats include a first float and a second float.
[0061] Exemplarily, the first float is a shell including a cavity, and a measuring circuit is arranged in the cavity. The first float is fixed in the tank body through a positioning rod as a main float, and can float up and down along the positioning rod along with the liquid level.
[0062] Exemplarily, a plurality of second floats are used as auxiliary floats to measure the liquid level at various positions and angles in the tank body, and can be used to expand the inherent liquid level measurement range of the first float.
[0063] Optionally, the first float is a hemisphere, the diameter of the first float is larger than that of any second float, and the multiple second floats have the same size, for example, they are all small balls with a diameter smaller than that of the first float.
[0064] The liquid level sensor is used to measure the liquid level of the first float in the tank. Exemplarily, the liquid level sensor is fixed on the top of the tank body and is used to measure the distance from the top of the tank body to the first float. Optionally, the liquid level sensor is, for example, a photoelectric liquid level switch, an ultrasonic liquid level sensor, a capacitive liquid level sensor, a vibration or tuning fork sensor, etc.
[0065] The computing module is used to execute the multi-float liquid hydrogen level measurement method provided in the embodiment of the present application. For example, as hardware, the computing module can be any hardware module, computing device or computing device cluster with computing capabilities; as software, the computing module can be any running computing instance, container, virtual machine, etc.
[0066] In one possible implementation, the computing module includes at least a processor, which may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0067] In some possible implementations, the multi-float liquid hydrogen level measurement device includes an in-tank part and an out-tank part. The in-tank part includes a positioning rod, a first float, a second float, and a liquid level sensor; the out-tank part includes a computing module. It can be understood that the in-tank part is responsible for real-time liquid level data collection, and the out-tank part is responsible for real-time liquid level estimation.
[0068] Figure 1 is a schematic diagram of a multi-float liquid hydrogen level measuring device provided in an embodiment of the present application, Figure 1 Part (a) is the front view of the multi-float liquid hydrogen level measuring device. Figure 1 Part (b) is a top view of the multi-float liquid hydrogen level measuring device. Figure 1As shown, in the tank body, the multi-float liquid hydrogen level measuring device includes a positioning rod 1 vertically fixed in the tank body, a first float 2 fixed by the positioning rod 1, and four second floats 3 connected to the first float 2 through thin rods 4 respectively; the rotating shaft 41 is the rotating shaft of the thin rod 4; at the same time, the device also includes a photoelectric sensor 5 deployed at the top of the tank body, and the photoelectric sensor 5 is used to measure the liquid level data of the first float 2.
[0069] In some embodiments, the multi-float liquid hydrogen level measuring device provided in the embodiments of the present application can be called an N-float level gauge, where N is a positive integer greater than 1, such as Figure 1 The embodiment shown may be referred to as a five-float level gauge.
[0070] In the embodiment of the present application, multiple second floats are respectively connected to the variable resistor of the measuring circuit in the cavity through thin rods. The thin rods float up and down around the positioning rod as the liquid level changes with the connected second floats, causing the variable resistor to change, thereby generating current change data.
[0071] Exemplarily, each second float is connected to the measuring circuit via a thin rod, one end of the thin rod is connected to the inside of the second float, and the other end of the thin rod is embedded with a conductive scratching piece, and the conductive scratching piece is in contact with the corresponding variable resistor in the measuring circuit. Specifically, the change of the variable resistor is achieved by the conductive scratching piece, and the sliding distance of the conductive scratching piece on the sliding resistor determines its resistance value in the measuring circuit. The sliding resistor is, for example, an arc-shaped resistor sheet, and the conductive scratching piece can slide along the inner wall of the arc.
[0072] Furthermore, the thin rod rotates along the rotation axis, and the rotation axis of the thin rod is at the end of the thin rod close to the conductive scribe, so that the rotational inertia of the thin rod at the second float end is as large as possible, so that the state of the thin rod driven by the second float to move is more stable. Specifically, the larger the rotational inertia, the slower the change of angular velocity when subjected to external torque, thereby maintaining a more stable rotation state.
[0073] In a possible implementation, the length of the thin rod in the multi-float liquid hydrogen level measuring device is positively correlated with the liquid level detection range in the horizontal direction. That is, the longer the thin rod is, the larger the sector area formed by the thin rod as a radius rotating around the first float is, and therefore, the liquid level detection range that can be covered is larger.
[0074] In one possible implementation, the measurement circuit disposed inside the first float includes: a power supply, a current detection module, and a plurality of variable resistors. Exemplarily, the variable resistor refers to a sliding resistor, and the sliding resistor is, for example, an arc-shaped resistor sheet, and the corresponding conductive sheet can slide along the inner wall of the arc. Exemplarily, the current detection module can be a simple current measuring device such as an ammeter or a multimeter, or a precision current detection circuit suitable for a liquid hydrogen environment such as a triode current detection circuit, an electromagnetic current transformer, a shunt, etc., and this application does not limit this.
[0075] Figure 2 is a connection diagram of a second float and a measuring circuit provided in an embodiment of the present application, such as Figure 2 As shown, the power supply E, the current sensing module A and the arc-shaped resistor of the sliding rheostat are connected in series, the conductive piece is embedded in the end of the thin rod, and a second float is installed at the other end of the thin rod. The thin rod rotates around the axis close to the side of the conductive piece to drive the conductive piece to slide on the arc-shaped resistor.
[0076] In a possible implementation, the device further includes a data transmission module, which can be wired, wireless, or a combination of wired and wireless to achieve the transmission of data collected in the tank. Exemplarily, the data transmission module is used to: obtain first liquid level data from the liquid level sensor and transmit it to the calculation module; obtain current values corresponding to each thin rod from the measurement circuit and transmit it to the calculation module.
[0077] Through the integration of the data transmission module, various measurement data in the tank can be uniformly sent to the calculation module outside the tank for processing to ensure the synchronization of measurement data at different points and further ensure the accuracy of the liquid level measurement data.
[0078] The present application provides a multi-float liquid level measurement structure consisting of a main float and multiple small floats, which can measure liquid level heights at multiple locations simultaneously, overcome the measurement error caused by liquid level fluctuations, and filter and re-aggregate data at different locations to improve measurement accuracy, thereby quickly and accurately measuring the liquid level height when the liquid level fluctuates.
[0079] Example 2
[0080] Based on the multi-float liquid hydrogen level measuring device provided in Example 1, the embodiment of the present application provides a multi-float liquid hydrogen level measuring method, which is applied in the multi-float liquid hydrogen level measuring device shown in Example 1 and can be executed by a computing module. Figure 3 is a flow chart of a multi-float liquid hydrogen level measurement method provided in an embodiment of the present application, such as Figure 3 As shown, the method at least includes the following steps S1 to S3.
[0081] S1. Acquire first liquid level data of a first float and current change data of a plurality of second floats.
[0082] The multi-float liquid hydrogen level measurement method provided in the embodiment of the present application is applied in the device provided in Example 1. The first float in the device is fixed by a positioning rod placed vertically in the tank body, and floats up and down along the positioning rod as the liquid level changes; multiple second floats are respectively connected to the variable resistor of the measurement circuit in the first float cavity through thin rods, and any second float floats up and down around the positioning rod as the liquid level changes to cause the change of the variable resistor and generate current change data. The detailed principle refers to Example 1 and is not repeated here.
[0083] In one possible implementation, step S1 includes:
[0084] S11. Acquire first liquid level data from a liquid level sensor fixed on the top of the tank body.
[0085] The first liquid level data includes the distance from the liquid level sensor to the first float. Exemplarily, the first liquid level data is collected by a liquid level sensor fixed on the top of the tank body, and the first liquid level data is a specific height value, for example, 10 cm.
[0086] In a possible implementation, the liquid level sensor collects the distance between the liquid level height of the first float and the ground. In this example, the distance from the liquid level sensor to the first float can be obtained by subtracting the data collected by the liquid level sensor from the actual placement height of the given tank. The specific algorithm can be adjusted according to the type of liquid level sensor selected, and this application does not limit this.
[0087] S12, obtaining the current value corresponding to each thin rod collected by the measurement circuit;
[0088] In the embodiment of the present application, the current change data at least includes the current value corresponding to each thin rod. The current value refers to the current value after the current in the measurement circuit changes due to the up and down floating of the second float driving the conductive scribe at the other end of the thin rod to slide, causing the resistance value of the corresponding resistor to change. Based on the current value at each moment
[0089] In one possible implementation, the device also includes a data transmission module deployed in the tank body, and step S1 actually obtains the above data from the data transmission module, that is, obtains the first liquid level data from the liquid level sensor and the current values corresponding to each thin rod from the measurement circuit from the data transmission module.
[0090] Through the integration of the data transmission module, various measurement data in the tank can be uniformly sent to the calculation module outside the tank for processing to ensure the synchronization of measurement data at different points and further ensure the accuracy of the liquid level measurement data.
[0091] S2. Based on the first liquid level data and the current change data of the plurality of second floats, after determining the vertical moving height of each second float relative to the first float, obtain second liquid level data of each second float.
[0092] In the embodiment of the present application, the current change data includes the current current value and the current voltage value. Specifically, the voltage value and the current value measured at the same time are indexed with the corresponding time and transmitted as a set of data. Similarly, the current change data of different second floats are distinguished by float identifiers.
[0093] In one possible implementation, when the liquid levels of the first float and the second float are the same, the resistance of the variable resistor corresponding to any second float is half of the total resistance. That is, when the liquid level does not fluctuate, each second float does not rotate, and the corresponding conductive scribe does not slide and is in the initial state.
[0094] In the embodiment of the present application, the conductive scratch piece can slide in two directions, one direction corresponds to the second float fluctuating upward; the other direction corresponds to the second float sliding downward.
[0095] by Figure 2 For example, the current flow of the measurement circuit is triggered from the positive pole of the power supply, flows from the current detection module side to the upper side of the resistor, and flows back to the negative pole from the upper side of the resistor. Therefore, when the conductive scribe slides upward, the resistance connected to the measurement circuit gradually increases; vice versa. Based on this, when the second float floats downward, it drives the conductive scribe at the end of the thin rod to slide upward, the resistance value increases, and the current value in the loop decreases. When the second float floats upward, it drives the conductive scribe at the end of the thin rod to slide downward, the resistance value decreases, and the current value in the loop increases.
[0096] Therefore, the following corresponding relationship can be established: with the resistor at the midpoint as the initial state, the amplitude of the relatively increased current corresponds to the height of the upward fluctuation of the second float relative to the first float, and the amplitude of the relatively decreased current corresponds to the height of the downward fluctuation of the second float relative to the first float.
[0097] In the above example, this step S2 includes:
[0098] S21. For any second float, determine the current resistance change according to the current current value, the current voltage and half of the total resistance value.
[0099] For example, when the first float and the second float have the same liquid level, the conductive scratch of the sliding resistor is located in the middle of the resistor. If the resistance at this time is given as R / 2, when the liquid levels are inconsistent (there is a relative fluctuation), the resistance change can be calculated according to formula (1).
[0100]
[0101] In formula (1), ΔR is the resistance change, U is the current voltage value, and I is the current current value.
[0102] S22. Determine the sliding distance of the corresponding thin rod according to the current resistance change, the given resistivity and the resistance cross-sectional area.
[0103] For example, according to the corresponding relationship between the resistance value and the sliding distance of the conductive scribing blade at the end of the thin rod, the sliding distance can be determined using formula (2).
[0104]
[0105] In formula (2), Δx is the sliding distance, ρ is the resistivity of the sliding resistor, S is the cross-section of the resistor in the sliding resistor, and both ρ and S are given.
[0106] S23. Determine the vertical moving height of the second float relative to the first float based on the sliding distance and the size data of the thin rod.
[0107] For example, the thin rod itself rotates with a certain point on the thin rod as the axis of rotation. Therefore, according to the lever principle, the vertical movement height of the second float relative to the first float can be obtained. Formula (3) shows a possible calculation method.
[0108]
[0109] In formula (3), Δh is the vertical moving height, l 1 is the distance from the axis of the thin rod to the sliding rheostat; l 2 It is the distance from the axis of the thin rod to the center of the second float.
[0110] S24, adding the numerical moving height and the first liquid level data to obtain the second liquid level data of the second float.
[0111] Exemplarily, the liquid level height of the second float=the liquid level height of the first float+Δh.
[0112] S3. Filter and aggregate the plurality of second liquid level data collected within a preset period to obtain a target liquid level.
[0113] In the embodiment of the present application, filtering includes eliminating abnormal values in the liquid level data; aggregation includes obtaining a representative value from the filtered liquid level data.
[0114] In a possible implementation manner, this step S3 includes:
[0115] S31. Perform median filtering on a plurality of second liquid level data collected within a preset period.
[0116] In the embodiment of the present application, multiple liquid level data are collected at a preset frequency within a preset period. For example, if the preset period is 3 seconds and the frequency is to collect one liquid level data per second, there will be three second liquid level data within the preset period. The preset period and the preset frequency can be selected according to the collection accuracy and environmental requirements.
[0117] For example, taking the preset period of 3 seconds and the frequency of 1 time per second as an example, the 3 second liquid level data collected by each second float within 3 seconds are subjected to median filtering, and the middle value of the three second liquid level data is taken as the second liquid level data Y determined this time. For N second floats, there are second liquid level data Y 1 -Y N .
[0118] Of course, in other embodiments, other filtering algorithms may also be used, such as sliding average filtering, which smoothes data by calculating the average value of a local set of data points.
[0119] S32, calculating the arithmetic mean of each second liquid level data obtained by median filtering to obtain a first estimated liquid level.
[0120] For example, for the N second liquid level data Y obtained by median filtering 1 -Y N The first estimated liquid level can be obtained by taking the arithmetic mean
[0121] S33. According to a preset weighting coefficient, weighted sum is performed on the first estimated liquid level and multiple historical liquid levels to obtain a target liquid level. The earlier the historical liquid level is measured, the smaller the corresponding weighting coefficient is.
[0122] Exemplarily, the historical liquid level refers to the final target liquid level obtained by previously performing liquid level measurement. In the following example, two historical liquid levels are used as an example, and the number of historical liquid levels used in different embodiments is not limited.
[0123] Specifically, the first liquid level estimate value processed by the mean value for the current kth time is With the last level value Last level value The target liquid level Y is obtained by weighting according to the given weighting coefficients α = 0.7, β = 0.2, and γ = 0.1 and then summing them up. k The above process can be expressed by formula (4).
[0124]
[0125] In formula (4), α, β, and γ can be dynamically adjusted when formula (4) is satisfied, and the result of the adjustment satisfies α>β>γ≥0.
[0126] In a possible implementation, the weight is further dynamically adjusted when the liquid level value measured this time fluctuates greatly. Specifically, in this example, step S33 includes:
[0127] A. For a plurality of second liquid level data of each second float within a preset period, a difference between any two of the plurality of second liquid level data is calculated.
[0128] B. When the maximum value among the multiple differences exceeds the first preset threshold, the weighting coefficient corresponding to the first estimated liquid level is reduced according to a preset percentage, and the weighting coefficients corresponding to the multiple historical liquid levels are increased to obtain an updated weighting coefficient.
[0129] In an embodiment of the present application, when the maximum value exceeds the first preset threshold, it means that the liquid level fluctuation is large at this time, and the corresponding measurement result also has a large error. In this case, the weighting coefficient of the current first estimated liquid level is reduced to reduce the impact of the current fluctuation error on the current estimation result.
[0130] Exemplarily, before adjustment, the first liquid level estimate With the last level value Last level value The weighting coefficients are: α = 0.7, β = 0.2, γ = 0.1; after adjustment: α = 0.4, β = 0.4, γ = 0.2
[0131] Optionally, the first preset threshold is, for example, 2 cm. The first preset threshold can be selected according to actual scenarios and accuracy requirements. For example, in the case of being sensitive to fluctuations, the first preset threshold is set to 1 cm.
[0132] In other embodiments, for the plurality of second liquid level data of each second float within a preset period, the difference between any two of the plurality of second liquid level data is calculated. When the maximum value of the plurality of differences is lower than the second preset threshold, the first estimated liquid level is directly used as the target liquid level. This real-time method is to ensure the real-time performance of the current measurement by canceling the reference to the historical liquid level when the fluctuation degree of the first liquid level estimate value of the current measurement is very low.
[0133] Optionally, the second preset threshold is smaller than the first preset threshold, such as 0.01 cm, or any real number greater than 0 and smaller than the first preset threshold.
[0134] C. Perform weighted summation of the first estimated liquid level and multiple historical liquid levels according to the updated weighted coefficient to obtain the target liquid level.
[0135] In the embodiment of the present application, median filtering, mean filtering and reference to historical liquid level weighting are used to quickly obtain accurate liquid level height when the liquid level fluctuates. Furthermore, when the liquid level fluctuates greatly, changing the weights of the weighted algorithm can specifically reduce the error caused by the fluctuation. When the liquid level fluctuates slightly, canceling the reference to historical liquid level can ensure the real-time performance of the current measurement.
[0136] The technical solution provided by the present application is applicable to when the liquid level changes and inevitably fluctuates due to the filling of liquid into a liquid hydrogen tank or other liquid storage tank, the discharge of liquid or the driving of a transport vehicle. The first float and the second float can fluctuate with the liquid level, and the liquid level sensor continuously measures the liquid level of the first float. At the same time, multiple second floats will change the resistance of the sliding rheostat through a thin rod as the liquid level fluctuates, thereby changing the current. Based on this, the displacement of the second float relative to the first float in the vertical direction is calculated by measuring the current, and the displacement is added or subtracted from the liquid level of the large float to obtain the liquid level of the small float. The liquid level data is further subjected to median filtering, mean processing and dynamic weighting operations to obtain the final liquid level value.
[0137] In summary, the present application uses multiple float structures to simultaneously measure the liquid level height at different positions of the liquid surface. Filtering and re-aggregating the data at different positions can improve the measurement accuracy, thereby quickly and accurately measuring the liquid level height when the liquid level fluctuates.
[0138] The present application also provides a chip, which can be implemented as a computing module in the above-mentioned device, and is used to execute the above-mentioned liquid level detection method. Figure 4 is a schematic diagram of the hardware structure of a chip provided by the present application according to an exemplary embodiment, such as Figure 4 The chip 40 includes a processor 41 and an interface circuit 42, wherein the interface circuit 42 is used to receive instructions and transmit them to the processor 41. The processor 41 is coupled to a memory 43, and the memory 43 is used to store program codes. When the program codes are executed by the processor 41, the chip system composed of the processor 41, the interface circuit 42 and the memory 43 implements the operation steps of the above-mentioned deadlock detection method.
[0139] Optionally, there is at least one processor 41 in the chip system. It should be understood that in the embodiment of the present application, the processor 41 may be a central processing unit (CPU) or other general-purpose processors. The processor 41 may also be one or more integrated circuits for implementing the solution of the present application, such as a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices or discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0140] Optionally, the memory 43 in the chip system may also be one or more. The memory 43 may be integrated with the processor 41, or may be separately provided with the processor 41, which is not limited in the present application. Among them, the memory 43 may include a read-only memory and a random access memory, and provide instructions and data to the processor 41. The memory 43 may also include a non-volatile random access memory. The memory 43 may also be a volatile memory, or may include both volatile and non-volatile memories.
[0141] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. Exemplarily, the chip system can be an FPGA, an ASIC, a SoC, a CPU, a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a PLD) or other integrated chips.
[0142] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, all or part of the steps of the above-mentioned liquid level detection method in the embodiment of the present application are implemented.
[0143] The present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements all or part of the steps of the above-mentioned liquid level detection method in the embodiment of the present application.
[0144] If the module / unit integrated in the above-mentioned computing unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0145] Although the present application has been specifically shown and described in conjunction with the preferred embodiments, those skilled in the art should understand that various changes may be made to the present application in form and details without departing from the spirit and scope of the present application as defined by the appended claims, all of which are within the scope of protection of the present application.
Claims
1. A multi-float liquid hydrogen level measuring device, characterized in that: Used to measure the liquid level in a tank, the device comprises: A positioning rod, vertically fixed in the tank and passing through the first float; The first float is a shell containing a cavity, which floats up and down along the positioning rod as the liquid level changes, and a measuring circuit is provided in the cavity; A plurality of second floats are connected to the variable resistor of the measuring circuit in the cavity through thin rods, and the thin rods float around the positioning rods along with the connected second floats as the liquid level changes, causing displacement of the variable resistor slices, thereby generating current change data; A liquid level sensor, fixed to the top of the tank body, used to measure first liquid level data of the first float; A calculation module is used to execute the multi-float liquid hydrogen level measurement method described in claim 1.
2. The device according to claim 1, characterized in that The length of the thin rod is positively correlated with the liquid level detection range in the horizontal direction, and the measuring circuit comprises: a power supply, a current detection module and a plurality of variable resistors; The device further comprises a data transmission module, wherein the data transmission module is used to: obtain first liquid level data from the liquid level sensor and transmit the data to the calculation module; The current value corresponding to each thin rod is obtained from the measuring circuit and transmitted to the calculation module.
3. A multi-float liquid hydrogen level measurement method, characterized in that: For measuring the liquid level in a tank, the method comprises: S1, obtaining first liquid level data of a first float and current change data of a plurality of second floats; Wherein, the first float is fixed by a positioning rod placed vertically in the tank body, and floats up and down along the positioning rod as the liquid level changes; the plurality of second floats are respectively connected to the variable resistor of the measuring circuit in the first float cavity through thin rods, and any of the second floats floats around the positioning rod as the liquid level changes to cause the change of the variable resistor, thereby generating the current change data; S2. Determine the vertical moving height of each second float relative to the first float based on the first liquid level data and the current change data of the plurality of second floats, and obtain second liquid level data of each second float; S3. Filter and aggregate the plurality of second liquid level data collected within a preset period to obtain a target liquid level.
4. The multi-float liquid hydrogen level measurement method according to claim 1, characterized in that: The step S3 comprises: S31, performing median filtering on a plurality of second liquid level data collected within a preset period; S32, calculating the arithmetic mean of each second liquid level data obtained by median filtering to obtain a first estimated liquid level; S33. According to a preset weighting coefficient, weighted sum of the first estimated liquid level and multiple historical liquid levels is performed to obtain a target liquid level. The earlier the historical liquid level is measured, the smaller the corresponding weighting coefficient is.
5. The multi-float liquid hydrogen level measurement method according to claim 4 is characterized in that: The step S33 comprises: A. calculating the difference between any two of the plurality of second liquid level data for each second float within the preset period; B. when the maximum value among the plurality of said differences exceeds a first preset threshold, reducing the weighting coefficient corresponding to the first estimated liquid level and increasing the weighting coefficients corresponding to the plurality of said historical liquid levels according to a preset percentage, to obtain an updated weighting coefficient; C. Perform weighted summation of the first estimated liquid level and multiple historical liquid levels according to the updated weighted coefficient to obtain the target liquid level.
6. The multi-float liquid hydrogen level measurement method according to claim 5, characterized in that: The method further comprises: For the plurality of second liquid level data of each second float within the preset period, calculating the difference between any two of the plurality of second liquid level data; When the maximum value among the plurality of difference values is lower than a second preset threshold, the first estimated liquid level is directly used as the target liquid level.
7. The multi-float liquid hydrogen level measurement method according to claim 3, characterized in that: The step S1 comprises: S11, acquiring the first liquid level data from a liquid level sensor fixed on the top of the tank body, where the first liquid level data includes a distance from the liquid level sensor to the first float; S12, obtaining the current value and voltage value corresponding to each thin rod collected by the measurement circuit.
8. The multi-float liquid hydrogen level measurement method according to claim 7, characterized in that: The tank body also includes a data transmission module, and step S1 includes: Acquire first liquid level data from the liquid level sensor from the data transmission module; The current value corresponding to each thin rod from the measurement circuit is obtained from the data transmission module.
9. The multi-float liquid hydrogen level measurement method according to claim 1, characterized in that: The current change data includes a current current value and a current voltage value. When the liquid levels of the first float and the second float are the same, the resistance of the variable resistor is half of the total resistance. The step S2 includes: For any second float, determining a current resistance change according to the current current value, the current voltage and half of the total resistance value; Determine the sliding distance of the corresponding thin rod according to the current resistance change, the given resistivity and the resistance cross-sectional area; Determining the vertical moving height of the second float relative to the first float according to the sliding distance and the size data of the thin rod; The numerical moving height and the first liquid level data are added to obtain the second liquid level data of the second float.
10. A computer-readable storage medium, characterized in that: At least one program is stored in the storage medium, and the at least one program is executed by the processor to implement the multi-float liquid hydrogen level measurement method as described in any one of claims 3 to 9.
Citation Information
Cited By
Liquid level calibration method and device for low-temperature liquid nitrogen biological container based on temperature variation
CN119555188A
Plate shearing edge curve detection device for ultra-large plate shearing machine
CN120095215A
