Professional Documents
Culture Documents
Presented By: -
1.Abhishek Kumar Gupta – 15BEE0035
2.Abu Hamza Farooqui – 15BEE0003
3.Tehreem Shahid – 15BEE0083
B.Tech(Electrical) -6th Semester
Under the supervision of:
Prof. ZAINUL ABDIN JAFFERY
Signature _______________
ABSTRACT
This report involves the design and construction of an individual
control home automation system using RS232, GSM technology and
a microcontroller.
(i)
CONTENT
➢ Abstract……………………………………………………………………………(i)
➢ Chapter 1: Introduction….........................................................(1)
1.1 Automation………………………….………………………….(2)
1.1.1 Office Automation…………………………………...(3)
1.1.2 Building Automation………………………………..(3)
1.1.3 Power Automation…………………………………..(3)
1.1.4 Home Automation…………………………………...(4)
1.2 Aim………………………………………………………………….(4)
1.3 Objective…………………………………………………………(4)
1.4 Scope & Limitation…………………………………………..(5)
➢ Chapter 2: Literature Review………………………………………..…(6)
2.1 History of Home Automation………………………………..(6)
2.2 Home Automation Systems…………………………………..(6)
2.3 Home Automation Standards………………………………..(8)
2.3.1 INSTEON Standard………………………………….(8)
2.3.2 Z-wave Standard…………………………………….(9)
2.3.3 Universal Powerline Bus……………………….(12)
2.4 Home Automation Implementation Platform………(13)
2.4.1 Powerline Communication…………………...(13)
2.4.2 RS232……………………………………………………(14)
2.4.3 Bluetooth……………………………………………..(15)
2.4.4 Infrared………………………………………………..(16)
2.4.5 GSM……………………………………………………..(16)
➢ Chapter 3: Methodology………………………………………………..(19)
3.1 Preliminary Considerations………………………………..(19)
3.1.1 Selection of Implementation Platform…..(19)
3.2 System Design……………………………………………………(20)
3.2.1 PIC181-4455………………………………………...(21)
3.2.1.1 Central Processing Unit……………(22)
3.2.1.2 Random Access Memory (RAM)(22)
3.2.1.3 Read Only Memory (ROM)………(22)
3.2.1.4 Input & Output port (I/O)………..(23)
3.3 Relay………………………………………………………………….(23)
➢ Conclusion………………………………………………………………………..(25)
➢ References……………………………………………………………………………..(26)
CHAPTER 1
INTRODUCTION
Imagine how helpful it will be to be able to switch on your air
conditioning system ten minutes before you get home on a hot afternoon
in January. How about having a security system that will detect smoke,
excessive electrical power usage, burglar attempts and unauthorized
movements in your house and alert you? This I what home automation is
about and there is no end to its application. In fact, sophisticated home
automation systems are now being developed that can maintain an
inventory of household items, record their usage through an RFID (Radio
Frequency Identification) tag, and prepare a shopping list or automatically
order replacements.
1|Page
1.1 AUTOMATION
Automation is the use of control systems and information
technology to control equipment, industrial machinery and processes,
reducing the need for human intervention. In the scope of industrialization,
automation is a step beyond mechanization. Mechanization provided
human operators with machinery to assist them with the physical
requirements of work while automation greatly reduces the need for
human sensory and mental requirements as well (Wikipedia, 2009).
2|Page
in the world economy from agrarian to industrial in the 19th century and
from industrial to services in the 20th century.
1.1.1 Office automation
Office automation refers to the varied computer machinery and
software used to digitally create, collect, store, manipulate, and relay office
information needed for accomplishing basic tasks and goals. Raw data
storage, electronic transfer, and the management of electronic business
information comprise the basic activities of an office automation system,
office automation helps in optimizing or automating existing office
procedures.
3|Page
monitor different power units, relay their status and health information,
and even carry out fault detection and correction without human
interference.
1.2 Aim
The aim is to design and construct a home automation system that
will remotely switch on or off any household appliance connected to it,
using a microcontroller, voice dial on phone, and short message service for
feedback.
1.3 OBJECTIVE
The objective of this is to implement a low cost, reliable and scalable
home automation system that can be used to remotely switch on or off any
household appliance, using a microcontroller to achieve hardware
4|Page
simplicity, low cost short message service (SMS) for feedback and voice dial
from any phone to toggle the switch state.
5|Page
CHAPTER 2
Literature review
2.1 history of home automation
Home automation has been around since the world war 1 (1914), in
fact, the television remote (a simple home automation system) was
patented in 1893 (Wikipedia, 2009). Since then different home automation
systems have evolved with a sharp rise after the second World War. Its
growth has been through various informal research and designs by
technology enthusiasts who want a better way of getting things done at
home without much effort on their part. The systems evolved from one
that can automatically do routine chores like switch on and off security
lights, to more sophisticated ones that can adjust lighting, put the
television channel to favourite station and control doors.
6|Page
1.Individual Control System
These types were the first to hit the market in the early years, here
each device like the heater or the air conditioner will have an independent
control dedicated to it.
2.Distributed Control System
The main feature of these type of systems is emergency shut-down.
With this system you can pre-set or change the control parameters of
several similar devices, for example, the thermostat of several air
conditioners and their ON/OFF timings.
The types of home automation systems based on the carrier mode are:
1.Wireless Systems
Also available are wireless home automation systems that utilize
radiofrequency technology. They are often used to operate lights,
sometimes in conjunction with a hardwired lighting control system.
2.Hardwired Systems
Wired, or “hardwired” home control systems are the most reliable
and expensive. These systems can operate over high-grade
communications cable such as Category 5 or 5e, or their own proprietary
“bus” cable. That is why it is best to plan for them when a house is being
constructed. Hardwired systems can perform more tasks at a time and do
7|Page
them quickly and reliably, making them ideal for larger homes. They can
also integrate more systems in the home, effectively tying together indoor
and outdoor lighting, audio and video equipment, security system, even
the heating and cooling system into one control package that will be easy
and intuitive to operate.
8|Page
by Smart Labs Inc. INSTEON was developed, based on the X10 model, for
control and sensing applications in the home (Wikipedia, 2009).
• Appliance management.
9|Page
is developed by Sigma designs' Zensys, uses a low power RF radio
embedded or retrofitted into home electronics devices and systems, such
as lighting, home access control, entertainment systems and household
appliances. The technology has been standardized by the Z Wave Alliance,
an international consortium of manufacturers that oversees
interoperability between Z-Wave products and enabled devices
(Wikipedia, 2018).
10 | P a g e
easily turn into a strong drawback if licensing is required or frequency is
occupied. That's one of reason why competing 2.4 GHz technologies
became so popular.
• Energy Conservation
Z-Wave is envisioned as a key enabling technology for energy
management in the green home. As an example, Z Wave- enabled
thermostats are able to raise or lower automatically, based on commands
from Z-Wave enabled daylight sensors. Grouped scene controls can ensure
that unnecessary energy consumption is minimized by various all-off states
11 | P a g e
for systems throughout the home, such as lighting, appliances and home
entertainment systems.
12 | P a g e
generated by charging a capacitor to a high voltage and then discharging
that capacitor’s voltage into the powerline at a precise time. This quick
discharging of the capacitor creates a large “spike” (or pulse) on the
powerline that is easily detectable by receiving UPB devices wired large
distances away on the same powerline.
13 | P a g e
power is transmitted over high voltage transmission lines, distributed over
medium voltage and used inside buildings at lower voltages, powerline
communication can be applied at each stage.
2.4.2 RS232
14 | P a g e
functional unit of a data station that serves as a data source or a data sink
and provides for the data communication control function to be performed
in accordance with link protocol. While the DCE is communication link
control device that provides the clock signal and uses the female
connector. The DTE ends the communication line, whereas the DCE
provides a path for communication. In connecting a DTE device to a DCE a
straight pin-for-pin connection is used. However, to connect two DCEs or
DTEs the transmit and receive lines must be crossed. The DTE is usually a
computer or a terminal device and the DCE is usually a modem.
2.4.3 BLUETOOTH
15 | P a g e
a secure, globally unlicensed Industrial, Scientific and Medical (ISM) 2.4
GHz short-range radio frequency band. The Bluetooth specifications are
developed and licensed by the Bluetooth Special Interest Group (SIG). The
Bluetooth SIG consists of companies in the areas of telecommunication,
computing, networking, and consumer electronics.
2.4.4 INFRARED
2.4.5 GSM
16 | P a g e
communication in the world. It is used by over three billion people across
more than 212 countries and territories (Wikipedia,2018).
GSM basically provides voice call and short message service (SMS).
It operates as a cellular network that mobile phones connect to by trying
to search for cells in their immediate vicinity. The modulation used in GSM
is Gaussian minimum shift keying (GMSK), a kind of continuous-phase
frequency shift keying. In GMSK, the signal to be modulated onto the
carrier is first smoothed with a Gaussian low-pass filter prior to being fed
to a frequency modulator, which greatly reduces the interference to
neighbouring channels (adjacent channel interference). GSM networks
operate in the 900 MHz or 1800MHz frequency bands in most countries of
the world except in few countries like USA and Canada where 850 and 1900
MHz bands are used as the 900 and 1800 MHz bands were already
allocated. The GSM technology uses a 200 KHz radio frequency channels
that are time division multiplexed to enable up to eight users to access
each carrier.
17 | P a g e
Fig 2.1 Bluetooth Module Fig 2.2 GSM Module
18 | P a g e
CHAPTER 3
METHODOLOGY
In designing a home automation system, one or more suitable
platforms are used in order to build a reliable and flexible system that can
be easily operated and adapted for a new household appliance. Therefore,
for the purpose of this project some specific deliberate choices were made
on the type of platforms, hardware components and mode of operation of
the home automation system.
19 | P a g e
3.2 SYSTEM DESIGN
20 | P a g e
3.2.1 PIC18F4455
Figure 3.2 shows the interactions (data flow) between the main
microcontroller parts.
21 | P a g e
3.2.1.1 Central Processing Unit
The RAM, random access memory, is used to write and read data
values as a program runs. RAM is volatile meaning that if the power supply
to the microcontroller is removed, its contents are lost. All variables used
in a program are allocated from the RAM. The time to retrieve information
from RAM does not depend upon the location of the information because
RAM is not sequential, hence the term random access. Most small PIC
microcontrollers provide very little RAM which forces you to write
applications that use RAM wisely. Manipulating large data structures and
using pointers, re-entrant or recursive functions use large amounts of RAM
and are techniques which are generally avoided on microcontrollers
22 | P a g e
memory space to store program instructions it will execute when it is
started or reset. Program instructions must be saved in non-volatile
memory so that they are not affected by loss of power, the microcontroller
usually cannot write data to program memory space.
3.3 RELAY
Relay is a small electrical switch consisting of an electromagnet (coil), a
switch and a spring, that opens and closes under the control of another
electrical circuit. The spring holds the switch in one position, until a current
is passed through the coil, the coil generates a magnetic field which moves
the switch. Because the relay is able to control an output circuit of higher
power than the input circuit, it is often used to automatically switch large
electrical power devices (Wikipedia, 2018).
• Latching relay – This relay has two relaxed states (bistable) and it is
often referred to as 'impulse', 'keep' or 'stay' relay. When the current is
23 | P a g e
switched off, the relay remains in its last state. This is possible due to a
solenoid operating a ratchet and cam mechanism, or by having two
opposing coils with an over-center spring or permanent magnet to hold the
armature and contacts in position while the coil is relaxed. Hence, the first
pulse of current to the coil turns the relay on and the second pulse turns it
off.
• Reed relay – This relay has a set of contacts inside a vacuum or inert gas-
filled glass tube, which protects the contacts against atmospheric
corrosion. The contacts are closed by a magnetic field generated when
current passes through a coil around the glass tube. Reed relays are
capable of faster switching speeds than most other relay types, but have a
low switch current and voltage ratings.
24 | P a g e
CONCLUSION
It is evident from this work that an individual control home
automation system can be cheaply made from low-cost locally
available components and can be used to control multifarious
home appliances ranging from the security lamps, the television
to the air conditioning system and even the entire house lighting
system. And better still, the components required are so small and
few that they can be packaged into a small inconspicuous
container.
25 | P a g e
REFERENCES
Byte Craft (2002). First Steps with Embedded Systems. Byte Craft Limited,
Canada.
B & B Electronics (2003) RS-232 connections that work! DTE & DCE
FAQ. From http://www.bb-elec.com Retrieved on 29/03/2018
26 | P a g e
Wikipedia. Building Automation. From
http://en.wikipedia.org/wiki/Building_automation. Retrieved on
7/03/2018
27 | P a g e