30
SMART PHONE APPLICATION SMART PHONE APPLICATION FOR HOME AUTOMATION FOR HOME AUTOMATION By Ganesh.P Ganesh.P Ganesh Singh.B Ganesh Singh.B Manimaran.S Manimaran.S Project Guide Project Co-ordinator Mrs.S.P. Audline Beena, M.E., Mrs. B. Thenkalvi, M.E., (Ph.D) Assistant Professor, CSE Assistant Professor, CSE

Smart phone application

Embed Size (px)

Citation preview

Page 1: Smart phone application

SMART PHONE APPLICATION SMART PHONE APPLICATION FOR HOME AUTOMATIONFOR HOME AUTOMATION

By Ganesh.PGanesh.PGanesh Singh.BGanesh Singh.B Manimaran.SManimaran.S

Project Guide Project Co-ordinatorMrs.S.P. Audline Beena, M.E., Mrs. B. Thenkalvi, M.E., (Ph.D) Assistant Professor, CSE Assistant Professor, CSE

Page 2: Smart phone application

ObjectiveObjective

To create an smart phone application to perform a remote

control of home appliances and monitoring of the home

environment.

Objective

Objective

Page 3: Smart phone application

Scope of the projectScope of the project

For Android – Mobile OS

An embedded system

Installed in existing electrical system

Various other systems can be integrated with it

Cost of tools used to build is high

Cost of large scale production is very less

Page 4: Smart phone application

IntroductionIntroduction

Home automation is the residential extension of "building

automation”

Automation of the home, housework or household activity

Lighting, yard watering, pet feeding, Security(Detection of

fire, gas leaks, water leaks)

To provide improved convenience, comfort, energy efficiency

and security

Page 5: Smart phone application

Existing SystemExisting System

Front end - PC

Wireless technologies used : Zigbee, Wifi, Bluetooth

Home Server(Computer, Embedded)

Internet Based Home Automation

iOS - Application Literature Review

Literature Review

Page 6: Smart phone application

Drawbacks of Existing SystemDrawbacks of Existing System

Short range wireless communication

No mobility

Remote connection delay

Poor User Interface

Page 7: Smart phone application

Smart Phone A

pplicatio

n For

Smart Phone A

pplicatio

n For

Home Automatio

n

Home Automatio

n

Home automation

Control of home appliances

Security using sensors

GUI Application - for Android OS

Microcontroller

GSM(Global System for Mobile communication)

Proposed SystemProposed System

Page 8: Smart phone application

Architecture of Proposed SystemArchitecture of Proposed System

Page 9: Smart phone application

Require

ment S

pecifi

catio

n

Require

ment S

pecifi

catio

nATMEL 89S52 Microcontroller

ADC 0809, MAX 232, ULN 2803

Relays

GSM Modem

IR Sensor

Gas Sensor

8051 Programmer

Smart phone with Android 2.2 or higher

Hardware RequirementsHardware Requirements

Page 10: Smart phone application

Software RequirementsSoftware Requirements

Java jdk 1.6

Android sdk

Eclipse Indigo

ADT for Eclipse

Kiel MicroVision4 (C51)

Programmer Software (Top Win 6)

X-CTU

Require

ment S

pecifi

catio

n

Require

ment S

pecifi

catio

n

Page 11: Smart phone application

ModulesModules

1. Hardware Design1.1. Monitoring System1.2. Automation System

2. Hardware Programming

3. Developing and Installing Android Application

4. GSM Module

5. Interfacing

6. Monitoring and Controlling devices from android smart phone

Page 12: Smart phone application

1. Hardware Design1. Hardware Design

C220 . 1 u F

+C10

1 0 0 0 u F / 2 5 v+C11

1 0 0 u F / 1 6 v

R35 6 0

D 2

POWER

D11

1N4007

V C C

J 5

321

- +

D 1

BRIDGE

1

4

3

2

U 3 LM7805

I N1

O U T3

GN

D2

+12 VPOWER

J 6R

MC

1 2

+12 V

Power SupplyPower SupplyDC adaptor (12V)

Output +5V

Page 13: Smart phone application

Monitoring SystemMonitoring System

ADC0809

C L K1 0

O E9

E O C7

D 01 7

D 11 4

D 21 5

D 38

D 41 8

D 51 9

D 62 0

D 72 1

S T A R T6

A L E2 2

V C C1 1

G N D1 3

R E F +1 2

R E F -1 6

I N 02 6

I N 12 7

I N 22 8

I N 31

I N 42

I N 53

I N 64

I N 75

A 02 5

A 12 4

