Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCTION
1.1 OVERVIEW
Over the past quarter century, there has been an exponential increase of
industries, and these industries have caused complex and serious problems to
the environment. The first and the foremost is the severe environmental
pollution which has caused deterioration of atmosphere, climate change,
stratospheric ozone depletion, loss of biodiversity, changes in hydrological
systems and the supplies of fresh water, land degradation and stresses on
systems of food producing, acid rain, and global warming.
Most of the above air pollution and quality monitoring systems are based
on sensors that report the pollutants levels to a server via wired modem, router,
or short-range wireless access points. In this paper, we propose a system that
integrates a single-chip microcontroller and several air pollution sensors (CO,
NO2, and SO2). The integrated unit is a sensor, Analog to digital converter and
a Microcontroller. This unit can be placed on the top of any moving device
such as a public transportation vehicle. While the vehicle is on the move, the
microcontroller generates a frame consisting of the acquired air pollutant level
from the sensors array and the physical location that is reported to the PC.
1
A database server is attached to the Pollution-Server for storing the pollutants
level for further usage by interested clients such as environment production
agencies and vehicles regeneration authorities.
2
1.2 MOTIVATION OF THE WORK
The objective of the work is to measure the air pollutants level and
temperature range. Then the Acquired air pollutant level from the sensors array
will report to the PC. This system is used for acquiring the real-time data from
the sensors-array and the physical location, time and date of the sampled
pollutants from the GPS module. This information is then encapsulated into a
data frame by the microcontroller. Finally the acquired data will report to the
PC.
3
iv. Chapter 4 chapter discussions are made about the work carried
out. Also outputs of the various blocks of the proposed air
pollution monitoring with ZIGBEE are mentioned.
v. Chapter 5 deals about the Conclusion and Future work.
4
CHAPTER 2
LITERATURE SURVEY
5
2.3 AIR POLLUTION MONITORING SYSTEM BASED ON
GEOSENSOR NETWORK
7
2.8 POLLUMAP: A POLLUTION MAPPER FOR CITIES
8
alarm will be triggered to inform us this situation. The newly developed
algorithm was based on the relationship between the atmospheric reflectance
and the corresponding measured air quality of PM10 concentration. In situ
TM
PM10 air quality values were measured with DustTrak meter and the sun
radiation was measured simultaneously with a spectroradiometer. Regression
method was use to calibrate this algorithm. Still images captured by this
camera were separated into three bands namely red, green and blue (RGB), and
then Digital Numbers (DN) were determined. These DN were used to
determine the atmospherics reflectance values of difference bands, and then
used these values in the newly developed algorithm to determine PM10
concentration. The results of this study showed that the proposed algorithm
2
produced a high correlation coefficient (R ) of 0.7567 and low root-mean-
3
square error (RMS) of ± 5μg/m between the measured and estimated PM10
concentration.
9
CHAPTER 3
GAS Power
SENSOR Supply
A GPRS
D Transceiver
C Micro
Controller
U UART
N
I
T
Temperature GPS
SENSOR MODULE
11
3.2.1 16-Bit Single-Chip Microcontroller
12
3.2.3 GPS Module
3.2.4 GPRS-Modem
3.2.5 Pollution-Server
14
CHAPTER 4
4.1 INTRODUCTION
15
4.1.1 Block Diagram
Power
GAS Supply
SENSOR
A PC
D
C Micro
Controller
U UART
N
I
T
Temperature GPS
SENSOR MODULE
4.2 SENSORS
16
resistance in the presence of a reducing gas. Table II shows the details.
Typically, a semiconductor sensor produces a strong signal, especially at high
gas concentrations with adequate sensitivity, fast response time, long-term
stability, and longer lifetime
This dust sensor creates digital (low pulse) output when detecting
particulate matters. Low pulse occupancy time is in proportion to particulate
matters concentration. PPD4NS can detect particulate matters whose size is
around 1 micro meter or larger on the air. The scheme of this sensor is that it
generates a rising current of air which includes particles using a heater and
rises up. And then particles of smoke, dust pass on the lighting area, the
dispersion light pulse was generated in accordance with size of particles. It
outputs voltage pulse converted from the dispersion light pulse.
17
4.3.1 Circuit of Sensor Module
18
Feature Analytical instrument Gas sensors
Resolution Excellent Comparable
Cost Very high Fair
Size Bulky Compact
Rigidity Fragile Rigid
Response Slow Quick
Process Control Difficult Easy
Mass production Difficult Easy
19
4.5 MICROCONTROLLER
4.5.1 Description
4.5.2 Features
20
4.5.3 Pin Diagram
21
4.5.4 Pin Description
Port 0
Port 1
Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port
1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1
pins they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 1 pins that are externally being pulled low will source current (IIL)
because of the internal pull-ups Port 1 also receives the low-order address bytes
during Flash programming and verification.
Port 2
Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port
2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2
pins they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 2 pins that are externally being pulled low will source current (IIL)
because of the internal pull-ups. Port 2 emits the high-order address byte during
fetches from external program memory and during accesses to external data
memory that uses 16-bit addresses (MOVX @ DPTR). In this application, it
22
uses strong internal pull-ups when emitting 1s. During accesses to external data
memory that uses 8-bit addresses (MOVX @ RI), Port 2 emits the contents of
the P2 Special Function Register. Port 2 also receives the high-order address
bits and some control signals during Flash programming and verification.
Port 3
Port 3 is an 8-bit bi-directional I/O port with internal pull-ups. The Port
3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3
pins they are pulled high by the internal pull-ups and can be used as inputs. As
inputs, Port 3 pins that are externally being pulled low will source current (IIL)
because of the pull-ups. Port 3 also serves the functions of various special
features of the AT89C51 as listed below: Port 3 also receives some control
signals for Flash programming and verification.
Idle Mode
In idle mode, the CPU puts itself to sleep while all the on chip
peripherals remain active. The mode is invoked by software. The content of the
on-chip RAM and the entire special functions registers remain unchanged
during this mode. The idle mode can be terminated by any enabled interrupt or
by a hardware reset. It should be noted that when idle is terminated by a
hardware reset, the device normally resumes program execution, from where it
left off, up to two machine cycles before the internal reset algorithm takes
control. On-chip hardware inhibits access to internal RAM in this event, but
access to the port pins is not inhibited. To eliminate the possibility of an
unexpected write to a port pin when Idle is terminated by reset, the instruction
following the one that invokes Idle should not be one that writes to a port pin or
to external memory.
23
Power-Down Mode
4.6.1 Description
24
4.6.2 Pin Diagram
25
4.6.3 Features
Resolution 8 Bits
Total Unadjusted Error ±1⁄2 LSB and ±1 LSB
Single Supply 5 VDC
Low Power 15 Mw
Conversion Time 100 μs
The heart of this single chip data acquisition system is its 8-bit analog-
to-digital converter. The converter is designed to give fast, accurate, and
repeatable conversions over a wide range of temperatures. The converter is
partitioned into 3 major sections: the 256R ladder network, the successive
approximation register, and the comparator. The converter’s digital outputs are
positive true.
26
Figure 4.6 Circuit of ADC
27
4.7 POWER SUPPLY AND UART
4.7.1 Introduction
A regulator circuit removes the ripples and also remains the same dc
value even if the input dc voltage varies, or the load connected to the output dc
voltage changes. This voltage regulation is usually obtained using one of the
popular voltage regulator IC units.
28
Figure 4.7 IC Voltage Regulator
29
4.7.3 UART
The UART in the AT89C52 operates the same way as the UART in the
AT89C51.
4.8.1 Introduction
The next two points describe the most important strategies followed in
order to reduce the power consumption by software and display the existence
of humidity on a computer wherever it is located.
30
When ten samples of each sensor have been acquired, a frame is built
with an identifying field, the battery voltage level and the gas parameters. The
internal weak pull-up resistors from the SPI lines are only active during the
microcontroller-transceiver communication, which saves our 500micro
amperes DC current.
4.8.3 Pc Interface
When the base station receives a frame from a gas Sensors Node, the
data are retransmitted through the serial cable (RS-232) TO A computer (host)
as soon as they are collected. The first software module manages the serial port
to collect the data frame. Then the program splits the frame in to their
appropriate values. These are the direct measures parameters which are
processed and values. Nevertheless other indirect parameters can be obtained
from the direct ones, like the dew-point. The software module generates several
files that provide information about the temperature and gas parameters.
The kernel program has three main functions: trigger, data transport, and
interrupt. Each of these functions has special tasks and works cooperatively
with the NCAP. The functions have been integrated in the kernel and its flow
chart is illustrated in Fig.4.4. After receiving power, the kernel executes all
initializations routines including the TII initialization, memory clearing
processes, loading the TEDS, setting the channel data buffers, and status
registers. Subsequently, it enters into an infinite loop and goes through the
processes, as shown in the flow chart. The kernel program comprises several
software modules developed using the Embedded C language. Having
compiled, these modules have been downloaded into the 8 kB flash/EE
program memory of the ADuC812.
31
Figure 4.9 Flow Chart
32
i. Physical Layer
This layer is responsible for acquiring the real-time data from the sensors
array and the physical location, time and date of the sampled pollutants from
the GPS module. This information is then encapsulated into a data frame by the
microcontroller. The microcontroller then sends each frame to the ZIGBEE-
Modem through the RS-232 interface. The ZIGBEE-Modem, in turn, sends
each data frame to the Pollution-Server using the publicly available mobile
network and the Internet. The physical layer is implemented using ANSI C
language which is compiled to native microcontroller code. The software
implementing the physical layer is composed of five functions, namely: ports-
config() function, sensor-acquisition() function, GPS-read() function and Data-
frame function are called from a main program that is stored on and executed
by the Mobile-DAQ microcontroller.
Sensor-Acquisition () Function
Sensor-Acquisition () Function
33
GPS-Read () Function
The main goal of this project was to build an environmental air pollution
monitoring system (EAPMS) which is capable of measuring common air
pollutant concentrations using a semiconductor sensor array and ADC,
especially the Environmental standard. Having aimed towards this goal, several
hardware and software implementation modules such as the semiconductor
sensor array, the ADC, the AT89C51, and the Embedded C program have been
successfully developed. These modules were built using the guidelines
provided.
34
field measurement readings of CO, NO, and SO sensors were recorded at a
normal laboratory environment, while the sensor measurement was taken near
a photocopy machine.
35
4.9.2 Output for Pollution Monitoring in Keil ID
36
4.9.3 Output for Pollution Monitoring in Visual Basic
37
CHAPTER 5
CONCLUSION
The future work is GPS module and ZIGBEE modem will used in air
pollution monitoring systems. The GPS module provides the physical
coordinate location of the mobile-DAQ, time and date. The data will packs
them in a frame with the GPS physical location, time, and date. The frame is
subsequently uploaded to the ZIGBEE-Modem and transmitted to the
Pollution-Server via the public mobile network. A database server is attached
to the Pollution- Server for storing the pollutants level for further usage by
various clients such as environment protection agencies, and vehicle
registration authorities.
38
REFERENCES
39
8. Llobet.E, [ 2001] “Multicomponent gas mixture analysis using a single
tin oxide sensor and dynamic pattern recognition” IEEE Sensors, Vol. 1,
No. 3, p. 207.
40