0% found this document useful (0 votes)
2 views

Data_Logger_and_Remote_Monitoring_System_for_Multi

The document outlines the design and implementation of a microcontroller-based data logger and remote monitoring system for environmental parameters such as temperature and humidity. The system transmits data via SMS and allows for data logging to a PC for further analysis, utilizing sensors like the LM35 and SY-HS-220 for accurate measurements. The results demonstrate good accuracy and stability, making it suitable for applications like greenhouse monitoring.

Uploaded by

ajaymandi961
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Data_Logger_and_Remote_Monitoring_System_for_Multi

The document outlines the design and implementation of a microcontroller-based data logger and remote monitoring system for environmental parameters such as temperature and humidity. The system transmits data via SMS and allows for data logging to a PC for further analysis, utilizing sensors like the LM35 and SY-HS-220 for accurate measurements. The results demonstrate good accuracy and stability, making it suitable for applications like greenhouse monitoring.

Uploaded by

ajaymandi961
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

e -Journal of Science & Technology (e-JST) 55

e-Περιοδικό Επιστήμης & Τεχνολογίας

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR


MULTIPLE PARAMETER MEASUREMENT APPLICATIONS

G.S. Nhivekar, R.R.Mudholker

Department of Electronics, Shivaji University, Kolhapur-410004, India


Email:[email protected]

ABSTRACT
The present article portrays a design and implementation of microcontroller
based embedded system for data logging and remote monitoring of environmental
parameters with simplicity to users. The main task of monitoring parameters viz.
temperature (T) and humidity (H) along with transmission of this information in the
form short message service (SMS) to user’s mobile phone is done by the system. Also
weather monitor system provides data-logging facility. The logged data can be then
transferred to a personal computer (PC) having a graphical user interface program for
further analysis or printing the measurements. The observed data is comparable with the
actually measured data using conventional mercury thermometer and masons
hygrometer for measurement of temperature and humidity, respectively.
KEYWORDS microcontroller, data logger, AVR, SMS

INTRODUCTION
Remotely monitoring of environmental parameters is important in various
applications and industrial processes. In earlier period weather monitoring systems are
generally based on mechanical, electromechanical instruments which suffer from the
drawbacks like poor rigidity, need of human intervention, associated parallax errors and
durability. With the inclusion of electronics the instruments were made compact and
cheaper. However, these systems lack flexibility of remote monitoring and data logging.
Kang and Park have developed monitoring systems, using sensors for indoor climate and
environment based on the parameters mentioned [1] in 2000. Combination of these
sensors with data acquisition system has proved to be a better approach for temperature
and relative humidity monitoring in 2005 [2]. Vlassov in 1993 introduces the usage of
surface acoustic waves devices as temperature sensor [3].These systems, however, are
quite complex in nature as some of them require the use of on-chip transmitter circuit
and involve fabrication process.
This demand the development of a microcontroller based embedded system for
weather monitoring. Such a system should monitor and provide data for remote
examine. A device for weather monitoring systems has been developed and
implemented as described in this paper is capable to data logging and remote examine.
The device is simple to use, requires no additional hardware and allows the flexible
selection of data-size and the time intervals between the readouts through a simple
keypad (two keys only). The collected data by weather monitoring system can easily be
exported to a PC via a serial port to make subsequent data analysis or graphic and digital
storage thus automatic data collection is possible without giving up PC resources.

MATERIALS AND METHODS


The design of weather monitoring system involves various steeps ,viz selection
of proper sensor to sense physical parmeter,design of signal conditioning circuit which

http://e-jst.teiath.gr 55
e-Περιοδικό Επιστήμης & Τεχνολογίας 56
e-Journal of Science & Technology (e-JST)

support digital logic device , selection of Central Processecing Unit (CPU) and Display
unit.

Fig.1: Block diagram of weather remote monitoring device.

The functional block diagram of weather remote monitoring device is shown in


Fig. 1.The system shown in block diagram is designed around the ATMEL AVR
microcontroller. As shown in the Fig.1.the microcontroller’s on-chip peripherals like
ADC, UART, EEPROM, POR, and Timer are being used to lower the cost and to
increase the efficiency and reliability. This makes AVR microcontroller a better choice
for such embedded systems.
Sensors sense the physical parameters, in this case the humidity, temperature, the
analog output of sensor are given to on-chip Analog to Digital Converter. ADC converts
analog voltage into corresponding digital word which is processed to get the actual
physical parameter and then displayed onto the LCD module interfaced to the ports of
microcontroller. The device also acts as a data logger, with the help of RTC (Real Time
Clock) and MMC (Multi Media memory Card) interfaced to microcontroller. The
current time for data-logging purposes is provided by the time-base circuit while non-
volatile storage is provided by MMC. The stored records then can be transmitted using
serial (RS-232) links to PC for permanent storage in the data files using graphical user
interface program (GUI).

1. The sensor circuit


