Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

DEPARTMENT OF ELECTRONIC AND COMMUNICATION

JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY, NOIDA

MINOR-I REPORT SUBMISSION

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.

Components and Software

6.

Project Approach

7.

PIC 16F877A

10

8.

GSM and Relay

12

9.

Block Diagram

14

10.

Software Requirement Analysis

15

11.

Program Code

17

12.

SWOT Analysis

20

13.

PCB Design

21

14.

Conclusion

23

15.

Reference

24

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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.

Signature of the student


Name of Student:
Date

..
VENU VEDANT(13102406)
..

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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).

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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)

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

PROJECT APPROACH

Plan survey and get required components.


Decision on the type of basic microcontroller to use (PIC 16F877A).
Designing PCB for setting up all the hardware components on them.
Testing the PCB so that all the connections are done accurately.
Establishing the GSM Module connection with the Microcontroller.
Coding for the various components using Mikro C software.
Tweaking the coding of individual components so that everything works in sync.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

PIC16F877A

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

Features

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

GSM (SIM 300)

The SIM300 is a complete Tri-band GSM solution in compact plug-in module.


The GSM
modem consists of SIM card named as a SIM 300 is fixed with the modem. TheSIM300 offers
GSM/GPRS for performing operations like voice, SMS, Data and also Fax. It is small in size to
handle easily and perfectly in any device. AT commands also can be easily used because it has a
TTL interface with microcontrollers, computers and also other device. AT commands are used to
send and received SMS. SIM 300 works with 3.4V to 5V
The GSM module offers the advantages as below:

Ultra small size (22x22x3 mm), lightweight (3.2 g) and easy to integrate

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

Low power consumption

Full RS232 on CMOS level with flow control (RX, TX, CTS, RTS, CTS, DTR, DSR,
DCD, RI)

High performance on low price.

RELAY

A relay is an electrically operated switch. Many relays use an electromagnet to mechanically


operate as a switch but other operating principles are also used, such as solid-state relays. Relays
are used where it is necessary to control a circuit by a low-power signal (with complete electrical
isolation between control and controlled circuits) or where several circuits must be controlled by
one signal. Relays were used extensively in telephone exchanges and early computers to perform
logical operations.
A type of relay that can handle the high power required to directly control an electric motor or
other loads is called a contactor. Solid-state relays control power circuits with no moving parts,
instead using a semiconductor device to perform switching. Relays with calibrated operating
characteristics and sometimes multiple operating coils are used to protect electrical circuits from
overload or faults; in modern electric power systems these functions are performed by digital
instruments still called "protective relays".

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

BLOCK DIAGRAM

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

SOFTWARE REQIREMENT ANALYSIS

PROTEUS has two simulation features namely ISIS and ARES.

In ISIS software we designed our circuit by following steps:


1. We selected our components from ISIS library.
2. Placed all the components in a new file.
3. Then we made all the connections according to our circuit diagram.

FIG: PROTEUS MODEL

In ARES we designed hardware model of our project by following steps:


1. We selected our components from ARES library.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

2. Placed all the components in a new file.


3. Then we made all the connections according to our circuit diagram.
4. Then we converted it to pdf file.
NOTE: We used the ARES to design our hardware model.

PROGRAM CODE

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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);

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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);
}
}}

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

OUTPUT IN PROTEUS

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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:

Country wide implementation in homes, offices and even industries.


We could work on network issues to provide a smooth operation.

THREATS:
If someone knows the number in the GSM he can easily gain control over the appliances.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

PCB DESIGN

DESIGN MODE

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

3D VISUALISATION MODE

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

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.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

REFERENCES

G.raghvendra,SMS based wireless home appliance control system 2011 International

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

Research in Electrical, Electronics and Instrumentation Engineering Vol. 2, Issue 7, July

2013, Coimbatore.
T. Murugan, Azha.Periasamy, S. Muruganand,Embedded based Temperature
Monitoring Systems using GSM, International Journal of ComputerApplications (0975

8887)Volume 58 No.19, November 2012, Coimbatore.


Sunithaa.J, Sushmitha.D,Embedded Control System for LPG Leak Detection and
Prevention, International Conference on Computing and Control Engineering (ICCCE

2012), 12 & 13 April, 2012,


Saurabh sankule,Beginners guide to embedded system and robotics
Theodore S. Rappaport, wireless communication, ISBN 978-81-317-3186-4
PIC 16F887 DATASHEET.

DEPARTMENT OF ELECTRONIC AND


COMMUNICATION
JAYPEE INSTITUTE OF INFORMATION
TECHNOLOGY, NOIDA

You might also like