Thickness measuring device and method of use

Through a thickness measurement device based on a capacitance array, the capacitance change detection interface between the electrodes is used to solve the problems of inaccurate measurement of oil slimming thickness and sensitive environmental conditions in the prior art, and accurate oil thickness measurement under dynamic waves is achieved.

CN111801553BActive Publication Date: 2024-11-05AMERICAN UNIVERSITY OF BEIRUT
View PDF 32 Cites 0 Cited by

Patent Information

Application Number
CN201980016413.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-02-02
Filing Date
2019-01-31
Publication Date
2024-11-05
Estimated Expiration
2039-01-31

AI Technical Summary

Technical Problem

The prior art methods for measuring oil slime thickness are mostly expensive, inaccurate, or unable to provide continuous monitoring, and are sensitive to environmental conditions and lack commercial sensors suitable for open water.

Method used

Using a thickness measurement device based on a capacitance array, the thickness of the floating liquid is identified by side or stacked conductive plates and dielectric materials, and the air/oil and oil/water interface is detected using the capacitance changes between the electrodes to calculate the thickness of the floating liquid.

Benefits of technology

Accurate measurement of oil thickness under dynamic waves and different environmental conditions, reduces sensitivity to manufacturing defects, and provides continuous monitoring capabilities, suitable for applications in open water.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111801553B_ABST
    Figure CN111801553B_ABST
Patent Text Reader

Abstract

A capacitive sensor and a measurement method for using the capacitive sensor to find an index of an electrode located at an interface between materials with different dielectric constants are provided herein, the capacitive sensor comprising: a plurality of conductive plates forming a capacitor array, wherein the capacitance change at each electrode is measured independently for detecting the type of material around the conductive plates; an electric field formed by the electrodes extends above a sensing plane and allows detection of dielectric constant changes of a liquid around the sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to a measuring device. Background Art

[0002] Several sensing techniques for measuring oil slick thickness have been proposed in the literature. Most existing techniques for oil detection and thickness estimation are either too expensive, inaccurate, make broad estimates of thickness over an area, are affected by environmental conditions, or do not provide continuous monitoring capabilities.

[0003] The techniques used to estimate / detect oil can be divided into two types: remote measurement or contact-based. Remote measurement techniques include visual methods, in which experts provide an estimate of the thickness of the slick based on color. This technology is enhanced by hyperspectral imaging, radar and thermal imaging from airborne vehicles or satellites. These technologies help provide a relatively overall thickness assessment and are greatly affected by lighting and atmospheric conditions, expensive or cannot be performed continuously. On the other hand, contact-based methods have the potential to provide localized and continuous thickness measurements. These methods include the most traditional instrumental methods: conductivity, capacitance, optical arrays, electromagnetic and vision. However, existing sensors in this field still have errors, sensitivity to lighting conditions, oil types, environmental conditions, scaling effects and wave conditions. There are few commercial sensors, and most are designed to simply detect leaks or work in closed containers, rather than measuring the thickness of oil in open water, especially when the sensor is not fixed. The present invention attempts to solve these and other problems. Summary of the invention

[0004] Provided herein are systems, methods, and apparatus for thickness measurement devices based on capacitance arrays. The methods, systems, and apparatus are set forth in part in the following description, and will be apparent in part from the description, or may be learned by practicing the methods, apparatus, and systems. The advantages of the methods, apparatus, and systems will be realized and obtained by the elements and combinations specifically noted in this application. It should be understood that the foregoing general description and the following detailed description are merely exemplary and explanatory, and do not limit the claimed methods, apparatus, and systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the accompanying drawings, like elements are identified by like reference numerals in several preferred embodiments of the present invention.

[0006] Figure 1A is a top view of one embodiment of a thickness measurement device (basic design - without pins). Figure 1B yes Figure 1A Schematic diagram of the connection of the device shown in . Figure 1C The processing and communication unit of the thickness measurement device is shown. Figure 1D is a side view of one embodiment of a sensor design with pins.

[0007] Figure 2A It is a side view of a schematic diagram between strips for detecting the thickness of the oil layer on the water. Figure 2B is a side view of the enhanced sensor design with pins. Figure 2C The implemented enhanced sensor design prototype with pins is shown. Figure 2D A complete sensing unit with waterproof housing is shown. Figure 2E TABLE I shows the relative differences of the sensor electrodes. Figure 2F is a graph showing the relative difference from calibration. Figure 2G is a graph of the ratio between electrodes. Figure 2H is a flow chart of an algorithm according to one embodiment. Fig.2I is a schematic diagram illustrating a vertical capacitor array at different positions.

[0008] Figure 3A is a side view of a schematic diagram of a capacitive sensor design; Figure 3B is a bottom view of a schematic diagram of a track of a capacitive sensor design; and Figure 3C is a top view of the schematic electrodes of a capacitive sensor design.

[0009] Figure 4 is a perspective view of one embodiment of an MPR121 breakout board.

[0010] Figure 5 is a diagram of an implementation of the MPR121 voltage measurement cycle.

[0011] Figure 6 It is a schematic diagram of the capacitive sensor control circuit.

[0012] Fig. 7A This is a top view of the capacitor controller circuit + GPS & wireless; Figure 7B is a top view of the capacitive sensor and electrodes. Figure 7C is a bottom view of the capacitive sensor and the track; and Fig.7D Here is an overall view of the capacitive sensor PCB.

[0013] Figure 8 This is a diagram of Experiment 1 of the aerial sensor.

[0014] Fig. 9 This is a graph of Experiment 2 of light oil / water.

[0015] Fig.10 This is a graph of Experiment 3 for air / light oil.

[0016] Fig.11 This is a diagram of the fuel oil experiment 1 - locating the oil / water interface.

[0017] Fig.12 This is a diagram of Fuel Oil Experiment 2 - Locating the Air / Oil Interface.

[0018] Fig.13 is C and △C t .

[0019] Fig.14 is a graph showing the results of the K-means algorithm.

[0020] Fig.15 Table XV: Interface detection algorithm - numerical experimental results.

[0021] Fig.16 is a graph showing an interface detection algorithm-ratio.

[0022] Figure 17A-Figure 17C is a graph showing the sensor output versus time grayscale representation, where the sampling rate is 50 milliseconds ( Fig.17A ); sampling rate 100 milliseconds ( Fig. 17B ); and a sampling rate of 200 milliseconds ( Fig. 17C ).

[0023] Fig.18 It is a schematic diagram of a multi-case algorithm flow chart.

[0024] Fig.19 is a perspective view of one embodiment of a package prototype.

[0025] Fig. 20 is a perspective view of one embodiment of a package prototype.

[0026] Fig.21A is an exploded isometric view. Fig.21B is an isometric view. Fig. 21C It is the front plane section.

[0027] Fig.22A is the main view, Fig. 22B is a bottom view, and Fig. 22C It is the right view.

[0028] Fig.23A It's a capacitor card. Fig. 23B It's the control panel. Fig.23C It is a spring-reinforced hasp lock.

[0029] Fig.24 and Fig.25 The design of the experimental test bench (box) is shown.

[0030] Fig.26 is a top view of a capacitive sensor with a vibration mechanism.

[0031] Fig. 27is a graph showing the E1 voltage drop before and after the vibrator is installed (voltage (ADC) versus time (seconds)).

[0032] Fig.28 is a graph showing the E2 voltage drop before and after installing the vibrator (Voltage (ADC) vs. Time (Sec)).

[0033] Fig.29 is a graph showing the voltage drop of E35 and E36 before and after application of Nanoprotech electrical insulation material (Voltage (ADC) vs. Time (Sec)).

[0034] Fig.30 is a graph showing a comparison between voltages (ADC) measured before and after coating with ultra dry (air).

[0035] Fig.31 is a graph showing a comparison between the average percentage difference in the case of air / oil / water before and after coating with ultra-dry material.

[0036] Fig.32 is the comparison between the voltage measured by El in the battery powered and USB powered cases.

[0037] Fig.33 is a front view of the experimental setup used for capacitive sensor tuning experiments.

[0038] Fig.34 is a graph of the current tuning-graph (voltage (ADC) vs. current (μA)).

[0039] Fig.35 is a time tuning - graph (voltage (ADC) vs. time (0.5-32 μs).

[0040] Fig.36 is a graph of the combined tuning graph (delta (Δ) versus time and current).

[0041] Fig.37 is a picture of the experimental setup used for the immersion test (Ohmsett).

[0042] Fig.38 is a picture of adding a controlled amount of oil - graduated cylinder.

[0043] Fig.39 It is a graph of the immersion test (1-8) / diesel (static and dynamic curves).

[0044] Fig.40 is a picture of the coating of the sensor body under the oil slick - Hoops (Hoover Offshore Oil Pipeline System) (weathered).

[0045] Fig.41is a graph showing the Immersion Test (9-16) / Hoops (Weathering) (Static and Dynamic Curves).

[0046] Fig.42 is a graph showing Test 9 (Static) - Hoops (Weathered) (3.175 mm).

[0047] Fig.43 is a graph showing the Immersion Test (17-25) / Hydrocal (static and dynamic curves).

[0048] Fig.44 is a graph showing the immersion test (26-33) / Calsol (static and dynamic curves).

[0049] Fig.45 is a picture showing the capacitive sensor-bridge mounting experimental setup.

[0050] Fig.46 is a picture showing the oil-wind effect contained in the channel.

[0051] Fig.47 is a graph showing the dynamic test (34-35)-Hydrocal.

[0052] Fig.48 is a picture showing sensor #1 mounted to a Desmi Termite skimmer.

[0053] Fig.49 is a schematic diagram of a single sensing unit according to a pin-based implementation.

[0054] Fig.50 is a schematic diagram of a separate sensing unit according to a pin-based implementation.

[0055] Fig.51 is a schematic diagram showing adjacent sensing units according to one pin-based implementation.

[0056] Fig.52 is a graph showing measured capacitance (pF) versus material thickness (mm) - results obtained from a three pin based design (single unit, three units, and a full row with 11 pins).

[0057] Fig.53 Alternative implementations of PCB prototypes - front view of a coplanar-based design and a pin-based design.

[0058] Fig.54 : is a graph of experimental evaluation - measured capacitance versus simulated value. DETAILED DESCRIPTION

[0059] The foregoing and other features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The detailed description and drawings are merely illustrative rather than limiting of the present invention, the scope of the present invention being defined by the appended claims and their equivalents.

[0060] Embodiments of the present invention will now be described with reference to the accompanying drawings, wherein the same reference numerals represent the same elements throughout. The terms used in the descriptions presented herein are not intended to be interpreted in any limiting or restrictive manner, and this is only because they are used in conjunction with the detailed description of certain specific embodiments of the present invention. In addition, embodiments of the present invention may include several novel features, none of which is solely responsible for its desired properties or is essential for implementing the invention described herein. The words proximal and distal are used herein to represent the specific ends of the components of the instruments described herein. When using an instrument, the proximal end refers to the end of the instrument close to the operator of the instrument. The distal end refers to the end of the assembly away from the operator.

[0061] Unless otherwise specified, or clearly contradictory to the context, in the context of describing the present invention, the use of the terms "a", "an", and "the" and similar references should be interpreted as covering both the singular and the plural. It will be further understood that when used herein, the terms "comprise", "comprising", "include" and / or "comprising" refer to the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0062] Unless otherwise stated herein, the reference to the numerical range herein is intended only to be used as a shorthand method of referring to each independent value falling within the range, and each independent value is incorporated into the specification as if it were separately described herein. When a numerical value is attached, the word "about" should be interpreted as indicating that the maximum deviation from the numerical value is 10%. Unless otherwise stated, the use of any and all examples or exemplary language ("for example" or "such as") provided herein is intended only to better illustrate the present invention and is not intended to limit the scope of the present invention. Any language in the specification should not be interpreted as indicating that any unclaimed element is essential for implementing the present invention.

[0063] References to "one embodiment," "an embodiment," "example embodiment," "various embodiments," etc. may indicate that the (one or more) embodiments of the invention described herein may include a particular feature, structure, or characteristic, but not every embodiment must include the particular feature, structure, or characteristic. Furthermore, repeated use of the phrases "in one embodiment" or "in an exemplary embodiment" does not necessarily refer to the same embodiment, although they may.

[0064] As used herein, the term "method" refers to ways, means, techniques and processes for accomplishing a given task, including but not limited to those ways, means, techniques and processes known to practitioners in the chemical, biological, biochemical and sensing fields or readily developed based on known ways, means, techniques and processes.

[0065] The thickness measuring device includes a sensor capable of measuring the thickness of a fluid floating between at least two media (such as oil floating on water, with air above and water below). The sensor is a capacitor array having at least two conductive plates arranged side by side or one above the other, such as Figure 1A and Figure 1D As shown. According to one embodiment, the conductive plates may not be parallel plates. Dielectric materials are placed in the empty spaces between the plates, with the fluid facing each plate, and each material type has a different dielectric constant. For example, at room temperature, the dielectric constant of air is about 1, the dielectric constant of lubricating oil is about 2.1 to 2.4, and the dielectric constant of water is about 80. By measuring the change in capacitance between the strips of the array, the floating liquid thickness measurement device can identify the air / oil interface and the oil / water interface. Once the interface is identified and the sensor size is given, the floating liquid thickness measurement device calculates the thickness of the floating liquid.

[0066] Dielectric materials are essentially insulators, meaning that no current will flow through the material when a voltage is applied. However, some changes do occur at the atomic scale. When a voltage is applied to a dielectric object, it becomes polarized. Because atoms consist of positively charged nuclei and negatively charged electrons, polarization is an effect that slightly deflects the electrons toward a positive voltage. They don't travel far enough to create a current flowing through the material - the deflection is tiny, but has a very important effect, especially when dealing with capacitors. Once the voltage source is removed from the material, it either returns to its original non-polarized state or remains polarized if the molecular bonds in the material are weak. The difference between the terms dielectric and insulator is not well defined. All dielectric materials are insulators, but a good dielectric is one that is easily polarized.

[0067] The amount of polarization that occurs when a certain voltage is applied to an object affects the amount of electrical energy stored in the electric field. This is described by the dielectric constant of the material. The dielectric constant is not the only property of dielectric materials. Other properties, such as dielectric strength and dielectric loss, are equally important when selecting materials for capacitors in a given application.

[0068] The dielectric constant of a material, also known as the permittivity of a material, represents the ability of a material to concentrate electrostatic flux lines. In more practical terms, it represents the ability of a material to store electrical energy in the presence of an electric field. All materials, including vacuum, store energy when placed in an electric field. The permittivity of a vacuum is defined as the physical constant ε0, which is approximately ε0 = 8.854 x 10 -12 Farad per meter. This constant appears in many electromagnetic formulas.

[0069] Since most capacitors are not made of a vacuum, it makes sense to define the permittivity of each material. The permittivity of a material is defined as ε=εrε0, where ε is the absolute permittivity and εr is the relative permittivity. εr is a number that is always greater than 1, which means that all materials store more energy than free space when subjected to an electric field. This property is very useful in capacitor applications. It should be noted that the relative permittivity depends on many factors, such as temperature, pressure and even frequency, which is why materials with more stable dielectric constants are preferred in some applications, but the disclosed sensor is insensitive to this property.

[0070] The dielectric constant of water (80 at 20°C) is much higher than that of oil (about 2.1-2.4), so measuring the dielectric constant is a convenient way to distinguish them and the thickness of each. There is a large difference between the conductivity of water and hydrocarbons. This difference is often used as the basis for detecting the interface between the two fluids and their relative thickness.

[0071] Figure 1B The sensor board shown comprises a 4-layer PCB, where the sensor pads (electrodes) are mounted on the top and bottom layers of the PCB and the connection tracks are mounted in the two inner layers of the PCB. The sensor pads (electrodes) are connected to the connection tracks via plug-in vias embedded in the inner layers of the PCB. In order to drive the power supply and ensure the data connection with the microcontroller in the processing and communication unit ( Figure 1C ), a 4-pin connector (wire) was used. To cover the forty-eight sensing electrodes, four MPR121 breakout boards were used, each connected to twelve electrodes. Figure 1B An electrical design schematic describing the connections and addressing of the circuit is shown in . The schematic shows the connections between the four MPR121 breakout boards and the sensing pads (electrodes) labeled 1 to 48. The MPR121 boards can be addressed by changing the connection of the ADD pin contained in each of the MPR121 breakout boards. The address pin (ADD) in the four MPR121 breakout boards is connected to GND, 3.3V, SDA, SCL. Therefore, the four MPR121 controllers installed have the following unique I2C addresses, respectively: 0x5A, 0x5B, 0x5C, and 0x5D.

