Sunteți pe pagina 1din 6

2.1.

4 RF MODULE
In generally, the wireless systems designer has two overriding constraints: it
must operate over a certain distance and transfer a certain amount of
information within a data rate. The RF modules are very small in dimension
and have a wide operating voltage range i.e. 3V to 12V.
Basically the RF modules are 433 MHz RF transmitter and receiver modules.
The transmitter draws no power when transmitting logic zero while fully
suppressing the carrier frequency thus consume significantly low power in
battery operation. When logic one is sent carrier is fully on to about 4.5mA
with a 3volts power supply. The data is sent serially from the transmitter
which is received by the tuned receiver. Transmitter and the receiver are duly
interfaced to two microcontrollers for data transfer.

2.1.5 Decoder HT12D

Decoder integrated circuit that belongs to 212 series of decoders. This series
of decoders are mainly used for remote control system applications, like
burglar alarm, car door controller, security system etc. It is mainly provided
to interface RF and infrared circuits. They are paired with 212 series of
encoders. The chosen pair of encoder/decoder should have same number of
addresses and data format.
In simple terms, HT12D converts the serial input into parallel outputs. It
decodes the serial addresses and data received by, say, an RF receiver, into
parallel data and sends them to output data pins. The serial input data is
compared with the local addresses three times continuously. The input data
code is decoded when no error or unmatched codes are found. A valid
transmission in indicated by a high signal at VT pin.
HT12D is capable of decoding 12 bits, of which 8 are address bits and 4 are
data bits. The data on 4 bit latch type output pins remain unchanged until
new is received.

Voltage regulator 7805


7805 is a voltage regulator integrated circuit. It is a member of 78xx
series of fixed linear voltage regulator ICs. The voltage source in a circuit
may have fluctuations and would not give the fixed voltage output.
The voltage regulator IC maintains the output voltage at a constant value.
The xx in 78xx indicates the fixed output voltage it is designed to provide.
7805 provides +5V regulated power supply. Capacitors of suitable values can
be connected at input and output pins depending upon the respective
voltage levels.

Buzzer
Buzzer is connected to 17 pin of HT12D decoder and other end is grounded
.It produces sound when receiver goes out of range of transmitter.

Coding of the project


$MOD51

INPUT EQU

P3.2

; Port3,Bit2 is used as input. The demodulated signal


; with active low level is connected to this pin

ZERO

EQU

P3.3 ; Zero Crossing Input

OUTPUT EQU P2
OP1

EQU

P2.2

OP2

EQU

P2.3

OP3

EQU

P2.4

OP4

EQU

P2.7

OP5

EQU

P2.6

OP6

EQU

P2.5

FAN

EQU

P0.7

FANL EQU

P3.6

SWITCH

EQU

P3.7

OP7

EQU

P0.0

;A,7

OP8

EQU

P0.1

;B,6

OP9

EQU

P0.2

;C,4

OP10 EQU

P0.3

;D,2

OP11 EQU

P0.4

;E,1

OP12 EQU

P0.5

;F,9

OP13 EQU

P0.6

;G,10

SDA EQU P2.1

;SDA=PIN5

SCL EQU P2.0

;SCL=PIN6

WTCMD EQU

10100000B

;WRITE DATA COMMAND Note 3

RDCMD EQU

10100001B

;READ DATA COMMAND Note 3

DSEG
ORG

; This is internal data memory


20H

; Bit adressable memory

FLAGS: DS

CONTROL BIT
NEW

BIT

FLAGS.0 ; toggles with every new keystroke


FLAGS.1 ; Bit set when a new command has been received

STATUS:

DS

LIG1

BIT

STATUS.0

LIG2

BIT

STATUS.1

LIG3

BIT

STATUS.2

LIG4

BIT

STATUS.3

LIG5

BIT

STATUS.4

LIG6

BIT

STATUS.5

LIG7

BIT

STATUS.6

;Lights Status Bits

;FAN

COMMAND: DS

SUBAD: DS

BUFFER: DS

30

TOGGLE: DS

; Received command byte


; Device subaddress
; Buffer to store length of transmitted pulses
;Toggle every bit

ANS: DS

SPEED:

DS

1 ; Speed control Register

SPEED1:

DS

ADDR:DS

STACK: DS

; Stack begins here

Table of contents

1.Introduction...6
2.Design...............................................................................................................7-8
2.1 Power supply.7.
2.2 Microcontroller 80517
2.3 communication..7
2.4 Encoder.8
2.5 RF Module..8
2.6 Decoder HT 12D8
2.7 Voltage regulator....8
3.Working....9
3.1 8051 microcontroller...10
3.2 circuit diagram..11-12
3.3 coding.13-15
4.Advantages16
5. Limitations....16
6.Conclusion17
7.References18