Storage tank level detection method and system

09772210 · 2017-09-26

Assignee

Inventors

Cpc classification

International classification

Abstract

A fluid (oil) storage tank is often in a remote place. A temperature sensor strip is affixed vertically down the outside of the tank. Each sensor sends its electronic signature and temperature to a local microprocessor. Various types of computations yield an accurate level indication on a local display, all powered by a car battery, solar panel or power supply. Data can be sent remotely as well. For explosive environments only a small processor is powered adjacent the tank. Then a second processor has the power to compute and analyze the raw temperature data and display it at a safe distance from the tank with only a twisted pair of low volt wires reaching the tank. Other non-explosive tanks such as a water tank can use a signal processor adjacent the strip for all data collection, computing and display functions.

Claims

1. A storage tank level detection system comprising: a vertical, insulated strip attached to an outside of a storage tank; at least three temperature sensors placed at a known distance from each other on the insulated strip; not more than three connecting wires, at least four feet in length, connecting, in parallel on a serial sensor interface, the at least three temperature sensors to a power supply and a processor; wherein the vertical, insulated strip further comprises a base plastic strip having not more than three connecting wires and the temperature sensors on a top thereof; wherein each temperature sensor sends its temperature to the processor; and said processor stores each sensor identification and its temperature.

2. The system of claim 1, wherein the vertical, insulated strip further comprises a protective strip affixed over the base plastic strip.

3. The system of claim 1, wherein the vertical, insulated strip further comprises a double layer base layer having flat connecting wires sandwiched therein, with the temperature sensors protruding above a top member of the double layer, and a protective strip affixed over the double layer base.

4. The system of claim 1, wherein the processor receives the stored sensor ID's and temperature, and calculates a tank level.

5. The system of claim 4, wherein the processor further comprises a program to calculate a delta temperature between each adjacent pair of temperature sensors and a display to show this result which is called a first derivative.

6. The system of claim 5, wherein the processor further comprises a program called a second derivative to calculate a delta of delta temperatures taken from the first derivative and a display to show this result.

7. The system of claim 4, wherein the processor further comprises a program to calculate a group average temperature among three or more sensors and compare this average to an average of an adjacent group, thereby estimating a fluid interface when an group to group average is a different temperature.

8. The system of claim 4, wherein a weatherproof housing at the tank houses the processor and a visual display, and the power supply is a twelve volt source.

9. The system of claim 1, wherein the processor further comprises a memory to store a history of temperature sensor readings.

10. The storage tank level detection system of claim 1, wherein the known distance between each sensor is nominally four inches.

11. The storage tank level detection system of claim 1, wherein the not more than three connecting wires are each at least sixteen feet in length.

12. The storage tank level detection system of claim 11, wherein the not more than three connecting wires also connect to a ground.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a schematic representation of a storage tank with the sensor strip, local microprocessor and display and remote readout device.

(2) FIG. 2 is a front elevation view of the sensor strip.

(3) FIG. 3 is a wiring diagram of a three wire embodiment.

(4) FIG. 4 is a wiring diagram of a two wire embodiment.

(5) FIG. 5 is an output display of a single interface (air to oil) tank,

(6) FIG. 6 is an output display of a dual interface (air to oil and oil to water) tank.

(7) FIG. 7 is a sectional view of a three wire strip.

(8) FIG. 8 is a sectional view of a two wire strip.

(9) FIG. 9 is a schematic of the sensor strip interface.

(10) FIG. 10 is a logic flow chart of the two derivative algorithm.

(11) FIG. 11 is a logic flow chart of the one derivative algorithm.

(12) FIG. 12 is a logic flow chart of the sliding window algorithm.

(13) FIG. 13 is graph of a temperature and a single derivative data plot.

(14) FIG. 14 is a schematic of the entire system.

(15) FIG. 15 is a graph of original temperature data.

(16) FIG. 16 is a graph of “padded” temperature data.

(17) FIG. 17 is a graph of derivative data.

(18) FIG. 18 is a graph of second derivative data.

(19) FIG. 19 is a graph of depicting a “threshold limit.”

(20) Before explaining the disclosed embodiment of the present invention in detail, it is to be understood that the invention is not limited in its application to the details of the particular arrangement shown, since the invention is capable of other embodiments. Also, the terminology used herein is for the purpose of description and not of limitation.

DETAILED DESCRIPTION OF THE DRAWINGS

(21) Referring first to FIG. 1 an oil storage tank 1 has a void (air) on top, OIL in the middle, and WATER on the bottom. Thus, interfaces IA and OW are formed. A sensor strip SS1 is attached to the outside of the tank 1, and it is connected to a microprocessor system with level display 10. A battery 11 supplies DC voltage to system 10. The level data is sent remotely to computer 12 in any prior art manner as indicated by dashed lines 13.

