International Journal of Electronics and Computer Science Engineering 1588



Similar documents
DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

ONLINE HEALTH MONITORING SYSTEM USING ZIGBEE

Accurate Measurement of the Mains Electricity Frequency

Conversion Between Analog and Digital Signals

ADC-20/ADC-24 Terminal Board. User Guide DO117-5

Microcontroller-based experiments for a control systems course in electrical engineering technology

Designing VM2 Application Boards

Wireless monitoring system for temperature and humidity based on ZigBee

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Room Temperature based Fan Speed Control System using Pulse Width Modulation Technique

Measuring Resistance Using Digital I/O

EVAL-UFDC-1/UFDC-1M-16

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

POCKET SCOPE 2. The idea 2. Design criteria 3

USB / Data-Acquisition Module NOW LEAD-FREE

Wireless Temperature

Lab Experiment 1: The LPC 2148 Education Board

Controlling a Dot Matrix LED Display with a Microcontroller

Fox-2 MPPT Unit Testing

Using Xbee in Serial Communication

Remote Measurement and Control system for Greenhouse based on GSM-SMS

NETWORK ENABLED EQUIPMENT MONITOR

DS1104 R&D Controller Board

DataView DVTH Data Logger for Temperature and Humidity

Temperature Sensors. Resistance Temperature Detectors (RTDs) Thermistors IC Temperature Sensors

Design and Construction of Variable DC Source for Laboratory Using Solar Energy

Chapter 6: From Digital-to-Analog and Back Again

PC BASED PID TEMPERATURE CONTROLLER

LED board datasheet EB

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

TEMPERATURE CONTROL AND DATA ACQUISITION METHOD FOR FACTORY USING LABVIEW

3. Identification of water pumps through RFID technology. 4. Wireless control of remote water pump using RF technology.

A Digital Timer Implementation using 7 Segment Displays

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

FLYPORT Wi-Fi G

1 Coffee cooling : Part B : automated data acquisition

Wireless Sensor Network Based Low Power Embedded System Design For Automated Irrigation System Using MSP430

Green House Monitoring and Controlling Using Android Mobile Application

Embedded Intensive Patient Care Unit

Product Data. Thermal Comfort Data Logger Type Including Application Software Type 7301

Wireless Patient Health Monitoring System

Temperature & Humidity SMS Alert Controller

Fingerprint Based Biometric Attendance System

Measuring Temperature withthermistors a Tutorial David Potter

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

Advanced Data Capture and Control Systems

Microcontroller to Sensor Interfacing Techniques

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

Computer Automation Techniques. Arthur Carroll

Welcome to this presentation on Driving LEDs Resistors and Linear Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series.

Real Time Clock USB Evaluation Board V3.0

Patient Health Monitoring Using Wireless Body Area Network

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Cell Phone Based Liquid Inventory Management Using Wireless System

RC2200DK Demonstration Kit User Manual

ends of transmission line are used for relay operation [70]. Another type of

8051 MICROCONTROLLER COURSE

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure

AN2680 Application note

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

Web Streamed SDR s in Service at GB2RHQ Hack Green Bunker

Tutorial for MPLAB Starter Kit for PIC18F

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

Design and Verification of Nine port Network Router

RADON TESTING WITH DATA LOGGERS

A Study of Low Cost Meteorological Monitoring System Based on Wireless Sensor Networks

Digital to Analog and Analog to Digital Conversion

Siemens and National Instruments Deliver Integrated Automation and Measurement Solutions

MAHMOUD OMID Department of Agricultural Machinery, Faculty of Agriculture, University of Tehran, Karaj, Iran Author s omid@ut.ac.

Thermo-Solar Plant Managing and Monitoring by Electronic Programmable Device with Touch-Screen Interface and Local or Remote Control Possibility

Design and Construction of Microcontroller Based Charge Controller for Photovoltaic Application

Zigbee-Based Wireless Distance Measuring Sensor System

Data Loggers for Real Time Temperature Monitoring - WiFi

Flash Corruption: Software Bug or Supply Voltage Fault?

EDK 350 (868 MHz) EDK 350U (902 MHz) EnOcean Developer Kit

Tire pressure monitoring

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Agilent Automotive Power Window Regulator Testing. Application Note

Create Colorful and Bright LED Light with an LED Matrix Dimmer

Section 3. Sensor to ADC Design Example

Wireless Patient Monitoring System Using Point to Multi Point Zigbee Technology

S2000 Spectrometer Data Sheet

US-Key New generation of High performances Ultrasonic device

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Keywords: rainfall detection, rain sensor, buzzer and alarm system.

Evo Laser Firmware Developer s Manual

ECONseries Low Cost USB DAQ

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

