HOME AUTOMATION USING

forestevanescentElectronics - Devices

Nov 2, 2013 (3 years and 10 months ago)

71 views

HOME AUTOMATION USING
MOBILE PHONES AND RF RADIOS

S u p e r v i s e d b y: D r.
M o h a b

M a n g o u d


University of Bahrain

College of Engineering

Department of Electrical and Electronics Engineering

EEG4 90 S e ni or P r oj e c t

Muna

A l
-
Oma r i

T a qua
S a l a he l di n

WHY HOME AUTOMATION

OVERVIEW


Objective.


Introduction.


Main idea.


wireless serial communication.


Equipment used.


Design implementation.


Conclusion.


Future scope.


Questions.

MAIN IDEA

Portable unit

Device unit 2


Device unit 1

Device unit 3


Device unit 3


MAIN IDEA

EQUIPMENT USED


Arduino
.


GPRS shield.


PIC microcontroller.


RF transceivers.


RF 433 MHz


RF 315 MHz


RF 2.4 GHz


Switching Relays.

ARDUINO


Arduino

board

contains

everything

needed

to

support

the

microcontroller
;

it

has

14

digital

input/output

pins,

6

analog

inputs,

a

16

MHz

crystal

oscillator,

a

USB

connection
.

GPRS SHIELD

Arduino GPRS/GSM Shield


The Arduino GPRS/GSM
Shield is a physical add
-
on to Arduino.


Comes with a library to
send/receive SMS and
voice calls.


GPRS Shield is configured
and controlled via its
UART using simple AT
commands.


PIC MICROCONTROLLER


PIC

referred

to

"Peripheral

Interface

Controller“
.


Designed

for

embedded

application
.


PICs

are

popular

due

to
:


Their low cost.


Wide availability.


Large user base.


Availability of low cost or free development tools.


Serial programming .


Microcontroller

PIC MICROCONTROLLER


PIC16F877A

PIC16F877A Pins Assignment

RF TRANSCEIVERS


RF 433 MHz transceiver


receiver and the transmitter has 8 pins.


The transmitter manufactured with a transmit
power of 1W (10m).


Operating frequency of 433.92MHZ and
operating voltage of 5V.

RF 433MHz Transmitter

RF 433MHz Receiver

RF TRANSCEIVER


RF 315 MHz transceiver


receiver and the transmitter has 3 pins.


Transmitter can be used to transmit signal up
to 100 meters


Operating frequency
of 315 MHZ
and
operating voltage of 5V.

RF 315 MHz transmitter


RF 315 MHz receiver


RF TRANSCEIVERS


RF 2.4 GHz Transceiver


Operation in the world wide ISM (
Industrial, Scientific and
Medical
) frequency band at 2.400
-

2.4835GHz.


configured and operated through a Serial Peripheral Interface
(SPI).


Supplied with 3.3 v.


The SPI interface uses four pins,


CSN, SCK, MISO, and MOSI


for data transmission and
reception.



nRf24L01
-

2.4 GHz RF
transceiver

RF TRANSCEIVERS


RF 2.4 GHz Transceiver


RF 2.4GHz module is built into many different microcontroller
devices, such as Arduino.

connect the module pins from 2.4 GHz
transceiver to Arduino

SWITCHING RELAYS


A small current
energizes the relay,
which closes a gate,
allowing a large
current to flow
through.

Switching Relay


SWITCHING RELAYS


There

are

two

types

of

contacts

in

the

switching

relay
:


Normal open contact NO


Normal close contact NC


SERIAL COMMUNICATION


USART


SPI

USART


USART stands for Universal Synchronous
Asynchronous Receiver Transmitter.



Takes bytes of data and transmits the
individual bits in a sequential fashion.




At destination, second USART
reassembles the bits into complete bytes.




least significant bit first

USART


One pin can be used for transmission and
another pin can be used for reception.


USARTs must be set for the same bit speed


Full duplex operation.

USART
PTOGRAMMING

