M.P.I Project Report
M.P.I Project Report
GROUP MEMBERS:
TABLE OF CONTENT
INTRODUCTION: // OVERVIEW
In this project, we learned How to interface 433MHz RF with AVR ATmega32
Microcontroller. Here, we will transfer data from RF Transmitter circuit to RF
Receiver circuit wirelessly. The data is of 4 Bit as the RF circuit we are using is a 4
channel RF. Also, we have displayed the received data at RF Receiver circuit in a
1X8 LED array.
The microcontroller at the transmitter circuit will transmit data from 0 to 15 to the
HT12E encoder of RF transmitter circuit. The HT12E will encode the 8 bit address
and 4 bit data given to it and then it will transmit the encoded signal serially to the
RF module. The RF module will transmit the encoded data and address wirelessly.
At the receiver end, the RF receiver module will receive the encoded 4 bit data and
8 bit address. Then, it will transmit the encoded signal serially to the HT12D
decoder which will decode the received signal to 8 bit address and 4 bit data. After
decoding, the HT12D will compare the received 8 bit address with its local 8 bit
address. If the received address and the local address are same, then the received 4
bit data is sent to its output pins else the received data is discarded. The 4 bit output
of HT12D is sent to the microcontroller at the RF receiver circuit. The ATmega32
microcontroller will read the received RF data and it will display it in the 1X8 LED
array. The above process continues forever.
3
OBJECTIVES:
To make the communications safe and secure.
Transmission 433:
LPD433 (low power device 433 MHz) is a UHF band in which license free
communication devices. The frequencies correspond with the ITU region 1 ISM
band of 433.050 MHz to 434.790 MHz, and operation is limited to CEPT
countries. The frequencies used are within the 70-centimeter band.
LPD hand-held radios are authorized for license-free voice communications use in
most of Europe using analog frequency modulation (FM) as part of short range
device regulations, with 25 kHz channel spacing, for a total of 69 channels. In
some countries, LPD devices may only be used with an integral and non-
removable antenna with a maximum legal power output of 10 mW.
Voice communication in the LPD band was introduced to reduce the burden on the
eight (now sixteen)[2] PMR446 channels over shorter ranges (less than 1 km) .
LPD is also used by wireless instruments and digital devices such as car keylocks.
HT12D:
Diagram:
Datasheet:
5
HT12D is a 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.
Pin Configuration
Diagram:
Pin Description:
Pin
Function Name
No
01 8 bit Address pins for input A0
02 A1
03 A2
04 A3
6
05 A4
06 A5
07 A6
08 A7
09 Ground (0V) Ground
10 D0
11 D1
4 bit Data/Address pins for output
12 D2
13 D3
14 Serial data input Input
15 Oscillator output Osc2
16 Oscillator input Osc1
17 Valid transmission; active high VT
18 Supply voltage; 5V (2.4V-12V) Vcc
AVR:
KEYPAD:
RF Transmitter/Receiver:
Diagram:
The RF module is often used along with a pair of encoder/decoder. The encoder is
used for encoding parallel data for transmission feed while reception is decoded by
a decoder. HT12E-HT12D, HT640-HT648, etc. are some commonly used
encoder/decoder pair ICs.
Pin Diagram:
Pin Description:
RF Transmitter
8
Pin
Function Name
No
1 Ground (0V) Ground
2 Serial data input pin Data
3 Supply voltage; 5V Vcc
4 Antenna output pin ANT
RF Receiver
Pin
Function Name
No
1 Ground (0V) Ground
2 Serial data output pin Data
3 Linear output pin; not connected NC
4 Supply voltage; 5V Vcc
5 Supply voltage; 5V Vcc
6 Ground (0V) Ground
7 Ground (0V) Ground
8 Antenna input pin ANT
PIC:
Working Of ASK Modulation:
Transmission of ASK:
The transmission of digital signals is increasing at a rapid rate. Low-
frequency analogue signals are often converted to digital format (PAM) before
transmission. The source signals are generally referred to as baseband signals. Of
course, we can send analogue and digital signals directly over a medium. From
electro-magnetic theory, for efficient radiation of electrical energy from an antenna
9
Demodulation of ASK:
As ASK is really just AM with a digital message instead of speech or music,
it can be recovered using any of the AM demodulation schemes. The next part of
the experiment lets you do so using an envelope detector. We needs a modulator to
modulate the data to a high carrier frequency, so that the signal can be transmitted
effectively. Therefore, for receiver, we must convert the digital signal back to the
modulating signal. There are two methods to design the ASK demodulator, which
are asynchronous detector and synchronous detector. We will discuss
Asynchronous Detection of ASK demodulator in this experiment.
The ASK generation and demodulation parts of the set-up can be represented by
the block diagram. The rectifier on the Utilities module and the Tuneable Low-pass
filter module are used to implement an envelope detector to recover the digital data
from the ASK signal.
10
Pin Diagram:
11
Pin Description:
Pin
Function Name
No
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
3 Contrast adjustment; through a variable resistor VEE
Selects command register when low; and data register Register
4
when high Select
5 Low to write to the register; High to read from the register Read/write
6 Sends data to data pins when a high to low pulse is given Enable
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
Softwares Used:
AVR Studio 7
Proteus 8 professional
Matlab
Simulink
Components Used:
1. Atmega8 AVR Microcontroller (2)
2. USBASP programmer
12