[0072] Figure 1C The components of the processing and communication unit shown in are described as follows: First, the input power ranging between 6-26VDC is converted to 5VDC by a low voltage drop linear regulator (LM2940) in addition to two capacitors (0.47uF and 22uF) for signal smoothing. The processing is performed using an "Arduino Nano" development board containing an ATmega328 microcontroller. This module was chosen due to its low cost, low power consumption and simple programmability. The wireless communication is done by a "TB394" RF module with an IPEX antenna. The wireless RF module is connected to the Arduino Nano board through its serial connection pins (RX, TX) and is powered with the regulator output (5V) through a transistor (2N3904) acting as a switch. The GPS module (SKM53) is connected to the digital I / O Arduino pins (D3, D2) and the software serial library is used to replicate the serial connection functionality on these pins. In addition, the GPS module is powered with the regulator output (5V) through a transistor (2N3904) acting as a switch. The resistor (1KΩ) is used to limit the current between the Arduino digital pin and the transistor base connector. A four-wire connector is added to connect the power and data pins to the Figure 1A The sensing unit shown. Includes a 6.35mm female power jack for connection to the power supply unit (9VDC battery).

[0073] Interface detection

[0074] According to one embodiment, the sensor is not limited to detecting only the level of the interface between liquid layers; instead, the sensor can detect the interface between different media with different dielectric constants, regardless of the state of the media (gas / liquid). For the oil spill thickness measurement application, the sensor detects the interface between air (gas) and oil (liquid), and then detects the interface between oil (liquid) and water (liquid). Because the electrodes are exposed to the liquid mixture, the electrodes located in the water area will be short-circuited due to the high conductivity of water. In contrast to many other capacitive sensors in the literature, in the case of the disclosed sensor, short-circuiting of the electrodes is not a problem because the absolute value of the capacitance is not required to calculate the thickness. The sensor detects short-circuited electrodes due to water contact because their voltage values ​​are extremely low and differ greatly from the baseline calibration value obtained in air. Therefore, these electrodes are classified as water electrodes and removed from the sensing array. After removing the index electrodes classified as in water from the measurement array, the algorithm proceeds in the following manner: identifying the remaining electrodes immersed in air and oil and detecting the interface electrodes between the two media based on the relative difference between the electrodes. In this case, since the oil is a non-conductive liquid, the electrodes are not short-circuited and the actual capacitance of each electrode is obtained. Since the algorithm relies on the relative difference between the electrodes to find the interface, the actual correctness of the capacitance value is not necessary.

[0075] Several experiments have demonstrated the effectiveness of this technique in detecting interfaces and calculating oil thickness. In one experiment, the sensor was placed in a liquid mixture containing lubricant light oil (10W single grade) and water at a temperature of 23°C and a relative humidity of 60%. The actual oil thickness was around 16 mm, and different numbers of electrodes were surrounded by air, oil, and water. To calculate the oil thickness, the air / oil interface and the water / oil interface were detected by using relative ratios. Figure 2E The relative difference (RD) for each electrode is calculated as shown in Table I. The ratio is obtained by dividing the value of the next electrode by the value of the current electrode V(k+1) / V(k), where k is the current electrode index. Figure 2F and Figure 2G The graphs shown in represent the relative differences of each electrode from the calibration values ​​and the ratio values.

[0076] An algorithm is used to detect the two interfaces. After calculating the ratio, the algorithm proceeds by finding the index of the electrode with the largest ratio. In this case, two interfaces are detected at E4 and E11. The number of electrodes between the interfaces is calculated and used to estimate the oil thickness (TH) as TH=NxW+(Nl)x(G), where N is the number of electrodes covered by oil, calculated as N=11-4=7, and W is the electrode width=2mm, and G=0.5mm is the gap width between the electrodes. The oil thickness is calculated as (14)+(3)=17mm.

[0077] In one embodiment, the floating liquid thickness measuring device comprises a capacitive sensor 100 comprising at least 48 conductive strips 110, each of which is 2 mm in height and is separated from each other by 1 mm in the vertical direction V1. Figure 1A The specific range of height and vertical spacing should be reasonable for the intended application, between about 1 mm and about 10 mm; alternatively, between about 0.1 mm and about 3 mm. The conductive strips are distributed into at least one column of forty-eight strips. The measurement circuit is implemented on a separate printed circuit board (PCB) that holds the microcontroller and the communication module (GPS, wireless) 200, which includes a wireless communication module, communication and power pins for connecting to the sensing unit, and an input regulator, such as Figure 1C shown.

[0078] The sensing technology relies on measuring the relative changes in capacitance between the strips to dynamically identify the floating liquid thickness in real time.

[0079] Concept of Geometric Capacitive Sensing (Array)

[0080] Based on the above capacitive sensing principle, the proposed capacitive sensor includes a set of conductive plates (electrodes) that form a capacitor array implemented on a rectangular PCB plane. In order to detect the type of material (air / oil / water) present, the change in capacitance at each electrode caused by the change in the dielectric constant of the surrounding material is measured independently. The electric field formed by the electrodes extends above the sensing plane, thereby allowing the detection of changes in the dielectric constant of the liquid surrounding the sensor. In addition to the electrode width and the gap between the electrodes, the electric field distance also depends on the charging parameters (current and time). Figure 2A A cross section of a capacitive sensor design is shown. Since oil is lighter than water, it rises to the top of the water surface and floats, forming a thin film of oil. Due to sea waves and the movement of the platform holding the sensor, the height of the liquid being inspected may vary up and down through the sensor plate, thereby changing the surrounding medium (air / oil / water) of the electrodes, thereby changing the capacitance measured at each electrode. The main advantage of a vertical capacitive sensing array is that there is no need to calibrate in the field for different types of oil / water because the sensor functions based on the capacitance difference between the electrodes rather than on absolute capacitance values.

[0081] By using a vertical capacitive sensor array design, the proposed sensor can distinguish between water / oil interfaces as well as oil / air interfaces. The thickness of the oil can be determined regardless of where along the sensor this thickness occurs. In other words, compared to several implementations of capacitive level sensors found in the literature that use a float to hold the sensor in a fixed position on top of the liquid surface, the proposed sensor does not require any assumptions about its position relative to the liquid surface. If the sensor can determine two interfaces between different media, the thickness can still be calculated (within the resolution of the sensor). The application of this sensor does not require any special packaging considerations other than waterproofing of the box that houses the electronics and batteries.

[0082] In one embodiment, the thickness measuring device measures the thickness of the oil during skimming operations in the open ocean. By using this thickness measuring device, the cleaning crew can assess the oil thickness of the area they are cleaning in real time and therefore decide whether they should continue or stop the cleaning operation in that area.

[0083] In another embodiment, the thickness measurement device measures any medium between two other different densities of different density, as long as the medium has a different dielectric. The thickness measurement device can even be extended to measure any layered medium, such as the thickness of the moisture layer in the soil. For example, in a soil moisture measurement application, the dielectric constant of the soil (mineral soil: 4, organic matter: 4, air: 1) is affected by the water content (water: 80) which has a higher dielectric constant.

[0084] To address the limitations of the prior art, a thickness gauge sensor may be used during skimming operations, wherein the sensor is towed into the water while measuring the thickness of the oil on top. The thickness gauge is novel because it provides an oil thickness estimate by relying on an array of capacitive strips, and relies on "relative" readings rather than absolute readings, making the sensor readings insensitive to manufacturing defects. Furthermore, the thickness gauge sensor operates in a dynamic environment with waves, different types of oil, salt / fresh water, different environmental conditions (light, temperature, humidity, etc.). The thickness gauge design minimizes the scaling effect with a thin blade-like design. For different materials with different dielectric constants, this parameter varies depending on conditions such as excitation frequency and temperature. In one embodiment, the dielectric constant of water ranges between about 88 and 55, while the temperature varies between 0 and 100°C. It is assumed that the dielectric constant of water is about 80 at room temperature (20°C). For other common materials, vacuum is 1, gases at one atmosphere are at most around 1.00, hexane at 20°C is 1.8865, benzene at 20°C is 2.285, and lubricating oil at room temperature is between 2.1 and 2.8, depending on the viscosity of the oil. Used lubricating oil may have a higher dielectric constant than unused lubricating oil.

[0085] This paper presents an algorithm for measuring oil under dynamic wave conditions. Algorithm design and extensive test data. Several prototype boards and packaging materials have been prepared and tested.

[0086] Enhanced sensor design with pins

[0087] To reduce fouling effects on the sensor and increase sensor sensitivity, in one embodiment, a plurality of horizontal pins 120 are operably coupled to the strips of the sensing array, such as Figure 1D as shown. Additionally, sensing electrodes 110 are added to both sides of the sensor and connecting tracks 130 are embedded in the 4-layer PCB design. The added pins 120 are able to penetrate the thick oil layer covering the sensor strip. When the sensor is immersed in the liquid being inspected containing both oil and water layers, the pins located in the water portion of the sensor are short-circuited due to the conductivity of water. The upper pins located in the oil portion are completely immersed in the oil, so the measured capacitance is related to the dielectric constant of the oil, which is different from that of water and air. Based on this enhanced design, the actual sensing method used by the sensor can be represented as a hybrid between capacitive sensing and conductive sensing techniques, as the short circuit is done in the water partition of the sensor, and capacitive sensing is operational in both the air portion and the oil portion of the sensor (due to their insulating properties). Figure 1D The enhanced sensor design is illustrated, showing the following parts: (a): sensing electrode 110 (b): connecting track 130 (c): anti-fouling pin 120 (d): PCB. The sensor prototype with pins is implemented as Figure 2C The complete sensor unit including the waterproof housing is shown in Figure 2C-Figure 2D shown.

[0088] Sensor Implementation

[0089] The realized capacitive sensor prototype consists of a sensing unit (electrode array) and a processing unit (microcontroller). Figure 1A The sensing unit shown contains: a set of conductive electrodes and four capacitive touch controller modules "MPR121" mounted on a double-sided four-layer PCB. The height of each electrode is 2mm, and the vertical gap between two adjacent electrodes is 1mm. The electrodes are placed sequentially from top to bottom on the PCB to cover all target sensing ranges (10cm). The capacitive touch controller works by charging and discharging each sensing electrode with a DC current during a specific duration. During the excitation and measurement of each electrode, all other electrodes are grounded. At the end of each charging and discharging cycle, the measured voltage is converted to a digital value, and several layers of digital filtering are applied to the result to improve noise immunity under different environmental conditions. Located Figure 1CThe microcontroller (Arduino Nano) at the processing unit shown receives the digital voltage value, applies a thickness estimation algorithm to calculate and report the actual oil thickness. Finally, the thickness result is wirelessly sent to a base station.

[0090] Fluid mechanics design

[0091] In order to maintain accurate measurements when the sensor is dragged into the water, the sensor is designed to be very flat (knife-like design) so that it has minimal resistance and drag. In one embodiment, the width of the sensor box body is between about 1.0mm and 2.0mm; alternatively, between about 1.2mm and 1.8mm; alternatively, between about 1.4mm and 1.6mm. In this way, it can "cut" through water and oil regardless of whether it is a straight-line operation or a turning operation. Since the sensing array is mounted on a slim PCB board with sharp edges, water easily falls off the sensor body when dragging, thereby reducing the accumulation of oil on the sensing strip. Moreover, the horizontal pins added to the sensing electrodes play a major role in improving the cleaning rate of the sensing array.

[0092] This paper presents an algorithm for measuring oil under dynamic wave conditions.

[0093] Although this article is mainly described for oil spills at sea, it should be understood that the system and method of the present invention can be suitable for use in combination with collecting oil in saltwater or freshwater environments, in docks, refueling areas, oil rigs, ports and processing plants, and preventing the natural occurrence and / or artificial release of oil and other petrochemical products in coastal environments. In addition, although it is mainly described about collecting oil from water, it should be understood that the system and method of the present invention can be suitable for separating any lower density material from a higher density material, such as in special chemical treatments, oil refining in meat processing plants, essential oil collection from plants, ore particle separation in mining, and various other applications and industrial processes. There is a density difference between the first material and the second material. A dielectric difference is also required for measurement. Therefore, there is a difference in density and dielectric to allow measurement.

[0094] Measurement algorithm

[0095] The measurement algorithm aims to find the index of electrodes located at the interface between materials with different dielectric constants. According to one embodiment, and based on the sensor geometry properties, electrodes located at the water / oil interface as well as the air / oil interface are detected and used to calculate the oil thickness under static and dynamic conditions. The algorithm has a low dependency on the direct numerical value of the voltage measurement and can work on devices with a limited amount of computing resources. The system starts by measuring the voltage values ​​of all electrodes in a sequential manner using a capacitive touch controller and a multiplexer. A microcontroller reads the digital voltage value obtained from each electrode and applies several layers of digital filtering to enhance the stability of the measurement.

[0096] To normalize the acquired voltage values, the relative percentage change from the baseline calibration value is calculated for each electrode. The calibration values ​​are acquired when the sensor is completely dry and left in open air for a specific duration. The algorithm uses the calculated relative percentage change to determine the state of each electrode (air / oil / water). Since each ratio is assigned to its electrode index and the sensor geometry (spacing between electrodes) is known, the actual thickness of the oil is calculated.

[0097] To handle dynamic situations where the sensor rises or falls (due to the raising or lowering of the container or due to waves), a two-step algorithm is used. The first step is to detect the direction of the sensor movement: by using the average of all voltage measurements at each measurement cycle, the direction of the sensor movement can be determined. To reduce the fouling effect, the "Highest Point" measurement algorithm is applied when the sensor reaches its highest point of movement during a specific time interval. Another way to deal with the fouling effect, called the "Corrected Lowest Point" algorithm, is to detect the lowest point of the sensor movement and apply a correction method to remove the number of fouled electrodes from the detected oil electrodes. By using time interpolation, the correction mechanism works by finding the number of fouled electrodes and subtracting it from the oil interval before calculating the actual thickness. Basically, the correction mechanism (Corrected Lowest Point Algorithm) is preferred for high viscosity oil types where fouling is the main problem. When dealing with light oil types or when the sensor is not moving (static situation), the fouling effect is minimal, so no correction step is required and the "Highest Point" algorithm is used. The overall algorithm workflow is described in Figure 2H exemplified in the flow chart shown.

[0098] For light oil types (such as diesel), the "highest point algorithm" is applied; this method consists in measuring the thickness using a set of values ​​taken when the sensor reaches its highest point (peak) through the stored array. This is done because the bars fouled with light oil moving from oil to air will clean relatively quickly, and the fouled bars on the bottom side will be minimal (if any) because at the highest point most of the fouled bars are back in the oil. This algorithm is also used in the static case, since the highest point will be a regular point in the array.

[0099] The second method is more suitable for heavy oil types (e.g. Hydrocal, Calsol) where the negative effects of scaling are more effective. This method is called the "Corrected Lowest Point Algorithm". It works by detecting the measurements taken when the sensor reaches the lowest point (minimum) in the stored array and applying a correction method to them to remove the number of scaled electrodes. By using time interpolation, the correction mechanism works by finding the number of scaled electrodes and subtracting it from the detected oil interval before calculating the actual thickness. The reason for this method is that since the oil is thick when the sensor is at the top, the scaled bars in the air will take a long time to clean up. Therefore, consider instead immersing the sensor at the deepest position, because the most scaled bars will be at the bottom in the water. In this case, the algorithm will overestimate the oil thickness due to scaling and a correction step is required in which the scaled bars will be detected and removed from the thickness.

[0100] Algorithm Detailed Description: Calibration

[0101] The calibration voltage values ​​are obtained when the sensor is completely dry and placed in the open air for a preset duration. For each electrode, the average of all measured voltages is stored in a one-dimensional array. In operation, the relative voltage difference (R) of each electrode indexed "i" is calculated using the following formula (1):

[0102]

[0103] Validity Check

[0104] At each measurement cycle, a validity check is applied to the acquired values ​​to check if the sensor is in a valid sensing position. When the last electrode in the sensor array is immersed in water, the sensing position is set to valid. The relative change of the last electrode is calculated and compared with a threshold value (50%) to determine if the electrode is in water. If the calculated relative change is greater than 50%, the measurement is considered valid. Otherwise, the measurement is considered invalid and is not stored in the measurement array. In addition, a text message (INVALID) is sent to the base station to inform the user of the sensor status. This will allow detecting situations where the sensor is not in water.

[0105] Interface Detection (Detection - Interface)

[0106] To detect the interface between two different media, the algorithm uses a voting method called "Detection - Interface", which is described as follows:

[0107] Detection - Interface (relative difference vector) is performed by creating a one - dimensional array (votes) of size N, where votes = zeros(1,N) (initially zero, one row, N columns). Then, starting from index = 2, the votes for each electrode are calculated while (index < N), votes(index) = (mean(relative difference(index + 1:N)) - mean(relative difference(1:index))) - (relative difference(index) / 2). Then, the index of the interface with the maximum vote value is obtained, where Max_Value = MAX(votes), and Interface = getIndex(Max_Values) (gets the index of the electrode with the maximum vote value). And the index of the interface is returned, where "N" is the total number of electrodes and "index" is the electrode index.