(22) Referring next to FIG. 2 the sensor strip SS1 consists of a series of temperature sensors 20, each one having a unique electronic signature. The nominal distance d1 is four inches. A serial sensor interface 21 is preferably set at the bottom outside of the tank 1. Thus, the height above ground of sensor 22 is one foot, and the height above ground of sensor 23 is one foot four inches. The plastic strip 29 can be any thin polymer material including a closed call PVC. One source of the temperature sensors is Dallas Semiconductor™ Model No. DS18S20. The three wire copper connecting wires are sealed between two strips 29 as seen in FIGS. 7, 8.

(23) Referring next to FIG. 3 the conductive wires are labeled 30, 31, 32. Sensor 22 has an electronic signature “123”. Sensor 23 has an electronic signature “456”, and so forth to sensor N. The sensors are powered by wire 30 (ground) and wire 32 (+5V). Each sensor sends its electronic signature and its temperature along wire 31 to the sensor interface 21. Thus, a temperature profile every four inches is obtained at level display 10 of FIG. 1.

(24) Referring next to FIG. 4 a two wire embodiment SS2 is shown with wires 42 (ground) and 43 (+5V and temperature signals). Sensor 40 has electronic signature “120”, and sensor 41 has electronic signature “340”. A two wire sensor interface 212 is shown. The end results are the same for either SS1 of SS2.

(25) Referring next to FIG. 5 the display 50 from a single interface (air/oil) tank is shown. The sensors are labeled 1 to 49. Thus, the height is the multiple of the sensor number times four inches. The interface is indicated around sensor 23. This is where in most conditions the air temperature of about 15° C. is colder than the oil temperature of about 30° C. The air generally tracks the daytime temperature while the oil retains its heat from the overall ambient temperature average. Of course an extremely hot day out of the average could reverse the temperature, but the interface would still yield the level. The worst accuracy would occur at exactly a match of temperatures between the oil and air. In that scenario the system memory can produce a (nominally twelve hour) history which will yield the present level unless pumping has occurred.

(26) Referring next to FIG. 6 a display 60 shows a dual interface result. The water to oil interface OW occurs at about the fifteenth sensor, and the oil to air interface IA occurs at about the 32nd sensor.

(27) Referring next to FIG. 7 a first embodiment strip 29 consists of a closed cell PVC layer 29A glued to a plastic strip 29B with wires 30, 31, 32 running between layers 29A and 29B. The sensor 20 is wired as shown in FIG. 3. The sensor 22 gets pushed into the thicker closed cell PVC layer 29A.

(28) Referring next to FIG. 8 a lighter strip 290 is shown as a two wire as in FIG. 4, but could be a three wire strip. A two layer sandwich 80, 81 of polyamide plastic encapsulates the flat wires 42, 43. Then a waterproof (rubber) strip 29A covers the sensors and connections to the sensor.

(29) Referring next to FIG. 9 the apparatus from FIG. 3 item 21 and FIG. 4 item 212 is shown. Dashed lines 90 may represent a physical housing. The sensor interface 2100 feeds into a processor 9100 that also has a temperature array memory 9200. This memory 9200 merely stores ID and temperature histories on a cyclical basis such as per minute. Power could be a car battery, and power supply 93 provides a level 5 V DC. The microprocessor 9100 via serial port driver 2102 sends a serial signal to the system 1499 (FIG. 14) and remotely if desired.

(30) The m-controller box 21/212 polls via its microprocessor 9100 each temperature sensor (nominally each second). Each electronic signature on the strip has been entered into the m-controller box 21/212 beforehand. Thus, a history log of sensor ID and its temperature is stored in the m-controller box 21/212. The light 2101 indicates power is coming into the m-controller box 21/212.

(31) Serial sensor interface 2100 is a circuit protector (static protector) for the microprocessor 9100. Serial port driver 2102 sends the temperature array memory 9200 to designated recipients including the FIG. 14 system 1499. Remote data sending can also be incorporated into serial port driver 2102 such as cell phone interface. An alternative design could place the functions of microprocessor 9100/9200 upstream to a cloud computing system.

