원시데이터 수집 시스템
선정목록으로

Automatic Determination of Liquid's Interface in Crude Oil Tank using Capacitive Sensing Techniques

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Abdul Muhsin Mahood Abass — Control and Systems Engineering Department / University of Technology - Iraq
DOI
10.31026/j.eng.2019.12.09
저널
Journal of Engineering
발행년도
2019
발행기관
Chulalongkorn University
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.31026/j.eng.2019.12.09
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W2991689540

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The petroleum sector has a significant influence on the development of multiphase detection sensor techniques; to separate the crude oil from water, the crude oil tank is used. In this paper, a measuring system using a simple and low cost two parallel plate capacitance sensor is designed and implemented based on a Micro controlled embedded system plus PC to automatically identify the (gas/oil) and (oil/water) dynamic multi-interface in the crude oil tank. The Permittivity differences of two-phase liquids are used to determine the interface of them by measuring the relative changes of the sensor’s capacitance when passes through the liquid’s interface. The experiment results to determine the liquid’s interface is satisfying and close to the theoretical analysis model.

본문 20,093자

본문 펼치기
Journal of Engineering journal homepage: <u>[www.joe.uobaghdad.edu.iq](http://www.joe.uobaghdad.edu.iq/)</u> Number 12 Volume 25 December 2019 _<u>Electrical, Electronics and communications, and Computer Engineering</u>_ ### Automatic Determination of Liquid's Interface in Crude Oil Tank using Capacitive Sensing Techniques Abdul Muhsin Mahmood Al Tamimi * Lecturer Control and System Engineering Dep., University of Technology, Baghdad-Iraq Email:ammabass2003@yahoo.com ABSTRACT # T he petroleum sector has a significant influence on the development of multiphase detection sensor techniques; to separate the crude oil from water, the crude oil tank is used. In this paper, a measuring system using a simple and low cost two parallel plate capacitance sensor is designed and implemented based on a Micro controlled embedded system plus PC to automatically identify the (gas/oil) and (oil/water) dynamic multi-interface in the crude oil tank. The Permittivity differences of two-phase liquids are used to determine the interface of them by measuring the relative changes of the sensor’s capacitance when passes through the liquid’s interface. The experiment results to determine the liquid’s interface is satisfying and close to the theoretical analysis model. Keywords: Capacitance sensors, Measurement system, Peripheral interface controller (PIC), effective permittivity. ## السعوية التحديد التلقائي لواجهة السائل في خزان الزيت الخام باستخدام تقنيات لستشعار ا ## ا <mark>عبد المحسن محمود التميمي</mark> مدرس قسم هندسة السيطرة والنظم ، الجامعة التكنولوجية ، بغداد- العراق الخالصة للقطاع النفطي تأثير كبير على تطوير تقنيات استشعار الكشف متعدد األطوار ؛ لفصل النفط الخام عن الماء في خزان الزيت الخام. في هذا البحث ، تم تصميم وتنفيذ نظام قياس يستخدم مستشعر متسعة باستخدام اللوحة المتوازية البسيطة والمنخفضة *Corresponding author Peer review under the responsibility of University of Baghdad. https://doi.org/10.31026/j.eng.2019.12.09 2520-3339 © 2019 University of Baghdad. Production and hosting by Journal of Engineering. This is an open access article under the CC BY 4license <u>[http://creativecommons.org/licenses/by /4.0/).](http://creativecommons.org/licenses/by%20/4.0/)</u> Article received: 27/9/2019 Article accepted: 13/11/2019 Article published: 1/12/2019 114 Number 12 Volume 25 December 2019 Journal of Engineering لتحديد واجهة (الغاز / الزيت) و (الزيت / الماء) الديناميكيةحاسوب الكلفة ، على أساس نظام متحكم مض من باإلضافة إلى جهاز تلقائيًا في خزان النفط الخام. تُستخدم اختالفات السماحية في سوائل ثنائية الطور لتحديد السطح البيني لها عن طريق قياس التغيرات النسبية لسعة المستشعر عندما تمر عبر واجهة السا ئل. نتائج التجربة لتحديد واجهة السائل مرضية وقريبة من نمو ذج .التحليل النظري .السماحية الفعالة ، )( القياس ، وحدة تحكم الواجهة الطرفيةPIC ،منظومات السعوية أجهزة استشعار: الكلمات الرئيسية 1. INTRODUCTION Capacitance sensor, which is used in the measurement system, is a sensor which converts nonelectrical quantity into capacitance value. Capacitance sensor has four benefits that are: high resolution, fast dynamic response, small energy consumption, and modest mechanism. So such sensor is very useful in accurate measurement (zhao et al., 2006). In oil field, exploited crude oil and water mixture is fed to the tank. After processing, the resulting fluid is separated to oil and water. The intermediate surface of gas/oil and oil/water should be determined so that we can separate precisely the resulting two fluids. The forming process of the interface is changing with time, the gas/oil and oil/water intermediate surfaces are always changes, therefore, the depth must be done immediately; the space above the first liquid level is full of the natural gas that can easily burst. It is very important to ensure safety and prevent blasting (C. Li & Yanmin, 2007; X. Li & Xu, 2007). However, when the tank holds oil and water, many approaches have been suggested to detect the water level in the tank and to measure the heights of the water and oil in the tank. These methods are based on auditory range (Bardyshev, 2002), microwave echo (Khalid, Grozescu, Tiong, Sim, & Mohd, 2003), reflectometry (Bruvik, Hjertaker, Folgerø, & Meyer, 2012), electrode arrays ( Casanella et al.,2006) magnetic floats ( Chen et al.,2006),pressure measuring device ( Skeie et al.,2006;Arvoh et al.,2013),, and capacitance sensors (Lu et al.,2010), All these methods have their ups and downs (Jin et al.,2015;Pozo et al.,2016), Several researchers (Pal et al.,2010) have presented different methods for measuring liquid height using capacitive technique. ( Behzadi et al.,2009) studied the heat effect of the capacitive reactance for tap water and purified water using a tubular cell probe. They detected that the liquid capacitance rises when rising the temperature and vice versa, because of the changing in conductance. The non-contact type height sensing probes have been designed by ( Suresh et al.,2006), which uses auto-compensation method to overcome the effect of environmental influence.( Bera et al.,2006) designed an original noncontact capacitance type barrel level sensing method for conducting fluids.( C.T. Chiang et al.,2006) utilized a semi-cylindrical capacitive sensor to measure the flow rate and fluidic measurement. They utilized numerical analysis methods to find the capacitance of the semicylindrical capacitive probe by converting the variation of the capacitance to voltage by an interface circuit.( Jaworek et al.,2004) suggested a radiofrequency resonance sensor with a variable capacitance that is used to change the oscillation frequency of a local oscillator. The oscillator produces 80MHz frequency signal, while the capacitor varies this frequency in the range of 0-4 MHz. the deviation in the frequency is proportional to the liquid height. This research is divided into six sections. The first gave an introduction to the capacitive sensor technique. The second will discuss the principle of the measurement system operation. The theoretical considerations are discussed in the third section, while the fourth section will produce the necessary mathematical model of the measurement system. The fifth section will list the experiments and results of the system. Finally, the conclusion is introduced in the sixth section. 115 Number 12 Volume 25 December 2019 Journal of Engineering 2. THE MEASUREMENT SYSTEM PRINCIPLE OF OPERATION Many researchers used the microcontroller circuits to control their devices and plants (Ghani et al 2019; Hashim et al 2018) . This research used the microcontroller as the control circuit for the plant. The proposed measurement system consists of three main elements: the capacitive sensing element, the Measurement and Control Unit (MCU), and the motion control unit as shown in Fig .1 Figure 1. Measurement system. The MCU is the main element in the measurement system which has the circuit diagram of Fig. 2 and it works as follows: A Hartley oscillator is employed as part of that main sensing element where U2 is the active element and the frequency selective feedback network consisting of two inductors (L1 and L2) and the sensing capacitor C. The capacitor C is the level sensing element as the nominal value of the capacitance is determined by the relative permittivity of the medium within the sensing capacitance plates, which in turns determines the oscillator frequency. The output of the oscillator is fed to the high-speed comparator which consists of the LT119 comparator. The comparator is used to change the sine wave into a square wave, which is acceptable as an input to the ATmega 328p chip. The output of this comparator is fed to the Prescaler, which consists of the CMOS device 4017 that is used to lower the output frequency coming from the level sensing circuit to suit the ATmega 328p microcontroller. The ATmega 328p microcontroller was used since it is cheap and easy to use. This device is used to control the operation of the measuring system by performing the following functions: the first is controlling the motion of the drive motor via the L198 H bridge in clockwise and counter-clockwise direction. This motor is attached to a gearbox that drives a pulley assembly that lowers and lifts the capacitive measuring element. The second task is measuring the current location of the level sensing capacitor during its descent, the rope drive pulley is coupled to an increment shaft encoder which is used along with a reflective opt coupler. The opt coupler detects the upper limit of the level measuring system while the shaft encoder is used to measure the instantaneous depth of the level sensing capacitor. The third task of the microcontroller unit is to calculate the capacitance value from the frequency computed inside the 16-bit timer/counter 1 module, while at the same time it measures the depth of the sensing element obtained from the accumulated readings of the increment shaft encoder. The fourth task is communicating with the master computational device; a PC or a 116 Number 12 Volume 25 December 2019 Journal of Engineering notebook computer. The calculated values of the sensing capacitor along with its location are sent to the PC via USB adapter operating as a COM port. This operation is repeated every 5mm decent of the sensing capacitor along its way to the bottom of the reservoir requiring liquid level measurement. R2 10k USB-TTL-Converter to PC USB Terminal +5 +5 Q0Q1Q2Q3Q4Q5Q6Q7Q8Q9 <u>324710156911</u> PC4/ADC4/SDA/PCINT12PC5/ADPC6/RESET/PCINT14PC2/ADC2/PCINT10PC3/ADC3/PCINT11PC0/ADC0/PCINT8PC1/ADC1/PCINT9C5/SCL/PCINT13 <u>23242526272829</u> X1 <u>1</u> <u>2</u> 16MHz CX1 CX2 50pF 50pF +5V Increment Shaft Encoder PB3/MOSI/OC2A/PCINT3PB2/SS/OC1B/PCINT2PB1PB4/MISO/PCINT4PB5/SCK/PCINT5/OC1A/PCINT1 <u>1314151617</u> +5 <u>3</u> U2 U3:A U1 <u>3031321011129</u> PD0/RXD/PCINT16PD1/TXD/PCINT17PD2/INT0/PCINT18PD3/INT1/OC2B/PCINT19PD4/T0/XCK/PCINT20PD5/T1/OC0B/PCINT21PD6/AIN0/OC0A/PCINT22PD7/AIN1/PCINT23 <u>2018</u> AREFAVCC PB3/MOSI/OC2A/PCINT3PB0/ICP1/CLKO/PCINT0PB2/SS/OC1B/PCINT2PB1/OC1A/PCINT1 <u>12131415</u> U4 <u>1413</u> CLKE R4 10k +5 <u>3</u> <u>1</u> <u>2</u> LM319 PB6/TOSC1/XTAL1/PCINT6PB7/TOSC2/XTAL2/PCINT7 <u>78</u> R3 10k R1 3.3k L2 1mH -5 L1 1mH C Level Sensing Capacitor <u>6</u> <u>2</u> LM318 <u>15</u> MR CO <u>12</u> 4017 +5 R6 10kR5 10k <u>1922</u> ADC6ADC7 ATMEGA328P D0 D1 EN L298N_Module Level Measuring Assembly Drive Motor +5 Opto-Coupler Rope Limit Detector Figure 2. Circuit diagram of the MCU. The flowchart shown in Fig. 3 shows the function of the measuring program of the microcontroller-based circuit described earlier. 3. THEORETICAL CONSIDERATION Different phase apparatuses of the two-phase liquids have different dielectric coefficients and hence permittivity ( <sup></sup> ). The change in the <sup></sup> value of the two-phase permittivity will result in the variation of capacitance measured. The permittivity difference of the water and oil is one of the clear characteristics, the relative dielectric constant of water is about 80 whereas the relative dielectric constant of oil is approximately 2. 3 (C. Li & Yanmin, 2007). A capacitance sensors made of two parallel plate structure is used since the manufacturing process of this sensor is easy and the capacitance electric field is unvarying as shown in Fig. 4 . The parameters <sup></sup> 1 and  2 is the relative permittivity of water and oil respectively, which will get in touch with each other. A two-electrode capacitance configuration, in which the electrodes are adjacent to each other, parameters W and L represent the width and length of the sensor electrode, while the two plates are separated by a distance d, which is much smaller than any of the two other dimensions) so that the border effects are neglected. 117 Number 12 Volume 25 December 2019 Journal of Engineering Start Initialize Atmega UASRT, Counter/Timer 0,1,2, and I/O Read UASRT Flag Register Level measuring operation requested? No Reached?Limit Read rope limit sensor “Enable motor Retract ropemotion ccw” Yes Extend rope “Enable motor motion CW” and start measuring rope descent No End of measuring rope length reached? Yes Send “End of Measurement Cycle” to PC Send capacitor value and corresponding rope length to PC Stop measuring operation ? Yes END Take counter1 reading and calculate sensing capacitor value No Figure 3. Flowchart of the measuring program function of the microcontroller. Figure 4. Capacitance sensor. 4. MATHEMATICAL MODEL The effective capacitance of the sensor is expressed as: _<u>A</u>_ _C_   0. <sup></sup> _r_ <sup>.</sup> _d_ (1) Where A is the effective area of each electrode (A = L * W),  0 is the dielectric constant of vacuum (  0 =8.85 * 10-12 F/m), <sup></sup> _r_ is the relative permittivity of insulating material, and d is the distance between the two plates. If the space between the plates is completely filled with liquid 1 (water) of <sup></sup> 1, the measured capacitance would be: 118 Number 12 Volume 25 December 2019 Journal of Engineering _<u>A</u>_ _C_ 1   0.  .1 _d_ Similarly, for liquid 2 (oil) of  2 : (2) _<u>A</u>_ _C_ 2   0.  2. _d_ _d_ (3) When the space of sensor plates is filled with two types of liquids, so the value of the sensor's capacitance would be equivalent to the relative value of two parallel-connected capacitance (Chiang & Huang, 2006) . _C_ 1  2  _f_ ( _C_ 1, _C_ 2 ) (4) Each liquid's dielectric contributes with part of the total sensor capacitance, which depends on the sensor’s plate position across the interface (i.e. depended on the value of X). <u>1</u> Where:  1  2 <sup></sup> 1.  2 . _X_ Assume  1  2  1(  )  1  2 Where  at X≤ H-L hence  And  at X≥ H+L hence  Where H is the incremental height of the sensor. To minimize the nonlinear effects observed between the two types of fluid let:  =AX +B (5) Where A, B are constants. Solving Eq. (5) with the value of  =0 and  =1 we obtain A=1/L, B= (H-L)/L, and _<u>X</u>_ <u></u> <u>(</u> _<u>H</u>_ <u></u> _<u>L</u>_ <u>)</u>  _L_ _L_ (6) Eq. (6) takes effect only when the plates are completely filled with a mixture of fluid 1 and fluid 2 or (H-L<X<H+L). The final expression _C_ 1  2 can be written as: _<u>A</u>_ _C_ 1  2 <sup></sup>  0.  1  2. _d_ (7)  1  2  1[  <u>(</u> _<u>X</u>_ <u></u> <u>(</u> _LH_ <u></u> _<u>L</u>_ <u>)].</u>  1  <u>(</u> _<u>X</u>_ <u></u> <u>(</u> _LH_ <u></u> _<u>L</u>_ <sup><u>)</u></sup> .  2 Where <u>(</u> _<u>X</u>_ <u></u> <u>(</u> _<u>H</u>_ <u></u> _<u>L</u>_ <u>)</u> <u>(</u> _<u>X</u>_ <u></u> <u>(</u> _<u>H</u>_ <u></u>  2  1[  ].  1  _<u>H</u>_ <u></u> _<u>L</u>_ <u>)</u> <u>(</u> _<u>X</u>_ <u></u> <u>(</u> _<u>H</u>_ <u></u> _<u>L</u>_ _L_ ].  1  _L_ Eq. (2) and (3) show that the capacitance is fixed and independent with the sensor،s height in (oil-water) tank while Eq. (7) shows a linear association between the capacitance and the sensor،s height (X). 5. EXPERIMENTS AND RESULTS The liquids used in the experiment for interface identify with water were oil and kerosene mixture. The kerosene employed was available as fuel for heating application. Similar results are expected from other fuels obtained from oil since their dielectric constants are approximately the same. From a theoretical point of view it is expected that when a phase of liquid 1 fills the sensor،s gap, 119 Number 12 Volume 25 December 2019 Journal of Engineering the capacitance value stays constant until the upper sensor’s plate penetrates the liquid’s interface leading to decreasing the capacitance value linearly as soon as the sensor exceeds the liquid’s interface and the sensor gap filled with liquid 2 again the measured capacitance is constant as predicted in Eq. (7) and investigated experimentally as shown in Fig. 4 and Fig. 5 When the sensor moves upward in the (oil-water) tank, the PC reads the capacitance values as a function of sensor height which is proportional with the motor speed controlled by the computer program. The PC reads the data from the sensor instantaneously and determines the slope of the capacitance measured curve, then identify the interface height precisely. In order to improve the interface level identification, increasing the slope of the measured capacitance curve can significantly improve sensor sensitivity. This is done by decreasing the sensor length (L) as shown in Fig. 5 and comparing it with Fig. 6 . The sensor length can improve the measurement sensitivity it is seen in Fig. 5 and 6, which shows clearly that as we decrease the sensor length, the sensitivity increases. To overcome the sensitivity issue in long sensors, we can decrease the measurement time which in turn increase the sensitivity of the system. Figure 5. Capacitance vs. height for sensor. Dimension (L=10cm, w=30cm, d=2cm) Figure 6. Capacitance vs. height for sensor Dimensions (L=30cm, w=10cm,d=2cm) 6. CONCLUSION Direct capacitance variable measuring using PC without converting it to another type of variable leads to improve the liquid level measuring and identifying technique used. The high sensitivity and simplicity make the suggested measurement system developed here, more practical and efficient than other measuring systems adopted before. The sensor detects the fuel-air and water 120 Number 12 Volume 25 December 2019 Journal of Engineering fuel intermediate surface and it also measures the height of every fluid enclosed in the tank instantaneously. A major benefit is that this sensor can measure the height of the fuel regardless of its kind, whereas other sensors have to be specifically designed for a given fuel. REFERNCES - Bardyshev, V. I. (2002). Acoustic and combined methods for measuring the levels of two-layer liquids. _Acoustical Physics_, _48_ (5), 518–523. https://doi.org/10.1134/1.1507192 - Bruvik, E. M., Hjertaker, B. T., Folgerø, K., & Meyer, S. K. (2012). Monitoring oil– water mixture separation by time domain reflectometry. _Measurement Science and_ _Technology_, _23_ (12), 125303. https://doi.org/10.1088/0957-0233/23/12/125303 - Chiang, C.-T., & Huang, Y.-C. (2006). A Semi-Cylindrical Capacitive Sensor with Interface Circuit using for Fluidic Measuring. _2006 IEEE Instrumentation and_ _Measurement Technology Conference Proceedings_, 2318–2322. https://doi.org/10.1109/IMTC.2006.328612 - Ghani, Y. A. L., & Khalifa, A. H. N. (2019). Energy, Exergy and Anergy Analysis of Vertical Split Air Conditioner Under experimental ON-OFF Cycling. _Journal of_ _Engineering_, _25_ (7), 1–20. https://doi.org/10.31026/j.eng.2019.07.01 - Hashim, E. T., & Adil, S. (2018). Synchronous Buck Converter with Perturb and Observe Maximum Power Point Tracking Implemented on a Low-Cost Arduino-microcontroller. _Journal of Engineering_, _24_ (2), 16–33. - Khalid, K., Grozescu, I. V., Tiong, L. K., Sim, L. T., & Mohd, R. (2003). Water detection in fuel tanks using the microwave reflection technique. _Measurement Science and_ _Technology_, _14_ (11), 1905–1911. https://doi.org/10.1088/0957-0233/14/11/008 - Li, C., & Yanmin, X. (2007). Automatic Identification of Multi-interface in Crude Oil Tank Based on Self-adaptive Algorithm of Linearity and Recursion. _2007 8th_ _International Conference on Electronic Measurement and Instruments_, 4-596-4–599. https://doi.org/10.1109/ICEMI.2007.4351214 - Li, X., & Xu, L. (2007). Particle Size Influence on Effective Permittivity of Particle-Gas Mixture with Particles Agglomeration: Experimental Study. _2007 IEEE Instrumentation_ _& Measurement Technology Conference IMTC 2007_, 1–4. https://doi.org/10.1109/IMTC.2007.378982 - zhao, Y. R., Shi, A. P., Chen, G. Q., Chang, Y. Y., Hang, Z., & Liu, B. M. (2006). New Type Multielectrode Capacitance Sensor for Liquid Level. _Journal of Physics:_ _Conference Series_, _48_ (1), 223–227. https://doi.org/10.1088/1742-6596/48/1/041 121

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.