[0108] To measure the oil thickness, the interface detection method is iteratively applied twice. After finding the water interface, all electrodes below it (with larger indices) are removed, and the method is applied to the remaining electrodes to find the oil / air interface.

[0109] The highest point algorithm starts by initializing a counter to zero, where c = 0, and (c < 50). Then, measurements are taken to obtain the relative change, which checks for validity, and if (measurement is valid), it is added to the measurement array. measurement_array(c) = measurement; where the counter is incremented as c = c + 1. If and when the measurement array is Full, where temp_vector = zeros(48), the algorithm ends. Then, for (k = 1, k < 48, k++), it obtains the minimum relative difference from each column (electrode). temp_vector(k) = MIN(measurement_array(K)); then the calculation of the thickness ends. It obtains the thickness (temp_vector) based on the above "Detection - Interface" method (detects the oil / water interface, removes the oil / water interface and all electrodes below it (with larger indices) from the temp_vector, detects the air / oil interface, and uses the number of electrodes between the two interfaces to calculate the oil thickness).

[0110] The corrected lowest point algorithm starts by initializing the counter to zero, c=0, and (c<50). Then, measurements are taken and the relative difference of each electrode is obtained. Then, it checks the validity, and if the measurement is valid, it is added to the measurement array. Measurement array (c) = measurement; where the incremental counter c = c+1. ​​It ends if and when the measurement array is Full, where the temporary maximum vector = zero (48), the temporary minimum vector = zero (48), and the temporary amplitude vector = zero (48). Then it gets the maximum, minimum, and amplitude. For (k=l, k<48, k++), the temporary maximum vector (k) = MAX(measurement array (k)); the temporary minimum vector (k) = MIN(measurement array (k)); and the temporary amplitude vector = temporary maximum vector (k) - temporary minimum vector (k). To detect the oil electrode, the water interface is detected, where water interface = detected water interface (temporary maximum vector), and then the relative change in sensor movement is calculated by relative change = ((mean (temporary maximum vector) - mean (temporary minimum vector)) / mean (temporary maximum vector))(100). Then, if the relative change is > 3%, the sensor is considered to have moved, and a correction step is applied to the water interface by reducing the water interface index while (temporary amplitude vector (water interface) > mean (temporary amplitude vector (0: index of water interface; average of amplitudes before water interface index)). If the relative change is < 3%, the sensor is detected to be static and the water interface is not corrected. Then, the corrected water interface and all the electrodes below (larger index) are removed from the temporary maximum vector, oil interface = detected oil interface (temporary maximum vector); and oil interval = water interface - oil interface. Then the thickness is calculated by obtaining thickness (oil interval), where thickness = (oil interval)(2) + (oil interval - 1)(1). Then it returns the thickness.

[0111] Motion tracking in dynamic liquid conditions

[0112] As mentioned previously, the purpose of the algorithm is to detect the best set of measurements to apply the analysis. The motion detection process identifies the dynamic state of the sensor (stationary / moving) and the direction of movement (upward / downward). When the sensor moves downward, most relative differences will increase because more electrodes will be immersed in the liquid being inspected. Electrodes moving from oil to water and electrodes moving from air to oil will have larger relative differences from the baseline calibration values ​​obtained in air. Conversely, when the sensor moves upward, the relative differences will decrease. The average relative difference of all electrodes at each measurement cycle is calculated and used as an indicator of sensor movement. For the static case, since no movement occurs, the average should vary with respect to time within a random error interval. In the dynamic case, the average will increase or decrease based on the direction of sensor movement or waves. If the sensor is fixed in place, the average is used to track the movement of the liquid hitting the sensor. To demonstrate this capability, the relative differences of all electrodes at each measurement cycle are stored in a 2D array and converted to a grayscale image, as shown in Figure 2. Fig. 17C , Fig. 17B and Fig.17A . where the y-axis corresponds to the electrode index and the x-axis corresponds to time. A clear change in the color intensity in the image is observed relative to the vertical movement of the sensor in the wave. The brighter intensity reflects the increase in relative difference due to contact with the water. From this figure, the amplitude and frequency of the waves can be determined, since the sampling time and the geometric sensor properties are known.

[0113] To detect a set of measurements made at the highest point of the sensor's movement, the minimum relative difference presented by each electrode during a certain time interval is selected. Conversely, to detect a set of measurements made at the lowest point, the maximum relative difference is selected.

[0114] The discrete design concept of the sensor relies on the geometrical properties of the classified electrodes to calculate the oil thickness, making it more reliable in this case compared to conventional continuous capacitance measurement techniques.

[0115] Another advantage of the discrete measurement concept compared to continuous capacitance sensing technology is that, since the actual capacitance value is not used in the level calculation, no calibration for different oil / water types is required. This fact enables the sensor to function for different liquid types (heavy and light oil / fresh and salt water) without recalibration. The importance of this is that the sensor can work in situations where several types of liquids may be mixed together during the operating time (such as in oil spill applications). On the contrary, in such applications (mixture of unknown oil types), continuous capacitance sensing technology and other sensing technologies that require calibration for different liquid types may not be considered reliable.

[0116] The shape difference is also important because the sensor is designed to act like a knife, slicing through water even when it is dragged or swung. The sensor's measurement in continuous capacitive sensing technology, which uses a float to maintain a fixed position of the sensor on top of the liquid surface, can cause oil to accumulate and will not work properly if displaced vertically.

[0117] However, the disclosed sensor mounting design does not require a float to maintain the position of the sensor in a specific position ( Fig.2I ). To handle dynamic conditions, the sensor uses relative differences to detect the air / liquid interface and removes air-partitioned electrodes from the measurement array. Based on the discrete measurement design, air partitions can be detected and removed dynamically despite different wave and drag conditions. It is important to note here that the sensor can be fixed from its center to any mounting mechanism where the sensor electrodes can freely move vertically through the liquid being inspected, starting from the air section to the underwater section.

[0118] The capacitance measurement technique used in the disclosed sensor is used with modern capacitive touch controllers. The multi-input, low-cost and low-power capacitive touch controller used in the system measures the capacitance of each electrode sequentially and converts the corresponding voltage to a digital value before sending it to a microcontroller. The capacitance controller works by charging and discharging each sensing electrode with a DC current during a specific duration. At the end of each charge and discharge cycle, the measured voltage is converted to a digital value and several layers of digital filtering are applied to the result, thereby improving noise immunity against different environmental conditions. The microcontroller receives the digital voltage values ​​and provides them to a relative thickness estimation algorithm to calculate the actual oil thickness.

[0119] Calculating the thickness of the floating fluid based on the size of the sensor is based on a discrete measurement principle, where the thickness of the floating fluid is calculated after detecting the number of electrodes immersed in the liquid and using its geometric properties instead of actual capacitance measurements.

[0120] Since the measurement algorithm relatively relies on the difference between the current values ​​of all electrodes rather than on calibration values, changes in temperature and relative humidity as well as light have no effect on the measurement algorithm.

[0121] The sensor is designed to measure the thickness of different liquid layers in open water (in addition to closed containers) without the need for special mounting platforms or floating platforms. As mentioned earlier, the sensor can detect and process the thickness of the air medium, which makes it free from special mounting requirements and floating requirements.

[0122] The disclosed sensor uses a discrete measurement principle and does not require a reference sensor since the actual capacitance value is not used in the thickness estimation algorithm. The disclosed sensor does not require any knowledge of the exact permittivity of the liquid before measurement. It must be noted here that during an oil spill, different types of oil may mix together, limiting the use of predefined dielectric constant values ​​to calculate the actual oil thickness. Therefore, the main advantage of the disclosed sensor is that it does not require pre-calibration for different liquids before operation. The disclosed sensor can function for different oil types (heavy / light) and water types (fresh / salty) based on basic values ​​obtained only in air.

[0123] The disclosed sensor does not use any insulating material. All electrodes are exposed to the liquid being inspected. The electrodes are measured sequentially and the thickness is obtained using a discrete measurement technique rather than using the actual capacitance value (continuous measurement).

[0124] The disclosed sensor accommodates wave motion by sensing the air portion of the sensor, thereby allowing its use in dynamic and wave conditions.

[0125] The disclosed sensor is designed to operate in open water environments in addition to containers and has a relatively high resolution (several millimeters). The disclosed sensor design can handle dynamic conditions and waves by relying on discrete measurement techniques and continuously sensing the air portion of the sensor.

[0126] The disclosed sensor does not use the actual capacitance value to convert to thickness. Instead, it uses a discrete measurement technique that allows it to distinguish between several media by detecting the interface (air / oil - oil / water) using the geometrical properties of the sensor, without knowing the actual dielectric constant of the liquid being examined. It is important to note here that the use of the actual measured capacitance value to obtain the thickness will be greatly affected under dynamic conditions due to the fouling phenomenon, especially when dealing with high viscosity liquids (such as heavy crude oil).

[0127] The disclosed sensor can operate by detecting multiple interfaces between several media of different types (gas / liquid) with different dielectric constants. In the oil thickness application, the disclosed sensor operates by detecting two interfaces. The first interface is between air and oil (air / oil interface) and the second interface is between oil and water (oil / water interface). Furthermore, the number of interfaces can be expanded to meet the desired application.

[0128] The disclosed sensor measures the capacitance of each electrode independently and uses a relative algorithm to detect interfaces between several media based on percentage change values ​​without relying on any threshold value.

[0129] Capacitive Sensors: Sensor Design

[0130] A capacitive sensor comprises a set of conductive plates (electrodes) forming a capacitor array implemented on a planar PCB. The capacitance change at each electrode caused by the change in dielectric constant is measured independently to detect the type of surrounding material (air / oil / water). The electric field formed by the electrodes extends above the sensing plane, thus allowing the detection of changes in the dielectric constant of the liquid surrounding the sensor. A capacitive sensor comprises a sensing unit and a processing unit.

[0131] Capacitive sensing unit

[0132] The sensing unit contains thirty-seven conductive electrodes, which are evenly spaced from top to bottom on the top layer of the double-sided PCB ( Figures 3A-3C ). In one embodiment, the electrodes have the following dimensions: width: about 2 mm, length: about 50 mm, vertical separation gap: about 0.5 mm. The bottom layer of the PCB contains tracks that connect the electrodes to the connection sockets. A 37-pin D-type subminiature PCB connector [7, 8] was selected to connect the sensing unit to a capacitor controller module (MPR121) in the processing unit. D-type subminiature connectors were selected because of their compact size and the large number of pins they provide. The sensing unit is coated with a transparent electrically insulating material provided by "Nanoprotech" [9], which includes the following components: high purity mineral oil, corrosion inhibitors, antioxidants alkanes and cycloalkanes. The recommended operating temperature of the material is between about -20°C and about +35°C, and it maintains its properties over a temperature range of about -80°C to about +140°C.

[0133] Capacitor processing unit

[0134] The capacitance processing unit includes a capacitance sensor controller module MPR121 ( Figure 4 ) and a microcontroller board (Arduino Nano) for controlling the measurement process and calculating the oil thickness. The MPR121 is a capacitive sensor controller used in touch and proximity sensing applications. It supports twelve sensing electrodes and can be connected to a microcontroller equipped with an I2C communication channel. The module typically operates over a temperature range of approximately -40°C to approximately +85°C using an input voltage between 1.6V and 3.3V. It has a low current consumption of approximately 29μA at a sampling rate of approximately 16ms. The address pin (ADD) is used to set the I2C address of the chip. By default, the ADD pin is connected to GND, which sets the I2C address to 0x5A. The chip can be configured to three other I2C addresses by connecting the ADD pin as follows: ADD to 3.3V = 0x5B / ADD to SDA = 0x5C / ADD to SCL = 0x5D

[10] .

[0135] Three MPR121 modules are used on the controller board after assigning a unique I2C address to each module. Each module is connected to the Arduino controller board by using two power lines and two I2C communication lines (3.3V-3.3V / SCL-A5 / SDA-A4 / GNG-GND). The sense pins are connected to the electrodes in the sense card sequentially from top to bottom. The code iteratively scans each electrode and reads the filtered voltage value provided by the internal 10-bit analog-to-digital converter (ADC).

[0136] The MPR121 can measure capacitances ranging from about 10pF to about 2000pF with a resolution of about 0.01pF. The voltage measured by the chip is inversely proportional to the capacitance, which is affected by the amount of charge stored in each electrode. After applying a constant amount of current for a fixed duration, the voltage at each electrode is measured ( Figure 5 ). The capacitance of the electrode changes due to the change in the dielectric constant of the liquid being examined, thereby changing the measured voltage. The amount of current (I) and the charging time (T) are configured to set the amount of charge applied to the electrode. After charging each electrode sequentially, the peak voltage is measured. The capacitance (C) is calculated as C = Q / V = IxT / V, where Q is the amount of charge in coulombs and V is the amount of voltage in volts.

[0137] The chip contains a set of different registers that are used to configure the operating parameters and obtain output data from the device. The main registers used in the disclosed system are listed below:

[0138] Electrode filter data register (0x04-0x1D):

[0139] This register holds the filtered output data corresponding to the output of the second filter with a range of 0 to 1024. This data is obtained by measuring the voltage value of each channel and converting it from analog to digital using an internal 10-bit ADC. This register is updated every ESI x SFI and is a read-only register.

[0140] Filter / Global CDC Configuration Register (0x5C)

[0141] The first two bits of this register are used to set the number of iterations of the first filter (First Filter Iteration - FFI) and can be set to the following values: 00 (6 samples - default), 01 (10 samples), 10 (18 samples), and 11 (34 samples). The remaining six bits are used to configure the amount of charging current applied to the electrodes. This current configuration portion is called the Charge Discharge Current (CDC) and can be set to a range of values ​​between 0 and 63 (000000 (disabled), 1 (1 μA), 010000 (16 μA) (default), and 111111 (63 μA)).

[0142] Filter / Global CDT Configuration Register (0x5D)

[0143] The first three bits of this register are used to configure the charge time (Charge-Discharge Time - CDT), two bits are used to set the number of samples taken for the second filter (Second Filter Iteration - SFI), and three bits are used to set the sampling time (Electrode Sampling Interval - ESI). CDT can be set to approximately 32μs by setting the bits to 111, and CDT can be disabled by using 000. Other values ​​can be set using the following equation: CDT = 2^(n-2), where n is the decimal encoding of the three-bit binary value. The default value of the CDT bits is 001, which corresponds to 0.5μs. SFI can be set to the following values: 00 (4 samples - default), 01 (6 samples), 10 (10 samples), and 11 (18 samples). ESI can be set to a value between 000 and 111 corresponding to a period value between 1ms and 128ms using the following equation: Period = 2^n ms, where n is the decimal encoding of the 3-bit binary value used. Register 0x5C and Register 0x5D are the two main registers used to configure the MPR121 device. All global filtering parameters and charging parameters are set using these two registers. If the auto-configuration option and the individual charge / discharge features are disabled, all electrodes will use the settings applied.

[0144] The Arduino Nano board was chosen due to its low cost, simple programmability, and I2C communication capabilities. Figure 6 A schematic diagram of the connection between Arduino and MPR121 modules is shown. Twelve input channels from each MPR121 module are connected to the electrodes of the sensing unit. The main power supply (VDD) of the MPR121, which has an operating voltage range between about 1.71V and about 3.6V, is connected to the about 3.3V output pin in the Arduino board regulator and is decoupled to GND by a 0.1μF capacitor. The GPS module (SKM 53) and the wireless transceiver (2.4GHz) are connected to the Arduino via hardware and software serial communication. The transistor (2N3904) is controlled by the microcontroller and acts as a switch to turn on / off power to the GPS and wireless modules. Figure 7A-7D The hardware implementation of a capacitive sensor is shown.

[0145] Example

[0146] Several experiments were conducted under different conditions and with different oil types (heavy / light) to evaluate the output of the proposed capacitive sensor. During the experiments, the sensor was immersed in the liquid under examination (oil / water) and the voltage measurements were wirelessly sent to a base station. A software application was developed to automatically receive and save the measured voltage values.

[0147] Oil Type

[0148] Fuel oil

[0149] Experiments were conducted to evaluate the performance of the proposed capacitive sensor when working with heavy fuel oil. However, the viscosity of the purchased heavy fuel oil was measured using a viscometer available in our laboratory and the results were in the range of 3300 to 3500 cP. The viscosity of the fuel oil was measured using the following procedure: a spindle of a specified diameter was immersed in the oil and rotated at a precise speed of RPM, the measured resistance gave the viscosity of the medium. The results are shown in Table I.

[0150] Table I: Measured Viscosity (Fuel Oil)

[0151] Spindle Speed ​​(RPM) Viscosity (cP.) SP R4 10 3446.4 SP R4 20 3456.1 SP R4 30 3381.7 SP R4 50 3332.6 average value 3404.2

[0152] As shown in Table I, the measured viscosity is in centipoise (cP.), which represents the absolute viscosity of the oil. Kinematic viscosity is expressed in centistokes (cSt.). The main difference between these two units is that cSt (kinematic) represents the ratio of liquid density to its absolute viscosity cP. In order to convert from absolute (cP) to kinematic (cSt), the obtained value (cP.) should be divided by the density of the liquid. The density of most hydrocarbons (fuel or lubricating oil) is between 0.85 and 0.9. In order to calculate the average kinematic viscosity of the fuel oil, the average value of the measured absolute viscosity (3400cP.) is multiplied by the density of the oil. For a density of about 0.85, the kinematic viscosity is about 4000cSt. For a density of about 0.9, the kinematic viscosity is about 3777cSt. The kinematic viscosity of available fuel oil is measured at room temperature (about 25°C) between about 3777 and about 4000cSt.

[0153] Light oil / Medium oil

[0154] Three different monograde oil types available in the local Lebanese market were selected for the light and medium oil experiments, each with a different viscosity as shown in Table II.

[0155] Table II: Viscosity of light and medium oil samples

[0156] Viscosity(cSt) name describe 680cSt BP Anenggao GR-XP 680 Industrial extreme pressure gear oil 140cSt Power gear 140W Automotive gear oil 10cSt Power 10W Engine Oil

[0157] Preliminary experiments

[0158] Firstly, the proposed capacitive sensor is experimented to evaluate its ability to distinguish between air, water, and oil. The configuration parameters of the MPR121 module are set to 16μA charging current, 0.5μs charging duration, and 1ms bin time.

[0159] Experiment 1 - Air Sensor

[0160] In this experiment, the sensor was immersed in air only and the values ​​of the first twelve electrodes were measured and recorded every five seconds. Examples of experimental results are shown in Table III and the corresponding graphs are in Figure 8 Shown in.

[0161] Table III: Experiment 1 (Air) - Values

[0162] time E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 E11 E12 10:25:30 180 170 168 172 170 175 172 175 169 171 166 170 10:25:35 180 170 168 173 171 176 172 175 170 171 166 169 10:25:40 180 170 167 173 170 176 172 176 170 172 165 170 10:25:45 180 170 168 173 171 176 172 175 169 171 166 169 10:25:50 180 169 167 173 170 177 172 175 169 171 166 169 10:25:55 180 170 167 172 170 176 172 175 169 171 166 169 10:26:00 180 170 167 173 170 176 172 175 169 171 166 170 average value 180 170 167 173 170 176 172 175 169 171 166 169

[0163] Note how the results show the difference between the absolute voltages measured by each electrode when placed in the same medium (air). This difference is primarily due to inevitable manufacturing inconsistencies between each electrode, including issues such as trace length, soldering, and connectors. However, because the oil thickness estimation algorithm is based on relative rather than absolute voltage measurements, the difference between the measured values ​​does not affect the accuracy of the results. What is more important is the stability and repeatability of the measured values ​​over time.

[0164] Experiment 2 - Locating the Oil / Water Interface (Light Oil)

[0165] The purpose of the experiment was to monitor the effect of oil on the actual voltage value measured by each electrode. The sensor was initially placed in water, and light oil (10 cSt) was gradually added to the container; this procedure ensured that the oil did not come into contact with the bottom sensor electrodes during immersion. Thus, the first six electrodes from the top of the sensor were covered with oil, and the remaining electrodes were immersed in water. The voltage values ​​of the first twelve electrodes were measured every five seconds; examples of experimental results are shown in Table IV and the corresponding graphs in Fig. 9 Shown in.

[0166] Table IV: Experiment 2 (light oil / water) - Values

[0167]

[0168] like Fig. 9As shown, the results show that the voltage measured by the bottom five electrodes (E8-E12) is much lower than the voltage measured by the other electrodes. This result is expected because the dielectric constant of water (80) is much higher than the dielectric constant of other non-conductive media (air = 1, oil = 2.1). In addition, the voltage of the first five electrodes (covered by oil) is lower than the voltage read by the same electrodes when placed in an air medium (Experiment 1). Since the seventh electrode (E7) is located at the interface of oil and water and is accordingly partially immersed in the oil, the voltage measured by E7 is partially reduced. These results demonstrate the feasibility of the disclosed method in estimating oil thickness.

[0169] Experiment 3 - Locating the Oil / Air Interface (Light Oil)

[0170] The purpose of Experiment 3 was to monitor the difference between the voltages measured by the electrodes of the sensor as it moved between an air medium and an oil medium. The voltages measured by the first twelve electrodes of the sensor were recorded as the sensor moved vertically between the two media. Measurements were recorded once per second. Examples of experimental results are shown in Table V and the corresponding graphs are in Fig.10 Shown in.

[0171] Table V: Experiment 3 (Air / Oil) - Values

[0172]

[0173] The experiment shows the instantaneous change in the voltage measured when moving between the oil medium and the air medium. Note that the voltage measured in the air is always higher than in the oil, although the difference is small.

[0174] Dealing with oil scaling

[0175] Coated Capacitive Sensors

[0176] The use of a superhydrophobic coating on the capacitive sensor serves both as a protection against the copper strips and to prevent any oil residue on the surface of the sensor. The Ultra-Ever-Dry product

[13] supplied by Ultratech

[14] was tested.

[0177] Fuel oil experiment

[0178] Experiment 1 - Locating the Oil / Water Interface

[0179] In this experiment, the sensor was immersed in fuel oil and water, and the values ​​of the three electrodes were measured and recorded every second. The purpose of this experiment was to monitor the sensor voltage readings as the sensor electrodes moved between fuel oil and water. The results of one experiment in this experiment are shown in Table VI, and the corresponding graph is in Fig.11 (temperature: 23°C, RH: 60%).

[0180] Table VI: Fuel Oil Experiment 1 - Values

[0181]

[0182] The results show the difference between the absolute voltages measured at each electrode as the fuel moves between the fuel oil and the water. Fig.11 The high values ​​shown in correspond to the values ​​measured when the electrode is in fuel oil, while the low values ​​correspond to the values ​​measured in water. Although the sensor electrode is completely covered by a thin layer of oil after first immersion in fuel oil (due to its high viscosity), the voltage value measured by the electrode when immersed in oil is different from the value measured in water (although covered by fuel oil). This difference is used in the algorithm to distinguish between oil / water interfaces.

[0183] Experiment 2 - Locating the Oil / Air Interface

[0184] The purpose of this experiment is to monitor the difference between the voltages measured by the sensor electrodes as they move between the fuel oil and the air. The voltage values ​​of the two electrodes are measured every second; the experimental results of one experiment in this experiment are shown in Table VII and the corresponding graph is in Fig.12 (Temperature: 23°C, RH: 60%).

[0185] Table VII: Fuel Oil Experiment 2 - Values

[0186]

[0187] This result shows that the voltages measured by the two electrodes (E6-E7) are different when moving between the fuel oil and the air. In the last part of the experiment, the rate of movement increased, thus generating a higher frequency signal, such as Fig.12 This result shows that the sensor is suitable for high viscosity types of oil, such as the fuel oil tested.

[0188] Impact of environmental conditions

[0189] To evaluate the influence of environmental conditions (temperature and relative humidity) on the measurements, two experiments were performed. In the first experiment, the sensor was placed in the open air and readings were recorded every 30 seconds. During the 16-hour experiment, the relative humidity varied between 72% and 58%, and the temperature ranged from 21°C to 24.7°C. The span of the measurement of each electrode was very limited and did not exceed 3.8% in the worst case.

[0190] In a second experiment, the sensor was placed in a closed room where the temperature and humidity changed relatively quickly due to air conditioning. During this experiment, the relative humidity varied between about 60% and about 46%, and the temperature varied between about 21.2°C and about 24.7°C. The span of the measurement of each electrode was very limited and did not exceed 2.7% in the worst case.

[0191] These results provide preliminary evidence for high sensor repeatability under different environmental conditions.

[0192] Algorithm for estimating oil thickness

[0193] The measurement algorithm is designed to generate a vertical profile of the inspected liquid. After counting the number of electrodes immersed in the oil, the oil thickness is calculated based on the sensor geometry. Several methods were evaluated to detect the most accurate and reliable method for estimating the oil thickness in all cases (static / dynamic). The following sections present the main evaluated methods.

[0194] K-means algorithm

[0195] Before implementing any algorithms to estimate oil thickness, the experimental results were plotted on a C vs. ΔCt graph, where C is the difference between the baseline capacitance of each bar (in air) and the capacitance of that bar in the medium in which it resides; ΔCt is the transient change in C, representing how quickly the oil slides off the bar ( Fig.13 ).

[0196] In this figure, it is noticed that the data points are clearly clustered according to the medium in which they are located. Therefore, the data points are grouped based on the feature vectors including C and ΔCt using K-means

[15] as a clustering method, as it is known to produce good results when the number of clusters is known in advance. Here, three clusters are selected, representing air, oil, and water. In order to implement the algorithm in real time, the software was developed using the Microsoft Windows Forms.Net (C#) framework. The results of the measurement algorithm are displayed in the graphical user interface of the application, including the estimated oil thickness (mm) and the index of the electrodes included in each cluster as well as the raw voltage measurements ( Fig.14 ).

[0197] like Fig.14 As shown, the activated electrodes (first ten) are divided into three different groups (air / oil / water). Fig.14The index of each electrode classified into one of the three clusters is shown in Figure 1. The sensor was vertically immersed from an air medium into an oil medium / water medium. Note that, as expected, the reduced values ​​of the bottom two electrodes (E8 and E9) do not affect the classification decision because the rate of change is considered as a secondary attribute of the cluster. In this case, the estimated number of oil electrodes (4) is the same as the actual number of electrodes visually observed to be immersed in the oil.

[0198] Although the results of the K-means algorithm are accurate when the sensor is not moving (static case), the results may be severely affected by continuous vertical movement of the sensor (dynamic case) because this situation may introduce different situations including bars transitioning between media.

[0199] Thickness estimation based on interface detection

[0200] Another method was implemented and tested to detect oil thickness based on the difference between the air / oil interface and the oil / water interface. To test the algorithm, an experiment was conducted using a sampling rate of 1 / 300 milliseconds. The oil type used was light motor oil (10W-40). The sensor was immersed in an oil / water mixture with an oil thickness of 1 cm. The experiment was carried out in a laboratory at a temperature of 24°C and a relative humidity of 59%. Table XV ( Fig.15 The experimental results shown in ) represent the percentage difference between each electrode voltage measurement obtained in air and the calibration value.

[0201] To obtain the oil thickness, one way is to calculate the difference between the index of the electrode located at the oil / water interface and the index of the electrode located at the air / oil interface. To do this, the interface should be identified by an algorithm based on the relative electrode behavior. According to Table XV Fig.15 ), it is noted that there is a clear difference between the values ​​before and after electrode E5. In addition, electrode E9 shows a similar behavior. After calculating the average value of the readings presented by each electrode, a new parameter is introduced, called "ratio", which is calculated by dividing the average value of each electrode of index "i" by its neighbor electrode of index "i+1", as shown in the figure ( Fig.15 ) is shown in the last row of . Since the ratio is calculated by performing a division operation, the algorithm replaces zero values ​​with ones to avoid division errors. Fig.16 The plot shows the calculated ratio shifted one electrode to the right.

[0202] like Fig.16As shown, the electrodes located at the interface layer (E6 and E10) show a severe drop in the calculated ratio. To obtain the index for each interface electrode, the algorithm proceeds by obtaining the first two minimum values ​​of the ratio sequence. Then, the difference between the indexes of the two minimum electrodes is calculated (E10-E6=4). This difference is used to calculate the oil thickness based on the electrode geometry.

[0203] This method was proven to give accurate results only in static situations, since after testing for several iterations while the sensor was moving vertically through the liquid being examined, high errors were observed in detecting the air / oil interface due to the small difference in dielectric constant between air and oil and the reduced signal-to-noise ratio due to the movement.

[0204] Based on the results obtained from the first two methods, the algorithm must detect static cases versus dynamic cases and focus on the bars that show changes, as those will be the electrodes transitioning between the media.

[0205] Uncertainty analysis in static conditions (light oil)

[0206] After implementing the measurement algorithm, the capacitive sensor was tested in static mode and the accuracy results were calculated after taking a set of thickness measurements. Based on finding the maximum spatial gradient in an iterative manner, the air / oil and water / oil interfaces were detected and the thickness was calculated using the number of electrodes located between them. Two cases were tested in this experiment. The first case represents the application of the measurement algorithm to each voltage reading without any averaging. In the second case, a moving average of the voltage readings was used before applying the measurement algorithm. To calculate the moving average, each new voltage reading was added to the previously taken voltage measurement and divided by 2. The following are the results of the measurement accuracy. In each case, the average of about three hundred measurements was taken. The oil used was a light oil with a viscosity of 10 cSt. The experiment was carried out at a temperature of about 24°C in the room. The results of the first case are shown in Table VIII, while the measured values ​​of the second case are shown in Table IX.

[0207] Table VIII: Capacitor static test results (case 1)

[0208]

[0209] Table IX: Capacitor static test results (case 2)

[0210] Index of oil / water interface Index of water / oil interface Oil interval Measuring thickness(mm) Actual thickness(mm) Percent error (%) 29 24 5 12 12.5 4

[0211] -------------------------------------------------------

[0212] The experimental results show that the percentage error is reduced from 5% to 4% after applying the moving average (Case 2). Note that this accuracy is acceptable due to the nature of the sensor, which relies on discrete electrodes with a width of 2 mm and a vertical gap of 0.5 mm. Note that in Case 1, an error occurs in detecting the air / oil interface due to the small difference in the dielectric constants of the two media.

[0213] Dynamic situation analysis

[0214] To enhance the visualization of the measurements, the voltages are stored in a two-dimensional array and converted into a grayscale image. Fig.17A , 17B As shown in Figures 17 and 17C, a clear change in color is observed as the sensor moves. This observation gives the wave properties such as the amplitude and frequency of the wave. Note that the images in the first row of each figure are the original images and the images in the second row are obtained after applying histogram equalization to produce better contrast. The y-axis corresponds to the electrode index (starting from the top) and the x-axis corresponds to time. The y-axis represents the relative difference in capacitance of all bars, starting with the bar in air (black) at the top, to the bars in oil (grey) and the bars in water (white).

[0215] After analyzing the acquired images, a multi-case algorithm was developed to detect the oil thickness in all cases. The new algorithm is described in the next section.

[0216] Multi-case (static or dynamic)

[0217] The multi-case algorithm processes the voltage values ​​obtained from the sensor and determines the sensor state before selecting the appropriate standard for measuring the actual thickness. The algorithm uses two different methods to detect the oil electrode based on the sensor dynamic state. The first method relies on the difference between the real-time voltage value and the calibrated voltage value. This method is used when the sensor is in fixed mode. The second method is based only on the temporary difference between the raw sensor values, without using the calibration value. The second method is applied when the sensor is moving vertically relative to the oil in the liquid being inspected. Fig.18 The flowchart shown summarizes the multi-case algorithm.

[0218] calibration

[0219] The calibration voltage values ​​are obtained when the sensor is completely dry and placed in open air for a preset duration. For each electrode, the average of all measured voltages is stored in a one-dimensional array. When working, the relative voltage difference (R) of each electrode of index 'i' is calculated using the following formula:

[0220]

[0221] Detection of water interface

[0222] During a certain time interval, a set of voltage measurements of all electrodes are acquired and stored in a two-dimensional array, where the number of columns corresponds to the number of activated electrodes and the number of rows corresponds to the number of measurements made within that time interval. Before storing the measurement vector, a validity check is applied to the acquired values to check if the measurements were made when the sensor was in a valid sensing position. When at least one of the bottom sensor electrodes has a relatively high percentage difference (e.g., greater than 50%) from the calibration, indicating that the sensor is immersed in water, the sensing position is set as valid.

[0223] For each measurement, the water interface is calculated and stored in a separate array called Level. Since the main difference in the acquired values is between the electrodes immersed in water and the other electrodes surrounded by air or oil, the following method called Detect-Interface is used to calculate the water interface (K) for each measurement:

[0224] Detect-Interface(value-vector), then create a one-dimensional array (vote) of size N. Votes = zeros(1,N). Then calculate the votes for each electrode with exponent = 2. while (exponent < N). Votes(exponent) = mean(value(exponent+1:N) - mean(value(1:exponent-1)). Max_Value = MAX(Votes). Then get the exponent of the interface with the maximum number of votes. Interface = get.Index(Max_Values). Then return the exponent of the interface. Return Interface, where "N" is the total number of electrodes, "I" is the electrode index, and "K" is the measurement index.

[0225] Detect sensor status

[0226] Based on the detected water interfaces stored in the "Levels" array, the sensor status is detected as dynamic or static. For each state, when the sensor is in the same state, a new two-dimensional array is created to store the voltage values of each electrode. When a state change is detected, the measurement method is applied to obtain the oil thickness. The measurement methods for each case (static / dynamic) will be described in the next section. To determine the state of the sensor, for each measurement (K), the following procedure is applied:

[0227] For the dynamic case: When levels change (increase or decrease). When ((Levels(K)!=Levels(K-1)). Then store the values ​​(Values) vector in a temporary matrix called dynamic (Dynamic). Dynamic(K)=Values(K); If the state has changed, clear (dynamic). Get the maximum value of each electrode and store it in a new vector. Max=MAX(dynamic). Get the minimum value of each electrode and store it in a new vector. Min=MIN(dynamic). Then call the dynamic algorithm to calculate the oil thickness. OilThickness=Dynamic-Algorithm(Max,Min)

[0228] For the static case: Counter = 1. When the sensor is not moving. When (Levels(K) == Levels(K-1)). Add the value vector to the temporary matrix. Static Static(K) = Values(K). If (Counter > 20) {Break}, then change state or number of values ​​> 20. Clear(Static), then calculate the average of each electrode value and store it in a new vector. Average = Mean(Static). Then call the static-algorithm to calculate the actual oil thickness. Where OilThickness = Static-Algorithm(Average)

[0229] Where "K" is the measurement index and "Dynamic / Static" is a temporary two-dimensional matrix used to store values ​​when the sensor is in the same state. Max and Min are created every time a state changes, and carry the maximum / minimum values ​​of each electrode in the temporary matrix (dynamic / static). The average vector is obtained by calculating the average value of each electrode after a state change is detected or the number of static recordings exceeds a preset threshold.

[0230] Calculate oil thickness

[0231] The number of oil electrodes was used to estimate the oil thickness (TH) by the following equation: where N is the number of electrodes covered by oil, W is the electrode width = 2 mm, and G = 0.5 mm is the gap width separating the electrodes.

[0232] Dynamic - Algorithm is used to get the oil thickness after a dynamic state change is detected. This method takes a "Max" vector and a "Min" vector as input and returns the actual oil thickness. The method can be summarized as follows:

[0233] Dynamic - Algorithm (Max, Min): Calculate the difference between each value in the Max vector and the Min vector. The difference (Diff) vector = (Max) - (Min). Then assign a threshold for detecting fixed and changed electrode thresholds = MAX(Max) - MAX(Min). Then obtain the number of electrodes of the changed medium, index = 1; K = 0; while (index <= N). If (Diff vector[index] > threshold). Changed[C] = index. K = K + 1. index = index + 1. C = length(changed). Then obtain the number of electrodes still in the oil, index = 1; C = 0; while (index <= N). Then place the oil electrodes between the changed electrodes, if ((Diff[index] <= threshold) and (index!> MAX(changed)) and (index! < Min(changed))). Fixed[C] = index. C = C + 1. index = index + 1. Interval = length(changed / 2) + length(fixed). If the width of each electrode is 2mm and the vertical gap between electrodes is 0.5mm, then thickness = (interval)(2) + (interval - l)(0.5). Return (thickness).

[0234] In the static case, the temporary difference between voltage measurements cannot be used to calculate the thickness because the sensor does not move and the values do not change unless within the noise range. Instead, the relative difference with calibration is used to iteratively detect the air / oil and oil / water interfaces. The Static - Algorithm takes the Average vector as an input parameter and returns the actual oil thickness. The method using the Detect - Interface method described above can be summarized as follows:

[0235] Static - Algorithm (Average): Detect the oil / water interface, where WI = Detect - Interface(Average). Then remove all electrode indices greater than the water interface. SV = Average(1:(WI - 1)). Then detect the air / oil interface. AI = Detect - Interface(SV); Calculate the number of oil electrodes. Interval = WI - AI; Calculate the oil thickness, where thickness = (interval)(2) + (interval - l)(0.5), then return (thickness).

[0236] Results of the Multi - Case Algorithm

[0237] Applying the multi - case algorithm to a set of measurements taken while the sensor moves vertically at a random rate, simulating the real - case scenario of random waves, the estimated thickness is acceptable when the maximum number of misclassified electrodes equals one - which means the maximum error is approximately the sensor resolution. The experimental results are shown in Table XVI.

[0238] Table XVI: Multi - Case Algorithm - Experimental Results

[0239]

[0240] As shown in Table XVI, the average value of the oil thickness measured using the multi-case algorithm is 26.75 mm. Based on the actual thickness (27 mm), the percentage error is calculated to be 0.95%, which is acceptable.

[0241] Packaging; Capacitive sensor; Preliminary design

[0242] Preliminary design iterations have been made; each design has been modified to fit the final description for ease of manufacture and hermetic packaging. Fig.19 The CAD model was initially designed and made without considering sealing and locking. Fig. 20 Representing the first iteration, which contains a sealed chamber and a sealed cover with side brackets for fixing purposes, this iteration has been 3D printed and evaluated. Fig.21A , 21B , 21C represents the second iteration, which takes into account space for battery storage and sealing measures.

[0243] Final Design Iteration

[0244] Fig.22A , Fig. 22B , Fig. 22C The final iteration in took the manufacturing process into account, and the tolerances within this design could be achieved on an available CNC milling machine, with the seal being achieved by applying pressure on the rubber O-ring and gasket. Fig.23A , Fig. 23B , Fig.23C Close-ups of the control board, capacitor strips, and the snap locks selected to apply pressure on the housing gasket are provided.

[0245] The capacitive sensor package is located at the university's fabrication shop, the material chosen for the package is polyamide as a hard rubber / strong plastic, and the separate components will be assembled together using a compression seal with a 40% compression of the O-ring and rubber gasket using a spring reinforced snap lock from McMaster.

[0246] Test bench: Wave box

[0247] Below is the initial wave box design with the linear guides shown on the top.

[0248] The pump model chosen for wave generation is the VENOTEC German-made Abyzz A200, which can deliver up to 17 l / h flow at a maximum speed of 5.4 m / s, a maximum head of 8.8 m, and a maximum pressure of 1.5 bar with a power range of 4 to 200 W.

[0249] like Fig.24 , Fig.25As shown, a large wave box was manufactured and delivered to the test location. Tests were performed to check the box's resistance to waves. The pump was first operated in positive mode from 0% to 100% (200W) power, the random mode was tested with random flow directions at random power delivery; the wave mode was tested with varying flow direction times (symmetric profile and asymmetric profile). In addition, the pump was tested with minimum negative flow direction (varying from 0% to 100%) and positive direction (minimum, to full power positive flow direction). The box passed all tests, the welds as well as the perspective windows were checked for leaks, no leaks were detected.

[0250] Wave Box Actuator

[0251] A linear actuator has been assembled for the wave box to make the capacitive sensor slide back and forth in the waves in different situations, the actuator is an OPENBUILDS V-groove 1.5m synchronous belt actuator. Since the box is 3m long, an extension was made using a 4x4 cm square beam of 3.1m in length to have an overhang of 5cm on both sides, plugs were welded on the extension to keep it in place during the test and avoid sliding or falling into the box. The actuator was mounted on the extension using angle iron brackets, two of which were welded on the extension beam and the other two were used for straightening.

[0252] Laboratory Box

[0253] A 3-phase brushless DC motor (BLDC) has been selected to actuate a rack and pinion mechanism, which is used to move the sensor vertically through the oil / water mixture, mounted on a laboratory box (Plexiglas container 50x50cm), the motor specifications are as follows: operating voltage: 12V; motor rated speed: 3700rpm; motor diameter: 36mm; gearbox: planetary gear reducer; speed: about 150rpm / s. Shaft length: 20mm; reduction ratio: 27:1; signal cycle pulse number: 2*27; control mode: PWM speed control, direction control; feedback pulse output

[0254] The motor was interfaced with MATLAB Simulink using an Arduino Mega 2560 to run real-time external mode simulations where all speed curves were normalized to the PWM range. After performing several experiments on the motor for parameter identification, it was noted that the motor speed reached a maximum value of 150 rpm in the PWM range of 150 to 255.

[0255] Adding a high frequency vibration mechanism to the sensor

[0256] Although the initial testing phase demonstrated the ability of the capacitive sensor to determine the medium in which it was located, a problem was observed with the presence of oil contamination of the electrodes in the water below the level of the oil slick, with the sensor bouncing up and down. Although the oil eventually slides off the strips and rises to the surface, the kinetics of this process are relatively slow for thick oils and there is a risk of affecting the determination of the oil / water interface. To address this issue, the sensor was equipped with a vibrator module ( Fig.26 ) to help speed up the removal of oil from the fouled strips. To evaluate the effect of the vibrator module, two experiments were performed; before activating the vibrator and after activating the vibrator. The same procedure was used in performing both experiments. The sensor was immersed vertically in water from a fixed position through a thin floating oil layer. The voltage measured by the capacitive strip was recorded. To interpret the experimental results, the voltage drop of the two strips from the initial position (air) to the end position (water) when passing through the oil layer was recorded and compared. Examples of experimental results are shown in Table 30 and the corresponding graphs showing the voltage drop of the two strips with respect to time are in Fig. 27 and Fig.28 Shown in.

[0257] Table 30: Vibrator Experiment (Voltage (ADC) vs. Time (Seconds))

[0258] Time(sec) E1(ADC) E1 with vibrator (ADC) E2(ADC) E2 with vibrator (ADC) 1 144 144 161 162 2 136 135 148 148 3 133 137 140 142 4 127 111 132 111 5 132 89 137 54 6 118 76 122 65 7 108 76 88 49 8 90 64 86 40 9 81 65 74 46 10 80 59 66 39 11 76 58 72 35 12 73 54 64 41 13 68 54 58 39 14 69 50 56 36 15 71 49 60 37 16 66 47 58 29 17 62 42 50 33 18 59 44 52 31 19 58 41 54 33 20 59 37 52 30 21 60 38 51 33 22 57 36 49 30 23 54 36 48 28 24 55 33 48 30 25 51 32 50 27 26 51 33 49 27 27 53 33 50 31 28 52 34 50 25 29 50 34 47 27 30 48 1 46 26

[0259] The experimental results show that using a vibrator helps increase the rate at which the voltage drops across the two electrodes. This result supports the concept of using a vibrating system, as speeding up the voltage drop is critical to reducing the oil-fouling effect.

[0260] Preliminary work done with Nanoprotech coating

[0261] In addition to the vibrators proposed above, several coating materials were tested. First, the sensor was coated with a transparent electrically insulating material provided by "Nanoprotech" [9], which includes the following ingredients: high-purity mineral oil, corrosion-inhibiting additives, antioxidants alkanes and cycloalkanes. The recommended operating temperature of this material is -20°C to +35°C, and it maintains its performance in the temperature range of -80°C to +140°C. Spraying the sensor box with Nanoprotech material is done manually, and the board is left to dry in air for about twenty-four hours before the first use. After the drying process is completed, the excess (liquid residue) left on the body of the sensor by the spraying process is removed. The material is completely transparent and covers all components of the sensor, including pins, strips and connecting tracks.

[0262] To compare the sensor performance before and after the application of the Nanoprotech coating, two identical experiments were performed. In both experiments, the sensor was immersed in the oil / water mixture starting from a fixed position above the water surface. In order to monitor the influence of the material on the oil-fouling process, the voltage drop across the last two electrodes (E35 and E36) from the air layer until the water layer is reached was recorded and analyzed. The experimental results of the immersion experiments are presented in Fig.29 Shown in.

[0263] ]like Fig.29 As shown, the Nanoprotech coating increases the rate of change of the voltage measured when the sensor is immersed from oil into water. This can be determined from the severe drop in the voltage recorded for E35 and E36 immediately after the start of immersion. In contrast, as shown in the figure, before the coating was applied, the rate of change was much slower. To explain the results in more detail, the values ​​correspond to all measured voltages (ADC).

[0264] At the end of the experiment, when the voltage was almost stable, the values ​​measured by the coated sensors were lower than those recorded by the uncoated sensors. For example, before coating, the voltage measured by E35 and E36 was between 7 and 8 (ADC). After coating, the voltage of E35 and E36 dropped to around 2 and 3 (ADC). This reduction confirms that the coating plays a role in enhancing the conductivity of the electrode.

[0265] In addition to the oil-fouling evaluation experiments, several experiments were performed to analyze the effect of the coating on the sensor response under all conditions (air-oil-water). The voltage measured for the electrode when immersed in air and water (with or without coating) is shown in Table 31.

[0266] Table 31: Voltages measured in air and water before and after coating with Nanoprotech insulation

[0267]

[0268] As shown in Table 31, the voltage measured by the sensor electrode is almost equal in the air and water cases before and after coating. However, it is noted that in the case of water, the voltage measured after coating is slightly lower and more stable than the voltage measured before coating. This result confirms the conclusions obtained in previous experiments, that the Nanoprotech coating increases the conductivity of the strip in other cases (equal values ​​in the air case) without affecting the performance of the sensor.

[0269] Additionally, to examine the effect of the Nanoprotech coating on oil detection, two identical experiments were performed before and after coating the sensor cartridge. Initially, the sensor was partially immersed in water with the first five electrodes surrounded by air. Then, oil was added to the water container from a fixed position above the water surface. The purpose of this method was to monitor the oil effect while directly contacting the electrodes without being affected by the sensor's movement. Additionally, the main purpose of this experiment was to examine whether the coating had an effect on the oil detection capability. The experimental results, including the measured voltage (ADC) and the percentage relative change in voltage, are shown in Table 32.

[0270] Table 32: Relative difference in oil conditions before and after coating with Nanoprotech insulation material (%)

[0271]

[0272] The experimental results show that the percentage relative change due to oil contact is similar (4-6%) for both versions; coated and uncoated. Therefore, it can be concluded that the coating does not have any negative effect on the oil detection capability.

[0273] As a result, the experimental results shown above indicate that the Nanoprotech coating helps in reducing the oil-fouling process while not affecting the air and oil detection capabilities. Additionally, the use of the Nanoprotech material was visually observed to reduce the humidity of the sensor plate when immersed in water. However, several questions arise regarding the actual composition of this material and the reason behind the enhanced conductivity of the electrode. Based on the fact that the main role of this material is to insulate electrical components in water rather than enhancing conductivity, the actual role of this material needs to be clarified. However, further investigation of these results will be conducted.

[0274] Preliminary work done with Ultra-Ever-Dry coating

[0275] In an attempt to reduce oil-fouling of the strips, the Ultra Dry product

[13] supplied by Ultratech

[14] was tested. First, after spraying the sensor with both product components (base coat and top coat), the sensor was immersed in and removed from a set of water / oil mixtures (including light oil, medium oil and heavy (fuel) oil samples) several times. As a result, in most of the tests, it was observed that the oil fell off immediately after the sensor was removed from the liquid being examined. However, in some cases, especially when dealing with heavy oil types (fuels), some oil residue was observed to remain on the sensor plate after immersion.

[0276] To analyze the effect more accurately, several experiments were performed. The experiments were performed with the same sensor board before and after the coating was applied. The ultra-dry material was applied in two stages by manual spraying. In the first stage, the sensor box was sprayed with the bottom coating material. Then, the board was kept in air to dry for about 15 minutes. In the second stage, the top coating material was applied to the board by manual spraying. After the top coating was applied, the sensor was kept in air to dry for about twenty-four hours before the first use. The spraying process was carried out under a dedicated fume hood. This fume hood is a self-contained, filtered laboratory enclosure used to remove harmful vapors and particles generated by the spraying process. It is important to note that the spraying is done based on regular motion iterations so that the amount of coating material on the sensor surface is evenly and equally distributed. However, since the spraying is done manually (by hand), some differences in the coating distribution are observed on the sensor surface. In the first experiment, the voltage measured by the sensor electrodes was recorded while the sensor was set in a fixed position in air. In order to evaluate the effect of this material on the sensor, the voltage values ​​obtained after the coating was applied were compared with the corresponding values ​​stored before the coating was applied. A sample of experimental results is shown in Table 33, which shows the average of a set of voltages measured by the first twelve activated electrodes, and the corresponding graphs are in Fig.30 Shown in.

[0277] Table 33: Relative difference (%) and voltage in air before and after ultra-dry coating

[0278] (ADC)

[0279] electrode Uncoated (Average voltage (ADC)) Coated (Average Voltage (ADC)) Relative difference (%) E1 171.00 167.83 1.85 E2 161.79 158.11 2.27 E3 160.05 156.03 2.51 E4 166.00 156.00 6.02 E5 163.12 155.31 4.79 E6 167.02 153.86 7.88 E7 164.48 158.46 3.66 E8 168.98 162.40 3.89 E9 162.60 158.03 2.81 E10 163.72 157.91 3.55 E11 157.72 153.17 2.88 E12 160.93 156.00 3.06

[0280] -----------------------------------------------

[0281] The experimental results show that the voltage measured by the capacitance strip in air decreases after the ultra-dry material is applied. Since voltage is inversely proportional to capacitance, it can be concluded that the additional coating increases the base capacitance of the strip. In order to numerically evaluate the voltage drop, the percentage relative difference was calculated and is shown in Table 33. The percentage difference between the strips varies between 1.85% and 7.88%. This variation is caused by the different distribution of the coating material on the sensor surface. The average percentage difference is around 3.77%.

[0282] Another experiment was conducted to monitor the effect of the coating material in the presence of oil and water. In this experiment, the sensor was partially immersed in an oil / water mixture. Before the coating was applied, the thirty-six activated electrodes were distributed in the oil / water mixture as follows: E1 to E16: air; E17 to E21: oil; E22 to E36: ​​water.

[0283] Table 34 shows, in addition to the percentage relative differences, the voltages measured for the uncoated sensor before and after immersion in the liquid being examined.

[0284] Table 34: Uncoated - Voltage (ADC) and RD (%) - Partially immersed in oil / water mixture

[0285]

[0286]

[0287] The same experiment was repeated after coating the sensor with the ultra dry material. The voltages (ADC) measured for all electrodes are shown in Table 35 in addition to the percentage relative differences.

[0288] Table 35: Coated (ultra-dry) - Voltage (ADC) and RD (%) - Partially immersed in oil / water mixture

[0289]

[0290]

[0291] To evaluate the effect of the coating material on each of the three conditions (air / oil / water), the average of the percent relative difference calculated for each of the two previous experiments (Tables 34 and 35) is shown in Table 36 and the corresponding graphs are in Fig.31 Shown in.

[0292] Table 36: Comparison of the average percentage difference in air / oil / water conditions before and after coating

[0293]

[0294] This experiment showed that after the ultra-dry coating was applied, the relative percentage change in the water case was reduced. Theoretically, this result is expected because the coating plays an important role in isolating the electrode from the water. Without the coating, the electrodes are short-circuited due to the conductivity of water, and therefore, the potential difference is reduced to around zero. In contrast, after the coating is applied, an additional layer (dielectric) is added to the electrode, thereby increasing the base capacitance and reducing the sensor sensitivity. In addition, a reduction in the relative change of the electrode immersed in oil was observed.

[0295] Several important considerations were noted when handling the ultra-dry material. First, it was noted that the manual spraying technique (by hand) resulted in an irregular distribution of coating thickness on the sensor surface. As a result, an uneven coating was observed, which inconsistently affected the base capacitance of the electrode. Based on this, it is recommended to use a more consistent method during the coating process. In addition, it was observed that the addition of the ultra-dry coating reduced the sensitivity of the sensor. This conclusion was drawn after observing a decrease in the percentage relative difference calculated when immersing each of the electrodes in water and oil. Further investigations can be conducted on the performance of this coating and super-hydrophobic materials.

[0296] Evaluate the impact of different power supplies on sensor performance

[0297] During initial testing of the sensor, two main power sources were used to power the circuit. First, the control circuit was powered by the USB port on a laptop. The USB port was used to power the Arduino module and retrieve the measured voltage from the MPR121 module. The USB port provides 5VDC to the Arduino, and the Arduino provides 3.3VDC to the MPR121 controller through a 3.3V embedded regulator. During operation, the laptop was connected to a power adapter and plugged into the AC power line (220VAC). The second power supply used to power the sensor was a separate lead-acid battery of 12VDC. In order to evaluate the effect of the two power supplies on the voltage measured by the capacitive strip, the sensor was placed in a fixed position and a set of voltages measured by all electrodes was recorded. The sensor was set in a fixed position (surrounded by air) and a sample of 250 measurements was recorded. The voltages measured by the first twelve electrodes were analyzed and presented in Table 37. In addition, a graph showing the voltage measured by the first electrode E1 in two cases is shown in Fig.32 Shown in.

[0298] Table 37: Voltage (ADC) - Battery vs. USB Port Power

[0299]

[0300] This experiment shows that using a USB port as a power source introduces additional noise to the measured voltage signal. This can be seen from the increased standard deviation values ​​shown in Table 38 and Fig.32 This is inferred from the high frequency oscillations introduced into the E1 voltage signal as shown. Based on this experimental result it is concluded that it is not recommended to connect the device to an AC power supply in order to avoid inserting additional noise into the sensor measurements.

[0301] Capacitive sensor tuning experiment

[0302] As mentioned earlier, the MPR121 controller is used to measure the capacitance of each electrode in the sensing unit. Since the MPR121 module uses a DC charging technique to measure capacitance, the current charging and charging duration parameters need to be configured prior to operation. Based on this, tuning experiments were performed to find the best combination of charging current and duration for the final sensor design. The main purpose of the tuning process is to select the combination (current / time) that maximizes the sensitivity of the sensor in terms of the difference between air and oil. The voltage measurements used in the tuning experiments are obtained at the output of the second filter of the MPR121 controller. In this project, the third filter output of the MPR121 controller is ignored because it compares the raw voltage measurements with a baseline value that is mainly used for capacitive touch applications. The charging current can take values ​​between 1μA and 63μA, and the charging duration is set to values ​​between 0.5μ seconds and 32μ seconds. During the experiments in which the tuning was performed, the sensor was fixed on an indoor box and immersed in a liquid containing a layer of heavy oil (fuel) with a thickness of 20mm (see Fig.33 ).

[0303] Current tuning experiment

[0304] Current tuning was performed by setting the charge duration to a fixed value of 0.5 μsec and varying the charge current amount in 1 μA increments from 1 μA to 63 μA. The experimental results are shown in Table 38 and the corresponding graphs are in Fig.34 The electrodes were divided into three different groups (air / oil / water) in the following manner: E1 to E25: air; E26: air / oil; E27 to E33: oil; E34 to E40: water, covered by a thin layer of oil (fouling effect); and E41 to 48: water.

[0305] Table 38: Current tuning experiment (voltage (ADC) vs. current (1-62μA)

[0306]

[0307]

[0308] Based on the tuning results, it was observed that the difference between the air electrode and the oil electrode increased with the current in a proportional manner. Theoretically, this result is expected since the capacitance is directly related to the product of duration and current. However, in order to avoid saturation of the 10-bit ADC included in the MPR121, additional tuning experiments need to be considered to assign suitable duration parameters.

[0309] Time tuning experiment

[0310] In contrast to the current tuning experiment, in the time tuning experiment the current amount was set to a fixed value of 1 μA and the charging duration was gradually varied from 0.5 μs to 32 μs. To do this, the CDT register contained in the MPR121 controller was set to different values ​​in order to set the desired charging time value (see Table 39). The states of the sensor electrodes were similar to those presented in the current tuning experiment section above. The experimental results are shown in Table 40 and the corresponding graphs in Fig.35 Shown in.

[0311] Table 39: Hexadecimal values ​​representing different charging time configurations

[0312]

[0313] Table 40: Time tuning experiment (voltage (ADC) vs. time (0.5-32μs))

[0314]

[0315] The experimental results show that the measured voltage increases in direct proportion to time.

[0316] Combined tuning experiment

[0317] Based on the results of the current and time tuning experiments, and in order to select the best combination of current and time in terms of sensitivity, two electrodes were selected from the air medium and the oil medium as references. When testing all possible combinations, the absolute difference between the voltages measured at each of the two electrodes (E25-E27) was used as the sensitivity factor to be monitored. The difference (delta (Δ)) between the two electrodes was calculated for all possible combinations and is shown in Table 41, and the corresponding graphs are in Fig.36 Shown in.

[0318] Table 41: Combined tuning - numerical results

[0319]

[0320]

[0321] Based on the experimental results of the tuning, the combination of 2 μsec charging duration and 32 μA charging current amount was chosen as it allows for a maximum difference factor between oil and air while obtaining a relatively high sampling rate before reaching saturation levels and acceptable power consumption.

[0322] Ohmsett test tank for oil and hazardous substances

[0323] Extensive testing was performed for Ohmsett. Testing included: 1- Indoor testing of the capacitive sensor in a box (static, vertical motion and horizontal motion); 2- Outdoor testing of the capacitive sensor in a large box (towed by a bridge in no waves, free floating mounted on a skimmer and towed in waves and no waves).

[0324] The properties of the oil types used in the experiments provided by Ohmsett are shown in Table 43.

[0325] Table 43: Pre-Test Laboratory Analysis (Ohmsett)

[0326]

[0327] This example presents detailed results and analysis of all experiments.

[0328] Immersion Test (Sensor #1 - Capacitive Sensor)

[0329] The immersion tests were designed to ensure relatively accurate values ​​of slick thickness for different values ​​where the sensors were tested using four different test oils. The tests were conducted at Ohmsett High Bay using a small clear glass box (12.875” x 12.875”) with clear sides where a known oil thickness was produced over approximately 6 inches (152.4mm) of salt water. Starting with the oil with the lowest viscosity, thickness was increased by dispensing the appropriate volume using a graduated cylinder as per the test matrix. The oils were dispensed in order of increasing viscosity. The sensors were manually deployed by an AUB engineer on site for each condition and were displaced in a regular pattern as they entered the test slick. The sensors were first held steady to obtain an initial static case reading, followed by a dynamic case of reciprocating vertical motion lasting approximately one minute, followed by approximately one minute of lateral motion in a direction parallel to the oil slick. The experimental setup used to perform the immersion tests (static and dynamic cases) was located at Fig.37 Shown in.

[0330] This process was repeated in a relatively consistent manner for each test condition while an AUB engineer logged data via wireless communication to a nearby laptop computer. The series of tests included four types of oil: diesel, Hoops crude oil (weathered), Hydrocal 300, and Calsol 8240. Each oil was dispensed to produce eight different float thicknesses, ranging from 0.125 inches to 3 inches (3.175 to 76.2 mm), starting with the thinnest float. The sensor was removed from the tank when the oil was added, but the sensor was not cleaned or modified in any way between tests. The tank was completely drained and cleaned between tests using different types of oil.

[0331] Ohmsett Observations / Notes: A miniscus effect was observed along the perimeter of the chamber wall above and below the oil slick, which could cause thickness deviation. When dispensing more viscous oils (Hydrocal 300 and Calsol 8240), residual oil was left on the cylinder walls. As a result, the residue had a cumulative effect on the total volume dispensed and could skew the thickness to less than the target.

[0332] The method used to perform the immersion test is summarized as follows: prepare (one or more) floating layers in a small box (on salt water); manually place the sensor into the floating layer at an arbitrary height without visual or other alignment with the oil floating layer, and then take the reading; and remove the sensor, increase the thickness - repeat.

[0333] For all the immersion tests performed, the amount of volume added to obtain the desired thickness is summarized in Table 44 ( Fig.38 ).

[0334] Table 44: Immersion Test - Target Thickness and Volume

[0335]

[0336] Immersion Test (1-8) - Diesel

[0337] The diesel fuel used in Test Nos. 1 to 8 had a thickness ranging from 0.125 inches (3.18 mm) to 3 inches (76.20 mm). The water and oil temperatures were recorded between 69°F and 71°F. The experimental results showing the measured thickness versus the actual thickness are shown in Table 45 for the static case and in Table 46 for the dynamic case. The results were obtained based on a "high point algorithm" developed for light oil types (e.g., Diesel-Hoops).

[0338] Table 45: Capacitive Sensor Immersion Test (1-8) - Diesel / Static

[0339]

[0340]

[0341] Table 46: Capacitive Sensor Immersion Test (1-8) - Diesel / Dynamic

[0342]

[0343] like Fig.39As shown in Table 45, the absolute error of the measured thickness in the static case did not exceed the resolution of the sensor (3mm) in all the tests performed (1-8), except in the last test (8) where the average measured thickness was around 70.41mm and the actual estimate was 76.2mm. It is important to note here that in this case, the absolute error (5.79mm) did not exceed the error caused by the misclassification of two bars (6mm) out of the 48 bars contained in the sensor PCB. Furthermore, it is important to note that 5 / 8 static tests showed extremely high accuracy with an average absolute error of less than 1mm.

[0344] In the dynamic case, it should be noted that, as shown in Table 46 and Fig.39 As shown, 5 / 8 of the dynamic tests showed very high accuracy with a mean absolute error of less than 1 mm. However, as expected and due to the increased dynamic motion (vertical and horizontal) of the sensor, the number of misclassified bands increased in some cases compared to the static case, resulting in an increased absolute error.

[0345] Based on the experimental results, it can be concluded that although the sensor passed most of the static and dynamic tests with acceptable accuracy, the misclassification of a few electrodes in the dynamic test led to a sudden increase in the absolute error, which was caused by the relatively high width of the sensor electrodes (3 mm) and due to some residual scaling effects. To solve this problem, it is recommended to reduce the electrode width to increase the sensor resolution and reduce the influence of the misclassified electrodes on the measured thickness.

[0346] Immersion Test (9-16)-Hoops (Weathering)

[0347] Tests No. 9 through 16 used Hoops (weathered) oil with thicknesses ranging from 0.125 inches (3.18 mm) to 3 inches (76.20 mm). Water and oil temperatures were recorded to be around 70°F (69°F - 71.5°F). Some comments recorded during the execution of these tests were: Observed oil coating on the sensor below the float layer ( Fig.40 ); a meniscus effect (deflection of actual thickness) on the oil container was observed.

[0348] Experimental results showing measured thickness versus actual thickness are shown for the static case in Table 47 and for the dynamic case in Table 48. The results were obtained based on a "highest point algorithm" developed for light-oil types (e.g., Diesel-Hoops).

[0349] Table 47: Capacitive sensor immersion test (9-16) - Hoops (weathering) / static

[0350]

[0351] Table 48: Capacitive sensor immersion test (9-16) - Hoops (weathering) / dynamic

[0352]

[0353] For the static tests, as shown in Table 47, three tests (11, 12, and 15) showed extremely high accuracy, with absolute errors less than 1 mm. The remaining tests showed acceptable accuracy, with errors in approximately one or two of the forty-eight total electrodes producing absolute errors of approximately 1 mm to 5 mm. It is noted that a larger error occurred in the first test (test number 9) with an actual thickness of approximately 3.18 mm. To explain the cause of the error, a set of measurements taken relative to time when performing the first test (test number 9) are plotted ( Fig.42 ).

[0354] Fig.42 The graph shown in describes the reason for having a relatively large average thickness measurement (15.05mm) while the actual thickness is around 3.175mm. When the sensor is first immersed in the liquid, most of the electrodes are covered with a layer of oil due to the scaling process. Because of the scaling effect, the initial reading of the sensor is relatively large (63mm-52mm-43mm). In addition, using a relatively slow moving average rate helps to reduce the variation of the sensor measurements. However, it is clear that the sensor reaches a stable state around (7:28:35PM), where all remaining measurements are less than 10mm and become almost stable at 6mm. It is worth noting that in a static situation, the scaling of the strip that passes through the oil and enters the water may be harmful because the sensor cannot be moved to "wash off" the scaling. Under normal operating conditions, the user can be instructed to move the sensor around to reduce this effect; however, this was not done in all our tests to avoid biasing the results. It is also important to note that based on the sensor resolution of around 3mm (single electrode width (2mm) + vertical gap (lmm)), this result is considered acceptable. In addition to coating the sensor, this problem can be addressed by increasing the sensor resolution and speeding up the measurement change rate.

[0355] For dynamic situations, as shown in Table 48 and Fig.39As shown, the error slightly increases due to sensor movement and fouling. However, the absolute error is less than one electrode (3 mm) in three tests (10, 11 and 12) and less than two electrodes (6 mm) in the other three tests (13, 14 and 16), and the results are considered acceptable. It is to be noted that the larger error occurred during the first test (19) and during the execution of these tests, significant fouling of the sensor below the floating layer was recorded. For the first test, in which the sensor was fully immersed in a thin oil layer, the fouling effect was very high. In addition, the actual thickness was slightly skewed by the meniscus effect noticed on the oil container, as reported by the tester.

[0356] Although most of the results are very satisfactory, it was observed that the effect of fouling is the greatest when dealing with thin oil layers (Test 9). Therefore, mitigation of fouling issues will be considered in this measurement setup. This can be done through several methods related to hardware design and algorithm improvements. For example, the anti-fouling mechanical structure including horizontal pins can be further developed by enhancing pin manufacturing, adding high-frequency vibrators, and testing hydrophobic chemical coatings.

[0357] Immersion test (18-25) - Hydrocal 300

[0358] The thickness of Hydrocal 300 oil used in Test Nos. 18 to 25 ranged from 0.125 inches (3.18 mm) to 3 inches (76.20 mm). The water and oil temperatures were recorded to be around 70°F (69°F - 71°F). When the first test (Test No. 18) was conducted, it was reported that it was difficult to evenly cover the surface area with this thickness (0.125 inches) of oil. The measurements were obtained by the "corrected lowest point algorithm" for heavy oils. The experimental results showing measured thickness versus actual thickness are shown in Table 47 for the static case and in Table 48 for the dynamic case.

[0359] Table 49: Capacitive sensor immersion test (17-25) - Hydrocal300 / static

[0360]

[0361] Table 50: Capacitive sensor immersion test (17-25) - Hydrocal 300 / dynamic

[0362]

[0363] The results of the Hydrocal 300 static tests shown in Table 49 showed acceptable accuracy as the absolute errors for all tests except the first test were less than or around 3 mm, which represented a misclassification of a single electrode. As previously mentioned, in this case, the first test with the smallest oil thickness had the largest error. In the dynamic tests, the "corrected nadir algorithm" was shown to produce good results as all dynamic tests showed a mean absolute error ranging from around 1 mm to a maximum of 5.4 mm, which represented a misclassification of less than two electrodes out of forty-eight, as shown in Table 50. The measurements of the static and dynamic tests relative to the actual thickness were Fig.43 Shown in.

[0364] Immersion Test (26-33) - Calsol 8240

[0365] Test Nos. 18 through 25 used Calsol 8240 oil with thicknesses ranging from 0.125 inches (3.18 mm) to 3 inches (76.20 mm). Water and oil temperatures were recorded between 69°F and 70.5°F. Measurements were obtained using the Corrected Low Point Algorithm for heavy oils.

[0366] Table 51: Capacitive Sensor Immersion Test (26-33) - Calsol 8240 / Static

[0367]

[0368] Table 52: Capacitive sensor immersion test (26-33) - Calsol 8240 / dynamic

[0369]

[0370] Experimental results for testing Calsol 8240 oil in both static and dynamic conditions showed high accuracy for different thicknesses. For example, the results for the static condition test were shown in

[0371] In Table 51, the absolute errors are shown to range from 0.956 mm (test 31) to 5.823 mm (test 26). Note that the maximum absolute error in this experiment did not exceed the misclassification of more than two electrodes out of the forty-eight electrodes. For the dynamic case, although the error increased slightly due to scaling and random sensor movement, the absolute error also ranged from about 2 mm to about 7 mm, indicating only one or two misclassified electrodes. As mentioned earlier, improving the sensor resolution by making the electrodes thinner and reducing the vertical gap between the electrodes helps to reduce the impact of misclassification. To describe the behavior of all test cases, Fig.44 The measured thickness relative to the actual thickness is shown for both static and dynamic situations.

[0372] Outdoor bridge installation test (capacitive sensor)

[0373] The test was designed to acquire sensor data while advancing in the surface float at a range of velocities typical when deployed on spill response equipment or in fast currents. The test setup was achieved by preparing a channel along the west wall of the test pool using a boom attachment bracket, end plates, and a 24-inch boom that was partially filled with foam. Fig.45 ). The final channel dimensions were 34 inches wide and 58 feet-6 inches long. This nominal area was used to include varying buoyancy thicknesses defined by the test matrix. The buoyancy parameters for this series included thicknesses of 0.25, 0.5, 1.0, and 2.0 inches, using test oil Hydrocal 300 (Tests 34 to 61). The test oil was dispensed from shipping boxes positioned along the west deck, and the volumes determined using the physical depth sounding method were converted to gallons using the manufacturer's conversion table. The sensor was attached to an assembled mount (AUB) that provided the ability to manually rotate the sensor from a deployed position to a raised position (above the height of the channel obstruction) using a hinge and pull rope. This was monitored during the technician's testing and implemented as a safety measure when necessary to avoid the sensor from potentially crashing into an obstruction. The AUB mount and sensor were attached to an Ohmsett-supplied mount that secured the sensor to the main bridge for vertical adjustment. Fig.45 Shown is the sensor mounting setup with the sensor elevated, boom attachment bracket and channel end plate.

[0374] Multiple passes were performed and sensor data was collected while traveling in the north and south directions at 0.5 and 1.0 knots (nautical miles per hour). Passes of 2.0 knots and above were performed in the south direction only. A total of 28 Ohmsett data files were recorded while testing in Hydrocal 300 oil.

[0375] Ohmsett Observations / Notes:

[0376] The influence of wind apparently causes the contained slicks to stack more toward the downward direction of the wind. When present, the wind is usually from the south, Fig.46 .

[0377] As the boom bulges outward, the target float thickness is deflected to smaller thicknesses, especially the 2" float, which increases the surface area. While advancing, the leading edge of the sensor appears to create a bow wave, which may divert oil away from the sensor contacts.

[0378] Dynamic Test (34, 60) - Hydrocal 300

[0379] Hydrocal 300 dynamic tests were conducted using four float thicknesses and four forward speeds. The test area was a 34” x ~58.5’ channel along the west wall of the test pool. The methods used in conducting the dynamic tests were as follows:

[0380] Prepare defined floating layer thickness; travel the sensor northward in the oil at the test speed, record the measurement, stop; reverse direction, record the measurement.

[0381] Lift the sensor to exit the test area, lower the sensor into clean pool water, record the measurement trip at a test speed of 30 feet, reverse direction, stop near the test area, lift the sensor to move into the test area, repeat the south pass and north pass and clean water pass 3X.

[0382] The ambient weather conditions recorded when these tests were performed are shown in

[0383] The results of the dynamic experiments are provided in Table 52. The measurements were obtained by the "corrected lowest point algorithm" for heavy oil. For each test, the mean and standard deviation of the measured thicknesses recorded are provided. Fig.47 A plot of the average measured thickness compared to the actual (estimated) thickness is shown.

[0384] Table 52: Ambient Weather Conditions - Tests (34-60)

[0385]

[0386] Table 53: Capacitive Sensor Dynamic Test (34-60) - Hydrocal 300

[0387]

[0388]

[0389] As shown in Table 53 and Fig.47As shown, the average absolute error in all tests performed when dragging at different speeds with a thickness range of about 6.35mm to about 25.04mm ranged from 0.313mm to 7.1mm in the worst case. However, most of these tests showed an impressive accuracy of less than 6mm absolute error, which represents the misclassification of less than two electrodes out of 48 electrodes. This result is considered acceptable based on different test scenarios, including different speeds and drag conditions. Obviously, the largest absolute error occurred for the last three test numbers 53 to 60, where the actual estimated thickness was recorded as 50.08mm. However, it is important to note that in this case, and based on the precautions provided by Ohmsett, the target float thickness is skewed to a smaller thickness, especially the 2-inch float, because the boom bulges outward to increase the surface area. In addition, Ohmsett employees noted that in this case, the actual thickness was measured by a manual vision tool and was 1.5 inches (38.1mm). Based on this fact, and taking 38.1mm as the actual thickness, we note that the actual absolute error in these tests is in the range of 4mm to 5mm, since the measured thickness ranges from 33.06mm to 34.60mm.

[0390] Testing with skimmer in waves (capacitive sensor)

[0391] The purpose of this test was to collect floating layer thickness data while mounted to a typical skimmer, while experiencing wave conditions and traveling slowly into and against the waves. The test setup consisted of a raised area along the west wall of the test tank measuring 10 feet x 34 feet. The sensor was securely mounted to the Desmi Termite skimmer frame and located between the two buoys in the buoy and in front of the skimmer weir. The AUB and Ohmsett teams provided mountings for vertical adjustments. Prior to testing, the skimmer was lowered into the test tank and the sensor was adjusted so that the waterline was near the center of the measurement range.

[0392] Fig.48Sensors mounted on a skimmer in the test area are shown. The skimmer was tethered with ropes; one rope was laid on each of the main and secondary bridges. From these locations, technicians manually controlled the position of the skimmer and slowly pulled the skimmer into the waves. As shown, the waves approached the skimmer from the right side (the south end of the test pool). For these series of tests, two slick thicknesses of Hydrocal test oil were provided: 1 inch and 3 inches. A variety of wave conditions were generated and adjusted during the tests to provide wave heights that did not exceed the operating range of the sensors. A total of three Ohmsett data files (tests 90-92) were recorded, in which surface profile data was captured. The surface profile data (for wave analysis) was captured using a downward-looking distance sensor located on the main bridge (called banner west). Because the sensor is firmly mounted to the skimmer, it is subject to the skimmer's response in the waves with respect to pitch, heave, and roll.

[0393] Tests with skimmers installed were conducted with Test Nos. 90, 91 and 93 using Hydrocal 300 oil, two thicknesses and varying wave conditions. The method used to perform these tests is described below:

[0394] The capacitive sensor was mounted to the skimmer via a bracket provided by the AUB team. The initial depth of the sensor was established with the skimmer mounted in the water. The primary and secondary bridges were located at opposite ends of the test area. The skimmers were tethered - control ropes were reached to each bridge. A fixed reading was obtained; wave conditions were started and the test was run for approximately 15 minutes, manually steering the skimmer in the area as directed. The wave characteristics used in the three tests are summarized in Table 55. The ambient weather conditions are shown in Table 54.

[0395] Table 54: Ambient Weather Conditions - Test (90-92)

[0396] Test No. Average water temperature (°F) Average wind speed (mph) Average wind direction (°) Average air temperature (°F) 90 45.87 7.53 311.70 49.20 91 46.92 10.12 319.09 51.64 92 51.23 10.34 321.88 52.83

[0397] Table 55: Tests with skimmer installed - wave conditions

[0398]

[0399] Test with skimmer installed - Test No. 90

[0400] Description: With skimmer installed, manually pulled into the waves, Oil thickness: 1 inch (25.4mm), Wave conditions: 9:00am – 1st setting: 15cpm, 3”; 2nd setting: 25cpm, 3”.

[0401] For the first test, three log files were recorded. In addition to the start and end times, the average measured thickness calculated from each wave experiment is provided in Table 56.

[0402] Table 56: Results with skimmer installed (capacitance - test 90)

[0403]

[0404] The results of the sine test 90 shown in Table 56 show that the accuracy of the sensor is mainly affected by the beginning of the wave, and then even when the second wave is actuated, the absolute error of the measurement will decrease over time. This is related to two main factors. First, the fouling effect of heavy oil caused by oil accumulation on the sensor body increases the measured thickness, especially in the beginning stage of the wave, where a sudden transition from calm conditions to wavy conditions occurs. The second factor is related to the smoothing rate used in the algorithm. Smoothing is controlled by the moving average property, and based on the current settings, the moving average rate achieved is relatively slow. Accelerating the rate of change can help enhance the recovery process.

[0405] Test with skimmer installed - Test No. 91

[0406] Test No. 91, Harbor chop test. Wave conditions: 10:00am–15cpm, 3” (too aggressive, reduce cpm to 30)

[0407] Table 57: Results with skimmer installed (capacitance - test 91)

[0408]

[0409] The results of Test 91 shown in Table 57 show very high accuracy in the first 5 minutes under calm conditions with a mean absolute error of 0.437 mm. After the wave was generated, the sensor was immersed in the water based on the precautions recorded by Ohmsett staff. During this time, the sensor recorded 3 mm for one set of measurements. In fact, the constant 3 mm measurement is considered invalid because the sensor was below the oil layer during immersion. Thereafter, starting at 10:31:22, the sensor produced valid measurements. Based on the average of the valid measurements taken in the third case, the mean absolute error is also acceptable (3.54 mm). It is important to note the immersion issue here.

[0410] Test with skimmer installed - Test No. 92

[0411] Test No. 92, Harbor chop test. Wave conditions: 1) 10:55am – wave starts, 15cpm, 3”; 2) 11:08am – increases to 25cpm, 3”; 3) 11:18am – changes to 25cpm, 4.5”; 4) 11:21am – changes to 35cpm, 4.5”; 5) 11:25am – wave stops

