A Device For Measuring The Electrical Conductivity of Liquids Using Phase Sensitive Detection Technique
A Device For Measuring The Electrical Conductivity of Liquids Using Phase Sensitive Detection Technique
A Device for Measuring the Electrical Conductivity of Liquids Using Phase Sensitive
Detection Technique
Salim Kerai* , Youcef Hamoudi
Department of Biomedical Engineering, Faculty of Technology, URMER, University of Tlemcen, Tlemcen 13000, Algeria
https://doi.org/10.18280/i2m.220501 ABSTRACT
Received: 3 July 2023 The quantification of electrical conductivity in fluids is integral to various applications,
Revised: 21 August 2023 including water engineering, biomedical, and industrial sectors. This study introduces an
Accepted: 1 September 2023 innovative methodology harnessing phase-sensitive detection to assess conductance,
Available online: 31 October 2023 thereby nullifying the coupling capacitances' interference between the probe cell's metallic
electrodes. The devised electronic conditioning circuit incorporates a 1 kHz sinusoidal
voltage source, an admittance-to-voltage converter, a lock-in amplifier, and a
Keywords: microcontroller/LCD interface. Calibrations were performed over two ranges, 1 mS/cm
electrical conductivity, probe cell, capacitive and 20 mS/cm, utilizing precise combinations of resistors, capacitors, and adjustable
influence, phase sensitive detection, resistors. The experimental findings were juxtaposed with a standard commercial
conductance, lock-in amplifier, calibration, conductometer across various solutions - calibration solutions, electrolyte solutions (NaCl,
standard solution, precision resistor KCl, CaCl2, MgSO4), and different water treatment room solutions at a hemodialysis
center (Carbon filter, water softener, Reverse osmosis, Dialysate). The relative error in the
measured conductivity was derived, with a maximum value of 1.45% noted. This error
margin is inferior to those reported by many commercial conductivity meters, suggesting
improved accuracy of our method.
185
the electrodes, A is their section, and K is the cell constant. In electrical conductivity meter with two measurement ranges of
the case when the effective cross-section of the cell A is conductivity (20 mS/cm and 1 mS/cm) and accuracy of
variable with d, a cell constant has also an invariable value K. 1.45%. The proposed device consists of a sinusoidal voltage
In general, this value must not be calculated by geometric source, an admittance to voltage converter, a phase detection
dimensions of cell due to the leakage of the electric field at the sensitive stage and microcontroller/LCD card.
ends of the electrode plates. It must be determined by a
calibration with standard liquid of known conductivity. Note
that electrodes of probe cell are generally based on titanium or
stainless steel which are more effective than graphite and
platinum [7].
The aim of the present work is to propose a new device to
eliminate the problems encountered in many conditioning
techniques. This device measures electrical conductivity
based on a 1 kHz single sinusoidal source, an admittance to
voltage converter and a lock-in amplifier using a technique
known as phase sensitive detection to eliminate
electrodes/solution capacitance. A microcontroller is used to
calculate electrical conductivity and send his value to LCD for
display.
The precision resistors in parallel with capacitors were used
to simulate electrical conductivity and calibrate the proposed
device by using adjustable precision resistors to achieve
accuracy of 1.45% which is generally 2% in commercial
conductivity meters. Finally, the experimental results obtained
by different solutions are showed and discussed.
2. CONDITIONING TECHNIQUES
186
lowpass filter. The DC level at the output (pin 2 of XR2206) is
The voltage VG is converted to the electrical conductivity approximately the same as the DC bias at Pin 3. This DC level
from K cell constant by microcontroller using equation: which is not suitable for polarization of cell probe is removed
by first order passive high-pass filter RV2C3. The cutoff
=K G (9) frequency is given as:
187
1
4.3 The phase-sensitive detection VG= ×KM KY VSR×G (23)
2
This stage uses a lock-in amplifier to detect the phase of ̅𝑌 = 𝑅𝑉3 𝑉̅𝑆 ), the expression of VG can be rewritten
Using (𝐾
admittance 𝑌̅ and measure the conductance G from 𝑉̅𝑌 . As as:
shown in Figure 4, this stage is composed of analog multiplier
and low-pass filter. VG=KG×G (24)
where,
1
KG= ×KM ×RV3×VS×VSR (25)
2
1
𝑓𝐿 = (26)
2𝜋𝑅7 𝐶6
Figure 4. Lock-in amplifier circuit based on AD633 In this stage, the ATMEGA 328P microcontroller is used to
multiplier and low-pass filter read analog signal VG (pin A0) from the follower amplifier
(2/2 TL082) connected with the output of low-pass filter R7C6
The voltage 𝑉̅𝑌 is the complex amplitude of the input vy as shown in Figure 5.
(between pin1 et pin 2) of AD633 analog multiplier. The 𝑉̅𝑆𝑅
is the complex amplitude of the reference signal vSR (pin 2 of
XR2206) and is applied to pin 3 of AD633. Then,
and
Since the conductance G is defined as the real part of 𝑌̅, then, =K G (29)
188
The LM016L LCD is used for displaying electrical detection circuit is removed by first order passive low-pass
conductivity. The 4-bit mode is used to send data to LCD and filter R7C6. For R7=10 kΩ and C6=10 µF, the cutoff frequency
R/W needs to be set to low level. The pin 3 is connected to fL is 1.6 Hz calculated by Eq. (26).
potentiometer RV5 (10 kΩ) to control the contrast and In microcontroller, the potentiometer RV4 (10 kΩ) is used as
brightness of the LCD. a voltage divider to set reference voltage (pin REF) of ADC to
Table 1 showed component values for different stages of 1 V which is the maximum of voltage VG for the two ranges.
designed device. If the D4 (pin 5 of DSW) is selected at 5 V the value of V S
which is used in formula Eq. (27) of KG factor is 2 V and 100
Table 1. Component values of designed device mV if D4 is at 0 V.
189
to convert +12 V DC to +5 V DC. Theses DC voltages are used Table 2 showed conductivity measurements M for different
to power integrated circuits of fabricated device. values of RSCS where GS is the conductance that is reciprocal
of RS and GM is conductance corresponding to measured
conductivity M with GM=M/K and K=1.
The impedances of capacitors CS: 1µF, 100 nF and 10 nF
which simulated conductive solutions/capacitive influence at
f=1 kHz respectively correspond to 160 Ω, 1.60 kΩ and 16 kΩ.
As can be seen in Table 2, the measured conductivity values
are directly related to simulation resistance value and are
independent of the capacitance values.
These results confirm that the fabricated device only
measures the electrical conductivity without the capacitive
influence in probe cell.
From Table 2, the maximum value of relative difference MS
between GS and GM for different values of RS and CS was 0.7%
which is less than the value of tolerance of RS.
The fabricated device has been used to measure
conductivities of the NaCl, KCl, CaCl2, MgSO4 for different
concentrations maintained at 25℃.
Solution F C FC %
NaCl 17.90 18.36
2.57
Figure 6. Photos of the designed device for measuring 9 g/L mS/cm mS/cm
electrical conductivity NaCl 12 9.21
2.68
4.5 g/L mS/cm mS/cm
KCl 12.81 13.16
According to Eq. (35), the precision multiturn 2.73
10 g/L mS/cm mS/cm
potentiometer RV3= 10 kΩ was used and adjusted at 5 kΩ to KCl 7.20 7.39
achieve the minimum of and to calibrate the device in two 5 g/L mS/cm mS/cm
2.64
ranges 20 mS/cm and 1 mS/cm by using commercial standard CaCl2 9.114 9.351
2.60
solutions (74.0 µS/cm±0.7% and 1.406 mS/cm±0.5%). 10 g/L mS/cm mS/cm
Standard solutions are susceptible to contamination from CaCl2 4.974 5.102
2.57
atmospheric carbon dioxide and thus increasing the 10 g/L mS/cm mS/cm
conductivity. To overcome this problem, the precision MgSO4 6.39 6.57
2.82
15 g/L mS/cm mS/cm
resistors (R5=100 Ω ±0.1% and R6=2 kΩ ±0.1%) are employed
MgSO4 3.754 3.836
instead of probe cell (see Figure 3.) to simulate conductive 7.5 g/L mS/cm mS/cm
2.18
solutions (10 mS/cm±0.1% and 500 µS/cm±0.1%).
To check the reproducibility and accuracy of measurements Table 3 showed conductivity measurement results that are
and the effectiveness of phase sensitive detection, a compared with those measured by commercial conductivity
combination of resistors RS and capacitor CS was used to meter (Shengmeiyu TDS&EC).
simulate conductive solutions/capacitive influence in probe From Table 3, the minimum and maximum relative
cell.
differences FC of conductivity measurements between
fabricated device F and commercial conductivity meter C
Table 2. Conductivity measurement results of simulated
were respectively 2.18% and 2.82%.
solutions
RS CS M GM GS MS
1 10.04 10.04 10 mS 0.4
µF mS/cm mS ±1% %
100 Ω 100 10.04 10.04 10 mS 0.4
±1% nF mS/cm mS ±1% %
10 10.04 10.04 10 mS 0.4
nF mS/cm mS ±1% %
1 100.6 100.6 100 µS 0.6
µF µS/cm µS ±1% %
10 kΩ 100 100.6 100.6 100 µS 0.6
±1% nF µS/cm µS ±1% %
10 100.6 100.6 100 µS 0.6
nF µS/cm µS ±1% %
1 9.93 9.93 10 µS 0.7
µF µS/cm µS ±1% %
100
100 9.93 9.93 10 µS 0.7
kΩ
nF µS/cm µS ±1% %
±1%
10 9.93 9.93 10 µS 0.7
nF µS/cm µS ±1% % Figure 7. Calibration curve for concentration of NaCl
190
The concentrations of electrolyte solutions can be solution is displayed on The LM016L LCD after processing
determined by measuring conductivity of the solution [15-18]. by microcontroller.
The example of calibration curve obtained by fabricated The high accuracy of proposed conductivity meter is related
device is shown in Figure 7 corresponding to NaCl solution. to the high relative precision of values of KM, RV3, VS, VSR, VG
The equation of calibration is given by: and K.
The experimental results show that design of this device is
M=KC C+M0 (36) successful. The level of agreement between values of
simulated conductive solutions with tolerance 1% and
where, measured conductivity (maximum is 0.7%) is satisfactory to
C is the concentration of solution, mg/L; confirm the measurement accuracy of the developed device.
M is measured conductivity, mS/cm; The effective calibration can be performed by 0.1%
KC=0.0020 mS.L.mg-1.cm-1 is the calibration constant; precision resistors and maximum value of relative error of
M0=0.0796 mS/cm is the initial conductivity. measured conductivity is 1.45% which is lower than that of
This equation is obtained by least square curve fitting. The commercial conductivity meters (generally 2%; see for
mean relative error was 1.32% and the coefficient of example technical specifications of Elcometer, Extech, Runge
determination was 0.9998. or Hanna conductivity meters).
The device has also been used to measure conductivities of To verify compliance with IEC61326 EMC/IEC60610
the hemodialysis solutions, for which the values of safety standards, the device should pass the EMC/safety tests
conductivities are known [19-21]. approved by ISO 17025 accredited laboratories. In accordance
Table 4 showed conductivity measurement results that are with IEC61010 standard, the measuring category of this device
compared with those measured by commercial conductivity is CAT I because it is used to measure the conductivity of
meter (Shengmeiyu TDS&EC). solutions without connection to the mains which cannot be
allocated to categories CAT II and CAT IV. The class of
Table 4. Measurement results of different solutions electrical safety is III because the input voltage is 9 V DC and
is not at a hazardous level and thus the user does not need to
Solution F C FC % be protected from this input voltage.
1.021 1.048 The performance of fabricated device can be improved by
Carbon filter 2.64 auto range selection based on analog multiplexers and voltage
mS/cm mS/cm
Water softener
841 857
1.90
dividers connected to the output of oscillator. In order to
µS/cm µS/cm miniaturize the device, the sinewave of oscillator can be
67.00 68.57 generated by using Pulse Width Modulation PWM in
Reverse osmosis 2.34
µS/cm µS/cm microcontroller and active low-passe filter.
14.60 14.90
Dialysate 2.05 Finally, the 20 mS/cm and 1 mS/cm measurement ranges
mS/cm mS/cm
are most suitable for industrial and biomedical applications
such as assuring water quality based upon ISO standards and
The ISO23500 standard recommends daily measuring of
facilitating maintenance by biomedical engineers in center
conductivity both pre- and post -filtration and percentage
hemodialysis.
efficiency in the water reverse osmosis unit. Conductivity of
dialysate should be checked with calibrated measuring device.
Conductivity measurement ensures proper water-to-
ACKNOWLEDGMENT
concentrate ratio of the dialysate [22, 23].
From Table 4, the minimum and maximum relative
We would like to express our sincere gratitude to the
difference FC of conductivity measurements between
University Hospital Center of Tlemcen for supporting this
fabricated device F and commercial conductivity meter C work and providing electrolytes solutions.
were respectively 1.90% and 2.64%.
REFERENCES
6. CONCLUSIONS
[1] Silný, A., Haugsdal, B. (1993). Electrical conductivity
The purpose of this work is to measure electrical measurements of corrosive liquids at high temperatures.
conductivity by using a phase sensitive detection technique Review of Scientific Instruments, 64(2): 532-537.
and an admittance to voltage converter to eliminate problem https://doi.org/10.1063/1.1144228
of equilibrium conditions in bridge technique which cannot [2] Schiefelbein, L., Fried, A., Rhoads, G., Sadoway, R.
provide a rapid measurement of conductivity. The other most (1998). A high-accuracy, calibration-free technique for
important advantage of this technique is that it provides value measuring the electrical conductivity of liquids. Review
of conductance and eliminates capacitive influence in probe of Scientific Instruments, 69(9): 3308-3313.
cell/solution admittance. It also has the advantages of low cost, https://doi.org/10.1063/1.1149095
simple design compared to Fourier analysis of complex [3] García-Breijo, E., Barat, M., Torres, L., Grau, R., Gil, L.,
admittance. Ibánez, J., Alcaniz, M., Masto, R., Fraile, R. (2008).
The design of conditioning circuit is based on XR2206 Development of a puncture electronic device for
sinusoidal generator source, an admittance to voltage electrical conductivity measurements throughout meat
converter realized by non-inverting amplifier, a lock-in salting. Sensors and Actuators A: Physical, 148(1): 63-
amplifier realized by AD633 multiplier and RC filter, an 67. https://doi.org/10.1016/j.sna.2008.07.013
ATMEGA 328P microcontroller card. The conductivity of [4] Yudhana, A., Septiyani, R., Mufandi, I., Rosyady, P.,
191
Husein, M., Abdullatif. L. (2022). A portable device [14] Low-cost analog multiplier AD633, datasheet,
based on an electrical conductivity sensor for the https://www.analog.com/media/en/technical-
detection of monosodium glutamate (MSG) in soupy documentation/data-sheets/ad633.pdf.
foods. Instrumentation Mesure Métrologie, 21(3): 119- [15] Quan, X., Fu, Z., Yuan, L., Zhong, M., Mi, R., Yang, X.,
126. https://doi.org/10.18280/i2m.210305 Yi. Y., Xang, C. (2017). Capacitive deionization of NaCl
[5] Sophocleous, M., Atkinson, J., Smethurst, J., Espindola- solutions with ambient pressure dried carbon aerogel
Garcia, G., Ingenito, A. (2020). The use of novel thick- microsphere electrodes. RSC Advances, 7(1): 5875–
film sensors in the estimation of soil structural changes 35882. https://doi.org/10.1039/C7RA05226J
through the correlation of soil electrical conductivity and [16] Tong, J., Yang, J., Hu, B., Sun, H. (2016). Experimental
soil water content. Sensors and Actuators A: Physical, study on soluble chemical transfer to surface runoff from
301(1): 1-7. https://doi.org/10.1016/j.sna.2019.111773 soil. Environmental Science and Pollution Research,
[6] Ravagli, E., Crescentini, M., Tartagni, M., Severi, S. 23(20): 20378–20387. https://doi.org/10.1007/s11356-
(2017). Non-invasive measurement of electrical 016-7248-2
conductivity of liquids in bio-compatible polymeric lines [17] Tadimeti, J., Jain, S., Chattopadhyay, S., Bhattacharya P.
for hemodialysis applications. Sensors and Actuators A: (2014). Selection of the best process stream to remove
Physical, 261(1): 251-260. Ca2+ ion using electrodialysis from sugar solution.
https://doi.org/10.1016/j.sna.2017.04.034 International Journal of Electrochemistry, 2014(1): 1-12.
[7] Munoz, D., Berga, S. (2005). An analog electronic https://doi.org/10.1155/2014/304296
interface to measure electrical conductivity in liquids. [18] Tomsic, T., Marija, B., Jamnik, A. (2002). Conductivity
Measurement, 38(3): 181-187. of magnesium sulfate in water from 5 to 35°and from
https://doi.org/10.1016/j.measurement.2005.07.013 infinite dilution to saturation. Journal of Solution
[8] Rajendran, A., Neelamegam, P. (2004). Measurement of Chemistry, 31(1): 19-31.
conductivity of liquids using AT89C55WD https://doi.org/10.1023/A:1014853001357
microcontroller. Measurement, 35(1): 59-63. [19] Suhail, A. (2005). Essentials of water treatment in
https://doi.org/10.1016/j.measurement.2003.08.015 hemodialysis. Hemodialysis International, 9(2): 127-
[9] Oliver, B., Cage, M., (1971). Electronic measurement 134. https://doi.org/10.1111/j.1492-7535.2005.01124.x
and instrumentation. McGraw-Hill, New York. [20] Dheda, S., Van Eps, C., Hawley, C., Johnson, D.W.
[10] Marioli, D., Sardini, E., Taroni, A. (1993). High accuracy (2015). Water treatment for center and home-based
measurement technique for capacitive transducers. hemodialysis. Updates in Hemodialysis.
Measurement Science and Technology, 4(3): 337-343. https://doi.org/10.5772/59380
https://doi.org/10.1088/0957-0233/4/3/012 [21] Bertinsson, G. (2012). The conductivity of dialysis fluid.
[11] Takagishi, E. (1980). On the balance of an AC Journal of Renal Care, 31(1): 31-34.
wheatstone bridge. IEEE Transactions on https://doi.org/10.1111/j.1755-6686.2005.tb00387.x
Instrumentation and Measurement, 29(2): 131-136. [22] International Organization for Standardization. (2019).
https://doi.org/10.1109/Tim.1980.4314886 ISO 23500-5:2019 Quality of dialysis fluid for
[12] Javier Lario-Garcıa, J., Pallas-Areny, R. (2006). haemodialysis and related therapies (No. ISO 23500-
Constant-phase element identification in conductivity 5:2019). https://www.iso.org/standard/67614.html.
sensors using a single square wave. Sensors and [23] International Organization for Standardization. (2019).
Actuators A: Physical, 132(1): 122-128. ISO 23500-2:2019 Water treatment equipment for
https://doi.org/10.1016/j.sna.2006.04.014 haemodialysis applications and related therapies (No.
[13] XR2206 Datasheet (2008). Exar corporation. ISO 23500-2:2019).
https://www.alldatasheet.com/datasheet- https://www.iso.org/standard/67611.html.
pdf/pdf/80496/EXAR/XR2206.html.
192