For temperature sensing, an integrated circuit temperature sensor LM35 is used,
which has an analog output voltage. The output voltage of sensor is linearly proportional
to temperature with a gradient of 10mV/ºC and able to operate in the range -55ºC to
+150ºC with an accuracy of ± 0.5ºC. These make LM35 good choice for ambient
temperature monitoring.
Relative humidity measurement is performed by calibrated humidity sensor
module SY-HS-220 which minimizes the system complexity by reducing component
count. The humidity sensor module converts relative humidity to voltage with an
accuracy of ± 5% RH. The characteristics curve of relative humidity (% RH) vs. out put
voltage (mV) is shown in the Fig.2.

(3), 6, 2011 56
e -Journal of Science & Technology (e-JST) 57
e-Περιοδικό Επιστήμης & Τεχνολογίας

Fig. 2: Humidity sensor characteristics plot.

Using equation of straight line,

Y  mX  c (1)

Herein, Y is % relative humidity, m is slope and c is offset.


Slope is calculated by using Humidity sensor characteristics plot as,

RelativeHumidity
slope   offsetvoltage
OutputVoltage
30
slope  0
0.999
slope  30.3
The characteristic is a straight line and the slope is constant along the line.

Thus multiplying measured voltage from sensor by calculated slope gives


Relative Humidity. In addition, the output voltages from both the sensors are sufficiently
large in magnitude so, there is no need of separate signal conditioning circuitry, which
improves reliability of the system.

2. Central processing unit (CPU)


The main component here is the Atmega32 microcontroller which works as
CPU. This microcontroller not only controls the system but also synchronizes all the
module operations. The CPU use calibrated 8 MHz internal RC oscillator. Atmega32
provides eight channels ADC (Analog to Digital Convertor) which can be used in 10-bit
mode.

http://e-jst.teiath.gr 57
e-Περιοδικό Επιστήμης & Τεχνολογίας 58
e-Journal of Science & Technology (e-JST)

Fig. 3: Full working schematic of weather remote monitoring device.

3. The display circuit


The device uses LCD module for local real-time display. The module has on-
board display controller, which relieves the main microcontroller from manually
generating dot-matrix character display. The display unit is composed of 16x2 dot
matrix alphanumeric LCD. The LCD is configured in 4-bit mode with read-write control
(WR) pin grounded. This configuration requires less number of I/O pins of
microcontroller, typically 6 only. The circuit diagram shown in Fig. 3. reveals actual pin
connections of the device.

4. Data logging & remote monitoring circuitry


The device allows the selection of amount of data and the time intervals between
them through a simple keyboard (two keys only). The current time for data-logging
purposes is provided by the time-keeping circuit typically from 30sec to 99min. Memory
card (MicroSD) with 1GB capacity from SanDisk [7] is connected to the microcontroller
for storing the sensors readings to store more than 100 days reading (for 30-second
sampling interval). MicroSD cards are available very cheap nowadays, a great option for
having a huge memory in any embedded system project. The interface of the MMC and
the microcontroller is based on the SPI bus which is shown in Fig. 3. Fig. 4 shows the
SD card pin-out & the bread-board adapter design by soldering 7-pins of a breakout
header on the microSD. Interfacing of the microSD to Atmega32 is shown in the Main
Circuit diagram of system.

(3), 6, 2011 58
e -Journal of Science & Technology (e-JST) 59
e-Περιοδικό Επιστήμης & Τεχνολογίας

Fig.4: Bread-board adapter design by soldering 7-


pins of a breakout header on the microSD adapter

The microcontroller sends current monitored parameters through SMS in the


time interval specified by user. In present system Nokia-3310 mobile phone is interfaced
to microcontroller, using Nokia F-Bus Protocol [6]. A typical SMS sent by the system is
shown in the Fig.5b.

5. The Time-Base Circuit


A real-time clock (RTC) chip-DS1307 is used for Time-Base purpose.
Communication between the RTC and the microcontroller is achieved via a simple serial
interface bus protocol. A separate battery source supplies the power required by the chip,
hence enables RTC operation kept without interruption in the event of main power
source failure.

6. The interfacing circuit and GUI


Data stored in MMC can be accessed directly with the personal computer (PC)
through serial port connection .The GUI software allows the user to download the data
from MMC, the data can also redirect to Excel. The graphical user interface (GUI) is
developed using Visual Basic language. The screen shot of GUI is shown in Fig.5a.

5a 5b
Fig.5: Screen shot of GUI program run on PC and typical SMS view on user mobile
phone

http://e-jst.teiath.gr 59
e-Περιοδικό Επιστήμης & Τεχνολογίας 60
e-Journal of Science & Technology (e-JST)

SOFTWARE DESCRIPTION OF DEVICE

The firmware for the CPU is written in embedded–C language. Fig.6. shows the
flow chart of the device software. The programmed behavior of the device is as follows:
When the device is powered-up, the initialization part of the device software
configures various on-chip peripherals such as timers, interrupts, ADC etc. and
initializes the externally interfaced LCD, RTC, and MMC. This initialization sequence
puts these resources into a known state. Once initialize, device display parameter and
setup user data using keys (sw1, sw2).At regular time interval specified by user setup,
device store parameter & send it through SMS to user mobile phone. Device checks
request to send stored record through serial port as shown in device software flow chart.