[0412] Table 58: Results with skimmer installed (capacitance - test 92)

[0413]

[0414] The experimental results shown in Table 58 show that in the first two cases, the mean absolute error of the measurements is similar (8 mm). However, in the third case, when the amplitude of the waves increases to 4.5", the error increases to around 10 mm. However, in the last two cases, the mean error decreases significantly as the waves stop. It is important to note here that despite the fact that the accuracy of the sensor is affected by the wave conditions presented, the absolute mean error is considered acceptable in terms of sensor resolution (10 mm = 3 bars). Again, it can be concluded that the scaling effect must be further mitigated through future enhancements.

[0415] Alternative electrode designs for sensing under fouling conditions

[0416] As mentioned previously, the performance of coplanar sensors may be affected when handling high viscosity liquids under dynamic conditions. In this case, in a so-called fouling situation, liquid accumulates on the sensor body, causing errors in the measured capacitance. In this embodiment, the sensor electrodes can significantly reduce the effect of fouling on the sensor measurement. The proposed embodiment includes a multi-row parallel plate structure.

[0417] The proposed embodiment includes a set of needle-like pins as a structure that can penetrate the oil scaling layer and focus the electric field along the z-axis toward the target area. As mentioned above, a single pin is set in the center of the coplanar electrode of the initial sensor embodiment, thereby solving the oil scaling problem in water. However, in this embodiment, the coplanar electrode is completely replaced by an array of pins used as a parallel plate capacitor. The first set of pins attached to each row are used for excitation and measurement and serve as the first conductive plate of the capacitor. The second set of pins installed against the sensing pins are connected to the electrical ground and serve as the second plate of the parallel plate capacitor. The non-conductive material (i.e., oil) that fills the gap between the sensing pin and the ground pin serves as a dielectric. In the case of a conductive liquid such as seawater, the sensing pin and the ground pin are short-circuited, resulting in a significant change in the measured voltage.

