Neelamegam 2010
Neelamegam 2010
Neelamegam 2010
, 2010.
Abstract—This paper presents the development of an inexpensive and portable microcontroller based instru
ment set up to measure the electrical conductivity of the soil samples and hence to determine the Chloride
concentration using empirical relation between the two parameters. A dedicated ATmega32 microcontroller
and its associated peripherals are employed to measure electrical conductivity and temperature. A special fea
ture of the designed instrument is that the conductivity temperature compensation can be achieved by soft
ware or the user can maintain the sample at desired temperatures by using the temperature controller.
An empirical relationship between Chloride concentration and electrical conductivity of soil samples has
been developed using Linear Regression Model, which gave a Correlation Coefficient of R = 0.95 (n = 20),
Slope = 14.95, and Intercept = –563.9. The obtained results are compared with the ELICO CM 180 con
ductivity meter to check the accuracy of the designed instrument, which gives a correlation coefficient of
R = 0.98 (n = 20).
DOI: 10.1134/S0020441210040214
1
1. INTRODUCTION tivity with the Chloride concentration of the soil sam
ples using regression model.
Electrical conductivity is a general indicator of
water quality, especially a function of the amount of
dissolved salt, and can be used to monitor processes in 2. EXPERIMENTAL
the wastewater treatment that causes changes in total 2.1. Design of the Measurement System
salt concentration and thus changes the conductivity.
Recently different circuits have been presented to The block diagram of microcontroller based elec
measure conductivity, from the application point of trical conductivity measurement set up is shown in
view. In [1] a circuit model is presented which Fig. 1. The conductivity cell made up of platinum is
responds to the electric behavior in conductivity fre used to measure the conductivity of the samples is kept
quency. In [2] an analog interface is presented which in block 1. The cell constant is determined conve
provides good accurate results but with a fourelec niently by calibration with pattern solutions [6].
trode cell. In [3] an electronic conditioning circuit, Polarizing the conductance cell by an external DC
based on a variant of Wheatstone bridge is presented potential produces some undesirable effects (double
with the help of a digital processing stage based on a layer capacitance, electrolysis, ohmic resistance and
microcontroller. electrolytic saturation). On the other hand, it is proved
In the present work, option is provided for the con that the electrolytic saturation is reduced considerably
ductivity temperature compensation by software or if the AC polarization frequency is high enough. Prac
the user can measure the conductivity by keeping the tical values are (1–5 kHz) although those values must
sample at a desired temperature for the analysis of not be high in excess because it would appear the effect
conductivity variation with temperature. The conduc of the capacitance in parallel with the electrolytic
tivity of a solution is proportional to its ion concentra solution itself [7]. Hence, a fixed sinusoidal excitation
tion, and if Chloride is the predominant anion in a soil voltage of 1 V is applied to the bridge.
solution, the Chloride concentration in m mole would The conductivity cell is connected to one arm of a
be approximately equal to 10 times the electrical con modified Wheatstone’s bridge network. The block 2
ductivity measured in dS/m [4, 5]. In this experimen consists of precision rectifier to rectify the output of
tal study, we use the ATmega32 microcontroller bridge network. Block 3 represents the temperature
mounted in the system, to correlate electrical conduc sensor LM35D to measure the temperature of the
sample. Output of this sensor calibrated directly to
1 The article is published in the original.
Celsius does not require any external calibration. The
591
592 NEELAMEGAM, VASUMATHI
1 2 4
Conductivity Precision Keypad
cell rectifier
5
Micro
3 controller 7
LM35D LCD
6
8 9
Temperature
MAX232 PC
controller
Fig. 1. Block diagram of microcontroller based electrical conductivity instrumentation set up.
В 3 IС1
R2 R3 R4
6
Z1
I1 2
Z3 3
IС3 3
IС4
D1
I3 6 6
С 2 2 To pin 38 of MC
Rf R1
AC
input Z2 Z4 D2
I2 I4
3 IС2
R5
D 6
Fig. 2. AC modified Wheatstone’s bridge network with precision rectifier. (IC1–IC4) CA3041.
effect of temperature is important when an electric inverting terminal connected to the ground circuit.
conductivity of a liquid or solution must be done. The bridge output nodal points B and D almost at the
Block 4 indicates keypad to give input data to the same potentials with respect to the ground and hence
microcontroller for processing. Block 5 consists of the effect of stray capacitance that will exist between
ATmega32 microcontroller from Atmel company. It is them and also between them and ground is assumed to
a low power, high performance 8bit AVR microcon be minimized. Since, B and D are at virtual ground,
troller with 32 kbyte in System Programmable Flash, the sinusoidal supply voltage, V = Vsinωt, the current
one 16bit timer/counter and two 8bit timer/counter, through the bridge impedances are Z1, Z2, Z3, and Z4
an eight channel 10bit ADC [8], 32 programmable respectively. The output voltage of the circuit is [3]
I/O lines in four I/O ports and 2 kbyte of SRAM. Tem Vo = Rf (Z2Z3 – Z1Z2]V.
perature controller kept in the block 6 is used to keep
the sample at a desired temperature. Block 7 is a four At balance condition of the bridge, Vo = 0 which is
rows twenty characters LCD (Liquid Crystal Display) identical with the conventional bridge network. The
from Hitachi, to display the experimental results. conductivity cell is connected instead of Z3. The con
Block 8 consists of MAX232 (dual RS232 transmit ductivity of a sample is determined by
ter/receiver interface), which is used to communicate
with PC kept in block 9. 1/Z3 = Gc = (Z1Z4/RiVi + VoZ1Z4/Z2)–1,
where Vo —bridge output voltage, Vi —input excita
2.2. AC Modified Wheatstone’s Bridge Network tion voltage, Z1, Z2, Z4 —known resistances, Rf —feed
back resistance, and Gc —conductivity of a sample.
A modified AC Wheatstone bridge network is
shown in Fig. 2. In the developed instrument, two high The output of the amplifier IC2 is given to input of
gain operational amplifiers (CA3041) IC1 and IC2 are the precision rectifier constructed with operational
connected with the bridge network with the non amplifiers IC3 and IC4 as shown in Fig. 2.
+5 V
LM35D ATmega32
8 1
+5 V +VS Vout VCC
GND
4 40
R PA0/ADC0
39
PA1/ADC1
O/P from AC Wheatstone’s bridge 38
PA2/ADC2
37 22
Key pad
+5 V PA3/ADC3 PC0/SCL
36 23
PA4/ADC4 PC1/SDA
+12 V +5 V R 35 24
PA5/ADC5 PC2/TCK
34 25
PA6/ADC6 PC3/TMS
opto transistor
Heater coil 33 26
5 PA7/ADC7 PC4/TD0
R Q
1 1 27
PB0/T0 PC5/TD1
MCT2E 28
2
D 2 PB1/T1 PC6/TOSC1 MAX232
4 3 29 PC
PB2/AIN0 PC7/TOSC2
Q 4 14
PB3/AIN1 PD0/RXD D4
BDX33C Q 15
5
PB4/SS PD1/TXD D5
BC547
6 16
R PB5/MOSI PD2/INT0 D6
+5 V LCD
7
PB6/MISO PD3/INT1 17 D7
8
C PB7/SCK PD4/OC1B 18 RS
9
RESET PD5/OC1A 19 EN
13 R/W
XTAL1 PD6/ICP1 20
X 12
XTAL2 PD7/OC2 21
32
AREF
30
AVCC
31
AGND
GND
11
mum at Ammaiyappan (560 ppm) and minimum at tivity in Aqueous Solutions, Proc. 17th IEEE Instru
Kattuthottam (140 ppm). It is also to be noted that all mentation and Measurement Technology Conference,
the collected paddy field soil samples are having the Baltimore, 2000.
Chloride concentration within the maximum tolera 2. Li, X. and Meijer, G.C.M., A LowCost and Accurate
ble limit (1050 ppm). Interface for Conductivity Sensors, Proc. 19th IEEE
Instrumentation and Measurement Technology Confer
ence, Anchorage, AK, USA, 2002.
5. CONCLUSIONS 3. Rajendran, A. and Neelamegam, P., Measurement,
ATmega32 microcontroller based instrumentation 2004, vol. 35, p. 59.
system has been developed to compute Chloride con 4. Abyaneh, H.Z., Nazemi, A.H., Neyshabori, M.R.,
centration of the soil samples using electrical conduc et al., Tarim Bilimleri Dergisi, 2005, vol. 11, no. 1,
tivity. The design allows an efficient and easy solution p. 110.
to the thermal compensation needed in this type of 5. Hajrasuliha, S., Cassel, D.K., and Rezainejad, Y., Geo
measurements. This system is a portable one and can derma, 1991, vol. 49, p. 117.
be easily handled by irrigators and farm managers. The 6. Braunstein, J. and Robbins, G.D., J. of Chemical Edu
electrical conductivity determination has replaced the cation, 1981, vol. 48, no. 1, p. 52.
tedious chemical methods for the Chloride determi
nation. The results are comparable with the values 7. Sensors. A Comprehensive Survey, Chemical and Bio
reported using the standard method. chemical Sensors, Gopel, W., Hesse, J., and Zemel,
J.N., Eds., part I, vol. 2, Weinheim: VCH, 1991.
8. ATmega32 Microcontroller data sheet [www.atmel.com].
REFERENCES 9. Recommended Chemical Soil Test Procedures for the
1. Ferrara, E., Callegaro, L., and Durbiano, F., Optimal North Central Region. North Central Regional Publi
Frequency Range for the Measurement of AC Conduc cation, no. 221, NDSVBull., 1988, no. 499.