SPI PROTOCOL


SPI stands for Serial Peripheral Interface.


SPI is a Synchronous protocol.


It has a clock pulse along with the data.


Only the master device can control the clock line.


Data typically changes

during the rising or falling edge of
SCK.


SPI is a Master
-
Slave protocol.


One master device (usually a microcontroller).


Operate with one or more slave devices .


SPI PROTOCOL

Master connected to single slave and
multiple slaves


Full duplex
mode.


Data is always
“exchanged”
between
devices.


Each device has
two data lines,
one for input and
one for output.




SPI PROGRAMMING

MODES

Modes of operation

SMS Mode

Switch Mode

Outdoor usage

Indoor usage

SMS MODE


FLOW CHART

Yes

No

SMS mode chosen

SMS
received?

Extract key
number

Broadcast
Key #

FB si gnal
received?

Yes

Send FB
SMS

No

SMS COMMANDS & KEY NUMBERS

Controlled
device

Turn ON SMS

ON

key
number

Turn

OFF SMS

OFF key
number

Li ght

#11*

001

#10*

010

Speaker

#21*

011

#20*

100

Group of l i ghts

#31*

101

#30*

110

RC UNIT LAYOUT

GPRS
Shield +
Arduino

PIC 16

Microcontroller

433 MHz
Transmitter

SW1

SW2

SW3

Command signal to
Device unit

3
-
bits link

Feedback signal
from Device unit

315 MHz
Receiver

2.4 GHz
Transmitter

SMS mode
Feedback Signal

Mode Select
switch

back

DU WITH SMS FEEDBACK

433 MHz
Receiver

2.4 GHz
Transmitter

Signal From portable
unit

Signal To portable
unit

PIC 16

Microcontroller

Relay


Arduino

SMS MODE FEEDBACK

433 RX

2.4 TRX

PIC 16

Arduino

GPRS

PIC 16

433
TX

315
RX

2.4 TRX

433 RX

2.4 TRX

back

RC UNIT LAYOUT

GPRS
Shield +
Arduino

PIC 16

Microcontroller

433 MHz
Transmitter

SW1

SW2

SW3

Command signal to
Device unit

3
-
bits link

Feedback signal
from Device unit

315 MHz
Receiver

2.4 GHz
Transmitter

SMS mode
Feedback Signal

Mode Select
switch

SWITCHES COMMANDS & KEY NUMBERS

Switch

Closed key number

Open

key number

Switch 1

001

010

Switch 2

011

100

Switch 3

101

110

SWITCH MODE FEEDBACK

433 RX

PIC 16

GPRS

PIC 16

433 TX

315 RX

2.4 TRX

433 RX

315
TX

315 RX

CONCLUSION


Successfully

able

to

remotely

control

three

(multiple)

devices
.

For

indoor

control

RF

communications

is

used

without

the

use

of

cables

or

wires

at

all
.




Feedback

signal

is

received

from

home

appliances

to

indicate

their

status

via

RF

radios
.



SMS

control

has

been

successfully

implemented
;

users

have

an

access

to

control

home

appliances

from

their

cell

phone

24
/
7

worldwide
.



Feedback

SMS

is

received

from

home

devices

when

their

status

is

changed

by

a

command

SMS
.



Managing

to

program

two

different

Microcontrollers

from

PIC

and

AVR

families

using

different

software
.

In

addition,

three

different

RF

transceivers

are

employed

effectively
.


FUTURE SCOPE


Using sensors to develop a
Smart Home
.



2.4 GHz and
Zigbee

transceiver for full
duplex and channels options.



More specialized product.



Tablets and smart phones interface App.



THANK YOU!

ةلزنم ركشلا قوف فرعأ تنك ول




نمثلا يف الله دنع ركشلا نم ىلعأ


اوذح ةبذهم ينم اهكتحنم اذإ


نسح نم تيلوأ ام وذح ىلع

QUESTIONS


― Sukant R
atnakar