[0418] In one embodiment, the pins are mounted in separate cells next to each other or along the same row. The effectiveness of this embodiment was evaluated in a 3D model using the Maxwell package included in the ANSYS 19.0 software and was evaluated through a set of finite element simulations. In one embodiment, Fig.49 An example is shown using a single sensing unit 500 comprising three pins 510, 520, 530. The central pin 520 is used for excitation and measurement, and the adjacent pins 510 and 530 are connected to zero potential for protection purposes. Fig.50 Three separate sensing units 500a, 500b, 500c are shown distributed along the same row with a separation distance D1 of about 5 mm, and Fig.51 An embodiment using a set of adjacent sensing units is shown, which includes 11 pins 540 that are equally separated by a distance D2 of about 2.54 mm. The separation distance D1 depends on the acceptable width of the sensor based on the application requirements. The separation distance D1 does not affect the measurement principle because the units are almost isolated from each other. However, the separation distance D1 can vary between about 2 mm and about 15 mm. The pins 540 are made of copper and have a length L1 of about 10 mm and a radius of about 1 mm. The radius and length of the pins depend on the allowed sensing area. In a high-resolution measurement embodiment, the radius can vary between about 0.5 mm and about 2 mm, and the pins are separated from each other at a relatively small distance. The increase in the distance D1 separating the pins results in a weaker signal strength. In this embodiment, the length of the pins can vary between about 2 mm and about 20 mm. The increase in the radius or length of the pins results in an increase in the base capacitance and needs to be considered in the design of the measuring instrument. Each pin is connected to a square copper sheet 550 about 2 mm long and about 0.05 mm thick at its base. According to one embodiment, the PCB board 560 holding the pins is made of FR4_epoxy material, which has a dielectric constant of about 4.4 and a thickness of about 1.6 mm. The simulated area is filled with air.