Current Monitoring Kit

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Display Message on Notice Board using GSM

CELL PHONE CONTROL ROBOT CAR

1. SAFETY INFORMATION

DAC Digital To Analog Converter

Transcription:

International Journal of Electronics and Computer Science Engineering 1588 Available Online at www.ijecse.org ISSN- 2277-1956 Design and Development of Low Cost PC Based Real Time Temperature and Humidity Monitoring System Nungleppam Monoranjan Singh *, Kanak Chandra Sarma Department of Instrumentation & USIC Gauhati University, Guwahati 78114, Assam, India. * Email- mranjansn@yahoo.com Abstract- This paper presents the design and development of a low cost Data Acquisition System (DAS) using PIC12F675 microcontroller for real time temperature and humidity monitoring. The designed DAS has 4 analog input channels having 1-bit resolution and was interfaced through the serial port of the PC. A precision integrated temperature sensor and an instrumentation-quality RH (Relative Humidity) sensor were used for sensing the temperature and humidity respectively. The firmware was written in Basic and compiled using Oshonsoft PIC IDE and downloaded to the microcontroller by using PICkit2 programmer. An application program was also developed using Visual Basic 6, which allows displaying the waveform of the signal(s) in real time and the data can be saved into the hard disk of the computer for future use and analysis. It can also be interfaced to the USB port of the PC or laptop using USB to serial adapter BAFO BF-81. Thus, the designed low cost device works with the legacy hardware as well as the modern USB interface. Keywords Data Acquisition System, Microcontroller, Serial Port, USB interface, 1-bit resolution, Temperature, Relative Humidity I. INTRODUCTION It is very much essential in laboratories as well as in industries to monitor temperature and humidity continuously. Earlier measurements had been done through manual measurements from analog instruments, such as thermometers, manometers and hygrometers. Such type of measurements can t fulfill the current requirements in terms of the time duration and accuracy. The efficient solution for this problem is to develop a data logger [1,2]. Microcontroller based embedded design for monitoring temperature has brought a revolutionary change [3,4,5]. The standalone system allows monitoring and controlling the physical parameters but, not suitable to log data for a long duration of time. Now a days, PC becomes very common, cheap and reliable. Further development in data logging took place as people begin to create PC-based data logging systems [6]. A low cost PC based real time data logging system can be used for such purpose. This will allow the custom control, display and storing of the recorded data to the PC. In most of the universities in the developing countries, the number of DAQ (Data Acquisition) cards in their laboratories are inadequate due to the high prices of the ready made DAQ cards. So, researchers are trying to develop customized, low cost DAS to meet their needs [7]. Since 1995, where computer technology were not so advanced as compared with to days generation, researchers have been designing PC-Based DAS to be low cost, high speed response, minimized sample skew, compatibility etc. [8]. New trends in the design of DAS is the flexibility, customized firmware and software platform for rapid development of PC based DAS [9]. Design, monitoring and controlling of PC based system plays an important role in the present technology of 21 st century. Such type of developments are applied in various industries for PC based process control, green house monitoring and control system, agriculture and food industries, etc [1,11]. The present work is to explore the possibility of continuously monitoring and storing the temperature and humidity through PC. The designed system is connected to the PC through RS-232 serial port. Even though there are many readymade instruments available, still research is going on to make a better, reliable and cost effective instrument. Today, many signal acquisition systems are PC based because of their high efficiency. There are many data acquisition systems available in the market for acquiring data and analysis. They have a large number of functions which are not required for the application and is also expensive. Thus, a custom cost effective hardware is designed, and the corresponding application software and firmware are also developed.

1589 Design and Development of Low Cost PC Based Real Time Temperature and Humidity Monitoring System II. MATERIALS AND METHODS The circuit diagram of the experimental setup is shown in Fig. 1. The hardware and software description of the system for the real time monitoring of temperature and humidity are described below. A. Data acquisition unit A data acquisition system (DAS) has been developed using PIC12F675 microcontroller. PIC12F675 is a mid range microcontroller having an internal crystal oscillator. Fig. 1 shows the circuit diagram of the designed system. It consists of a +5 volt regulated power supply, PIC12F675 microcontroller and a MAX232 (RS-232 driver). PIC12F675 has four analog input channels having 1 bit resolution ADC, in which the entire operation is controlled by the firmware. Pin 2 of the PIC12F675 is used to send the serial data to the PC (Personal Computer) through the MAX232 driver IC. The MAX232 IC converts TTL signal from the microcontroller into RS232 voltage level [12]. Since PIC12F675 has an internal oscillator of 4MHz, so it works without any external clock. General Purpose Input Output (GP I/O) pins GP, GP1, GP2 and GP4 of IC3 were used as the analogue inputs. The MAX232 driver IC uses some external capacitors to enhance the voltage levels to RS232 level. A 9 Pin D Type female connector is used to enable communication with the COM port of the PC. The PCB of the circuit was designed using ExpressPCB. Fig.1. Circuit diagram of the experimental setup B. Sensors - An IC temperature sensor LM35 (IC1) and a relative humidity sensor TPS-715 (IC2) were used. LM35 is pre calibrated in Degree Celsius. The characteristic graph of the LM35 (Fig 2) is made from the experimental observation, which is linear. Also, the characteristic graph of the TPS-715 (Fig 3) is made from the data sheet. C. Signal conditioning circuit - Signal levels from the temperature sensor IC LM35 and humidity sensor IC TPS-715 are not suitable for feeding it to the DAS directly. For these, signal conditioning circuits have been designed using OpAmp OP7 as shown in Fig. 1. To protect the over voltage due to accidental or over range, a zener diode was used in series with a series resistor. The output was taken across the zener diode, limiting to a mximum voltage of 5.1 volt, and fed to the input lines of the microcontroller.

