Beruflich Dokumente
Kultur Dokumente
The report is divided into parts for explaining the step by step development of the
project. The first part introduces the idea behind the project and the underlying
information of the technologies used. Next chapter is dedicated for information on
the equipments used and how they were accommodated in the project circuitry.
The working of the project with the programming code are explained after that.
Lastly, the merits, de-merits and future prospects of the project are given.
5
CONTENTS
ACKNOWLEDGEMENT ………………………….............................................4
ABSTRACT………………………………………………………………………5
LIST OF FIGURE………………………………………………………………...8
Chapter 1 INTRODUCTION…………………………………………………..9
1.1 INTRODUCTION……………………………………………………...9
1 .2 MOTIVATION………………………………………………………...10
2.1 EQUIPMENTS……………………………………………………………….11
2.1.1 GSM modem……………………………………………………...11
2.1.4 RELAYS…………………………………………………………..19
2.2.2 PCB-DESIGNING………………………………………………...25
2.2.2.2CLEANING……………………………………………………..27
2.2.2.2ETCHING………………………………………………………28
2.2.2.3 DRILLING……………………………………………………..28
2.2.2.4 SOLDERING…………………………………………………..29
2.2.2.5 MASKING……………………………………………………..29
4.1 WORKING…………………………………………………………....32
5.2 DISADVANTAGES…………………………………………………..42
Chapter 6 APPLICATIONS…………………………………………………43
6.1 APPLICATIONS……………………………………………………...43
REFERENCES……………………………………………………...44
NO.
LIST OF FIGURE Page no
1 Gsm Modem
2 Pin configuration of Atmega
3 LCD
10 Block Diagram
11 Circuit Diagram
CHAPTER 1
INTRODUCTION
9
INTRODUCTION
1.1 Introduction
10
subscribers send and receive data right on their cellular phone's LED display, up to
a maximum of 160 characters.
The use of SMS makes the understanding and use of the project quite simple to the
user.
1.2 Motivation
As an engineering student a project is required as part of the final year work. The
project chosen is the activation of HomeAutomation via mobile technology. This
was selected because of incorporating mobile technology with controlling of
appliances which we believe is the next important step to realize the Home
Automation. The comfort of being able to take control of devices from one
particular location has become imperative as it saves a lot of time and effort.
Technology has advanced so much in the last decade or two that it has made life
more efficient and comfortable. The comfort of being able to take control of
devices from one particular location has become imperative as it saves a lot of time
and effort . Therefore there arises a need to do so in a systematic manner which we
have tried to implement with our system. The system we have proposed is an
extended approach to automating a control system. The application of our system
comes in handy when people who forget to do simple things such as turn ON or
OFF devices at their home or in their office, they can now do so without their
presence by the transmission of a simple text message from their mobile phone.
CHAPTER 2
EQUIPMENT & PCB
DESGINING
2.1 EQUIPMENTS:
a) GSM modem
b) Microcontroller (ATEMEGA 168)
c) LCD
d) Relay
e) ULN2803
A GSM modem is a specialized type of modem which accepts a SIM card, and
operates over a subscription to a mobile operator, just like a mobile phone. From
the mobile operator perspective, a GSM modem looks just like a mobile phone.
A GSM modem exposes an interface that allows applications such as
NowSMS to send and receive messages over the modem interface. The mobile
operator charges for this message sending and receiving as if it was performed
directly on a mobile phone. To perform these tasks, a GSM modem must support
an ―extended AT command set‖ for sending/receiving SMS messages, as defined
in the ETSI GSM 07.05 and and 3GPP TS 27.005 specifications.
GSM modems can be a quick and efficient way to get started with SMS,
because a special subscription to an SMS service provider is not required. In most
parts of the world, GSM modems are a cost effective solution for receiving SMS
messages, because the sender is paying for the message delivery.
A GSM modem can be a dedicated modem device with a serial, USB or
Bluetooth connection, such as the Falcom Samba 75 used in this document. (Other
manufacturers of dedicated GSM modem devices include Wavecom, Multitech and
iTegno.)
computers or other general purpose applications. . By reducing the size and cost
purpose working registers. All the 32 registers are directly connected to the
in one single instruction executed in one clock cycle. The resulting architecture is
more code efficient while achieving throughputs up to ten times faster than
registers, three flexible Timer/Counters with compare modes, internal and external
SPI serial port, and five software selectable power saving modes. The Idle mode
stops the CPU while allowing the SRAM, Timer/Counters, SPI port, and interrupt
system to continue functioning. The Powerdown mode saves the register contents
Pin Descriptions
1. VCC
2 GND
Ground.
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The Port B output buffers have symmetrical drive characteristics with
both high sink and source capability. As inputs, Port B pins that are externally
pulled low will source current if the pull-up resistors are activated. The Port B pins
are tri-stated when a reset condition becomes active, even if the clock is not
running
ATmega 8
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The PC5..0 output buffers have symmetrical drive characteristics with
both high sink and source capability. As inputs, Port C pins that are externally
pulled low will source current if the pull-up resistors are activated. The Port C pins
are tri-stated when a reset condition becomes active, even if the clock is not
running.
5. PC6/RESET
If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the
electrical characteristics of PC6 differ from those of the other pins of Port C.
low level on this pin for longer than the minimum pulse length will generate a
Reset.
6. Port D (PD7:0)
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for
each bit). The Port D output buffers have symmetrical drive characteristics with
both high sink and source capability. As inputs, Port D pins that are externally
pulled low will source current if the pull-up resistors are activated. The Port D pins
are tri-stated when a reset condition becomes active, even if the clock is not
running.
7. AVCC
AVCC is the supply voltage pin for the A/D Converter, PC3:0, and ADC7:6. It
should be externally connected to VCC, even if the ADC is not used. If the ADC is
8. AREF
9.ADC7:6
In the TQFP and QFN/MLF package, ADC7:6 serve as analog inputs to the A/D
converter. These pins are powered from the analog supply and serve as 10-bit ADC
channels.
2.1.3 LIQIUD CRYSTAL DISPLAY(LCD):
A liquid crystal display (LCD) is a flat panel display, electronic visual display, or
video display that uses the light modulat. LCDs do not emit light directly.LCDs are
instrument panels, aircraft cockpit displays, signage, etc. They are common in
consumer devices such as video players, gaming Fig3 LCD devices, clocks,
This LCD's typically have 14 data pins and 2 for the LED backlight. Character
LCDs use a standard 14-pin interface and those with backlights have 16 pins.
There is also be a single backlight pin, with the other connection via Ground or
VCC pin. The two backlight pins may precede the pin 1. The nominal backlight
Fig 3.LCD
2.1.3.1 Features :
a) 5 ´ 8 and 5 ´ 10 dot matrix possible
b)Low power operation support:
2.7 to 5.5V
c) Wide range of liquid crystal display driver power
3.1 to 11V
d) 80 ´ 8-bit display RAM (80 characters max.)
2.1.4 Relays:
Relays are electromechanical devices, which are used as a switch. Current flowing
through the coil of the relay creates a magnetic field which attracts a lever and
changes the switch contacts. The main advantages of using relay as a switch is that,
they provide electrical isolation between inputs with the help of magnetic coupling
There are different types of relays are available and they can be categorized in
various ways. For example relays can be SPST, SPDT, DPST, DPDT etc. SPDT
A relay will switch one or more poles, each of whose contacts can be thrown by
Normally-open (NO) contacts connect the circuit when the relay is activated;
the circuit is disconnected when the relay is inactive. It is also called aForm
A contact or "make" contact. NO contacts can also be distinguished as "early-
make" or NOEM, which means that the contacts will close before the button or
"late-break" or NCLB, which means that the contacts will stay closed until the
make"). If this type of contact utilizes a "make before break" functionality, then
SPST – Single Pole Single Throw. These have two terminals which can be
connected or disconnected. Including two for the coil, such a relay has four
DPST – Double Pole Single Throw. These have two pairs of terminals.
Equivalent to two SPST switches or relays actuated by a single coil. Including
two for the coil, such a relay has six terminals in total. The poles may be Form
DPDT – Double Pole Double Throw. These have two rows of change-over
terminals. Equivalent to two SPDT switches or relays actuated by a single coil.
The eight NPN Darlington connected transistors in this family of arrays are ideally
suited for interfacing between low logic level digital circuitry (such as TTL, CMOS
printer hammers or other similar loads for a broad range of computer, industrial,
MAXIMUM RATINGS (TA = 25°C and rating apply to any one device in the
(A)
Fig 5 (A)pin connection of uln 2803 (B) plastic package
2.2PCB (PRINTED CIRCUIT BOARD) DESIGNING:
as printed wiring board (PWB) or etched wiring board. A PCB populated with
PCBs are inexpensive, and can be highly reliable. They require much more layout
effort and higher initial cost than either wire-wrapped or point-to-point constructed
circuits, but are much cheaper and faster for high-volume production. Much of the
electronics industry's PCB design, assembly, and quality control needs are set by
standards.
2.2.1 LAYOUT OF THE PROJECT PCB
PROCESSING
CLEANSING
PRINTING
ETCHING
DRILLING
SOLDERING
MASKING
The layout of a PCB has to incorporate all the information on the board before one
can go on to the artwork preparation. This means that a concept that clearly defines
all the details of the circuit and partly also of the final equipment, is a prerequisite
before the actual layout can start. The detail circuit diagram is very important for
the layout designer and he must also be familiar with the design concept and with
scale as the artwork. This prevents all the problems which might be caused by
c-) Board types:-There are two side of a PCB board – Component side &
Solder side. Depending on these board are classified as-
2.2.2.2CLEANING
The cleaning of the copper surface prior to resist application is an essential step for
any type of PCB process using etches or plating resist.After scrubbing with the
factors to be considered:-
Etching speed
Copper solving capacity
Etchant price
Pollution character
We have uses FeCl3 (Conc. 120 g/litre 0.1 M) for etching.
2.2.2.4 DRILLING
The importance of hole drilling into PCB’s has further gone with electronic
component miniaturization and its need for smaller holes diameters (diameters less
The following hole diameter tolerances have been generally accepted wherever no
2.2.2.6 MASKING
A PCB layout is required to place components on the PCB so that the component
area can be minimized and the components can be placed in an efficient manner.
The components can be placed in two ways, either manually or by software. The
manual procedure is quiet cumbersome and is very inefficient. The other method is
by the use of computer software. This method is advantageous as it saves time and
valuable copper area. There are various software’s available for this purpose like-
Express PCB
Pad2pad
Protel PCB
software that we have used here is EXPRESS PCB. This software has a good
Express P.C.B.
Express PCB is a very easy to use Windows application for laying out
printed circuit boards. There are two parts to Express PCB, Express SCH for
There are lots of functions available in the software. This software is free of
cost and it is very easy to use. The different layers of the PCB can be viewed by
just a click of a button on the interface. And we easily get its print on paper which
is utilized for further processing. We can design single sided PCB as well as
PROGRAMMING CODE
4 WORKING OPERATION & PROGRAMMING CODE
This chapter deals with working of ―sms based control system using GSM
4.1 WORKING:
The idea behind this project is to use the existing GSM infrastructure. So, all the
operations involve the gsm system also. As we send any sms, it goes through the
gsm system. Any sent sms can be received if we use a SIM card and gsm module.
To operate any gsm modem, we have to use the AT commands to operate them.
For example, if any sms arrives the gsm modem sends the serial data in ASCII
format. We can read these data if we connect the modem with the serial port of the
that a sms has been arrived, it can sent a proper AT command to read the sms. The
reading of sms returns the mobile no of sender, the time and much more
information. We have to select the sms part of the message. The starting string of
the sms is used as the password. As the password is matched, then the sms arrival
sms.Working of ―sms based device control system using GSM MODEM‖ is very
written below:
#include
<NewSoft
Serial.h>
#define
led_pin 8
#define
buzz_pin 9
LiquidCrystal
lcd(2, 3, 4, 5, 6,
7);
//String
sent_sms
="ok";
String
status_stri
ng="OK";
String sms="";
const
char
sms_e
nd='*';
int
stage=
0;
h
;
void setup()
{ lcd.begin(16, 2);
gsm.begin(2400);// keep the speed of the modem slow to handle the data easily
gsm.print("at\n\r"); // ATTENTION
delay(100);
digitalWrite(11,LOW);
pinMode(14,OUTPUT);
pinMode(15,OUTPUT);
pinMode(17,OUTPUT);
pinMode(16,OUTPUT);
lcd.clear();
lcd.print("DEVICE CONTROL");
void loop()
{
{ if(gsm.available())
{ ch=char(gsm.read());
str+=ch;
i=str.indexOf("+CMTI: ");
arrived { //Serial.println("SMS
ARRIVED"); lcd.clear();
lcd.print("SMS ARRIVED");
str="";
i=-1
indicate(100);
lcd.clear();
while(stage==1)
if(gsm.available())
{ ch=gsm.read();
/ Serial.print(ch);
lcd.print(ch);
str+=ch;
{stage=2;
indicate(100);
while(stage==2)
indicate(1000);
lcd.clear();
lcd.print("GSM BASED
SYSTEM"); lcd.setCursor(0,1);
lcd.print(sms);
indicate(200);
for(int n=0;n<=3;n++)
int pin=14+n;
int data=sms[n]-'0';
digitalWrite(pin,data);
}
//******************************
str="";// clear the string
while(stage==3)
if(gsm.available())
{ ch=gsm.read();
/ Serial.print(ch);
str+=ch;
if((str.indexOf("OK")>0))
{ str="";
status_string="OK";
// mob_no="";
sms="";
stage=4;
i=-1;
indicate(100);
delay(2000);
send_sms();
delay(1000);
}// stage 3
while(stage==4) //
if(gsm.available())
ch=gsm.read();
Serial.print(ch);
str+=ch;
if((str.indexOf("OK")>0))
{ str="";
stage=0;
lcd.clear();
lcd.print("DEVICE CONTROL");
digitalWrite(led_pin, HIGH);
digitalWrite(buzz_pin,
HIGH); delay(i);
digitalWrite(led_pin, LOW);
digitalWrite(buzz_pin, LOW);
}
void send_sms()
{ gsm.print("AT\n\r");
gsm.print("AT+CMGS=");
gsm.print(char(34));
gsm.print("+9197932022
58"); gsm.print(char(34));
gsm.print("\n\r");
delay(100);
gsm.print("OK");
This project is made with best of capabilities and dedication. Details were taken
care of in preparing it. The problems encountered in various steps were taken into
account and eliminated to much extent so that they may not harm the project
functioning. Also certain areas were thought of before hand and worked upon, so
as to prevent them from becoming a limitation for the project. But, as it is that
every system is not perfect in all the aspects. They have some associated
limitations. Here are presented the advantages, in general and comparative of the
5.1ADVANTAGES:
1. Devices can be controlled from long distances.
2. Economical design
5.2DISADVANTAGES:
1. The system is network dependent. Hence, network congestion can reduce
the reliability of the system.
2. User can make mistake while typing the message format.
CHAPTER 6
APPLICATIONS
6.1 APPLICATIONS
The previous chapter deal with stated merits and de-merits of the project, the
project can be put for use in following fields-
1. Home automation, which was the seed for developing the idea of
project.
2. Remote device control. a) This will help to eliminate need of human
personnel attending the device till it has to be switched off/on. Based on
experience of approximate time to switch on/off ,he/she can control the
device, saving time.
b) It will also help to control device while attending to other work.
c) User can control device in case of forgetting to do so while leaving
for some other place.
3. Energy conservation
4. Irrigation systems
REFERNCES:
1. Paper of M.J Vanderwerff on ―activation of home automation system
2. Wikipedia-GSM technology