[0419] In the first simulation, no material was added to the top surface of the PCB, which was intended to map the basic amplitude distribution of the electric field. Fig.51 As shown, the pins are numbered from 1 to 11 starting from the left. The excitation of pins 2, 4, 6, 8, and 10 is set to 2V. The excitation of pins 1, 3, 5, 7, 9, and 11 is set to 0V. Based on this distribution, since each sensing pin has two ground pins on its right and left sides, five sensing cells are included in the sensing row. The simulation results representing the electric field amplitude are shown in Fig.49 , Fig.50 and Fig.51 Shown in.

[0420] The results of the first simulation show that the electric field exists in the empty area between the sensing pins and terminates at the end side of the sensing row. The electric field termination is due to the protection effect exerted by the ground pin. In addition, the electric field is distributed along the body of the pin (along the z-axis), which is very desirable to solve the oil fouling problem.

[0421] The second simulation was a thickness sweep simulation, which was designed to evaluate the effect of different material thicknesses on the sensing design implementation. In this simulation, the material used was made of silicon dioxide with a relative permittivity of about 4. The thickness of the material placed at the top surface of the PCB was gradually changed from about 0 mm to about 15 mm in increments of about 0.2 mm. The capacitance measured relative to the material thickness was compared to the results of the thickness sweep simulation applied to the single-cell design and the three-cell design. Fig.52 Shown in.

