Design and development of microcontroller based conductivity measurement system

Similar documents
To Measure Dielectric Constant of Liquid By Using PIC Microcontroller

[Ahmed, 3(1): January, 2014] ISSN: Impact Factor: 1.852

Microcontroller Based Dielectric Constant Measurement

PIC based Frequency and RMS Value Measurement

Control of Electrical Lights and Fans using TV Remote

Training Schedule. Robotic System Design using Arduino Platform

Using Z8 Encore! XP MCU for RMS Calculation

WIRELESS DATA ACQUISITION SYSTEM FOR PHARMACEUTICAL AND CHEMICAL INDUSTRIES USING LOAD-CELL

I. INTRODUCTION II. LITERATURE REVIEW

EE ELECTRICAL ENGINEERING AND INSTRUMENTATION

CONDUCTIVITY sensors are required in many application

Digital Electronics 8. Multiplexer & Demultiplexer

UPSC Electrical Engineering Syllabus

Soldier Tracking and Health Indication System Using ARM7 LPC-2148

Principles of Measurement Systems

INTERNATIONAL JOURNAL OF ELECTRONICS AND COMMUNICATION ENGINEERING & TECHNOLOGY (IJECET)

Fuzzy Logic Temperature Control System For The Induction Furnace

A Digital Thyristor Trigger Control System based on DSP

AN OPTICAL DISPLACEMENT METER BASED ON A LIGHT-TO- FREQUENCY CONVERTER

The Development and Application of High Compression Ratio Methanol Engine ECU

PRACTICAL DESIGN TECHNIQUES FOR SENSOR SIGNAL CONDITIONING

Imaging serial interface ROM

being developed. Most up and coming drugs are extremely expensive and limited in

REACTIVE POWER COMPENSATION IN DISTRIBUTION SYSTEM

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

TAMIL NADU PUBLIC SERVICE COMMISSION. Post of Principal / Assistant Director (Training) Included in the Tamil Nadu Employment and Training Service

SMART SENSOR SYSTEMS. WILEY A John Wiley and Sons, Ltd, Publication. Edited by. Gerard CM. Meijer

Wide Range Voltage to Frequency Converter using PSoC3 Microcontroller

Low Power Design of Successive Approximation Registers

Applications of the LM392 Comparator Op Amp IC

Power Factor Compensation Using PIC

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

Tel: Fax:

Digital mw meter. 1. Functioning VHF COMMUNICATIONS 2/2003. Alexander Meier, DG6RBP

SIMULATION OF TRANSFORMER PROTECTION USING MICROCONTROLLER BASED RELAY & MONITORING USING GSM

Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier

WINTER 14 EXAMINATION

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

Wireless Embedded Air Multi-Parameter Measuring System

Monitoring the Transformer Oil Temperature and Load Sharing Using Gsm

Wireless Sensor Network Based Precision Green House Management System

Design and Implementation of Economical Power Factor Transducer

PERFORMANCE COMPARISONS OF INTERFACE CIRCUITS FOR MEASURING CAPACITANCES

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

ANALOG AND DIGITAL INSTRUMENTS

Screening Audiometer

Design and Implementation of Digital Stethoscope using TFT Module and Matlab Visualisation Tool

APPROACHES FOR ANALOG FRONT END DESIGN IN ELECTRIC POWER SYSTEM PARAMETERS MEASURING

EMG Sensor Shirt. Senior Project Written Hardware Description April 28, 2015 ETEC 474. By: Dylan Kleist Joshua Goertz

SPEED is one of the quantities to be measured in many

ADVANCED EMBEDDED MONITORING SYSTEM FOR ELECTROMAGNETIC RADIATION

An MPI Daemon-Based Temperature Controller for an AC Susceptometer

PRECISION INTEGRATING ANALOG PROCESSOR

Chlorophyll a/b-chlorophyll a sensor for the Biophysical Oceanographic Sensor Array

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE

Design and Fabrication of a Microheater Control System. Mike Chambers

Low Cost Screening Audiometer

CHAPTER 6 IMPLEMENTATION OF FPGA BASED CASCADED MULTILEVEL INVERTER

Water Jet with Electronically Controlled Flow and Temperature Settings

