You are on page 1of 24

MOBILE BASED HOME

AUTOMATION
By

Vasanth & Vivek

Contents

Introduction

Block Diagram
DTMF
DTMF Decoder

8051 Microcontroller
Relay
Software Required
Advantages & Dis-Advantages

INTRODUCTION
In the present world of wireless technology every thing is going to be digital
and the cell phone is the key player in wireless technology.

The main objective of this project is to develop an


embedded system which can control appliances by using mobile

BLOCK DIAGRAM
GSM
CHANNEL

DTMF
Dual-tone multi-frequency signalling (DTMF) is used for
telecommunication signalling between telephone handsets and other
communications devices.

Signal generated by the superposition of two pure sinusoidal tones.


One is high frequency & another is low frequency tone signal

DTMF Keypad

If a key is pressed it enables the two frequencies i.e., if 1 is pressed the corresponding
697Hz and 1209Hz was enabled.

DTMF Decoder

DTMF Decoder
Here we are using HT9170 decoder, it is the series of Dual tone multi
frequency receivers.

They employ digital counting techniques to detect and decode the 16 DTMF
tones into 4 bit output code.

HT9170 use highly accurate switched capacitor filters for filtering low and
high frequency signals from the DTMF tones.

8051 Microcontroller
The Intel 8051 is a very popular general purpose microcontroller widely
used for small scale embedded systems.

The 8051 is an 8-bit microcontroller with 8 bit data bus and 16-bit address
bus. The 16 bit address bus can address a 64K( 216) byte code memory space
and a separate 64K byte of data memory space. The 8051 has 4K on-chip
read only code memory and 128 bytes of internal Random Access Memory
(RAM)

Architecture

Pin Diagram

P1.0

40

Vcc

P1.1

39

P0.0(AD0)

P1.2

38

P0.1(AD1)

P1.3

37

P0.2(AD2)

P1.4

36

P0.3(AD3)

8051

P1.5

P1.6

34

P0.5(AD5)

P1.7

33

P0.6(AD6)

RST

32

P0.7(AD7)

(RXD) P3.0

10

31

EA/VPP

(TXD) P3.1

11

30

ALE/PROG

(INT0) P3.2

12

29

PSEN

(INT1) P3.3

13

28

P2.7(A15)

(T0) P3.4

14

27

P2.6(A14)

(T1) P3.5

15

26

P2.5(A13)

(WR) P3.6

16

25

P2.4(A12)

(RD) P3.7

17

24

P2.3(A11)

XTAL 2

18

23

P2.2(A10)

XTAL 1

19

22

P2.1(A9)

GND

20

21

P2.0(A8)

35

P0.4(AD4)

Ext
Memory
Address

(Serial)
Ext Memory
Access Control

interrupt

Timer

Ex M W/R

clock

Ext Memory
Address

RELAY
A relay is an Electrically operated Switch.

It consists of a control coil and a load circuit.


Control coil controls the operation and load circuit is a switch.
Current flowing through the control coil creates a small magnetic field
causes the load circuit switch to close and relay is then active.

Structure

It is connected across the main power supply 220 V- 50 Hz AC


Solid State Relay(SSR) is a solid state electronic component that provides a
similar function to an electromechanical relay.

A solid state relay has no mechanical moving parts. Essentially the solid state
relay controls a larger electrical current by accepting a small control signal

SOFTWARE REQUIREMENT
KEIL u-VISION
FLASHMAGIC or PRO51 for dumping the code into Microcontroller

Code:
#include <reg52.h>
#define dtmf P1
sbit light= P0^0;
sbit fan= P0^1;
void main()
{
int k;
P0=0x00;
while(1)
{

k=P1;
if(k==0xF1||k==0X01)

{
light=1;
}
if(k==0xF3||k==0X03)
{
light=0;
}
if(k==0xF2||k==0x02)
{
fan=1;
}
if(k==0xF4||k==0X04)
{
fan=0;
}
if(k==0xF5||k==0X05)
{

fan=1;
light=1;
}
if(k==0xF6||k==0X06)
{
fan=0;
light=0;
}
}
}

Advantages
By using DTMF technology, cost of the system is very low.
The system is not complex.
Home automation is possible from any remote areas with minimum signal
strength.

Wide range of usage in industries and home automation.

Dis-Advantages
The receiver must reside in a location where a signal with sufficient strength
can be obtained

The only person who can communicate with the control module is the person
who will be successfully authenticated

In this system there is no feedback facility to the user.

Applications
This system can be used in industrial applications.

This system can be employed in home security system.

conclusion
Wireless controlled home appliances in the comforts of any environment
will revolutionize our way of living

HACS might one day become a standard system in the new homes to come.

You might also like