A 22 3

0.1uF

V C C

V C C

10K

V C C

IN0IN1IN2IN3IN4IN5IN6IN7

J 3 4

123

A0A1A2

12345678

CLOCKINPUT

89S52

P S E N2 9A L E3 0

V C C4 0

E A3 1

X 11 9

X 21 8

R S T9

P 0 . 0 / A D 03 9

P 0 . 1 / A D 13 8

P 0 . 2 / A D 23 7

P 0 . 3 / A D 33 6

P 0 . 4 / A D 43 5

P 0 . 5 / A D 53 4

P 0 . 6 / A D 63 3

P 0 . 7 / A D 73 2

P 1 . 01

P 1 . 12

P 1 . 23

P 1 . 34

P 1 . 45

P 1 . 56

P 1 . 67

P 1 . 78

P 2 . 0 / A 82 1

P 2 . 1 / A 92 2

P 2 . 2 / A 1 02 3

P 2 . 3 / A 1 12 4

P 2 . 4 / A 1 22 5

P 2 . 5 / A 1 32 6

P 2 . 6 / A 1 42 7

P 2 . 7 / A 1 52 8

P 3 . 0 / R X D1 0

P 3 . 1 / T X D1 1

P 3 . 2 / I N T 01 2

P 3 . 3 / I N T 11 3

P 3 . 4 / T 01 4

P 3 . 5 / T 11 5

P 3 . 6 / W R1 6

P 3 . 7 / R D1 7

11.0592MHz

V C C

RESET10uF

10K

0.1uF33pF 33pF

Circuit diagram of ADC Circuit diagram of ADC interfacing with 89s52interfacing with 89s52

Sensors for security purpose

Output data of sensors are analog

It needs to be converted to digital

ADC0809

8bit ADC

8bit Multiplexer

Can connect up to eight analog devices

Page 14: Smart phone application

Automation SystemAutomation System

Circuit diagram for Relay Circuit diagram for Relay interfacing with 89s52interfacing with 89s52

>>NC

>NO

L S 1 1

RELAY 4

35

412 U N I X

123

>NO>

>

>NC

>NO

>NC

U 3 1ULN2803

C O M1 0

G N D9

I N 11

I N 22

I N 33

I N 44

I N 55

I N 66

I N 77

I N 88

O U T 11 8

O U T 21 7

O U T 31 6

O U T 41 5

O U T 51 4

O U T 61 3

O U T 71 2

O U T 81 1

Z E N E R

L S 8

RELAY 1

35

412

-+

L S 9

RELAY 2

35

412

+12 V

1 2

U N I X

123

U N I X

123

+ 10uF

10K

0.1uF89S52

P S E N2 9A L E3 0

V C C4 0

E A3 1

X 11 9

X 21 8

R S T9

P 0 . 0 / A D 03 9

P 0 . 1 / A D 13 8

P 0 . 2 / A D 23 7

P 0 . 3 / A D 33 6

P 0 . 4 / A D 43 5

P 0 . 5 / A D 53 4

P 0 . 6 / A D 63 3

P 0 . 7 / A D 73 2

P 1 . 01

P 1 . 12

P 1 . 23

P 1 . 34

P 1 . 45

P 1 . 56

P 1 . 67

P 1 . 78

P 2 . 0 / A 82 1

P 2 . 1 / A 92 2

P 2 . 2 / A 1 02 3

P 2 . 3 / A 1 12 4

P 2 . 4 / A 1 22 5

P 2 . 5 / A 1 32 6

P 2 . 6 / A 1 42 7

P 2 . 7 / A 1 52 8

P 3 . 0 / R X D1 0

P 3 . 1 / T X D1 1

P 3 . 2 / I N T 01 2

P 3 . 3 / I N T 11 3

P 3 . 4 / T 01 4

P 3 . 5 / T 11 5

P 3 . 6 / W R1 6

P 3 . 7 / R D1 7

11.0592MHz

33pF2 33pF

RESET

V C C

>NC

>NO>

L S 1 0

RELAY 3

35

412 U N I X

123

Page 15: Smart phone application

Automation SystemAutomation System

Household electrical devices operate on minimum 220V

AC power supply

RELAY - Allows low power circuit to switch a

relatively high Current/Voltage ON/OFF

Relay coils are designed to operate from a particular

voltage often its 5V or 12V

ULN2803 – driver IC contains NOT gates

Page 16: Smart phone application

2. Hardware Programming 2. Hardware Programming

Microcontroller understands only hexadecimal values

Programmer - Loads the hexadecimal code to the microcontroller