Electronic Measurements & Instrumentation. 1. Draw the Maxwell s Bridge Circuit and derives the expression for the unknown element at balance?

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

Feed Forward Control of Induction Motor using AC Voltage Regulator

Grid Power Quality Analysis of 3-Phase System Using Low Cost Digital Signal Processor

Associate In Applied Science In Electronics Engineering Technology Expiration Date:

AERO2705 Space Engineering 1 Week 7 The University of Sydney

Preface... iii. Chapter 1: Diodes and Circuits... 1

V-LAB COMPUTER INTERFACED TRAINING SET

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

Standard single-purpose processors: Peripherals

Index Terms-Emergency vehicle clearance, Higher density, IR sensor, Micro controller, RFID Technology.

Design and Development of Train Tracking System in South Central Railways

Applications of the LM392 Comparator Op Amp IC

Sensor based Automated Irrigation System with IOT

Design and fabrication of microcontroller based temperature control system for photoacoustic spectrometer

ADVANCED SAFETY APPLICATIONS FOR RAILWAY CROSSING

HD44102D. (Dot Matrix Liquid Crystal Graphic Display Column Driver) Features. Description. Ordering Information

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

K. MAHADEVAN. Professor Electrical and Electronics Engineering PSNA College of Engineering and Technology Dindigul, Tamil Nadu C.

S.Sirish Kumar CIRCUIT DIAGRAM

Quantity available (A) Quantity required (R) Sl. No. Deficiency (R - A) Description of Equipment

User friendly tobacco barn heat controller for use by upcoming farmers

Table of Contents...2. About the Tutorial...6. Audience...6. Prerequisites...6. Copyright & Disclaimer EMI INTRODUCTION Voltmeter...

GROUP NO:-19 SWARUP HARICHANDAN SATYA PRAKASH PRADHAN SUBHENDU KUMAR TARAI DHANANJAYA NAYAK SUCHISMITA DAS MANOJ KUMAR MOHANTY

Hydraulic Actuator Control Using an Multi-Purpose Electronic Interface Card

ECE 215 Lecture 8 Date:

Design of LVDT Based Digital Weighing System

M.D. Singh J.G. Joshi MECHATRONICS

Figure 4.1 Vector representation of magnetic field.

Solapur University, Solapur Syllabus for B.Sc. II Electronics Semester System To be implemented from Academic Year ) Course Structure: -

Development of an integrated data-acquisition system for renewable energy sources systems monitoring

Gentec-EO USA. T-RAD-USB Users Manual. T-Rad-USB Operating Instructions /15/2010 Page 1 of 24

Automatic Power Factor Correction by Using Synchronous Condenser with Continuous Monitoring.

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

TOUCH SCREEN BASED SPEED CONTROL OF SINGLE PHASE INDUCTION MOTOR

6. HARDWARE PROTOTYPE AND EXPERIMENTAL RESULTS

Microcontroller Based MPPT Buck-Boost Converter

Generation of Gaussian Pulses using FPGA for Simulating Nuclear Counting System

Section 22. Basic 8-bit A/D Converter

8253 functions ( General overview )

UNIVERSITY OF CALICUT (INSTITUTE OF ENGINEERING AND TECHNOLOGY) IET/A/EE/Purchase/2009. Thenhipalam P.O. Dated

Transcription:

