This invention relates to liquid level sensors, particularly liquid level sensors that provide a continuous linear output signal as the liquid level changes.
The use of a floating magnet for sensing a level of liquid is well known. However, prior art makes use of reed switches, which switch on and off when the proximity to the floating magnet changes. Representative of this type of device is disclosed in U.S. Pat. No. 8,549,911, issued to Rudd et al. on Oct. 8, 2013. This reference discloses a set of axially displaced magnetic sensing switches (reed switches) and a magnet on a float that may rise and fall on the level of the liquid to activate and deactivate the switches. However, there is not found or suggested in the prior art a device to replace reed switches with at least two 3D magnetic field sensors.
It is an aspect of the invention to provide a liquid level sensor that provides digital signal processing for transforming a magnetic field into a continuous linear output signal that corresponds to the level of liquid within a vessel that is being monitored.
It is another aspect of the invention to provide a liquid level sensor that uses 3D field sensors for decompensating unwanted interference caused by electric drives or the earth's magnetic field or other magnetic fields caused wires or magnets. The sensor used in the invention is more sensitive to magnetic fields than a reed switch, thus, more noise that must be decompensated.
It is another aspect of the invention to provide a liquid level sensor that can be combined with a 3D accelerometer to optimize compensation of unwanted interference. The accelerometer always provides the center of the earth so that an angle of deflection of the liquid versus the horizontal can be determined and correct any faulty measured value of the liquid level.
It is still another aspect of the invention to provide a liquid level sensor that provides suppression of superimposed interference through an algorithm that is a basic subtraction and comparison of the measured values.
It is an aspect of the invention to provide a liquid level sensor that uses low cost sensors.
Another aspect of the invention is to provide a liquid level sensor that has technological simplification of the measurement procedure towards commonly known ones. It is still another aspect of the invention to provide a liquid level sensor that is highly robust.
Another aspect of the invention is to provide a liquid level sensor that requires no adjustment of individual sensors necessary due to signal processing.
Another aspect of the invention is to provide a liquid level sensor that provides greater spacing advantages over prior art designs.
It is an aspect of the invention to provide a liquid level sensor that has an algorithm for the analysis of the plausibility for a changing in the magnetic field and self-diagnostics. By measuring with at least two sensors, it is possible to determine if what is measured is correct and know if one sensor is not working properly. Self-diagnosis is very important for the automotive industry.
Another aspect of the invention is to provide a liquid level sensor that has highly sensitive magnetic field sensors to cover large measurement distances.
It is still another aspect of the invention to provide a liquid level sensor that provides an algorithm for a decompensation of a nonlinear change in the liquid level caused by a nonlinear shape of the tank containing the liquid that is to be measured.
Finally, it is an aspect of the invention to provide a liquid level sensor that uses an algorithm that accounts for decompensating transient changes of liquid level caused by slosh.
As shown in
Inside housing 22 is a printed circuit board (not shown) following the same configuration of housing 22. Again, housing 22 and its attached printed circuit board is shown as a cylinder but this shape is not essential and any cross-sectional shape, such as an oval, rectangle, that fits within vessel 34 could be used as long as float 24 can easily slide up and down housing 22 in response to changes in level 28.
Inside housing 22 is microprocessor 38. While microprocessor 38 is shown inside housing 22, microprocessor 38 could be inside vessel 34 or even outside vessel 34 as long as microprocessor 38 remains in electrical communication with rest of invention 10. The printed circuit board of invention 10 is powered by electrical connection 12 and ground 14. Outputs are analog output 16 and temperature output 18 if required.
Inside float 24 is ring magnet 26. Invention 10 is completed by providing a number of field sensors 32 within housing 22. While three field sensors are shown, as long as at least two are provided, invention 10 will work as intended. The exact number of field sensors 32 required would depend on the measurement length that is intended. A greater length will require a greater number of sensors cascaded. Field sensor 32 is preferably Model No. LSM303C as made by STMicroelectronics, Inc., however, other models having similar characteristics would be suitable.
By use of the magnetic field sensors instead of reed switches, a continuous output signal is obtained instead of fixed switching points. This signal could be either analog or digital, as desired. The sensors also can measure temperature, which is used to compensate tolerances of the magnet, which varies, over temperature. Invention 10 can also compensate to the changing density of liquid being measured, if necessary.
At least two sensors are required due to any interference or offset caused by another magnet, drive, etc. The value of the interference affects both sensors with an offset. Microprocessor 38 can determine the offset and subtract it in order to obtain the “real” values of the sensors needed to obtain an accurate output signal.
In operation, the invention uses an algorithm that assumes at least two magnetic field sensors. Referring to
If the earth's magnetic field is measured with two sensors that are relatively close to one another, the same direction and strength of the field vectors φ1 and φ2 will be measured.
As shown in
Now the distance α1 between vector sums η1 and η2 is measured. The theory behind this is as follows: If the offset changes, the distance between the vectors is only influenced by the magnet. If the offset at sensor 1 and sensor 2 is the same, the distance remains the same.
Until this point, we have neglected the third dimension. A vector will now be written in the form
which consists of three dimensions. The output signal of each sensor is also given in three dimensions. To measure the distance between {right arrow over (η)}1 and {right arrow over (η)}2 and shift sensor 1's “y” component, an amount c to create a virtual offset that imitates the real physical distance between sensor 1 and 2 is required, thus providing the following equation:
To calculate the distance between the vectors {right arrow over (η)}1 and {right arrow over (η)}2, use the following equation to calculate vector α1
As shown in
Now, referring to
X [n]: x value of measurement point n
n: Number of Measurement points.
dX[n−1]: Derivative of 2 neighborhood measurement point dX[n]=X[n−1]−X[n]
X0: Starting Value (or X [0])
Afterwards, we assume that two neighborhood points can be represented by a straight line and the whole curve is integrated until the integrated value equals the measured value. Between two points, a second interval of points is introduced which is called samples k to increase the resolution. The total amount of actual Steps equals (n−1)*k. The following shows the pseudocode of the algorithm:
Step=0;
Samples=k;
Result=X0
m=Variable which stores the interval between two neighborhood datapoints
While (measured_value<intgreated_value)
{Step=Step+1;
m=(Step/k);
Result=Result+dX[m]/k}
Although the present invention has been described with reference to certain preferred embodiments thereof, other versions are readily apparent to those of ordinary skill in the preferred embodiments contained herein.
This application claims benefit of U.S. Provisional Application Ser. No. 62/217,158, filed Sep. 11, 2015, pursuant to 35 USC §119(e).
Number | Date | Country | |
---|---|---|---|
62217158 | Sep 2015 | US |