Keil (Embedded C)

Page 17: Smart phone application

3.Developing and Installing Android 3.Developing and Installing Android ApplicationApplication

Eclipse IDE / Command Line

XML – GUI , JAVA – programming

Application Components

Activity, Services, Broadcast receivers, Content providers

Activating Components

Intent object

Declaring Components – AndroidManifest.xml

Page 18: Smart phone application

InstallingInstalling

3 ways to install an Application

from PC

from Android Market

using the setup file

Application setup file ends with “.apk”

AVD (Android Virtual Device)

Page 19: Smart phone application

4. GSM Module4. GSM Module

GSM Modem

Acts as a mobile phones

GSM modem supports “ Hayes commands” also known as AT

commands

GSM modems are a cost effective solution for sending

receiving SMS

Page 20: Smart phone application

Serial CommunicationSerial Communication

• Process of sending data one bit at a time

• Baud rate

• Start Bit

• Stop Bit

• SBUF Register

• RS232

Page 21: Smart phone application

5. Interfacing5. Interfacing

GSM modem is connected to PC through serial

communication

DB9 cable(9 pins) is used for serial communication

3 pins(receive, transmit, ground) are sufficient for connecting

to the microcontroller

RS232 communication

GSM Modem is connected to Max232

Page 22: Smart phone application

6. Controlling Devices from Smart Phone6. Controlling Devices from Smart Phone

Electrical devices are connected to the corresponding relays

Sensors are placed at appropriate places

Target number can be changed dynamically by the user

User can switch the devices either individually or collectively

Application automatically starts and alerts the user for any

security threat detected at the target site

Page 23: Smart phone application
Page 24: Smart phone application

Advantages of Proposed SystemAdvantages of Proposed System

Accessibility

Portability

Mobility

Interactive

Scalability

Page 25: Smart phone application

Screen Shots of Android ApplicationScreen Shots of Android ApplicationAutomation ActivityAutomation Activity Monitoring ActivityMonitoring Activity

Page 26: Smart phone application

ConclusionConclusion

The proposed home automation system provides a reliability

and flexible to the user to control both electrical and

electronic devices

This work is accomplished through the integration of widely

available devices, components and Software

Page 27: Smart phone application

Future WorkFuture Work

The GSM communication used in the system may be replaced

by 3G communication

It will enables the application to stream live video for

surveillance purpose

Multiple communication techniques can be used, Bluetooth

can be used when the user is near the devices and GSM can be

used when the user is out of Bluetooth coverage

Page 28: Smart phone application

ReferencesReferences[1] Behrooz A. Shirazi, Medha Bhakamkar, Nina Peterson, Somak R. Das, Silvia Chita, “

Home Automation and Security for Mobile Devices”, IEEE Transaction on pervasive

computing, MAY 2011

[2] Cui Chengyi, Jin Minglu, Zhao Guannan, “A ZigBee Based Embedded Remote Control

System” Proceedings of the 2010 2nd International Conference on Signal Processing

Systems

[3] Fang Yao, Khusvinder Gill, Shuang-Hua Yang, and Xin Lu, “A ZigBee-Based Home

Automation System”,,IEEE Transactions on Consumer Electronics, Vol. 55, No. 2, MAY

2009

[4] HamidReza Tajozzakerin, Manouchehr Ghahramanian Golzar ”A New Intelligent

Remote Control System for Home Automation and Reduce Energy Consumption”

proceedings of 2010 Fourth Asia International Conference on Mathematical Analytical

Modelling and Computer Simulation.

Page 29: Smart phone application

ReferencesReferences[5] HOU Min-xian, WANG Yin-wen “Remote Monitoring System for Oil Wells Based on

GPRS Technology” Proceedings of 2010 IEEE conference

[6] M. Van Der Werff, W.L. Xu. and X. Gui” A Mobile-Based Home Automation System”

proceedings of the 2007 IEEE conference

[7]A. R. Al-Ali, Member, IEEE & M. AL-RousanYu2”Java-Based Home Automation

System”, IEEE Transactions on Consumer Electronics, Vol. 50, No. 2, MAY 2004.

[8] Martin Hasaj, Marek Tvrdý, Miroslav Šnorek, Pavel Kordík” Building Automation

Simulator and Control Strategy for Intelligent and Energy Efficient Home”, proceeding of

the year 2009.

[9] A.salem Azwai, Fahtha H, Mahmoud shaker Nasr, ”Friendly Home Automation System

Using Cell Phone and J2ME with Feedback Instant Voice Messages”, Proceedings of the

year 2009.

Page 30: Smart phone application