Indian Journal of Pure & Applied Physics Vol. 42, March 2004, pp 182-188 Design and development of microcontroller based conductivity measurement system A Rajendran PG and Research Department of Applied Physics, Nehru Memorial College, Puthanampatti, Tiruchirappalli, Tamil Nadu 621 007, India and P Neelamegam PG and Research Department of Physics, AVVM Sri Pushpam College, Poondi, Thanjavur, Tamil Nadu 613 503 Received 24 October 2002; revised received 21 October 2003; accepted 10 December 2003 A real time microcontroller based conductivity measurement setup has been developed to measure conductivity by investigating ionic solutions using a modified AC Wheatstone bridge network. This instrument system permits recording of conductivity and temperature and send data to personal computer to enable the computer processing of such data. A dedicated 8031(8-bit) based microcontroller board was employed for the hardware. The details of its interface to measure conductivity, temperature and to control the temperature and evaluate results are explained in this paper. [Keywords: Conductivity measurement, Temperature measurement, Data acquisition system, Microcontroller, Electrolytic solutions, Ionic solutions, Current-carrying ions] IPC Code: G01H 25/20 1 Introduction Rapid decrease in unit cost and increase of onchip capabilities have enabled widespread use of single chip microcontroller in instrumentation and measurement technology. This development system enabled use of compensation, calibration, and linearization techniques 1,2 and application of microcontrollers in system control and data acquisition and processing 3,4. This paper presents a study of the conductivity of an electrolyte solution, taking full advantage of the microcontroller facilities. Conductivity is an important property of the ionic solutions used for analytical purposes. Conductance of a solution depends on its concentration, the nature of the electrolyte, the rate of movement of the currentcarrying ions and temperature. Raising temperature by 1 C increases the conductivity 5,6 by an average of 2-3%. A good conductometric measurement system should be capable of measuring of rapid changes in solution resistance. Measurement of conductivity along with time and temperature possesses potential applications such as - estimating the hardness of water, detecting the extent of disease in plant leaves, in soil studies, manufacturing of paper and sugar, vat dyeing 7, developing solid state electrochemical devices 8, etc. The most accurate methods of measurement of unknown impedance are the bridge methods 9 where the accuracy is basically limited only by the accuracy of the known values of the various elements constituting the bridge. A modified approach of the balancing techniques of AC Wheatstone s bridge network has been reported to achieve high accuracy in measurement 10,11. In the present work an operational amplifier based modified Wheatstone bridge network has been used to measure conductivity of a solution. A microcontroller based conductivity measurement setup is designed to measure the conductivity and temperature of rapidly changing solution resistance with time. 2 Experimental Details Figure 1 shows the block diagram of conductivity measurement set up. The block I consists of a commercial platinum cell having a cell constant 1.0 cm 1 for the measurement of conductivity of ionic solutions. A modified AC Wheatstone bridge network is kept in the block II. The conductivity cell with electrolyte solution is connected to one arm of the bridge. The circuit is unbalanced due to conductivity of the given solution. The output of the bridge

RAJENDRAN & NEELAMEGAM: MICROCONTROLLER BASED CONDUCTIVITY MEASUREMENT SYSTEM 183 network is rectified using precision rectifier, which is kept in block III. It is used to rectify small input signals (less than 0.7V) 12. Block IV is a semiconductor temperature sensor AD590 and is used as a sensor to measure temperature of the solution. The block V consists of an instrumentation amplifier, which amplifies the voltage from semiconductor sensor. Programmable Peripheral Interface (PPI) 8255A and A/D converter (ADC0808) is kept in block VI, which converts analogue conductivity or temperature into digital quantities. The IC0808 is a monolithic CMOS device with an 8 channels 8-bit analog to digital converter. IC0808 offers high speed, high accuracy, and repeatability. The 8-bit A/D converter uses successive approximation, which can make 100 conversions per microsecond 13. Microcontroller 8031 is kept in the block VIII. It is a low power, high performance HMOS 8-bit microcontroller which processes the acquired input data. A solid-state controller with heater is kept in the block VII, which maintains the temperature of the sample at constant temperature. Block IX is a two-row 16 characters LCD display from Hitachi and is used to display the measured data and results. The ICL232 is a dual RS232 transmitter/receiver interface circuit that meets all EIA RS232 specification kept in the block X. It requires a single +5V power supply and features two onboard charge pump voltage converters, which generate +10V to 10V supplies from the 5V supply. The output ICL232 is connected to COM1 port of computer, which is kept in the block XI. 3 Circuit Description A general AC Wheatstone s bridge network is modified as shown in Fig. 2, where two very high Fig. 1 Block diagram of conductivity measurement system I - Conductivity Cell II - AC Modified Wheatstone bridge network III-Precision rectifier IV-Temperature sensor (AD590) V-Instrumentation amplifier VI- ADC0808 & 8255A VII- Solid state controller VIII-8031 Microcontroller IX-LCD X- ICL232 XI-PC gain operational amplifiers U11 and U12 are connected with the bridge network 14 with a noninverting terminal connected to the circuit ground. This enables the bridge output nodal points B and D to be almost at the same potentials with respect to the ground and which affects the stray capacitance exists between them and also among themselves and ground. This may be assumed to be minimized. If the sinusoidal input voltage, V i =V m sinωt, is applied to the bridge network consisting of Z 1, Z 2, Z 3 and Z 4, then the output of bridge network is given by R f V 0 = Z 2 Z 3 -Z 1 Z 4 V i (1) Z 1 Z 2 Z 3 At balance condition of the bridge, V 0 = 0, which is identical with the conventional bridge network. The conductivity cell is placed instead of Z 3. The conductivity of a solution is determined by the given equation -1 1 V 0 Z 1 Z 4 Z 1 Z 4 = G C = + (2) Z 3 R f V i Z 2 V 0 = Bridge output voltage V i = Input excitation voltage Z 1, Z 2, Z 4 = Known resistances G C = conductivity of a solution The output of amplifier U12 is given to input of the precision rectifier constructed with operational amplifier U13 and U14 as shown in the Fig.2. To measure temperature of the sample the temperature sensor AD590 is used. It is a temperature dependent current source from Analog devices. The AD590 produces a current proportional to its temperature. A CA3140 amplifier (U15 & U16) amplifies the EMF generated by the temperature sensor (1mV/kelvin). The CA3140 device is a monolithic amplifier, which has very high input impedance, very low input current, and high-speed performance. The circuit diagram for ADC IC 0808 and 8255A Programmable Peripheral Interface is shown in Fig. 3. The 8255A has three programmable ports, Port A,