Fig.6: Flow chart of the weather remote monitoring device software.

RESULT AND DISCUSSION

The accuracy of proposed device has been tested through extensive experiments.
Present device can measure temperature from 0oC to 100oC with 0.5oC resolution and
relative humidity from 30%RH to 90%RH with resolution of 1%RH. Although final
accuracy of weather remote monitoring system depends on sensor accuracy. The
observed data is comparable with the actually measured data using conventional
mercury thermometer and Masons Hygrometer. The results obtained are summarized in
Table-1, Table- 2.

(3), 6, 2011 60
e -Journal of Science & Technology (e-JST) 61
e-Περιοδικό Επιστήμης & Τεχνολογίας

Calibrated
Proposed Difference
Time Mercury
Sr.No. device (°C) (°C)
thermometer (°C)
1 06.00 AM 27.3 27.0 0.3
2 07.00 AM 27.6 27.0 0.6
3 08.00 AM 28.2 27.6 0.6
4 09.00 AM 28.7 28.0 0.7
5 10.00 AM 29.6 29.3 0.3
6 11.00 AM 30.8 30.0 0.8
7 12.00 PM 31.5 31.0 0.5
8 01.00 PM 32.8 32.2 0.6
9 02.00 PM 33.7 34.0 0.3
10 03.00 PM 34.0 34.0 00
11 04.00 PM 34.4 34.0 0.4
12 05.00 PM 33.9 34.0 0.1
13 06.00 PM 33.5 34.0 0.5
14 07.00 PM 32.1 32.0 0.1
15 08.00 PM 31.8 32.0 0.2
Table 1: Comparison of temperature measurements.

From Table-1, it can be observed that the temperature sensor shows a good level
of stability as well as accuracy. The average error of 0.60C is observed due to ±0.50C
error by the sensor and ±0.250C introduced by ADC. The humidity sensor of proposed
device also show very good accuracy as shown in Table-2.an error of 2% is observed
mainly due to the hysteresis effects of the sensor. This device is very useful in Green
house, as data logger and remote monitoring where temperature and humidity plays vital
role, hence it is necessary to monitor and control this parameter. The readout storage
capacity of device can be easily increased by adding external memory such as
Multimedia or Flash memory card.

Calibrated Proposed Difference


Sr.No. Time
Hygrometer (% Rh) device (% Rh) (% Rh)

1 06.00 AM 62 61 2
2 07.00 AM 65 63 2
3 08.00 AM 63 63 0
4 09.00 AM 60 60 0
5 10.00 AM 55 55 0
6 11.00 AM 48 48 0
7 12.00 PM 44 42 2
8 01.00 PM 41 41 0
9 02.00 PM 39 40 1
10 03.00 PM 40 40 0
11 04.00 PM 37 37 0
12 05.00 PM 47 46 1
13 06.00 PM 50 50 0
14 07.00 PM 55 55 0
15 08.00 PM 57 55 2
Table 2 : Comparison of Humidity measurements.

http://e-jst.teiath.gr 61
e-Περιοδικό Επιστήμης & Τεχνολογίας 62
e-Journal of Science & Technology (e-JST)

Calibrated Hygrometer (% Rh) Proposed device (% Rh) Mercury thermometer Proposed device (°C)

70 40

60 35
30
50
25
40
20
30
15
20 10
10 5

0 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

7a 7b
Fig.7: Graph of humidity and temperature compared with Hygrometer and mercury
thermometer respectively

CONCLUSION
From the graphs of Humidity and temperature it is clear that there is very close
agreement between the data collected by our system and that measured by already
available and calibrated systems, which validates the measurements made by our system.
The presented system can be useful for studding behavior of Industrial and Home
processes application having multiple parameters. Though the system employs SMS
technology which is a point-to-point communication technology with the limitations of
small bandwidth; it imposes no need of PC or web server for remote monitoring and
thus saves the cost. With slightly modifying the firmware current monitored parameters
can be sent to many users through SMS.

REFERENCES
[1] Kang. J. and Park S. “Integrated comfort sensing system on indoor climate” Sensors
and Actuators. 2000. 302-307.
[2] Moghavvemi M. and Tan. S. “A reliable and economically feasible remote sensing
system for temperature and relative humidity measurement”. Sensors and Actuators.
2005. 181-185.
[3] Vlassov Y.N. and Kozlov A.S. “Precision SAW pressure sensors” IEEE proceeding
of 47th frequency control symposium. 1993. 665-669.
[4] Jan Cimo and Bernard Siska, “Design and realization of monitoring system for
measuring air temperature and humidity, wind direction and speed”. Journal of
Environmental Engineering and Landscape Management. 2006. 14(3).127 -134.
[5] K.Gowardhan, “Control anything from a cell phone Tiny Planet” Smart Materials
Structures and Conference on Systems International.2005. Bangalore. India.
[6] Wayne Peacock. “Nokia F-Bus Protocol”.2004. online website-
www.Embedtronics.com
[7] SanDisk Corporation. SanDisk SD card product manual. Version-2.2.2004.
www.sandisk.com .

(3), 6, 2011 62

You might also like