Beruflich Dokumente
Kultur Dokumente
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.
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.
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.
INPUT EQU
P3.2
ZERO
EQU
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=PIN5
;SCL=PIN6
WTCMD EQU
10100000B
RDCMD EQU
10100001B
DSEG
ORG
FLAGS: DS
CONTROL BIT
NEW
BIT
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
;FAN
COMMAND: DS
SUBAD: DS
BUFFER: DS
30
TOGGLE: DS
ANS: DS
SPEED:
DS
SPEED1:
DS
ADDR:DS
STACK: DS
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