[0422] The results of the thickness scan simulation show a linear relationship between the measured capacitance and the thickness of the material. In addition, in the design embodiment, the sensitivity of the sensor is increased, which is Fig.52 The slope of the curve shown in is determined.

[0423] Experimental evaluation of pin-based design compared to coplanar-based design

[0424] To validate the analysis via simulations, several implementations were implemented and tested. Fig.53 Implemented PCB implementations 600-660 are shown, which include a set of coplanar-based designs (staggered 600, spiral 610, concentric 620, and parallel 630); and three pin-based designs, a 10-unit pin-based implementation 640, a 3-unit pin-based implementation 650, and a one-unit pin-based implementation 660.

[0425] The embodiments were tested according to the following criteria. First, to record the base capacitance, an LCR meter instrument (BKPrecision 875B) was used to measure the capacitance of the embodiments in air. The measurements were performed indoors at an ambient temperature of around 25°C. Then, the maximum capacitance was measured for each embodiment 600-660 while fully immersed in oil. Gear lubricating oil (SAE 140) was used for the experiments. A cylindrical liquid container with a diameter of about 8 cm and a height of about 9 cm was used in the experiments. The capacitances measured in air and oil and the absolute difference (AD) are summarized in Fig.54 middle.

[0426] The results of the measurements show that for all embodiments 600-660, the maximum capacitance (oil) is less than the maximum capacitance recorded in the simulation. This is because the dielectric constant of the oil (≈2) is less than the dielectric constant of the material used in the simulation (silicon dioxide). The measured base capacitance based on the coplanar concentric design and the parallel design matches the capacitance recorded in the simulation. In addition, both designs experience the same capacitance change (≈1 pF) after immersion in oil. This result shows a good agreement with the simulation results, where both models show almost the same change due to the presence of the measured material.

