2014-15
CHAPTER 1
INTRODUCTION
1.1 Introduction
Intelligent wireless sensor-based controls have drawn attention of the industry on
account of reduced costs, better power management, ease in maintenance, and effortless
deployment in remote and hard-to-reach areas. They have been successfully deployed in
many industrial applications such as maintenance, monitoring, control, security, etc. In
this research, the focus is on the issues of portability, reliability, flexibility and robustness
while using wireless connectivity in industrial applications such as instrumentation and
predictive maintenance, and to design a workable solution.
This project expanding the scope of the applications, investigate design choices
for the proposed system, and presents detailed experimental results of the
implementations with their analysis. The proposed Smart Sensor Platform is an attempt to
develop a generic platform with plug-and-play capability to support hardware interface,
payload and communication needs of multiple sensors, and actuators. An RF link
(ZigBee) facilitates communications in a point-to-point topology.
The design also provides means to update operating, monitoring parameters,
operational thresholds, and sensor and RF link specific firmware modules over-the-air. It
is composed of two main components a sensor-wireless hardware interface and system
integration framework, which facilitates the defining of interaction between sensors based
on process needs. The intelligence necessary to process the sensor signals, monitor the
functions against defined operational templates, and enable swapping of sensor and RF
link, resides on the microcontroller of the hardware interface.
A variety of industrial sensors (temperature, Gas detection, colour change and
light etc.) have been interfaced and successfully tested with the platform. The
organization of this project covers potential industrial applications to benefit by wireless
connectivity, and the supply chain management.
Page 1
2014-15
the best practices for radio frequency (RF) design in complex or harsh RF environments,
such as manufacturing, industrial, or power generation facilities.
The business drivers for this type of project can most often be associated with the
transition from conditioned-based monitoring to performance-based monitoring. In
addition, the data points are usually collected manually, and the lack of continuous data
does not allow for complex analytics or modelling.
Implementing wireless sensor sets create benefits across multiple areas. For
instance, scarce engineering resources can focus on data analysis rather than data
collection from disparate sources and can concentrate on few degrading trends rather than
every trend. Maintenance workers can reduce or entirely eliminate selected data
collection rounds through placement of wireless monitoring sensors. The need for deep
technical capabilities on-site and concerns about inconsistent diagnostic results due to
experience levels of individual employees can be greatly reduced.
By leveraging wireless technologies, operators can acquire critical component
monitoring data in significantly higher volumes, reduce staff impact of making collection
rounds, and focus those resources on data analysis and prognostics of issues. By
implementing a wireless infrastructure and using it for the rapid deployment of new
sensor types, operators can create significant advances in critical component monitoring.
DR.SMCE
Page 2
2014-15
system is also useful in taking some decisions. So let us see how the concept is
utilized.
DR.SMCE
Page 3
2014-15
CHAPTER 2
A Smart Sensor Interface for Industrial Monitoring using
ARM
Intelligent wireless sensor-based controls have drawn attention of the industry on
account of reduced costs, better power management, ease in maintenance, and effortless
deployment in remote and hard-to-reach areas. They have been successfully deployed in
many industrial applications such as maintenance, monitoring, control, security, etc. In
this research, the focus is on the issues of portability, reliability, flexibility and robustness
while using wireless connectivity in industrial applications such as instrumentation and
predictive maintenance, and to design a workable solution.
NODE SECTION
MONITORING SECTION
PC
ZIGBEE
DR.SMCE
Page 4
2014-15
The block diagram shows transmitter side of the system. As shown in the block
diagram, system needs, ARM LPC2129 controller, 2x16 LCD, buzzer, ZigBee module,
CO2 sensor and a colour sensor. LCD is used to display data, Buzzer is used to alert the
user in case of high temperature, co2 sensor is used to detect excessive carbon element
and colour sensor detects colours (only fundamental colours) finally ZigBee to transmit
all measured values. Functional description of system is as follows:
Initially, to measure the temperature and light values, temperature sensor, LDR
and is used. Temperature sensor will be connected to channel 0 of ADC and LDR will be
connected to Channel 1 of ADC module which is built in in controller. Digital conversion
of these two analog inputs will be done and result will collected and displayed on the
LCD. Later, status of CO2 sensor as well as COLOUR sensor will be checked and
displayed on the LCD. COLOUR sensor works in 3 different modes i.e., RED, GREEN
and BLUE mode. In RED mode, red colour will be having higher frequency than any
other colour, similarly in GREEN mode green colour will be having higher frequency and
in BLUE mode blue colour will be having higher frequency, thus based on frequencies
COLOUR sensor will detect the colours. If temperature goes higher than the specified
value a buzzer will become on for sometimes to alert user. Finally, all the measured data,
status of CO2 and colour will be transmitted through ZigBee using serial communication
with the baud rate of 9600.
In Receiver side values will be received through ZigBee and displayed on the
screen thus the system can be monitored.
Page 5
2014-15
automotive and industrial control applications as well as medical systems and faulttolerant maintenance buses. With a wide range of additional serial communications
interfaces, they are also suited for communication gateways and protocol converters as
well as many other general-purpose applications. The features of the lpc2129
microcontroller is given below:
16/32-bit ARM7TDMI-S microcontroller in a tiny LQFP64 package.
16 kB on-chip Static RAM.
128/256 kB on-chip Flash Program Memory. 128-bit wide interface/accelerator
enables high speed 60 MHz operation.
In-System Programming (ISP) and In-Application Programming (IAP) via onchip boot-loader software. Flash programming takes 1ms per 512 byte line. Single
sector or full chip erase takes 400ms.
Embedded ICE-RT interface enables breakpoints and watch points. Interrupt
service routines can continue to execute while the foreground task is debugged
with the on-chip Real Monitor software.
Embedded Trace Macro cell enables non-intrusive high speed real-time tracing of
instruction execution.
Two interconnected CAN interfaces with advanced acceptance alters.
Four channel 10-bit A/D converter with conversion time as low as 2.44ms.
Multiple serial interfaces including two UARTs (16C550), Fast
I 2 C (400
Page 6
2014-15
Page 7
2014-15
AHB peripherals are allocated a 2 megabyte range of addresses at the very top of
the 4 gigabyte ARM memory space. Each AHB peripheral is allocated a 16 kilobyte
address space within the AHB address space. LPC2129 peripheral functions (other than
the interrupt controller) are connected to the VPB bus. The AHB to VPB bridge interfaces
the VPB bus to the AHB bus. VPB peripherals are also allocated a 2 MB range of
addresses, beginning at the 3.5 GB address point. Each VPB peripheral is allocated a 16
kilobyte address space within the VPB address space.
The connection of on-chip peripherals to device pins is controlled by a Pin
Connection Block. This must be configured by software to fit specific application
requirements for the use of peripheral functions and pins.
LPC2129
Page 8
2014-15
back writes. The write-back buffer always holds the last data sent by software to the
SRAM. This data is only written to the SRAM when another write is requested by
software (the data is only written to the SRAM when software does another write). If a
chip reset occurs, actual SRAM contents will not reflect the most recent write request (i.e.
after a "warm" chip reset, the SRAM does not reflect the last write operation). Any
software that checks SRAM contents after reset must take this into account. Two identical
writes to a location guarantee that the data will be present after a Reset. Alternatively, a
dummy write operation before entering idle or power-down mode will similarly guarantee
hat the last data written will be present in SRAM after a subsequent Reset.
DR.SMCE
Page 9
2014-15
Operates from 4 to 30 V
Less than 60-A Current Drain
Low Self-Heating, 0.08C in Still Air
Nonlinearity Only C Typical
Low Impedance Output, 0.1 for 1 mA Load
DR.SMCE
Page 10
2014-15
Table 2.1
Page 11
2014-15
are
less
light-sensitive
devices
than
photodiodes
or
phototransistors: the two latter components are true semiconductor devices, while a
photo-resistor is a passive component and does not have a PN-junction. The photoresistivity of any photo-resistor may vary widely depending on ambient temperature,
making them unsuitable for applications requiring precise measurement of or sensitivity
to light.
Photo-resistors also exhibit a certain degree of latency between exposure to light
and the subsequent decrease in resistance, usually around 10 milliseconds. The lag time
when going from lit to dark environments is even greater than, often as long as one
second. This property makes them unsuitable for sensing rapidly flashing lights, but is
DR.SMCE
Page 12
2014-15
sometimes used to smooth the response of audio signal compression. The LDR
characteristic curve is shown below:
The cell resistance increases with increasing light intensity Light dependent
resisters have a particular property in that they remember the lighting conditions in which
they have been stored. This memory effect can be minimised by storing LDRs in light
prior to use. Light storage reduces equilibrium time to reach steady resistance values.
DR.SMCE
Page 13
2014-15
The surface resistance of the sensor Rs is obtained through effected voltage signal
output of the load resistance RL which series-wound. The relationship between them is
described:
Rs\RL = (Vc-VRL) / VRL
Fig. 2.4.2 shows alterable situation of RL signal output measured by using Fig 2.4.3
circuit output signal when the sensor is shifted from clean air to carbon Dioxide (CO2)
output signal measurement is made within one or two complete heating period (2.5
minute from high voltage to low voltage).Sensitive layer of MQ-7 gas sensitive
components is made of SnO2 with stability, so, it has excellent long term stability. Its
service life can reach 5 years under using condition. The feature of the MQ-7 is given by:
High sensitivity to carbon dioxide.
Stable and long life.
DR.SMCE
Page 14
2014-15
proper alarm point for the gas detector should be determined after considering the
temperature and humidity influence. The sensitivity adjusting program: a. Connect the
sensor to the application circuit. b. Turn on the power; keep preheating through electricity
over 48 hours. c. Adjust the load resistance RL until you get a signal value which is
respond to a certain carbon monoxide concentration at the end point of 90 seconds. d.
Adjust the another load resistance RL until you get a signal value which is respond to a
CO concentration at the end point of 60 seconds .
The application of MQ-&: They are used in gas detecting equipment for carbon
monoxide (CO) in family and industry or car.
Page 15
2014-15
Page 16
2014-15
Page 17
2014-15
DR.SMCE
Page 18
2014-15
Pin name
1
2
3
4
5
6
7
GND
OUT
S2
S3
VCC
VCC
S1
S0
LED
10
GND
Pin Description
Power supply ground.
Output frequency
Photodiode type selection inputs.
Photodiode type selection inputs.
Supply Voltage.2.7-5v
Supply Voltage.2.7-5v
Output frequency scaling selection
inputs.
Output frequency scaling selection
inputs.
LED CONTROL 1:ON,
0:OFF
Power supply ground
Output data can be collected at a rate of twice the output frequency or one data
point every microsecond for full-scale output. Period measurement requires the use of a
fast reference clock with available resolution directly related to reference clock rate.
Output scaling can be used to increase the resolution for a given clock rate or to maximize
resolution as the light input changes. Period measurement is used to measure rapidly
varying light levels or to make a very fast measurement of a constant light source.
Maximum resolution and accuracy may be obtained using frequencymeasurement, pulse-accumulation, or integration techniques. Frequency measurements
provide the added benefit of averaging out random- or high-frequency variations (jitter)
resulting from noise in the light signal. Resolution is limited mainly by available counter
registers and allowable measurement time. Frequency measurement is well suited for
slowly varying or constant light levels and for reading average light levels over short
periods of time. Integration (the accumulation of pulses over a very long period of time)
can be used to measure exposure, the amount of light present in an area over a given time
period.
DR.SMCE
Page 19
2014-15
2.6 ZIGBEE
Zigbee modules (Tarang modules) are designed with low to medium transmit
power and for high reliability wireless networks. The modules require minimal power and
provide reliable delivery of data between devices. The interfaces provided with the
module help to directly fit into many industrial applications. The modules operate within
the 2.4-2.4835 GHz frequency band with IEEE 802.15.4 baseband. A feature of Zigbee is
as follows:
Tarang can be interfaced with a micro controller or a PC using serial port with the
help of appropriate level conversion.
DR.SMCE
Page 20
General
Operating
Frequency
Indoor/Urban
range
Transmit
Power output
RF data rate
Antenna
Options
ZigBee is a low-
2014-15
19dbm Typical
250 Kbps
MMCX Connector, Chip
Antenna, Wire Antenna
Power
Supply Voltage
3.3 to
(vcc)
3.6v
Transmit
Current
120mA
Idle/receive
Current
65mA
Power-down
<10uA
Tarang
mesh network standard. The low cost allows the technology to be widely deployed in
wireless control and monitoring applications. Low power usage allows longer life with
smaller batteries. Mesh networking provides high reliability and more extensive range.
ZigBee chip vendors typically sell integrated adios and microcontrollers with between 60
KB and 256 KB flash memory.
ZigBee operates in the industrial, scientific and medical (ISM) radio bands: 868
MHz in Europe, 915 MHz in the USA and Australia and 2.4 GHz in most jurisdictions
worldwide. Data transmission rates vary from 20 kilobits/second in the 868 MHz
frequency band to 250 kilobits/second in the 2.4 GHz frequency band.
ZigBee is not intended to support power line networking but to interface with it at
least for smart metering and smart appliance purposes. Because ZigBee nodes can go
from sleep to active mode in 30 ms or less, the latency can be low and devices can be
responsive, particularly compared to Bluetooth wake-up delays, which are typically
around three seconds. Because ZigBee nodes can sleep most of the time, average power
consumption can be low, resulting in long battery life.
DR.SMCE
Page 21
2014-15
Unicast Network
Broadcast Network
Peer to peer Network or Point to point Network
In Unicast Network the communication happens only between the two modules with
respective source and destination addresses. In such network the destination address of
the TARANG 1 is source address to TARANG 2, and vice versa. For any effective
communication the source address and destination address should be configured properly.
Example:
TARANG 1
TARANG 2
Source address(MY)
0X100
0X2000
Destination
address(DA)
0X2000
0X1000
PARAMETER
Table2.6.1
In Broadcast Network only one module will broadcast the data to all other
modules, and then each individual module will respond to that. There is no
communication between the individual modules except Broadcasting Module. Consider
the fig, only master module will broadcast to all the slave modules and then each slave
module will respond to master module only. There is no communication between slave
modules. The source address of the master will be destination address to all the slaves and
destination address of the master is set to broadcast address 0xFFFF.
Example:
DR.SMCE
Page 22
2014-15
Table2.6.2
PARAMETER
Source
address(MY)
MASTER
0X0004
SLAVE 1
0X0001
SLAVE 2
0X0002
SL
0X
Destination
address(DA)
0XFFFF
0X0004
0X0004
0X
MASTER
SLAVE 1
SLAVE 2
SLAVE 3
In peer to peer network the modules in a network can communicate with any
module without any restrictions like master and slave. Each module will share the role of
both master and slave and communicate with each other. By default Tarang modules work
with this mode of network. The addressing is chosen based on the application needs.
Example:
Table2.6.3
PARAMETER
Source
DR.SMCE
TARANG1
0XFFFF
TARANG2
0XFFFF
Page 23
TARANG3
0XFFFF
2014-15
address(MY)
Destination
address(DA)
0XFFFF
0XFFFF
0XFFFF
It is likely that Zigbee will increasingly play an vital role in the future of computer
and communication technology. In terms of protocol stack size, Zigbee's 32 KB is about
one third of the stack size necessary in other wireless technologies.
DR.SMCE
Page 24
2014-15
The IEEE 802.15.4based ZigBee is designed for remote controls and sensors,
which are very many in number, but need only small data packets and, extremely low
power consumption for longer life.
approach to their respective application arenas. The ZigBee Alliance targets applications
across consumer, commercial, industrial and government markets worldwide. Unwired
applications are extremely sought after in many networks that are characterized by
copious nodes consuming minimum power and enjoying long battery lives. ZigBee
technology is designed to best suit these applications, for the reason that it enables lesser
costs of development and very swift market adoption. Properties of zigbee is given below:
Performance
Power Output:
1mW (0 dBm)
Indoor/Urban Range:
up to 100' (30m)
Outdoor/RF
Line-of-sight
Range:
up to 300' (100m)
RF Data Rate:
250 Kbps
up to 115.2 Kbps
Receiver Sensitivity:
-92 dBm
Networking
Spread Spectrum Type:
Networking Topology:
DR.SMCE
Page 25
2014-15
Error Handling:
Filtration Options:
Channel Capacity:
Addressing:
Encryption:
Power
Supply Voltage:
2.8 - 3.1 V
Transmit Current:
45 mA (@ 3.3 V)
Receive Current:
50 mA (@ 3.3 V)
<10 A
General
Frequency Band:
Physical Properties
Size:
Weight:
Antenna Options:
Operating Temperature:
-40 to 85 C (industrial)
Table2.6.4
There are a number of applications that can benefit from the ZigBee protocol:
Building automation networks, home security systems, industrial control networks,
remote metering and PC peripherals are some of the many possible applications.
Security systems & lighting controls.
Home automation & building control.
Home appliances & fire alarms.
Monitoring of remote systems.
Sensor data capture in embedded networks.
DR.SMCE
Page 26
2014-15
The main building block of any electronic system is the power supply, to provide
required power for their operation. For the microcontroller, audio amplifier, keyboard,
edge connector, +5V required. For driving the motor, +12V is required. The power supply
provides regulated output voltage of +5V, and non-regulated output voltage +12V.Three
terminal IC 7805 meets the requirement of +5V regulated. The secondary voltage from
the main transformer is rectified by diodes D1-D4 (Bridge rectifier) and is filtered by
capacitor C1 (2200 f). This unregulated dc voltage is supplied to input pin of regulator
IC. C2 (0.1 f) is an input bypass capacitor and C2 (f) is to improve ripple rejection.
The IC used are fixed regulator with internal short circuit current limiting and thermal
shut down capability.
DR.SMCE
Page 27
2014-15
Item
Power voltages
Input H-level
voltage
Input L-level
DR.SMCE
Symbo
l
Vdd
standard
value
min typ. max
4.5 5
5.5
VIH
VIL
2.2
0.3
V
V
Condition
Page 28
Vdd
0.6
Unit
voltage
Output H-level
voltage
Output L-level
voltage
I/O leakage
current
Supply current
LCD operating
voltage
VOH
IOH
2014-15
2.4
VOL
V
0.4
IIL
Idd
1
2
a
mA
VLCD
11
Table2.8.1
Pin Description
Pin
No
1
Function
Name
Ground (0V)
Ground
DR.SMCE
Page 29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2014-15
Vcc
VEE
Register
Select
Read/write
Enable
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
Led+
Led-
DR.SMCE
Page 30
2.9.2
UPLOADER: Proload
DR.SMCE
Page 31
2014-15
2014-15
This is the programmer which we have used to dump the hexadecimal code into
the Microcontroller which we have generated using Kiel Micro vision Software.
Page 32
DR.SMCE
Page 33
2014-15
DR.SMCE
Page 34
2014-15
DR.SMCE
Page 35
2014-15
2014-15
CHAPTER 3
METHODOLOGY AND IMPLEMENTATION
In this project we implement Different sensors for the different functions like CO2
sensor, LED sensor, Temperature sensor, Colour Sensor. The following shows flow
diagrams of sensors used in this project.
Temperature Sensor Working flow diagram:
DR.SMCE
Page 36
DR.SMCE
Page 37
2014-15
DR.SMCE
Page 38
2014-15
DR.SMCE
Page 39
2014-15
2014-15
V C C _3 .8
ZIGBEE
+5V
R1
U 3A
U 4A
74LS14
16X2
LCD
R2
R
16
4 5 6 7 8 9 1011121314
15
74LS14
+5V
PO.8
PO.9
LM 35
PO.0
PO.1
PO.2
PO.3
PO.4
PO.5
PO.6
PO.7
+5V
LDR
R6
R
PO.10
P1.27
P1.28
P1.29
R7
R
P1.30
L
P
C
2
1
2
9
10k
S2
S3
S0
S1
PO.4
SSA_PLL
OUT
+ 1 .8 v
+ 3 .3 v
V3_1
V3_2
V3_3
V3A
VSS1
VSS2
VSS3
VSS4
VSS5
VSSA
XTAL1
XTAL2
TD1
+ 3 .3 v
+5V
PO.12
PO.13
PO.14
PO.15
V18
V18
V18A
+5V
CO2
SENSOR
P0.21
P0.22
P1.16
PO.17
PO.18
PO.19
PO.20
PO.22
PO.21
PO.23
PO.24
PO.25
PO.26
PO.27
PO.28
PO.29
PO.30
RESET
Y1
C1
DR.SMCE
Page 40
C R YS TAL
C2
COLOR
SENSOR
2014-15
CHAPTER 4
RESULTS
4.1 An Overview of A Smart Sensor Interface for Industrial Monitoring
using ARM
Model:
Fig4.1 Model A SMART SENSOR INTERFACE FOR INDUSTRIAL MONITORING USING ARM
The
model
A SMART SENSOR
INTERFACE
FOR
INDUSTRIAL
MONITORING USING ARM uses lpc-2129 LM35, LCD screen, COLOUR sensor,CO
sensor zigbee and buzzer.
DR.SMCE
Page 41
2014-15
MONITORING SECTION:
This above result shows the Sensors result, showing temperature, CO, Light intensity and
Colour.
DR.SMCE
Page 42
This fig 4.5 shows the result of senor parameters, wireless monitored through PC
DR.SMCE
Page 43
2014-15
2014-15
CHAPTER 5
Portable and can be changed as per our requirement unlike the Wired ones.
5.4 DISADVANTAGES
DR.SMCE
Page 44
5.5 APPLICATIONS
Home Control
Industrial control
Building automation
Environment monitoring.
DR.SMCE
Page 45
2014-15
2014-15
REFERENCE
[1] The Internet-of-Things Architecture (IoT-A) project Sep 2010-Nov 2013. Available
online: http://www.iot-a.eu/public. (Accessed on October 2013].
[2] D. Guinard, A Web of Things Application Architecture Integrating the Real-World into
the Web, PhD thesis, ETH Zurich, 2011.
[3] Web-of-Objects (WoO)-ITE2 project Jan 2012Dec 2014. Available online:
http://www.itea2.org/project/index/view?project=10097. (accessed on 20 July 2013).
[4] Vlacheas, P.; Giaffreda, R.; Stavroulaki, V.; Kelaidonis, D.; Foteinos, V.; Poulios, G.;
Demestichas, P.; Somov, A.; Biswas, A.R.; Moessner, K. Enabling smart cities through a
cognitive management framework for the Internet of Things. IEE Communications
Magazine 2013, 51, 102- 110.
[5] Zia Ush Shamszaman, An Implementation of Web of Objects (WoO) Based Context
aware Emergency Management Systems, Masters thesis, CICE, HUFS, Korea, 2013
[6] Tomic, S., Fensel, A., and Schwanzer, M., Veljovic, M.K. and Stefanovic, M. (2012):
Semantics for energy efficiency in smart home environments, In Applied Semantic Web
Technologies,
[7] Tang, Y. and Meersman, R. (2011): Towards Directly Applied Ontological C onstrains
i n a S emantic D ecision T able, i n proc. o f 5 the International Symposium (RuleML
2011) Springer LNCS 7018, pp. 193-207, F. Olken, M. Palmirani, D. Sottara (eds.), Nov.
3-5, 2011, Ft. Lauderdale, FL, USA
[8] Sestito, S ., L eung, S ., D illon, T .S. ( 1991) S hort t erm l oad f orecasting using an
adaptive neural network, Journal of Electrical Power and Energy Systems, vol. 13(4), pp.
186-192.
[9] Szkuta, B.R., Sanabria, L.A., Dillon, T.S. (1999) Electricity price shortterm
forecasting using Artificial Neural Networks. In IEEE transactions on power systems,
14(3):851-857.
DR.SMCE
Page 46