184 INDIAN J PURE & APPL PHYS, VOL 42, MARCH 2004 Fig. 2 AC modified Wheatstone bridge and temperature measurement circuit Port B and Port C which can be programmed either as an input or output port. The ADC output D 7 -D 0 are connected to Port A of 8255. The output from the amplifier U16 (temperature) and U14 (conductivity) are given to the input pins 26 and 27 of ADC 0808. The SOC signal, EOC signal and channel select signals of A/D converter are connected Port B and C of 8255 as shown in the Fig.3. The IC7414 is used as an oscillator for the clock (300 khz) to the A/D converter. The circuit diagram of 8031 microcontroller and its associated peripherals is shown in Fig. 4. The 8031 chip has a 16-bit address whose low order lines (A0- A7) are multiplexed with the data bus as AD0 AD7 lines. The address line A0 to A7 from the IC 74373 is connected to the address lines EPROM IC 2764 and RAM IC 6264. The address line A8 to A12 of EPROM and RAM are connected to P2.0 to P2.4 (higher order address bus) of microcontroller. The data lines of EPROM and RAM are connected to Port 0 of microcontroller. The address lines A15, A14 and A13 of microcontroller are connected to the input C, B and A of the decoder IC 74138. The address decoder 74LS138 is used to select memory devices and peripherals. The pins 17 and 29 are NANDed and then used to select RAM. A crystal oscillator of frequency 12 MHz is connected between 18 th and 19 th pins of 8031. The RC network is connected to pin 9 (RESET pin), which is used to power on reset. A solid-state power controller is used to control the power to the heater. This power controller is constructed with optocoupler MC2TE, UJT2N2646 and Triac 15.

RAJENDRAN & NEELAMEGAM: MICROCONTROLLER BASED CONDUCTIVITY MEASUREMENT SYSTEM 185 Fig. 3 Interface 8255 with ADC 0808 Fig. 4 Circuit diagram for 8031 Microcontroller board 4 Measurement and Details of Software The experiments were done by connecting the conductivity cell at one arm of the unmodified Wheatstone network and selecting the resistance value Z 1 (100Ω or 1KΩ), Z 2 (1KΩ) and Z 4 (1KΩ). A fixed sinusoidal excitation voltage of 1V is applied to the bridge input. By keeping the temperature bath at various temperatures the conductivity is measured. The conductivity is also measured for various concentrations. The preset VR1 is adjusted for calibration of temperature.

186 INDIAN J PURE & APPL PHYS, VOL 42, MARCH 2004 Fig. 5 Flow chart for conductivity measurement system

