Professional Documents
Culture Documents
GSM Based Home Automation
GSM Based Home Automation
SUBMITTED BY :
VENU VEDANT (13102406)
SUBMITTED TO :
SUPERVISOR
Dr. Manish Kumar
EXAMINER
Dr. Rajesh Kumar Dubey
INDEX
Sr. No.
TITLE
PAGE No.
1.
Certificate
2.
Acknowledgement
3.
Aim
4.
Introduction
5.
6.
Project Approach
7.
PIC 16F877A
10
8.
12
9.
Block Diagram
14
10.
15
11.
Program Code
17
12.
SWOT Analysis
20
13.
PCB Design
21
14.
Conclusion
23
15.
Reference
24
CERTIFICATE
This is to certify that the project titled GSM Based Home Automation submitted by VENU
VEDANT (13102406) in partial fulfillment for the award of degree of B.TECH (ECE) of
Jaypee Institute of Information Technology, Noida Sec-62 has been carried out under my
supervision. This work has not been submitted partially or wholly to any other University or
Institute for the award of this or any other degree or diploma.
Signature of Supervisor
Name of Supervisor:
Date
..
Dr. Manish Kumar
ACKNOWLEDGEMENT
We have put tremendous efforts in making this project. However, it would not have been possible
without the kind support and help of our mentor respected Dr. Manish Kumar. We are grateful to
him for providing every possible help.
We also extend our grateful thanks to Dr. Rajesh Kumar Dubey for evaluating our project.
..
VENU VEDANT(13102406)
..
AIM
The project GSM based Control System as the title suggests is aimed to construct a control
system that enables the complete control of the interface on which it is based. General objectives
of the project are defined as;
a. To co-ordinate appliances and other devices through Short Message Service (SMS).
b. To effectively receive and transmit data via SMS
c. To eliminate the need of being physically present in any location for tasks involving the
operation of appliances within a household/office.
d. Minimize power and time wastage.
__________________
__________________
Signature of Student
Signature of Supervisor
Name
Name
Date
Date
INTRODUCTION
GSM based Control System implements the emerging applications of the GSM Technology.
Using GSM networks, a control system has been proposed that will act as an embedded system
which can monitor and control appliances and other devices locally using built-in input and
output peripherals.
Remotely the system allows the user to effectively monitor and control the house Appliances and
equipments via the mobile phone set by sending commands in the form of SMS messages and
receiving the appliances status. The main concept behind the project is receiving the sent SMS
and processing it further as required to perform several operations. The type of the operation to
be performed depends on the nature of the SMS sent. The principle in which the project is based
is fairly simple. First, the sent SMS is stored and polled from the receiver mobile station and then
the required control signal is generated and sent to the intermediate hardware that we have
designed according to the command received in form of the sent message.
We have selected a particular Nokia mobile set (Nokia 2700) for our project. The messages are
sent from the mobile set that contain commands in written form which are then processed
accordingly to perform the required task. A microcontroller based system has been proposed for
our project. There are several terminologies that are used extensively throughout this project
report.
GSM (Global System for Mobile Communications): It is a cellular communication standard.
SMS (Short Message Service): It is a service available on most digital mobile phones that permit
the sending of short messages (also known as text messaging service).
COMPONENTS REQUIRED
PIC 16F877A
Self Made Development Board
Relay
L293D
GSM Module
Capacitors
Resistors
Connector Pins
Jumper Wires
Bulb
Holder
Copper Board
Electric Wires
LED
SOFTWARE REQUIRED
Mikro C
Proteus (for simulation)
Pic Flash
Ares(for PCB Designing)
PROJECT APPROACH
PIC16F877A
Features
Ultra small size (22x22x3 mm), lightweight (3.2 g) and easy to integrate
Full RS232 on CMOS level with flow control (RX, TX, CTS, RTS, CTS, DTR, DSR,
DCD, RI)
RELAY
BLOCK DIAGRAM
Assuming that the control unit is powered and operating properly, the process of Controlling a
device connected to the interface will proceed through the following steps;
The remote user sends text messages including commands to the receiver.
GSM receiver receives messages sent from the user cell phone.
GSM receiver decodes the sent message and sends the commands to the microcontroller.
Microcontroller issues commands to the appliances and the devices connected will switch
ON/OFF.
PROGRAM CODE
int j;
Usart_Print(char arr[])
{
j=0;
while(arr[j]!='\0')
{
Usart_Write(arr[j]);
j++;
}
}
char mgs []="AT+CMGS=";
char num []="9162050111";
char mas []="FIRE at your HOME";
void main()
{
Usart_init(9600);
delay_ms(1000);
trisb=0;
Usart_Print("AT+CMGF=1");
Usart_Write(0x0D);
Usart_Write(0x0A);
delay_ms(100);
Usart_Print("AT+CMGD=1");
Usart_Write(0x0D);
Usart_Write(0x0A);
delay_ms(100);
Usart_Print(mgs);
Usart_Write(0x22);
Usart_Print(num);
Usart_Write(0x22);
Usart_Write(0x0D);
Usart_Print(mas);
Usart_Write(0x1A);
Usart_Write(0x0D);
Usart_Write(0x0A);
delay_ms(1000);
while(1)
{
while(!usart_data_ready());
if(usart_read()==0x53)
{
Usart_Print("AT+CMGR=1");
Usart_Write(0x0D);
Usart_Write(0x0A);
}
if(usart_read()==0x6E)
{
portb.f0=1;
portb.f1=1;
portb.f2=1;
delay_ms(1500);delay_ms(1500); delay_ms(1500);
portb.f3=0;
Usart_Print("AT+CMGD=1");
Usart_Write(0x0D);
Usart_Write(0x0A);
}
if(usart_read()==0x66)
{
portb.f1=0;
portb.f0=0;
portb.f2=0;
portb.f3=1;
delay_ms(1500); delay_ms(1500); delay_ms(1500);
portb.f4=1;
Usart_Print("AT+CMGD=1");
Usart_Write(0x0D);
Usart_Write(0x0A);
}
}}
OUTPUT IN PROTEUS
SWOT ANALYSIS
STRENGTH:
Global System for Mobile is easy to access and use, portable, and has a global range.
Play an important role is saving the time and money of peoples.
Has a lower power consumption and low operational cost.
WEAKNESSES:
One problem that exists is that if there is no network coverage in the SIM inserted in
GSM module the whole system is useless.
User have to choose from the defined letter/word to text to operate the appliances.
OPPORTUNITIES:
THREATS:
If someone knows the number in the GSM he can easily gain control over the appliances.
PCB DESIGN
DESIGN MODE
3D VISUALISATION MODE
CONCLUSION
The project we have undertaken has helped us gain a better perspective on various aspects
related to our course of study as well as practical knowledge of electronic equipments and
communication. We became familiar with software analysis, designing, implementation
concerned with our project. The extensive capabilities of this system are what make it so
interesting. From the convenience of a simple cell phone, a user is able to control and monitor
virtually any electrical devices. This makes it possible for users to rest assured that their
belongings are secure and that the television and other electrical appliances was not left running
when they left the house to just list a few of the many uses of this system. The end product will
have a simplistic design making it easy for users to interact with. This will be essential because
of the wide range of appliances and knowledge of texting that homeowners have.
REFERENCES
Conference on Life Science and Technology IPCBEE vol.3 (2011) (2011) IACSIT
Press, Singapore
V.Sivasankaran1, S. Muruganand2, Azha.Periasamy3,advanced embedded system Assisted
GSM and RFID based smart School management, International Journal of Advanced
2013, Coimbatore.
T. Murugan, Azha.Periasamy, S. Muruganand,Embedded based Temperature
Monitoring Systems using GSM, International Journal of ComputerApplications (0975