[0427] The measurements proved that the staggered design provided the greatest sensitivity compared to other coplanar-based designs. It is important to note that the dynamic range of the staggered design was twice that of the parallel and concentric designs in both simulations and measurements. The spiral design (not used in the simulations) showed similar sensitivity to the staggered design. However, the staggered design was preferred due to its smaller area.

[0428] For pin-based designs, measurements show that their average base capacitance is less than coplanar designs. For example, the 3-cell pin-based embodiment 650 has higher sensitivity than the coplanar-based parallel and concentric designs, and has a smaller base capacitance. In addition, measurements show that the sensitivity of the pin-based sensor increases as more cells are added.

[0429] The 10-cell pin-based 640 implementation has the greatest sensitivity and a moderate base capacitance. Thus, this result demonstrates the effectiveness of the pin-based implementation in enhancing the sensor's ability to distinguish between different dielectric materials and at the same time mitigating the oil fouling problem by penetrating the oil layer accumulated on the sensor body.

[0430] As used in this application, the terms "component" and "system" are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to: a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As an example, an application running on a server and a server can both be components. One or more components can reside in a process and / or execution thread, and a component can be located on one computer and / or distributed between two or more computers.

[0431] Generally, program modules include routines, programs, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In addition, those skilled in the art will appreciate that the methods of the present invention may be practiced with other computer system configurations, including single-processor computer systems or multi-processor computer systems, minicomputers, mainframe computers, as well as personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, etc., each of which may be operably coupled to one or more related devices.

[0432] The illustrated aspects of the invention can also be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network.In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

[0433] Computers typically include various computer-readable media. Computer-readable media can be any available media that a computer can access, and include volatile and nonvolatile media, removable and non-removable media. As an example and not limitation, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and nonvolatile media, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to: RAM, ROM, EEPROM, flash memory or other storage technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0434] Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media. The term "modulated data signal" refers to a signal that has one or more of its characteristics set or changed in such a way that information is encoded in the signal. By way of example and not limitation, communication media include: wired media such as a wired network or a direct wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.

[0435] Software includes applications and algorithms. Software may be implemented in a smartphone, tablet or personal computer, in the cloud, on a wearable device or other computing or processing device. Software may include logs, diaries, spreadsheets, games, recordings, communications, SMS messages, websites, charts, interactive tools, social networks, VOIP (Voice over Internet Protocol), email and video.

[0436] In some embodiments, some or all of the functions or processes (one or more) described herein and performed by a computer program are performed by a computer program formed of computer-readable program code and embodied in a computer-readable medium. The phrase "computer-readable program code" includes any type of computer code, including source code, object code, executable code, firmware, software, etc. The phrase "computer-readable medium" includes any type of medium that can be accessed by a computer, such as a read-only memory (ROM), a random access memory (RAM), a hard drive, a compact disk (CD), a digital video disk (DVD), or any other type of memory.

[0437] All publications and patent applications mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication or patent application was specifically and individually indicated to be incorporated by reference.

[0438] [1] Texas Advanced Optoelectronic Solutions Inc., "TSL230R-LF, TSL230AR-LF, TSL230BR-LF Programmable Light-to-frequency Converters," TAOS079A, October 2006.

[0439] [2]RLX COMPONENTS sroElectronic Components Distributor,"Light to Frequency Board(MIKROELEKTRONIKA),"[Online].Available:http: / / rlx.sk / en / measurement-boards / 448-light-to frequency-board-mikroelektronika.html.[Accessed:Feb-20l7].

[0440] [3]Mikroelektronika, "Light to Frequency Additional Board-UserManual," 2017.

[0441] [4]Electronics Katranji Trading(EKT),“412CH GPS SKM53 MODULE,”[Online].Available:http: / / www.ekt2.com / products / productdetails / 4l2_CH_GPS_SKM53_MODULE.[Accessed:Feb-2017].

[0442] [5]Electronics Katranji Trading(EKT),“412Arduino NANO 3.0 328CH340,”[Online].Available:http: / / www.ekt2.com / products / productdetails / 412_ARDUINO_NANO_3.0_328_CH340.[Accessed:Feb-2017].

[0443] [6]Electronics Katranji Trading(EKT),“412Arduino WIRELESS TRANSCEIVER2.4Ghz,”[Online].Available:htp: / / www.ekt2.com / products / productdetails / 412_ARDUINO_WIRELESS_TR ANSCEIVER_2.4Ghz.[Accessed:Feb-20l7].

[0444] [7]Electronics Katranji Trading(EKT),“8D37 MALE PCB,”[Online].Available:http: / / ekt2.com / products / productdetails / 8_D37_MALE_PCB.[Accessed:Feb-20l7].

[0445] [8]Electronics Katranji Trading(EKT),“8D37 FEM PCB,”[Online].Available:http: / / ekt2.com / products / productdetails / 8_D37_FEM_PCB.[Accessed:Feb-2017].

[0446] [9]Nano Protech,“Super Electrical Insulation Nano Protech,”[Online].Available:http: / / www.nanoprotech.mk / home-page / super-electrical-insulation / .[Accessed:Feb-20l7].

[0447]

[10] Freescale Semiconductor,“Proximity Capacitive Touch SensorController MPR121,”Technical Data Sheet,2013.

[0448]

[13] "Ultra Ever Dry|Slovenija".Ultraeverdry.si.N.p.,2017.Web.29Mar.2017.

[0449]

[14] "Ultratech|Ultra-Ever Dry|Ultratech International".Spillcontainment.com.N.p.,2017.Web.29Mar.2017.

[0450]

[15] Hartigan,J.A.et al."Algorithm AS136:A K-Means ClusteringAlgorithm."Journal of the Royal Statistical Society.Series C(AppliedStatistics)28,no.1(1979):100-08.doi:10.2307 / 2346830.

[0451] F.N.Toth,et al.,“A planar capacitive precision gauge for liquid-leveland leakage detection,”IEEE Trans.Instrum.Meas.,vol.46,no.2,pp.644-646,1997.

[0452] SCBera, et al. "A low-cost noncontact capacitance-type leveltransducer for a conducting liquid," IEEE Trans.Instrum.Meas., vol.55, no.3, pp.778-786, 2006.

[0453] B.Kumar, et al., "A Review on Capacitive-Type Sensor for Measurement ofHeight of Liquid Level," Meas.Control, vol.47, no.7, pp.219-224, 2014.

[0454] H.Canbolat, "A novel level measurement technique using threecapacitive sensors for liquids," IEEE Trans.Instrum.Meas., vol.58, no.10, pp.3762-3768, 2009.

[0455] Although the present invention has been described in conjunction with various embodiments, it will be appreciated that the present invention is capable of further modifications. This application is intended to cover any variation, use or adaptation of the present invention that generally follows the principles of the present invention, and includes content that deviates from the present disclosure in the known and customary practice in the field to which the present invention belongs.

Claims

1. A capacitive sensor, comprising: a plurality of conductive plates forming a capacitor array, and a plurality of capacitive touch controllers operably coupled to the plurality of conductive plates and the processing unit; wherein the capacitance change at each electrode is measured independently for detecting the type of material surrounding the conductive plate; the electric field formed by the electrodes extends above a sensing plane and allows for detection of dielectric constant changes of the liquid surrounding the capacitive sensor, wherein the capacitive touch controller operates by charging and discharging each sensing electrode with a DC current for a certain duration; and during the excitation and measurement of each electrode, all other electrodes are connected to ground, Wherein, the capacitive sensor is configured to: find the index of the electrode located at the interface between materials with different dielectric constants; and calculate the actual thickness of the oil according to the geometric size of the capacitive sensor and the spacing between the electrodes; wherein the capacitive sensor is configured to find an index of an electrode located at an interface between materials having different dielectric constants by: measuring voltage values ​​of all electrodes located at a water-oil interface and an air-oil interface in a sequential manner by using the plurality of capacitive touch controllers and a multiplexer; reading a digital voltage value obtained from each electrode; calculating a relative percentage change from a baseline calibration value for each electrode; determining a state of each electrode using the calculated relative percentage change, wherein the state of each electrode is air, oil or water; and assigning each of the ratios obtained by dividing the value of a next electrode by the value of a current electrode to an electrode index of the ratio; and Wherein, the capacitive sensor is configured to reduce the fouling effect in heavy oil by: detecting the lowest point of the capacitive sensor movement and applying a correction method to remove the number of fouling electrodes from the detected oil electrodes; and using time interpolation by detecting the number of fouling electrodes and subtracting the number of fouling electrodes from the oil interval before calculating the actual thickness.

2. The capacitive sensor according to claim 1, wherein: Since the capacitive sensor functions based on the difference in capacitance between electrodes rather than on an absolute capacitance value, no calibration is required in the field for different types of materials.

3. The capacitive sensor according to claim 1, wherein: The capacitive sensor is capable of distinguishing between a water-oil interface and an oil-air interface; and the thickness of the oil is capable of determining the thickness wherever it occurs along the capacitive sensor.

4. The capacitive sensor according to claim 1, wherein: At the end of each charging and discharging cycle, the measured voltage is converted into a digital value by the processing unit and a digital filter is applied to the digital value to improve noise immunity under different environmental conditions.

5. The capacitive sensor according to claim 4, wherein: The height of each electrode is 2 mm, and the vertical gap between two adjacent electrodes is 1 mm.

6. The capacitive sensor according to claim 5, wherein: The capacitive sensor also includes a microcontroller operably coupled to the processing unit to receive the digital value, and the microcontroller applies a thickness estimation algorithm to calculate and report an actual oil thickness.

7. The capacitive sensor according to claim 5, wherein: The capacitive sensor also includes a plurality of horizontal pins operably coupled to the conductive strips; wherein the plurality of horizontal pins are short-circuited when located in water; and the plurality of horizontal pins located in oil are fully immersed in the oil, and the measured capacitance is related to the dielectric constant of the oil.

8. A measurement method for finding an index of an electrode located at an interface between materials having different dielectric constants using the capacitance sensor according to claim 1, the measurement method comprising: measuring voltage values ​​of all electrodes located at a water-oil interface and an air-oil interface in a sequential manner by using a plurality of capacitive touch controllers and a multiplexer included in the capacitive sensor; Reading digital voltage values ​​obtained from each electrode and applying multiple layers of digital filtering to enhance the stability of the digital voltage values; The acquired voltage values ​​were normalized, and the relative percentage change from the baseline calibration value was calculated for each electrode; determining a state of each electrode using the calculated relative percent change, wherein the state of each electrode is air, oil, or water; as well as Each of the ratios obtained by dividing the value of the next electrode by the value of the current electrode is assigned to an electrode index of the ratio and, knowing the geometry of the capacitive sensor and knowing the spacing between the electrodes, the actual thickness of the oil is calculated.

9. The measuring method according to claim 8, wherein: The measuring method further includes: obtaining a calibration value when the capacitive sensor is completely dry and placed in the open air for a certain duration.

10. The measuring method according to claim 8, wherein: The measuring method further includes: processing the dynamic movement of the capacitance sensor when it rises or falls; and detecting the direction of the capacitance sensor movement by using the average value of all voltage measurement values ​​at each measurement cycle, and determining the direction of the capacitance sensor movement.

11. The measuring method according to claim 8, wherein: The measurement method also includes: detecting electrode short circuits due to water contact through low voltage values ​​and high relative differences from a baseline calibration value; classifying the short-circuited electrodes as water electrodes and removing them from the sensing array; identifying the remaining electrodes immersed in air and oil and detecting interface electrodes between the two media based on the relative difference between the electrodes, in this case, since oil is a non-conductive liquid, the electrodes are not short-circuited, and obtaining the actual capacitance of each electrode, since the algorithm relies on the relative difference between the electrodes to find the interface, the actual correctness of the capacitance value is not necessary.

12. A measurement method for reducing the fouling effect in light oil, said measurement method being carried out by applying the measurement method according to claim 8 via application during certain time intervals.

13. A floating liquid thickness measuring device based on a capacitor array, the floating liquid thickness measuring device comprising: A sensor capable of measuring the thickness of a fluid floating between at least two media, the sensor being a capacitive sensor according to claim 1; wherein the sensor is a capacitor array having at least two conductive plates, the at least two conductive plates being arranged adjacent to each other such that there is an empty space between the at least two conductive plates; At least two dielectric materials including different dielectric constants face the conductive plate; By measuring the change in capacitance between the conductive plates, the air-oil interface and the water-oil interface are identified; and Based on the identified air-oil and water-oil interfaces and the size of the sensor, the thickness of the floating fluid is calculated.

14. The floating liquid thickness measuring device according to claim 13, wherein: The floating liquid thickness measurement device is used during skimming operations in the open ocean or in a handheld manner.

15. The floating liquid thickness measuring device according to claim 13, wherein: The sensor in the floating liquid thickness measuring device is used in a dynamic environment with waves, different types of oil, salt or fresh water, different environmental conditions including mainly light, temperature and humidity.

16. The floating liquid thickness measuring device according to claim 13, wherein: The sensor in the floating liquid thickness measuring device is used in a moving state.

17. The floating liquid thickness measuring device according to claim 16, wherein: The sensor in the floating liquid thickness measuring device is used in a dragging state.

18. The floating liquid thickness measuring device according to claim 13, wherein: The oil thickness measurement device provides an oil thickness estimate by relying on an array of capacitive strips and relies on relative rather than absolute readings of the material, making the sensor readings insensitive to oil type, environmental conditions, and / or manufacturing defects.

19. The floating liquid thickness measuring device according to claim 13, wherein: The sensor design includes a thin blade-like design to minimize fouling effects on the measurement and to improve fluid dynamics.

20. The floating liquid thickness measuring device according to claim 13, wherein: The sensor design includes a pin array, which is a parallel plate capacitor, comprising: a first group of sensing pins attached to each row, and the first group of sensing pins are used for excitation and measurement and are the first conductive plate of the parallel plate capacitor; a second group of ground pins mounted against the first group of sensing pins, the second group of ground pins are connected to electrical ground and serve as the second plate of the parallel plate capacitor, wherein a non-conductive material filling the gap between the first group of sensing pins and the second group of ground pins serves as a dielectric.

Citation Information

Patent Citations

  • A method for measuring a fluid level and an apparatus thereof

    CA2176860A1

  • In-situ oil analyzer and methods using same, particularly for continuous on-board analysis of diesel engine lubrication systems

    CA2215164A1

  • Bin level monitor

    CA2549815A1

  • Variable frequency charge pump in capacitive level sensor

    CN101356424A

  • Method and apparatus for providing input to a processor, and a sensor pad

    CN102007465A