(32) The present invention having individual sensors spaced at regular intervals along a sub-straight lends itself to analysis using standard discrete signal processing techniques. For a sensor strip with, N total sensors along its length, we can write:
T[n]=Temperature reading of sensor[n]
for all n's from 1 to N
Where T[n] is the temperature reading at sensor n.
The above results in an array of length N with each array element being the temperature for a given sensor located physically at location n.
To form the first derivative of the temperature array T[n], which is the same as the rate of change for the temperature array data, we form,
T*[n]=T[n]−T[n−1]
for all n's from 2 to N
The resulting T*[n] array will be N−1 in length which may be fine for many applications, however for the current invention, a padding technique is employed to eliminate the reduction in the output data set size. If the original data set has N=10, the data may be represented as shown in FIG. 15.
To pad the FIG. 15 data to eliminate the data set reduction, one of two simple methods may be used. The first is to pad both ends of the data with the first or last data points respectively, Or,
T[0]=T[1] along with T[11]=T[10]
For the present invention, slope padding is used meaning that
T[0]=T[1]+(T[1]−T[2])
And
T[11]=T[10]+(T[10]−T[9])
This padding technique results in the original data being transformed into the original data plus padded data on each end as shown in FIG. 16.
Where T[0] and T[11] have been added based on the general slope of the nearby T[n] data points. This type of padding improves the overall accuracy of the system about the end points.
Once the data has been padded, the derivative of the data can be obtained without the reduction in data points mentioned previously. For the FIG. 16 data set, T[n] with padding, a graph of T*[n] is given in FIG. 17
Once the 1.sup.st derivative of the data has been formed, T*[n], this data can be used to form the second derivative given by,
T**[n]=T*[n]−T*[n−1]
T*[n] data may also be padded to retain overall number of samples in the resulting second derivative array, T**[n]. The 2.sup.nd derivative data graph for the data set in this example is given in FIG. 18.

(33) Referring next to FIG. 10 the logic flowchart for a two derivative system logic is shown. Block 100 gathers raw sensor and temperature data. Block 101 is an average to ensure the same sensor is not sending a wild, meaningless temperature.

(34) A derivative is illustrated here:

(35) TABLE-US-00001 First Second Derivative Derivative Sensor 2 Minus Sensor 1 Equals 0° 0° Difference Sensor 3 Minus Sensor 2 Equals 0° 0° Difference Sensor 4 Minus Sensor 3 Equals 0° 0° Difference Sensor 5 Minus Sensor 4 Equals 10° 10° Difference (difference (20° C.-10° C.) between the difference of the sensors) Sensor 6 Minus Sensor 5 Equals 10° 0° Difference (20° C.-10° C.) Sensor 7 Minus Sensor 6 Equals 0° −10° Sensor 8 Minus Sensor 7 Equals 0° 0° Sensor 9 Minus Sensor 8 Equals 0° 0° Sensor 10 Minus Sensor 9 Equals 0° 0°
Block 102 shows a first and second derivative computation as noted above. Block 103 counts the peaks in the second derivative above/below a threshold detector. A threshold detector is defined as an estimated temperature line TL (FIG. 13) and FIG. 19 that is applied to find if two delta points go in opposite directions. Thus, an interface exists at that point 1302 above or below the threshold detector TL.

(36) Decision block 104 shows a positive number of peaks at the NO branch which then leads to Block 105, a computation of the level based on the peaks (see FIG. 13). If there are no peaks it can mean either a full tank, and empty tank, or a broken system, see the yes branch of 104. This condition leads to Block 106, set a “no level measurement possible” flag. The pre-programmed option can include a view history and/or Block 107, wait for next start. The microprocessor is programmed to a desired sensor periodic scan rate for each start.

(37) Referring next to FIG. 11 the only different logic step is Block 1020 only uses one derivative calculation as compared to FIG. 10 using two. Block 1030 only counts the peaks form the first derivative calculation.

(38) Referring next to FIG. 13 the improvement in accuracy of level detection is shown using either the one or two derivative calculations. Line 1300 shows only the raw sensor temperatures. Line 1301 shows the tracking of the derivatives. And the level detection point 1302 is defined clearly as opposed to any estimate made from line 1300.

(39) Referring next to FIG. 12 an alternate computation logic is shown. For example we can use a three sensor window as follows: Sensor 1 +Sensor 2 +Sensor 3 - - - TOTAL Temp=60° C. Average Temp=20° C. Sensor 4 +Sensor 5 +Sensor 6 - - - TOTAL Temp=90° C. Average Temp=30° C.

(40) Thus, an interface is estimated to exist near the split between the windows of sensors 1, 2, 3 and 4, 5, 6 with a four inch sensor spacing, this yields a pretty accurate level. Block 1251 shows this transition found (one), and Block 1252 defines which window of sensors had the transition.

(41) Referring next to FIG. 14 a full blown system 1499 is shown. A fuse 1400 is added. A remote communication subsystem 1401 connects to the microprocessor 91. Various alarms (too full, too empty) 1402, 1403 can set off local and/or remote alarms. The display 10 can be shown vertically in feet, meters, or other measurement units.

(42) The microprocessor 92 and its functions described herein, as one skilled in the art would know, can be achieved using alternative circuits. These alternative circuits include personal computers, programmable logic controllers (PLC's), and programmable gate arrays (PGA's). For our terminology all of these systems are called a “processor.”

(43) Although the present invention has been described with reference to the disclosed embodiments, numerous modifications and variations can be made and still the result will come within the scope of the invention. No limitation with respect to the specific embodiments disclosed herein is intended or should be inferred. Each apparatus embodiment described herein has numerous equivalents.