IJECSE,Volume1,Number 3 N M Singh et al. 159 Characteristics of LM35 Characteristic Curve V o l ta g e i n m V 1.4 y =.96x +.57 1.2 1.8.6.4.2 1 2 3 4 5 6 7 8 9 1 11 12 13 14 Temperature in Degree Celcious Output Voltage (V) 3 2.8 2.6 2.4 2.2 2 1.8 1.6 1.4 1.2 1 y = -4E-11x 5-3E-8x 4 + 9E-6x 3 -.11x 2 +.745x +.365 1 2 3 4 5 6 7 8 9 1 Relative Humidity RH (%) Fig. 2. Characteristics graph of the LM35 Fig. 3. Characteristics graph of the TPS-715 D. Software section For the proper functioning of the data acquisition system, a firmware was developed and written to the microcontroller and an application program was also developed in Visual Basic 6. (i). Firmware A BASIC like program was written in Oshonsoft PIC Simulator IDE for proper ADC conversion at a fixed sampling rate and sending the digitized data serially. The program was compiled to make a hex file. The hex file so generated was downloaded to the PIC12F675 microcontroller using PICkit2 programmer [13]. The flowchart of the firmware program so developed is given in Fig. 4. Fig. 4 Flow chart of the firmware Fig. 5. Screen captured of the application program (ii) Application program For proper acquisition of the data, graphical display into the monitor and saving it as a file into the hard disk of the PC, an application program was developed in Visual Studio 6.. For preventing data missed, polling technique was used, that does not require a hardware interrupt [14]. It uses the MSComm component to communicate through the

1591 Design and Development of Low Cost PC Based Real Time Temperature and Humidity Monitoring System comm port of the PC. In Visual Basic, MSComm s OnComm event performs the event-driven routine which automatically jump to a routine when an event occurs. The application responds quickly and automatically to activity at the port, without having to waste time checking. The data so acquired is split into four values having four digit each, and analysed. Since it has 1 bit resolution it can read a value from to 5 volt in 123 steps for a channel. Thus, it has an accuracy of 4.88mV. For the temperature, the input range is made from to 5 C. This is converted into voltage from to 5 volt, by the signal conditioning circuit. The range of the relative humidity is from 1 to 9 % RH having 1 to 3 volt output. Then, the signal conditioning circuit converted this voltage to a range from 1 to 5 volt. Since, the humidity sensor response is not linear, a polynomial fitting is made. The expression for 5 th order polynomial fitting (as obtained from experimental data) is given by Eq. 1 as follows: y = 15.538x 5-161.37x 4 + 655.54x 3-1289.1x 2 + 1259.3x - 472.15 (1) where x represents the voltage reading in volt and y the relative humidity (RH) in percent (%). This equation is fitted into the program of the application software, to give RH in percentage directly. The screen shot captured of the application program is shown in Fig. 5. The calibration curve of the humidity sensor TPS-715 is made using polynomial fitting of 5 th order using eqn. (1) as shown in Fig 6. III. RESULTS AND CONCLUSION According to our channel selection a graph is plotted for the selected channel. All the data are stored into the hard disk of the PC into comma separated value (.csv) format. The data so stored can be used for future analysis and also the wave form can be reconstructed. For temperature and humidity one representative curve for 12 hour continuous observation is presented. The obtained real time data for temperature and humidity is presented in the Fig. 7. RH1 and RH2 are the observed humidity from the two different digital thermo hygrometers Model No. IT-22, and RH3 is taken from the dry and wet bulb psychometric measurement. RH4 is observed by the designed system. All the four graph shows the similar nature of variations in humidity. The commercial digital hygrometers shows a difference of 9% RH as seen from RH1 and RH2. The slight fluctuation in psychometric observation RH3 may be due to fluctuation in air flow and resolution of the thermometers reading. The variation between RH1 and RH4 is less than ± 2%, where 5% is considerable in general, for RH measurement. Thus, the designed system gives better result. Calibration Curve Temperature Humidity Graph 1 1 5 Humidity RH (%) 9 8 7 6 5 4 3 2 1 y = 15.538x 5-161.37x 4 + 655.54x 3-1289.1x 2 + 1259.3x - 472.15 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3 Output Voltage (V) Relative Humidity (%) 9 45 8 4 7 35 6 3 5 25 4 2 3 RH1 15 RH2 2 RH3 1 1 RH4 5 Temp 6 7 8 9 1 11 12 13 14 15 16 17 18 19 Time in Hour Room Temperature in Deg Celcious Fig. 6. Calibration graph of the TPS-715 Fig. 7 Reconstructed waveform of the Temperature and Humidity