RAJENDRAN & NEELAMEGAM: MICROCONTROLLER BASED CONDUCTIVITY MEASUREMENT SYSTEM 187 flowchart for performing the above tasks is given in Fig. 5. Software is also developed to initialize COM1 port in the PC, to receive data from the microcontroller, to store data in a file and to send commands to microcontroller. Fig. 6 Analytical curves for concentration versus conductivity Fig. 7 Analytical curves for conductivity at various temperatures Software is developed in assembly language and C language to initialize LCD display, serial port, selection of conductivity or temperature by multiplexer, to start ADC conversion, to check end of conversion, to read acquired data, process the conductivity of the sample from the Eq. (2), temperature of the sample, data computation for acquired data, to display and storage of data for conductivity and temperature. To transmit data to PC, software is written to select UART mode, to select timer1 for non gated auto reload, to set 4800 baud rate, to start timer1 to send data to transmit buffer, so that a PC can read data through COM1 port. The 5 Results and Discussion The performance of the microcontroller-based instrument measuring conductivity of samples is investigated by comparing its response with result by other methods 16. The instrument fabricated is used to study the conductivity of KCl, NaOH, NaCl and CuSO 4 solutions and the variation of specific conductivity with temperature. The conductivity cell is dipped and conductivity is measured for various liquids to check accuracy and reproducibility of the instrument. With the circuit set for calibration the conductivity cell is dipped into KCl solutions, maintained at the required temperature, for which the literature values 17 of specific conductivities are known. Fig.6 shows analytical curves for concentration versus conductivity for KCl, NaCl solutions. The results of conductivity measurement using this instrument are compared with the systronics conductivity meter to check the accuracy of the instrument and it is found that both results agree and hence this instrument can be used to measure conductivity. The error in measurement is found to be less then 2%. The variation of conductivity of the solutions KCl, NaOH, and NaCl for various temperatures is given in Fig.7. It is observed that conductivity increases with temperature. Use of standard resistance of high accuracy will reduce the error component due to it. Using 12-bit A/D converter the accuracy can be increased. The measurement system was tested with different samples to check the reproducibility. In this instrument the manual supervision involved is little. The system is highly reliable, less expensive, and portable. References 1 Kolen P T, IEEE Trans. Instrum. Meas, 43 (1994) 620. 2 Hille P, Hobler R & Strack H, Sens. Actuators B, 44 (1994) 95. 3 Xiujun Li, Meijer G C M & Dejung G N, IEEE Transs. Meas, 46 (1997) 888. 4 Meijer G C M, Van Drecht J, De Jong P C & Neuteboom H, Sens. Actuators A, 35 (1992) 23. 5 Sharpio S & Gurvich Y, Analytical chemistry (MIR publishers, Moscow) 1972,437.

188 INDIAN J PURE & APPL PHYS, VOL 42, MARCH 2004 6 Maron S H, Prutton C F, Principles of physical chemistry, (Oxford and IBH Publishing House Pvt. Ltd, India), 1972, 423. 7 Sheehan W F, Physical Chemistry (Prentice Hall of India), 1966, 412. 8 Archana Mangla & Anjan Sil, Indian J Pure & Appl Phys, 39 (2001) 267. 9 Oliver B M & Cage J M, Electronic Measurement and Instrumentation, (McGraw Hill, New York) 1971. 10 Marioli D, Sardini E & Taroni A, Meas. Sci. and Technol, 4 (1993) 337. 11 Takagishi E, IEEE Trans Instrum. Meas, 29 (1980) 131. 12 Roy Choudhury D & Jain Shail, Linear Integrated circuits, (New Age International (P) Ltd., Publishers, India), 1999. 13 Microprocessor data hand book, (BPB Publications, India) 1992, 618. 14 Bera S C, Chattopadhyay S & Roy J K, IE (I) journal-el, 82 (2002) 250. 15 Neelamegam P, Padmanabhan K & Selvasekarapandian S, Meas. Sci.Technol, 3 (1992) 581. 16 Fracassi da Silva J A, Barros M F & Do Logo C L, Inst. Science & Technol., 26 (1998) 409. 17 Srinivasan V, Physical Constants and Mathematical and Statistical Tables, (S.Viswanathan Printers & Publishers Pvt. Ltd., India) 10 th edition, 1980, 40.