Documente Academic
Documente Profesional
Documente Cultură
GUIDE
(Prof Gerardine Immaculate Mary)
The thesis is satisfactory / unsatisfactory
Internal Examiner
External Examiner
Approved by
Program Chair
ABSTRACT
This project involves the design and construction of an individual control home
automation system using a microcontroller. Home automation is the automatic or
semi-automatic control and monitoring of household appliances and residential house
features like doors, gate and even the windows even monitor temperature and light.
This project is a demonstration of how to design and build a multipurpose remotely
controlled system that can switch OFF and ON any electrical household appliance
(including the security light), controls a relay for the automatic switching on and off
of the appliance. The results of this project show that a microcontroller is a very
powerful device for building smart electronic devices that can automatically control
electrical appliances, with little circuitry complexities and components.
ACKNOWLEDGEMENT
Place: Vellore
Date:
CONTENTS
Chapter
Page
CERTIFICATION...................................................................................i
ABSTRACT..............................................................................................ii
ACKNOWLEDGEMENT.....................................................................iii
CHAPTER ONE....................................................................................................1
INTRODUCTION.................................................................................................1
AUTOMATION.....................................................................................................3
OFFICE AUTOMATION......................................................................................4
BUILDING
AUTOMATION.............................................................................................4
POWER AUTOMATION.....................................................................................5
HOME AUTOMATION.......................................................................................6
PROJECT AIM......................................................................................................6
PROJECT OBJECTIVE.........................................................................................7
PROJECT SCOPE AND LIMITATION................................................................7
PROJECT JUSTIFICATION.................................................................................7
REPORT LAYOUT...............................................................................................8
CHAPTER TWO.....................................................................................................9
LITERATURE REVIEW.........................................................................................9
HISTORY OF HOME AUTOMATION..................................................................9
HOME AUTOMATION SYSTEMS........................................................................9
HOME AUTOMATION STANDARDS.................................................................10
INSTEON STANDARDS........................................................................................12
EUROPEAN HOME SYSTEMS (EHS) PROTOCOL............................................14
ZIGBEE STRANDADS...........................................................................................14
HOME AUTOMATION IMPLEMENTATION PLATOFORM....17
VON-NEUMANN ARCHITECTURE....................................................................17
HARVARD ARCHITECTURE...............................................................................18
CHAPTER THREE..................................................................................................20
METHODOLOGY .................................................................................................20
PRELIMINARY
CONSIDERATIONS...............................................................................................20
SELECTION OF HARDWARE COMPONENT....................................................20
SYSTEM DESIGN..................................................................................................22
LIST OF FIGURES
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 is 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. Home automation has made it
possible to have what is often referred to as a 'smart home', a home that
can detect and identify you, automatically adjust the lighting to your
predefined taste, open doors automatically, play your favourite music,
water your flowers in the morning, switch on the security lights at night
and switch them off in the morning, heat water for bathe and tea, stream
to you anywhere in the world via the internet a live video of what is
happening in and around your house. It makes it possible to link lighting
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.
Automation plays an increasingly important role in
the global economy and in daily experience. Engineers strive to combine
automated devices with mathematical and organizational tools to create
complex systems for a rapidly expanding range of applications and
human activities. Many roles for humans in industrial processes presently
lie beyond the scope of automation. Human-level pattern recognition,
language recognition, and language production ability are well
beyond the capabilities of modern mechanical and computer systems.
Tasks requiring subjective assessment or synthesis of complex sensory
data, such as scents and sounds, as well as high-level tasks such as strategic planning,
currently require human expertise. Automation has had a notable impact in a wide
range of highly visible industries beyond manufacturing. Once ubiquitous telephone
operators have been replaced largely by automated telephone switchboards and
BUILDING AUTOMATION
Building automation describes the functionality provided by the control
of a building. The control system is a computerized, intelligent network
of electronic devices, designed to monitor and control the mechanical and
lighting systems of a building. A building automation system is an
example of a distributed control system.
HOME AUTOMATION
Home automation may designate an emerging practice of increased
automation of household appliances and features in residential dwellings,
particularly through electronic means that allow for things impracticable,
overly expensive or simply not possible in recent decades. Home
automation includes all that a building automation provides like climate
controls, door and window controls, and in addition control of multimedia
home theatres, pet feeding, plant watering and so on. But there
exists a difference in that home automation emphasizes more on comforts
through ergonomics and ease of operation.
PROJECT AIM
The aim of this project is to design and construct a home automation
4system that will automatically switch on or off any household appliance
connected to it, using a microcontroller.
PROJECT OBJECTIVE
The objective of this project 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 simplicity.
REPORT LAYOUT
The entire project is composed of five chapters, each covering a section of the work as
summarized below:
Chapter one gives an introduction to automation as a whole and the
different types of automation.
Chapter two covers an extensive literature review of previous works on
home automation systems, the different established standards and
protocols, and the platforms over which home automation can be
implemented.
Chapter three highlights the project methodology, giving reasons for choice
of specific platforms and components, and also, comprehensive details on
both hardware components and communication services used.
Chapter four is on the project design and implementation with clear
practical details of the project design, construction, testing, microcontroller coding
and debugging. Special emphasis is also made on the flexibility and
scalability of the project work with real life illustration.
Chapter five is on the conclusion based on the
project work with emphasis on the reliability, maintainability and
flexibility of the design.
CHAPTER 2
LITERATURE REVIEW
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. It's 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 favorite station and control doors.
10
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.
Wired, or hardwired home control systems are the most reliable and
expensive. These systems can operate over high-grade
communications cable, 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 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.
INTERNET PROTOCOL CONTROL SYSTEMS
Internet Protocol (IP) control automation system uses the internet,
gives each device under its control an Internet Protocol address, and
creates a local area network (LAN) in the home. Hence, the home can
be interacted with over the internet with possibility of live video streaming and
real-time control
11
12
Together using the powerline and/or radio frequency (RF). All INSTEON
devices are peers, meaning each device can transmit, receive, and repeat
any message of the INSTEON protocol, without requiring a master
controller or complex routing software. INSTEON is not only an effective
system for connecting lighting switches and loads without extra wiring,
but it also forms the basis for a more sophisticated home automation
network.
The following are the possible applications of INSTEON:
Scene and remote control lighting
Security alarm interfaces and sensors,
Home sensors (e.g. water, humidity, temperature),
Access control (e.g. door locks),
Heating, ventilating and air cooling (HVAC) control,
Audio-video control, and
Appliance management.
13
14
15
16
17
HARVARD ARCHITECTURE
This Architecture implements separate memory areas for program
instructions and data. There are two or more internal data buses which
allow simultaneous access to both instructions and data. The CPU
fetches instructions on the program memory bus. If the fetched
instruction requires an operation on data memory, the CPU can fetch
the next program instruction while it uses the data bus for its data
operation. This speeds up execution time at the cost of more hardware
complexity. Most modern microcontrollers have the harvard
architecture.
18
POWER SUPPLY
Power supply system actually Convert 9 volt to constant 5 volt.
It is basically apply on the 7805 IC is a 3 pin voltage regulator.
The Input voltage from 7volt to 25volt.
Using 2 capacitor for fast charging and discharging.
INFRARED SENSOR
It actually detect the object which will come across it. It is a 3 pin
module connected to 5volt, ground , and output pin, we use this in
many application burglar alarm , object detection and itc
TEMPERATURE SENSOR
it is also a 3 pin device module operated between 2.7 volt to 5.5 volt.
First pin is connected to 5 volt and second to ground and third one to
Output data, third one pin will give the digital value.
19
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.
PRELIMINARY CONSIDERATIONS
Before the actual design of the project work, specific deliberate choices in
selection of appropriate implementation platforms and hardware
components were made. Priority was given to low cost availability,
reliability, flexibility and simplicity in all these selections.
20
SYSTEM DESIGN
Her instead of using 8051 we are using ATMELs atmega8 microcontroller.
here
Instead of Using relay device we are using led for prototyping.
21
ATMEGA8 MICROCONTROLLER
22
The ADC Noise Reduction mode stops the CPU and all I/O modules except
asynchronous timer and ADC, to minimize switching noise during ADC conversions.
In Standby mode, the crystal/resonator Oscillator is running while the rest of the
device is sleeping. This allows very fast start-up combined with low-power
consumption .The device is manufactured using Atmels high density non-volatile
memory technology. The Flash Program memory can be reprogrammed In-System
through an SPI serial interface, by a conventional non-volatile memory programmer,
or by an On-chip boot program running on the AVR core. The boot program can use
any interface to download the application program in the Application Flash memory.
Software in the Boot Flash Section will continue to run while the Application Flash
Section is updated, providing true Read-While-Write operation. By combining an 8bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the
Atmel ATmega8 is a powerful microcontroller that provides a highly-flexible and
cost-effective solution to many embedded control applications. The ATmega8 is
supported with a full suite of program and system development tools, including C
compilers, macro assemblers, program simulators, and evaluation kits.
23
24
25
PIN DIAGRAM
27
ATMEGA8 PROGRAMMING
I use
1. Avr studio 4.0
2. Avr dude for hex file upload in microcontroller
3. Programming is done in simple c language.
28
29
TEMPERATURE SENSOR
The LM35 is an integrated circuit sensor that can be used to measure temperature with
an electrical output proportional to the temperature (in oC)
The LM35 does not require any external calibration or trimming and maintains
an accuracy of +/-0.4 oC at room temperature and +/- 0.8 oC over a range of
0 oC to +100 oC.
30
31
POWER SUPPLY
Power supply system actually Convert 9 volt to constant 5 volt.
It is basically apply on the 7805 IC is a 3 pin voltage regulator.
The Input voltage from 7volt to 25volt.
Using 2 capacitor for fast charging and discharging.
32
CHAPTER 4
DESIGN AND IMPLEMENTATION
The design of this project involved coupling several hardware components.
CIRCUIT DIAGRAM
33
34
TEMPERATURE SENSOR
35
LDR CIRCUIT DIAGRAM
Light dependent resistor (LDR)
When ever the light falls on the LDR, the Resistivity of the LDR
become low.
1.Light intensity increases resistivity Decreases and vice-versa
2.One end of the LDR is connected with ADC0 pin no. 23 and another to
the ground. And one 1 kohm R1 from input LDR pin side to ground.
IR CIRCUIT DAGRAM
1.IR LED is connected in Forward bias And Grounded with 1kohm(R3) resistor.
2. Photodiode is in Reverse bias.
3.In operational Amplifier ,positive terminal is connected between
photodiode positive terminal and 10 kohm resistor(R2) which is grounded
4.Output which is on pin number 1 of op-amp connected to the ADC5
28th pin of atmega8 uc.
5. Pin number 4 is grounded
6. Pin number 8 is in 5 volt.
7. because of sensitivity we make photodiode in the reverse bias.
36
37
PROGRAMMING IN MICROCONTROLLER PROGRAM
#include <avr/io.h>
#include <avr/interrupt.h>
#include<util/delay.h>
#include"lcd.h"
#include"lcd.c"
#define F_CPU 1000000UL
char buffer[5];
char ligh[5];
char incom[5];
int ReadADC(uint8_t ch)
{
//Select ADC Channel ch must be 0-7
ch=ch&0b00000111;
ADMUX|=ch;
//Start Single conversion
ADCSRA |= (1<<ADSC);
//Wait for conversion to complete
while(!(ADCSRA&(1<<ADIF))); //ADC Interrupt Flag//Clear ADIF by writing one to it
//Note you may be wondering why we have write one to clear it
//his is standard way of clearing bits in io as said in datasheets.
//The code writes '1' but it result in setting bit to '0' !!!
ADCSRA|=(1<<ADIF);
return(ADC);
void main()
{
lcd_init(LCD_DISP_ON);
lcd_clrscr();
lcd_puts("tem:");
initADC();
int k,t,m,n;
int x,s;
//int left_sensor=0, right_sensor=0;
DDRB = 0xFF;
while(1)
{
initADC();
lcd_gotoxy(0,0)
38
lcd_puts("tem:");
lcd_gotoxy(4,0);
x=ReadADC(1);
t=(int)(1000.0*5.0*(((float)x)/1023.0));
k=(int)t/10;
sprintf(buffer,"%4d",k);
lcd_puts(buffer);
if(k>=24&&k<29)
PORTB=0b00000001;
initADC();
lcd_gotoxy(0,1);
lcd_puts("lig:");
lcd_gotoxy(4,1);
s=ReadADC(0);
m=(int)(1000.0*5.0*(((float)s)/1023.0));
n=(int)m/100;
sprintf(ligh,"%4d",n);
lcd_puts(ligh);
if(n>=0&&n<30)
PORTB=0b00000010;
else
PORTB=0b00000000;
initADC();
lcd_gotoxy(9,0);
lcd_puts("IR:");
lcd_gotoxy(11,0);
int u=ReadADC(5);
int v=(int)(1000.0*5.0*(((float)u)/1023.0));
int w=(int)v/100;
sprintf(incom,"%4d",w);
lcd_puts(incom);
if(w>=20&&w<=40)
PORTB=0b00000100;
else
PORTB=0b00000000;
39
CHAPTER 5
CONCLUSION
It is evident from this project 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 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.
The designed home automation system was tested a number of times and
certified to control different home appliances used in the lighting system, air
conditioning system, heating system, home entertainment system and many more
Finally, this home automation system can be also implemented over
Bluetooth, Infrared and WAP connectivity without much change to the design and yet
still be able to control a variety of home appliances. Hence, this system is scalable and
flexible.
REFERENCES
http://en.wikipedia.org/wiki/Home_automation
http://www.atmel.com/devices/atmega8.aspx
http://www.ijarcsse.com/docs/papers/Volume_3/4_April2013/V3I4-0192.pdf
http://www.ijarcce.com/upload/2013/july/32-o-sweatha%20swamy%20advance%20home%20automation%20using%20fpga.pd
http://www.enggjournals.com/ijet/docs/IJET13-05-02-176.pdf
40