Wireless RF Project Report For Web PDF
Wireless RF Project Report For Web PDF
Wireless RF Project Report For Web PDF
PIC16F72/73 Microcontroller
ABSTRACT
The Radio Frequency Module is basically a PIC Microcontroller Based Wireless
Communication System. Wireless RF Module Technology enables a vast edge to any
electronics project & provide many consistent advantages, which leads it to todays
up-to-date technology. An RF module is a small electronic circuit used to transmit,
receive, or transceive a radio waves on one of a number of carrier frequencies. RF
modules are widely used in consumer applications such as garage door openers,
wireless alarm systems, industrial remote controls, smart sensor applications and
wireless home automation systems. They are often used instead of infrared remote
controls as they have the advantage of not requiring line-of-sight operation.
Radio Frequency involves two sub units Named, Transmitter & Receiver. As their
name implies transmitter is used to transmit or to send the data from input & it
convert into serial port data by using HT12E encoder. This encoded data get received by receiver placing far away from it. The first job that a receiver do after
receiving it, Is to convert or decode the data into parallel ports by using HT12D decoder. After converting the data into parallel form we simply connect the receiver
side circuit with relay so that we can operate AC devices (e.g. Bulb, Tube, Fan etc.)
with RF Module.
And, About The Matter Technology that I have used is PIC16F73. The Technology
of Any Project is Considered as The Heart as well as The Mind To It. The Biggest
Concern To Any Student Or Trainee Remains That The Technology Hes Going Learn
Must Be Up-to-Date and Must to be In Industrys Interest. So, Thats Why Ive Chosen
PIC Series Of Microcontrollers. They are Cost Effective, Provide Wide Availability,
large user base, extensive collection of application notes, availability of low cost
or free development tools, and serial programming (and re-programming with
flash memory) capability.
The very first thing that concern to any electronics engineering student before
choosing the project is its Applications. That means How much innovative the project is ? And How We can make it more innovative & also make it up-to-date so that
it can extend to the bigger Applications of this age of Smart & Vast life.? And, Also
Its Applications must be cost effective so that everyone can use it without any
economical hesitation. There are numerous applications of wireless RF module. As,
Todays one of the vast & leading technology Named RFID is based on this principle
of RF module. The wireless mouse also work on the same principle. And, beyond
them Industrial Automation, Custom Wireless Remote Controls like wireless x-ray
systems & Long-Range Wireless Switch System (Hand-Held), Machine To Machine
(M2M) RF Wireless Networking, Robot Control , Weather Monitoring System &
Identifying Objects Using RF Transmitters And Receivers and Retrieving Data Using
GSM etc. could be considered as Its Future prospects to work on. This is Indeed a
great Project to work on.!
ii
Acknowledgement
It would be inappropriate to call this report complete and successful, If I dont
thank the people who guided as in the preparation of this project. The submission of this project report gives me an opportunity to convey my gratitude to all
those who have helped me to reach stage from where I have immense confidence to
launch my career in the competitive world of electronics engineering.
First and foremost, I would like to acknowledge my hearty thanks to the respected
Mr. |------------|, HOD (ECE) for being a source of perpetual inspiration and for
providing me such a nice environment for training with timely help.
I would also like to express my most sincere gratitude and indebtedness to my
guide Mr. |-------------| for their valuable help during the development of this
project. Without his priceless suggestion and timely help I would not be able to
complete this project. He has been a source of perpetual inspiration to me, towards
a bright career. Not to forget the pain staking efforts of my college training and
placement cell. Last but not the least I would express my utmost regards for the
electronics and communication department of my Institute.
Abhishek Sharma
B-Tech.
ECE - 4th Sem.
iii
Tables
Fig: 6.6.2
27
Fig: 9.3
Frequencies Table Of RF
39
Figures
Fig: 4.1.1
Types Of OrCAD
Fig: 4.3.1
A Still Of MikroC
12
Fig: 5.3.4
16
Fig: 5.4.2
18
Fig: 5.5.3
20
Fig: 6.0
iv
21
Fig: 6.6
Fig: 6.8
28
Fig: 6.9.1
29
Fig: 9.3.1
RF Frequency Spectrum
40
Fig: 9.5
40
Fig: 9.5.1
Transmitter/Receiver Explained
41
Fig: 9.8
RF Module
45
Fig: 9.9.1
46
Fig: 9.9.2
Fig: 9.10
Flowchart Of RF Module
47
48
Fig: 11.1.1
Fig: 11.2.4
RFID
Wireless RF Based Mouse
51
53
Fig: 11.5
55
Fig: 11.6
56
24
Table Of Content
Title
Chapter No.
Title Page
Abstract
ii
Acknowledgement
iii
iv
Introduction
1.
Page No.
1.1
What is Wireless.?
1.2
1.3
Examples Of Wireless
Devices
Radio Frequency
1.4
What is RF Module ?
2
2
1.5
1.6
RF Modules Performance
Scope of Wireless RF Module
2
3
2.
Features Of RF Module
3.
3.1
3.2
3.3
3.4
4.
Input Requirement
Output Requirement
Software Requirement
Hardware Requirement
Tools To be Used
4.1
4.2
OrCAD
4.1.1
PCB Designing
4.1.2
Layout Plus
4.1.3
Capture CIS
PIC Burner
5
5
6
6
7
8
8
9
9
10
4.3
MikroC
11
4.4
13
5.
PCB Designing
5.1
5.2
5.3
5.4
5.5
6.
Types Of PCB
Function Of PCB
Techniques Used
OrCAD Design Environment
Placement Of Layout Plus
21
Introduction
Special Microcontroller
Features
Peripheral Features
CMOS Technology
Data Space (RAM)
PIN Diagram
PIN Description
Feature Table
Memory Orgenization
Core Architecture
USART
22
6.3
6.4
6.5
6.6
6.6.1
6.6.2
7.
Project Planning
7.1 Project Planning & Scheduling
8.
14
14
15
17
19
Technology To be Used
6.1
6.2
6.7
6.8
6.9
14
Requirement Analysis
8.1
22
23
23
23
24
25
27
27
28
29
30
30
31
Components
PCB
Capacitor
L.E.D
L.C.D
Relay
Resistor
BX433A
ULN280 1A
Battery
HT12E/ Encoder
HT12D/ Decoder
PIC16F73
32
32
32
33
33
34
34
35
35
35
36
36
37
9.
Working Of RF Module
9.1
9.2
9.3
9.4
9.5
9.6
9.7
9.8
9.9
10.
11.
Applications Of RF Module
11.1
RFID
11.1.1
Operation Of RFID
11.1.2
Applications Of RFID
11.2
Wireless Mouse
11.2.1
RF Transmitter
11.2.2
RF Receiver
11.2.3
RF Frequency
11.2.4
Advantages
11.3
Industrial Automation
11.4
Custom Wireless Remote Controls
11.4.1
Wireless X-Ray System
11.4.2 Long Range Transmitter
11.5
Machine to Machine Wireless RF
Networking
11.6
Robot Using RF Remote Control
38
38
39
40
40
43
44
45
46
46
47
48
49
49
50
50
50
51
52
52
52
52
53
53
54
54
54
55
56
12.
57
13.
Future Of Project
59
13.1
13.2
13.3
13.4
Identifying Objects
Using RF Technology
Radio Transmitter Design
Two Channels RF Control
Weather Monitoring System
59
59
60
60
14.
Appendix
61
15.
Bibliography
62
1. INTRODUCTION
1.1 What is wireless ?
Page 1
Page 2
Page 3
Vehicle Monitoring
Remote Control
Telemetry
Small-Range wireless network
Wireless meter reading
Access control systems
Wireless home security systems
Area paging
Industrial data acquisition system
Radio tags reading
RF contact less smart cards
Wireless data terminals
Wireless fire protection systems
Biological signal acquisition
Hydrological and meteorological monitoring
Robot remote control
Wireless data transmissions
Digital video/audio transmission
Digital home automation, such as remote light
Industrial remote control and remote sensing
Remote control for household appliances and
Electronics projects
Mobile web server for elderly people monitoring
2.
FEATURES Of RF MoDULE
There are several features of wireless RF Module:
Page 4
Interference Immunity
Low Power Required
Receiver Sensitivity
RF Basics
Wireless Data Communication
Wireless Transceiver Modules
Reliable
Power Efficient
Long Range Communication
3KHz - 300GHz of Range
Cost Effective
Small size (QLP 4x4 mm package)
True single chip UHF RF transmitter
Frequency bands: 300-348 MHz,
400-464MHz and 800-928 MHz
Programmable data rate up to 500kBaud
Low current consumption
Programmable output power up to
+10dBm for all supported frequencies
Programmable baseband modulator
Ideal for multi-channel operation
Very few external components:
Completely on-chip frequency
Synthesizer,
no external filters needed
Configurable packet handling hardware
Suitable for frequency hopping systems
due to a fast settling frequency
synthesizer
Optional Forward Error Correction with
interleaving
Many powerful digital features allow a
high-performance RF system to be made
using an inexpensive microcontroller
Efficient SPI interface: All registers can
be programmed with one burst
transfer
Integrated analog temperature sensor
Support for asynchronous transparent
transmit mode for backwards
compatibility with existing radio
communication protocols
Page 5
Page 6
Development
OrCAD is a proprietary software tool suite used primarily for electronic design automation.
The software is used mainly by electronic design engineers and electronic technicians to
create electronic schematics and electronic prints for manufacturing printed circuit boards.
The name OrCAD is a portmanteau, reflecting the company and its software's origins:
Oregon + CAD
Page 7
4.1 OrCAD
The Cadence OrCAD product line provides affordable, high-performance PCB design
tools that boost productivity for smaller design teams and individual PCB designers.
OrCad has a long history of providing individuals and teams with a complete set
of technologies that offer unprecedented productivity, seamless tool integration,
and exceptional value. New 10.5 release continues that tradition.
Today's lower cost and yet highly sophisticated electronic design automation
systems have created a unique challenge to nearly every engineering department.
Therefore the use of EDA tools has become increasingly important as product life
cycles have become shorter and shorter.
Modern electronic design automation (EDA) tools are beginning to support a
more efficient and integrated approach to electronic. OrCad Capture design
entry is the most widely used schematic entry system in electronic design today
for one simple reason: fast and universal design entry. Whether you're designing a
new analog circuit, revising schematic diagram for an existing PCB, or designing a
digital block diagram with an HDL module, OrCad Capture provides simple schematic commands you need to enter, modify and verify the design for PCB. OrCad
Layout offers PCB designers and PCB design teams the power and flexibility to
create and share PCB data and constraints across the design flow. OrCad Layout
delivers all the capabilities to designers need from netlist to place and route, to
final output.
Page 8
Features
Offers a proven, scalable, easy-to-use PCB editing and routing solution that grows
as needed
Tight, front-to-back application integration increases productivity and ensures data
integrity
A comprehensive feature set and a seamless PCB design environment delivers a
complete solution to take a design from concept to production
Page 9
CIS allows designers to search, identify, and populate the design with preferred
parts. With easy access to company component databases and part information,
designers can reduce the amount of time spent researching needed parts.
Features
Boosts schematic editing efficiency of complex designs through hierarchical and
Variant design capabilities.
Integrates with a robust CIS that promotes the use of preferred, current parts to
Accelerate the design process and reduce project costs.
Provides access to more than two million parts with Cadence Active Parts,
Offering greater flexibility when choosing design components.
Features
Linux and Windows XP/Vista/7 support
Parallel port hardware support
Program memory and configuration memory read/write/verify
Data memory read/write/verify
Reads and writes multiple hex file formats (inhx32, inhx16, inhx8m)
Input file format auto detection
Good documentation
Page 10
Page 11
Features
Write your C source code using the built-in Code Editor (Code and Parameter
Assistants, Syntax Highlighting, Auto Correct, Code Templates, and more)
Use the included mikroC libraries to dramatically speed up the development: data
Acquisition, memory, displays, conversions, communications
Monitor your program structure, variables, and functions in the Code Explorer.
Generate commented, human-readable assembly, and standard HEX compatible
with all programmers.
Inspect program flow and debug executable logic with the integrated Debugger.
Get detailed reports and graphs: RAM and ROM map, code statistics, assembly
Listing, calling tree, and more
We have provided plenty of examples for you to expand, develop, and use as
Building bricks in your projects. Copy them entirely if you deem fit
4.3.2 Projects
mikroC organizes applications into projects, consisting of a single project file (extension
.ppc) and one or more source files (extension .c). You can compile source files only if they
are part of a project.
The project file carries the following information:
Page 12
4.4
A bootloader is a program that stays in the micro controller and communicates with the
PC (usually through the serial interface).The bootloader receives a user program from
the PC and writes it in the flash memory, then launches this program in execution.
Bootloaders can only be used with those micro controllers that can write their flash
memory through software as PIC16F870.
USB PIC Bootloader is a resident bootloader for PIC18 series of Enhanced Flash USB
Micro controllers. It allows us to program a new firmware application image into the chip
using the standard USB connectivity of your device.
USB PIC Bootloader fully complies with USB Specification for Human Input Devices
(HID) and all interfacing is done via standard HID driver from Microsoft.
XTEA encryption algorithm is used to protect privacy of firmware application updated
With USB PIC Bootloader.
USB PIC Bootloader code is write-protected and cannot be overwritten by firmware.
Firmware update or user mode is selected by SW and/or HW switch.
USB PIC Bootloader is a small program that stays in the first 2,048 bytes of the pro
Gram memory of the Microchip PIC Micro controller.
Bootloader runs at the boot time (when the processor has just been reset) and is
Capable of loading a complete application program into a processor's memory.
With the USB PIC Bootloader loaded, there are two distinct modes of operation:
Firmware update mode and user mode.
USB PIC Bootloader uses the EEPROM mark and/or hardware switch to determine
which mode to run in.
The bootloader firmware is given in the form of Basic source program that has to be
compiled with PIC Simulator IDE integrated Basic compiler to get the HEX file ready to be
programmed into the microcontroller. The correct micro controller model needs to be
selected - 16F877(A), and the selected clock frequency is supposed to be at least 8MHz
Since the start address 0000 hex is set for the boot loader software our New start is
always 0010 hex. This means that when we write our code must always think that the
start is at address 0010 hex.
Page 13
5. PCB Designing
PCB stands for PRINTED CIRCUIT BOARD. Printed circuit board (PCB) provides
both the physical structure for mounting and holding the components as well as
the electrical interconnection between the components. That means a PCB or PWB
(printed wiring board) is the platform upon which electronic components such as
integrated circuit chips and other components are mounted. A PCB consists of a
non-conducting substrate (typically fiber glass with epoxy as resin) upon which the
conductive pattern or circuitry is formed. Copper is the most prevalent conductor
although nickel, silver and tin are also used in some cases.
Single-sided
Double-sided
Multilayer
Single sided PCBs: - As the name suggest in these designs the conductive
pattern is only at in one side. And also the size is large in
these case but these are cheap.
Double sided PCBs:-These are the PCBs on which the conductive pattern is in on
both sides. The size of board is small in this case but it
is costlier than that of above.
Multilayer PCBs:- In this case the board consists of alternating layers of
conducting pattern and insulating material. The conductive
Material is connected across the layers through plated
Through holes.
The size of this PCB is smaller than that of double sided PCB but it is very costly.
PCBs may also be either rigid, flexible, or the combination of two (rigid-flex). When
the electronic components have been mounted on the PCB, the combination of
PCB and components is an electronic assembly, also called PRINTED CIRCUIT ASSEMBLY. This assembly is the basic building block for all the electronic appliances
such as television, computer and other goods.
Page 14
Page 15
Auto placement
Auto routing
After routing, optimization of tracks can be done.
Provides physical design reuse modules
Electrical rule check (ERC)
All the layers are generated from the same design by giving different options.
Bill of material can be generated which contains number of different components
used.
We can draw conductors as an arc, semi-circular at different angles.
Design Rule Check
Advanced CAD systems have high speed analysis.
CAD system provides all NCD files and Gerber data files for photo plotting.
One can search for information in the session log using the find command on the Edit
menu. You can also save the contents of the of the session log to a file, which is useful
when working with OrCADs technical support to solve technical problems. The default
filename is SESSION.TXT
Page 18
Page 19
At first, we have created a net list from our schematic diagram by using capture.
Layout plus includes design rules in order to guide logical placement and routing.
That means, load the net list into layout to create the board.
Specify board parameters: Specifying global setting for the board, including nits of
Measurements, grid, and spacing
Place components: Use the components tool in order to place manually the
Components which are fixed by the system designer on the board or otherwise use
Auto-placement.
Route the board: Use different routing technologies to route the board and take
Advantage of push and shove (a routing technology), which moves track you are
Currently routing as well as you can also auto route the board.
Provide finishing of the board: Layout supplies an ordered progression of
commands on the auto menu for finishing your design. These commands include
design rule check, cleanup design, rename components, back annotate, run post
processor, and create reports.
Ensure that net list with all footprints and necessary information has been
created.
Create a directory in which the schematic design, net list, and boar will co-exit
and put the schematic design and net list. OrCad provides a directory for this
purpose.
From the layout session frames file menu, choose New. The load template file in
the dialog box displayed.
Page 20
Choose the components tool bar button. From the pop up men, choose the queue for
placement. The components selection criteria dialog box appears. Enter the reference
designator of the components that you want to place in the appropriate text box, and
click ok. Drag the components to desired location, place it there.
6. Technology To Be
Used
The Technology of Any Project is Considered as The Heart as well as The Mind To It.
The Biggest Concern To Any Student Or Trainee Remains That The Technology Hes
Gonna Learn Must Be Up-to-Date and Must to be In Industrys Interest. So, Thats Why
Ive Choose PIC Series Of Microcontrollers. They are Cost Effective, Provide Wide Availability, large user base, extensive collection of application notes, availability of low
cost or free development tools, and serial programming (and re-programming with
flash memory) capability.
The Microchip 16C84 (PIC16x84), introduced in 1993 , was the first Microchip CPU with onchip EEPROM memory. This electrically erasable memory made it cost less than CPUs that
required a quartz Erase window for erasing EPROM.
It is generally thought that PIC stands for Peripheral Interface Controller, although General
Instruments' original acronym for the initial PIC1640 and PIC1650 devices was "Programmable Interface Controller". The acronym was quickly replaced with "Programmable Intelligent
Computer".
Page 21
PIC 16 Series-PIC16F73
PIC16F73/76 devices are available only in 28-pin packages,while PIC16F74/77
devices are available in 40-pin and 44-pin packages. All devices in the
PIC16F7X family share common architecture, with the following differences:
The PIC16F73 and PIC16F76 have one-half of the total on-chip memory of
the PIC16F74 and PIC16F77.
The 28-pin devices have 3 I/O ports, while the 40/44-pin devices have 5.
The 28-pin devices have 11 interrupts, while the 40/44-pin devices have 12.
The 28-pin devices have 5 A/D input channels, while the 40/44-pin devices
have 8.
The Parallel Slave Port is implemented only on the 40/44-pin devices.
6.1 Introduction
PICs are popular with developers and hobbyists alike due to their low cost,
wide availability, large user base, extensive collection of application notes,
availability of low cost or free development tools, and serial programming (and
re-programming with flash memory) capability.
Page 22
10.
11.
12.
13.
Page 23
() RESET
The PIC16F7X differentiates between various kinds of RESET:
Power-on Reset (POR)
MCLR Reset during normal operation
MCLR Reset during SLEEP
WDT Reset (during normal operation)
WDT Wake-up (during SLEEP)
Brown-out Reset (BOR)
Some registers are not affected in any RESET condion. Their status is unknown
on POR and unchanged n any other RESET. Most other registers are reset to a
RESET state on Power-on Reset (POR), on the MCLR and WDT Reset, on MCLR
Reset during LEEP, and Brown-out Reset (BOR). They are not affected by a WDT
Wake-up, which is viewed as the resumption of normal operation. The TO and
PD bits are set or cleared differently in different RESET situations, as indicated
() GND (pin 8)
() OSC1/CLK IN -(pin 9)
Page 25
Oscillator Type:
The PIC16F7X can be operated in four different oscillator modes:
LP Low Power Crystal
XT Crystal/Resonator
HS High Speed Crystal/Resonator
RC Resistor/Capacitor
() Vss(pin 19)
Ground reference for logic and I/O pins
() Vdd(pin 20)
Positive supply for logic and I/O pins
Page 26
Page 27
There are two memory blocks in each of these PICmicro MCUs. The Program
Memory and Data Memory have separate buses so that concurrent access can
Occur and is detailed in this section. The Program Memory can be read internally
By user code.
Additional information on device memory may be found in the PICmicro MidRange Reference Manual.
Fig: 6.8 Flowchart Showing a typical microcontroller device and its different sub-Units
The PIC architecture is distinctively minimalist. It is characterized by the following features:
Separate code and data spaces (Harvard architecture)
A small number of fixed length instructions
Most instructions are single cycle execution (4 clock cycles), with single
delay cycles upon branches and skips
A single accumulator (W), the use of which (as source operand) is
implied (i.e. is not encoded in the opcode)
All RAM locations function as registers as both source and/or destination
of math and other functions.
A hardware stack for storing return addresses
A fairly small amount of addressable data space (typically 256 bytes),
Extended through banking
Data space mapped CPU, port, and peripheral registers
The program counter is also mapped into the data space and writable
(this is used to implement indirect jumps).
Page 28
Unlike most other CPUs, there is no distinction between memory space and register space because the RAM serves the job of both memory and registers, and
the RAM is usually just referred to as the register file or simply as the registers.
Advantages
The PIC architectures have these advantages:
Small instruction set to learn.
RISC architecture.
Built in oscillator with selectable speeds.
Easy entry level, in circuit programming plus in circuit debugging.
PICKit units available from Microchip.com for less than $50.
Inexpensive microcontrollers.
Wide range of interfaces including IC, SPI, USB, USART, A/D,
programmable comparators, PWM, LIN, CAN, PSP, and Ethernet.
Page 29
7. Project Planning
Now, After The Project Planning Im Very Interested to Add The List Of The Components
Thats been Used in the Wireless RF Module Project. So, Heres Gonna Be The Step By
Step Listing Of Components Of This Project Under Requirement Analysis.
Page 30
8. REQUIREMENT
ANALYSIS
Page 31
8.1.3 Capacitor
Page 32
Page 33
8.1.6 Relay
8.1.7 Resistors
A resistor is a passive two-terminal electrical component
that implements electrical resistance as a circuit element.
The current through a resistor is in direct proportion to
the voltage across the resistor's terminals. Thus, the ratio
of the voltage applied across a resistor's terminals to the
intensity of current through the circuit is called resistance.
Practical resistors have a series inductance and a small
parallel capacitance; these specifications can be important
in high-frequency applications. In a low-noise amplifier
or pre-amp, the noise characteristics of a resistor may
be an issue. The unwanted inductance, excess noise, and
temperature coefficient are mainly dependent on the
technology used in manufacturing the resistor. A family
of discrete resistors is also characterized according to its
form factor, that is, the size of the device and the position
of its leads (or terminals) which is relevant in the practical
manufacturing of circuits using them.
Page 34
8.1.8 BX R433A
8.1.9 ULN2801A
8.1.10
Battery
Page 35
Features
Operating voltage
-2.4V~5V for the HT12A
-2.4V~12V for the HT12E
Low power and high noise immunity CMOS technology
Low standby current: 0.1A (type.) at VDD=5V
HT12A with a 38kHz carrier for infrared transmission
medium
Minimum transmission word
-Four words for the HT12E
-One word for the HT12A
Built-in oscillator needs only 5% resistor
Data code has positive polarity
Minimal external components
HT12A/E: 18-pin DIP/20-pin SOP package
Page 36
Features
8.1.13 PIC16F73
Features
PIC is a powerful (200 nanosecond instruction execution) yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs
Microchips powerful PIC architecture into 28-pin package and is upwards compatible with the PIC16C5X, PIC12CXXX and PIC16C7X devices. The PIC16F73 features 5
channels of 8-bit Analog-to-Digital (A/D) converter with
2 additional timers, 2 capture/compare/PWM functions and the synchronous serial port can be configured
as either 3-wire Serial Peripheral Interface (SPI) or the
2-wire Inter-Integrated Circuit (IC) bus and a Universal
Asynchronous Receiver Transmitter (USART). All of these
features make it ideal for more advanced level A/D
applications in automotive, industrial, appliances and
consumer applications.
2 PWM 10-bit
25mA sink/source per I/O
2 Capture/Compare
Parallel Slave Port
Page 37
Parameter Name
Program Memory Type
Program Memory (KB)
CPU Speed (MIPS)
RAM Bytes
Digital Communication
Peripherals
Value
Flash
7
5
192
1-A/E/USART,
1-SSP(SPI/I2C)
Capture/Compare/
PWM Peripherals
2 CCP
Timers
2 x 8-bit, 1 x 16-bit
ADC
5 ch, 8-bit
Temperature Range (C)
-40 to 125
Operating Voltage Range (V)
2 to 5.5
Pin Count
28
9. Working Of RF Module
As In The Very First Chapter Of This Report The Introduction has been Pasted.
But Now In This Chapter Im Going To Tell The Operating Functionality Of
Wireless Radio Frequency Module Using PIC 16F73.
Before Just Directing to the working of RF Module Let us read abut the RF Current
& Its Behaviour first.
Electric currents that oscillate at radio frequencies have special properties not
shared by direct current or alternating current of lower frequencies. The energy in an RF current can radiate off a conductor into space as electromagnetic
waves (radio waves); this is the basis of radio technology. RF current does not
penetrate deeply into electrical conductors but flows along their surfaces; this
is known as the skin effect. For this reason, when the human body comes in contact with high power RF currents it can cause superficial but serious burns called
RF burns. RF current can easily ionize air, creating a conductive path through it.
This property is exploited by "high frequency" units used in electric arc welding,
which use currents at higher frequencies than power distribution uses. Another
property is the ability to appear to flow through paths that contain insulating
material, like the dielectric insulator of a capacitor. When conducted by an ordinary electric cable, RF current has a tendency to reflect from discontinuities in
the cable such as connectors and travel back down the cable toward the source,
causing a condition called standing waves, so RF current must be carried by specialized types of cable called transmission line.
Page 38
Page 39
To start off, RF (Radio Frequency) Communication is the most preferred and low cost
solution. All we need is a RF Module (Transmitter-Receiver Pair). Now, thats not all. RF
Communication works on the principle of Serial Communication. Thus, We need something which converts the conventional n-bit (4-bit, 8-bit, 16-bit, etc) data into serial
data. For this, we have two choices:
Use a microcontroller to convert the n-bit data into serial data and viceversa
Use serial encoders/decoders to do the same.
But, If We Use the Both Then It Would Be More Innovative & Impressive As Well Be
Able To Get The Output On L.C.D As Well. For L.C.D Interfacing With Encoder/Decode &
Serial Ports We Strongly Need a Microcontroller, Which In Our Project is PIC 16F73. So
Heres The Working Below:
Page 40
A general RF communication block diagram is shown above. Since most of the encoders/decoders/microcontrollers are TTL compatible, most of the inputs by the user will
be given in TTL logic level. Thus, this TTL input is to be converted into serial data input
using an encoder or a microcontroller. This serial data can be directly read using the RF
Transmitter, which then performs ASK (in some cases FSK) modulation on it and transmit the data through the antenna.
In the receiver side, the RF Receiver receives the modulated signal through the antenna,
performs all kinds of processing, filtering, demodulation, etc and gives out a serial data.
This serial data is then converted to a TTL level logic data, which is the same data that
the user has input.
RF Modules are used wireless transfer data. This makes them most suitable for remote
control applications, as in where we need to control some machines or robots without
getting in touch with them (may be due to various reasons like safety, etc). Now depending upon the type of application, the RF module is chosen. For short range wireless
control applications, an ASK RF Transmitter-Receiver Module of frequency 315 MHz or
433 MHz is most suitable.
Page 41
Features
Antenna
Now that all the connections are made, we must choose an antenna for signal transmission. Usually, a 20-30 cm wire serves best. It is sufficient to give a range of 80
meters in open region. To improve the efficiency, we can also use a coiled wire (take
a wire and make it into a coil). It increases the signal strength.
Page 42
Since, As We Know The PIC 16F73 is a Micro-Controller Which Without a Pogramming Code is As
Dumb As a Small Plastic Stuff With Having Some Sharp Pins. So, To Make This PIC Our Projects CPU
Weve Added The Following Programming Written In Embedded C Using MikroC As a Compiler.
Void main()
{
TRISC=0X0f; PORTB=0;
LCD_Init(&PORTB);
// Initilize The LCD Connected On PORTB.
LCD_Cmd(LCD_CLEAR);
// Clear display.
LCD_Cmd(LCD_CURSOR_OFF); // Turn cursor off.
LCD_Out(1,1,"Device 1 is ");
LCD_Out(2,1,"Device 2 is ");
LCD_Out(2,9,"OFF");
LCD_Out(1,9,"OFF");
while(1)
{
if(PORTC.F0==0)
{
LCD_Out(2,9,"OFF");
LCD_Out(1,9,"OFF");
PORTC.F6=0;
PORTC.F7=0;
}
if(PORTC.F1==0)
{
LCD_Out(2,9,"OFF");
LCD_Out(1,9,"ON");
PORTC.F6=1;
PORTC.F7=0;
}
if(PORTC.F2==0)
{
LCD_Out(2,9,"ON");
LCD_Out(1,9,"OFF");
PORTC.F6=0;
PORTC.F7=1;
}
Page 43
if(PORTC.F3==0)
{
LCD_Out(2,9,"ON");
LCD_Out(1,9,"ON");
PORTC.F6=1;
PORTC.F7=1;
} }}
// An Infinite Loop.
Features - Encoder
18 PIN DIP
Operating Voltage : 2.4V ~ 12V
Low Power and High Noise Immunity
CMOS Technology
Low Standby Current and Minimum Transmission
Word
Built-in Oscillator needs only 5% Resistor
Easy Interface with and RF or an Infrared
transmission medium
Minimal External Components
The HT12D Decoder ICs are series of CMOS LSIs for remote control system applications. This ICs are paired with each other. For proper operation a pair of encoder/
decoder with the same number of address and data format should be selected.
The Decoder receive the serial address and data from its corresponding decoder,
transmitted by a carrier using an RF transmission medium and gives output to the
output pins after processing the data.
Features - Decoder
Applications
Page 44
18 PIN DIP
Operating Voltage : 2.4V ~ 12.0V
Low Power and High Noise Immunity
CMOS Technology
Low Stand by Current
Ternary address setting
Capable of Decoding 12 bits of Information
8 ~ 12 Address Pins and 0 ~ 4 Data Pins
Received Data are checked 2 times, Built in
Oscillator needs only 5% resistor
VT goes high during a valid transmission
Easy Interface with an RF of IR transmission
medium
Minimal External Components
Burglar Alarm, Smoke Alarm, Fire Alarm, Car Alarm, Security System
Garage Door and Car Door Controllers
Cordless telephone
Other Remote Control System Compatibility
Compatible with RF Modules 433 MHz Link RF Modules (Tx + Rx Pair)
433Mhz
Troubleshooting
Its obvious that we wont get the result in the first go itself! Its completely
normal, even in any case! . In that case, just try out the simple wired communica
tion. Connect the DOUT of the encoder directly to the DIN of the decoder using
a wire. Then check and recheck your connections, check whether the address is
the same, whether you have missed any Vcc or GND connection, etc. If still then a
successful link is not established, change the encoder/decoder ICs. Once the link
is established, connect the RF module and do the same. Try adjusting the antenna
position, touch the antenna (touching the antenna will make yourself an
antenna!), etc.
Page 45
Make the following circuit on an etched PCB. Here, we have used four switches S1, S2, S3 and S4 to give 4-bit parallel data (D0-D3). Since the switches
are in active low state (i.e. low signal is sent when the switch is pressed), we
need to add external pull-up resistors as shown, so as to provide a high signal
by default. A resistance as high as 1M ohm is required in between OSC1 and
OSC2 pins. The Transmitter Enable (TE, pin 14) pin is an active low pin. Thus,
it is permanently grounded, so as to enable the transistor always. The output
serial data DOUT is fed to the RF Transmitter Module directly.
The most important thing lies in the address pins (A0-A7, pin1-8). Suppose we
have two wireless devices (A and B) in our house, both have different remote
controls (AA and BB) and both implement the same type of RF module (say
433 MHz). AA is the remote control of A and BB is of B. Now, we obviously
wouldnt want AA to control B (which is the most probable case since both the
devices use same kind of RF module, having same frequency!). This is where
address pins come into play. There are 8 address pins, thus giving us an opportunity to have 8! (8 factorial) different and independent ways to connect to a
device, so that there is no interference. The address pins MUST have the same
address in both transmitter and receiver, or else the data wont be transferred.
Refer to the receiver circuit for more details.
Page 46
Page 47
Page 48
5.
6.
Page 49
11.1
Page 50
RFID tags contain at least two parts: an integrated circuit for storing and processing information, modulating and demodulating a radio-frequency (RF) signal,
collecting DC power from the incident reader signal, and other specialized functions; and an antenna for receiving and transmitting the signal.
Fixed readers are set up to create a specific interrogation zone which can be
tightly controlled. This allows a highly defined reading area for when tags go in
and out of the interrogation zone. Mobile readers may be hand-held or mounted
on carts or vehicles.
Page 51
Access management
Tracking of goods
Tracking of persons and animals
Toll collection and contactless payment
Machine readable travel documents
Smartdust (for massively distributed sensor networks)
Tracking sports memorabilia to verify authenticity
Airport baggage tracking logistics
11.2.1 RF Transmitter
A radio frequency (RF) transmitter is usually integrated inside the mouse.
The mouse records its movements and buttons that are clicked and then sends
this information via radio signals to the receiver.
11.2.2 RF Receiver
The radio frequency (RF) receiver usually connects to the computers peripheral mouse input. It receives these RF signals, decodes them, and then sends
these signals directly to the computer as normal. RF receivers usually come
in a few styles. The majority come as built in components that connect to the
mouse input, others come as a separate card that is installed in one of the
many expansion slots of computers, and the third type of receiver is a separate unit that is connected to a cable going directly to the computers peripheral input. Since the technology has been mastered, most wireless mice have
integrated receivers that plug into a computers peripheral input and are very
small in size.
11.2.3 RF Frequencies
Wireless mice mainly use Radio frequencies to transmit data from the mouse
to the computer. The most common type of RF is the 802.11b or 802.11g.
These frequencies operate at 2.4 gigahertz and at these frequencies a mouse
can transfer data at very quick speeds, either 11 Mbps or 56 Mbps. 2.4 gigahertz frequencies. These frequencies are very stable and usually have little
or no interference in a work or home environment. They also have a decent
range of about 100 to 150 feet which is more than enough for mouse
operation.
Page 52
RF wireless mice are a great technology because of their overall reliability and stability. Other forms of communication such as Infrared technology need to be in line of sight in order to work properly, which makes
using them with a mouse impractical.
Some of the reasons that RF technology is great for wireless mice
includes the fact that the RF transmitter housed in the mouse requires
low power. Usually, RF wireless mice are powered by small, light weight
batteries that are either disposable or usually rechargeable with an
included recharging dock.
Page 53
Page 54
Center Pivots
Light Control
Alarm Systems
PLC Activation
Engine Control
Wireless Automation
Fig: 11.5
Page 55
The simple system created using RF module track the robot by using wireless
communication i.e. from Control section (acts as transmitter) An ejecting the
control signals, then the robot receives (acts as receiver) the signals, according to the signals it will change the direction in different paths like forward,
backward, left, right.
Simple robot is easy to set up, And support the required hardware as desired
and also serves as the needs in future.
Specifications:
1.
2.
3.
4.
5.
6.
Page 56
Micro controller
Dc gare motors
Relays
Uln2003
Rf modules
Power supply
Page 57
Receiver Installed On PIC Based PCB With Transformer & Relay Connected
Page 58
As, We Know the Second thing after the Applications of any project which concerns the most to any electronics student is the future of that project by any
means, off course. So, Here in following chapter Im going to Add some of the
possible Futuristic Insights Of Wireless RF Module. And, Well Try Not To Be Ray
Kurzweil & Stephen Hawking , This Futuristic Insight May not be Very Impressive & Innovative but this would definately be the best possible Insights Abut
the project.
Page 59
Page 60
14. AppEnDiX
Abstraction allows us to layer semantics of complex system, breaking
them into more manageable pieces.
Radio Frequency : Radio Frequency (RF) is a rate of oscillation in the range of about 3
kHz to 300 GHz
Device : An instrumentality invented for a particular purpose
Wireless : Wireless is a term used to describe telecommunications in which
Electromagnetic waves carry the signal over part or all of the communication
path.
Module : A self-contained component (unit or item) that is used in combination with
other components
LED : Light Emitting Diode
LCD : Liquid Crystal Display
USB : Universal Serial Bus; a way of attaching peripheral devices to a computer
OrCAD : Oregon + CAD, OrCAD is a proprietary software tool suite used primarily for
electronics design automation
PCB : Printed circuit board (PCB) provides both the physical structure for mounting and
holding the components as well as the electrical interconnection between the
components.
Capture CIS : Component information system (CIS), A Part Of OrCAD Suite Used For Ckt
Designing.
Mikro C : MikroC is a powerful, feature rich development tool (Compiler) for
PICmicros.
Bootloader : The bootloader receives a user program from the PC and writes it in
the flash memory, then launches this program in execution.
Net-list : Net-list file is a document file which contains information about the logical
Interconnections between signals and pins.
Layout Plus : Layout plus is one part for the PCB design in which we place as well
as route the components an set unit of measurement, grids, and
spacing in OrCad.
PIC Burner : PIC Burner is very versatile software. We can use different kinds of
hardware with it, because the pins used on parallel port can be set using
a simple ini-file.
PIC : Peripheral Interface Controller, A Micro-Controller
USART : Universal Synchronous Asynchronous Reciever &Transmitter
RFID : Radio Frequency Identification
Communication : The activity of communicating; the activity of conveying information
Automation : The act of implementing the control of equipment with advanced
technology; usually involving electronic hardware
Transmitter : Any Device Set used to broadcast radio or tv signals
Page 61
15. BIBL
IOGRAPHY
Books:
PIC Microcontroler Notes - NetMax Technologies.
Data Sheet- PIC16F73 - Microchip Co. LTD.
Data Sheet - HT12E/212 Encoder
12
- HT12D/2 Decoder
Web Links:
http://www.wikipedia.org/
http://www.alldatasheet.com/
http://www.microchip.com/
http://www.remotecontroltech.com/
http://www.rentron.com/
http://howstuffworks.com/
http://Mikroelektronika.com/
Page 62
Personal Notes
Well, Guys Please Dont consider this page as an another boring chapter of this report of RF Project. Im Abhi Sharma, The Person Who Created That Project & its Report. In This Page Id like to Add Some of My
External Stuffs that would definitely be helpful for future purpose
if you bother to work on the same project. As long as I believe, This
Project Report Covers almost everything that It requires to hold for
a complete & an unabridged report should do. It Contains data from
data sheets, Web links & Journals so it obviously is an accurate stuff to
heed on.
Actually, the Main purpose of this Personal Note Page is that In pdf I
Cant Add All the Related stuff to the project. i mean the Video, Images
& Presentation etc. You know, it would very unhandy & Itd increase
the size of Document at a great extent & It definitely would make the
document very unstable. So, To deal with this problem Ive find a way
to provide you a link to an organized stack Thatd lead you to the related stuff of the project. So, Please Do Click on the Following icon of
delicious.com & get the stack into your browser.
:)
Page 63