IJECSE,Volume1,Number 3 N M Singh et al. 1592 This system will be useful in research and practical laboratories where acquisition for the measurement, monitoring, analysis and storage of temperature and relative humidity are necessary. In addition, the system can also be used in test and calibration laboratory. The designed system is a low cost with 1 bit resolution having accuracy of 4.88mV and compatible to PC and laptops. It can also be interfaced to the commonly available USB port of the PC or laptop using adapter USB to Serial adaptor BAFO BF-81 [15]. Thus, the designed low cost device works with the legacy hardware as well as the modern USB interface. Acknowledgement - The author (N. Monoranjan Singh) acknowledge the financial supports from the Department of Science & Technology, New Delhi under the DST-INSPIRE Fellowship Scheme. The author also acknowledge Texas Instruments and Maxim-IC for providing help and support in the design and development. V. REFERENCE [1] N. Monoranjan Singh, K. C. Sarma, Low cost PC based real time data logging system using PCs parallel port for slowly varying signals, Journal of Assam Science Society, Vol 5 (1-2), pp 36-41 (Dec 29) [2] N. Monoranjan Singh, K. C. Sarma, Design of PIC 12F675 microcontroller based data acquisition system for slowly varying signals, Jl. of Instrum. Soc. of India, Vol 4 (1), pp 15-17 (March 21) [3] D. Hazarika, K. C. Sarma, P. K. Sarmah, Microprocessor-Based Temperature Monitoring System Using Optical Fibers, IEEE Sensors Journal, Vol 9 (9), pp125-128 (Sept. 29) [4] A. Goswami, T. Bezboruah, K. C. Sarma, An embedded design for monitoring and controlling temperature, Indian J. Phys. Vol 84 (1), pp71-79, (21) [5] A. Goswami, T. Bezboruah, K. C. Sarma, An Embedded Design for Automatic Temperature Controller, International Journal of Advanced Engineering & Application, Vol 1(1), pp88-93, (Jan 211) [6] http://zone.ni.com/devzone/cda/tut/p/id/2693,- A Review of PC-Based Data Logging and Recording Techniques [7] S. Katrancioglu, K. Savas, H. Erdal, A modular and low-cost data acquisition card design with multitasking support, Procedia, Social and Behavioural Sciences, Vol 2, pp 5266-527 (21) [8] J. R. Payne, B. A., Menz, High speed PC-based data acquisition systems, IEEE Industry Applications Conference, 1995, Vol 3, pp 214-2145 (1995) [9] F. Baronnti, A Lazzeri, R. Roncella, R. Saletti, Firmware/software platform for rapid development of PC-based data acquisition systems, Electronics, Circuits, and Systems (ICECS), pp 118 1111 (Dec 21) [1] Zhou Yiming et al., A Design of Greenhouse Monitoring & Control System Based on ZigBee Wireless Sensor Network, IEEE Wireless Communications, Networking and Mobile Computing, WiCom 27, pp 2563 2567, (27) [11] Ning Wanga et al., Wireless sensors in agriculture and food industry Recent development and future perspective, Computers and Electronics in Agriculture, Vol 5 (1), pp1-14 (Jan 26) [12] Datasheet for TI- MAX232, http://focus.ti.com/lit/ds/symlink/max232.pdf (March 24) [13] PIC12F675 Datasheet, ww1.microchip.com/downloads/en/devicedoc/4119e.pdf (27) [14] Jan Axelson, Serial Port Complete Programming and Circuits for RS-232 and RS 485 Links and Networks, Penram International Publishing India Pvt. Ltd., Mumbai, pp21 (1998) [15] Manual for BAFO BF 81, http://www.bafo.com/download/27_download/bf-81_manual_v1.6.zip