Professional Documents
Culture Documents
~1~
CHAPTER I
1.1.
INTRODUCTION:
RFID is the special type wireless card which has inbuilt the
embedded chip along with loop antenna. The inbuilt embedded chip
represents the 12 digit card number. RFID reader is the circuit which
generates 125KHZ magnetic signal. This magnetic signal is transmitted by
the loop antenna connected along with this circuit which is used to read the
RFID card number.
In this project RFID card is used as security access card. So each
product has the individual RFID card which represents the product name.
RFID reader is interfaced with microcontroller. Here the microcontroller is
the flash type reprogrammable microcontroller in which we already
programmed with card number. The microcontroller is interfaced with
keypad.
~2~
1.2.
BLOCK DIAGRAM:
LCD
TRALLY WITH
RF ID
PIC
MICROCONTROLLER
RFID
READER
RFID tag
RFID reader
Microcontroller
Driver circuit
Alarm
Relay.
~3~
DRIVER
CIRCUIT
1.3.
CIRCUIT DIAGRAM
RF RX
MA
X
232
PC
~4~
1.4.
HISTORY:
In 1946 Lon Theremin invented an espionage tool for the Soviet Union
which retransmitted incident radio waves with audio information. Sound
waves vibrated a diaphragm which slightly altered the shape of the
resonator, which modulated the reflected radio frequency. Even though
this device was a passive covert listening device, not an identification
tag, it has been attributed as a predecessor to RFID technology. The
technology used in RFID has been around since the early 1920s
according to one source (although the same source states that RFID
systems have been around just since the late 1960s)
Similar technology, such as the IFF transponder invented in the
United Kingdom in 1939, was routinely used by the allies in World War
II to identify aircraft as friend or foe. Transponders are still used by
most powered aircraft to this day.
Another early work exploring RFID is the landmark 1948 paper
by Harry Stockman, titled "Communication by Means of Reflected
Power" (Proceedings of the IRE, pp 11961204, October 1948).
Stockman predicted that "considerable research and development
work has to be done before the remaining basic problems in reflectedpower communication are solved, and before the field of useful
applications is explored."
Mario Cardullo's U.S. Patent 3,713,148 in 1973 was the first true
ancestor of modern RFID; a passive radio transponder with memory.
The initial device was passive, powered by the interrogating signal, and
was demonstrated in 1971 to the New York Port Authority and other
potential users and consisted of a transponder with 16 bit memory for
use as a toll device. The basic Cardullo patent covers the use of RF,
sound and light as transmission media. The original business plan
~5~
INTRODUCTION TO RIFD
Libraries began using RFID systems to replace their electro-
magnetic and bar code systems in the late 1990s. Approximately 130
libraries in North America are using RFID systems, but hundreds more
are considering it (Molnar, Wagner, 2004). The primary cost impediment
is the price of each individual tag. Today, tags cost approximately
seventy-five cents but prices continue to fall. However, privacy concerns
associated with item-level tagging is another significant
Impediment to library use of RFID tags. The problem with todays
library RFID systems is that the tags contain static information that can
be relatively easily read by unauthorized tag readers. This allows for
privacy issues described as tracking and hot listing. Tracking refers
to the ability track the movement of a book (or person carrying the
book) by correlating multiple observations of the books bar code
(Molnar and Wagner, 2004) or RFID tag. Hot listing refers to process of
~6~
and the application that makes use of the data the reader reads on the
tag. Tag Also known as a transponder, the tag consists of an antenna and
silicon chip encapsulated in glass or plastic (Want, 2004). The tags
contain a very small amount of information. For example, many tags
contain only a bar code number and security bit (128 bits) but some tags
contain as much as 1,024 bits (Boss, 2003). Tags range in size from the
size of a grain of rice to two inch squares depending on their
application. Researchers are now working on tags as small as a speck of
dust (Cavoukian, February 2004). Tags can be passive, active or semiactive. An active tag contains some type of power source on the tag,
whereas the passive tags rely on the radio signal sent by the reader for
~7~
Power. Most RFID applications today utilize passive tags because they
are so much cheaper to manufacture. However, the lack of power poses
significant restrictions on the tags ability to perform computations and
communicate with the reader. It must be within range of the reader to
function. Semi-active tags are not yet commercially available but will
use a battery to run the microchips circuitry but not to communicate
with the reader. Semi-active tags rely on
Capacitive coupling and carbon ink for the antennas rather than the
traditional inductive coupling and silver or aluminum antenna used in
passive tags (Collins, 2004). Tags operate over a range of frequencies.
Passive tags can be low frequency (LF) or high frequency (HF). LF tags
operate at 125 KHz, are relatively expensive, and have a low read range
(less than 0.5 meters). HF tags operate at 13.56 MHz, have a longer read
range (approximately 1 meter) and are less expensive that LF tags. Most
library applications use HF tags (Allied Business Intelligence [ABI],
2002). Tags can be Read Only (RO), Write Once Read Many (WORM)
or Read Write (RW) (Boss, 2003). RO tags are preprogrammed with a
unique number like a serial number (or perhaps eventually an ISBN
number). WORM tags are preprogrammed but additional information
can be added if space permits. RW tags can be updated dynamically.
Sometimes space on the RW tags is locked where permanent data is kept
and the rest of the tag is writable.
According to Sharma et al. (2002), RFID readers or receivers are
composed of a radio frequency module, a control unit and an antenna to
interrogate electronic tags via radio frequency (RF) communication.
Many also include an interface that communicates with an application
(such as the librarys circulation system). Readers can be hand-held or
mounted in strategic locations so as to ensure they are able to read the
tags as the tags pass through an interrogation zone. The interrogation
zone is the area within which a reader can read the tag. The size of the
interrogation zone varies depending on the type of tag and the power of
~8~
the reader. Passive tags, with shorter read ranges, tend to operate within
a smaller interrogation zone (Sarma, et al., 2002). Most RFID readers in
libraries can read tags up to 16 inches away (Boss, 2003).
1.
APPLICATION
applications will account for more than 70% of all transponder (tag)
shipments. In the SCM market, items are tracked by pallet or container,
not by individual item. Once the individual items are removed from the
pallet, they are no longer tagged. In contrast, library applications require
that each individual item contain a tag that uniquely identifies the item
(book, CD, DVD, etc). The tag contains some amount of static data (bar
code number, manufacturer ID number) that is permanently affixed to
the library item. This information is conveyed, via reader, to the
librarys security, circulation and inventory applications.
1.6.
RFID TAGS
RFID tags come in three general varieties:- passive, active, or
PASSIVE
Passive RFID tags have no internal power supply. The minute electrical
current induced in the antenna by the incoming radio frequency signal
provides just enough power for the CMOS integrated circuit in the tag to
~ 10 ~
ACTIVE
Unlike passive RFID tags, active RFID tags have their own internal
power source, which is used to power the integrated circuits and to
broadcast the response signal to the reader. Communications from active
tags to readers is typically much more reliable (i.e. fewer errors) than
those from passive tags due to the ability for active tags to conduct a
"session" with a reader.
Active tags, due to their onboard power supply, also may transmit at
higher power levels than passive tags, allowing them to be more robust
in "RF challenged" environments with humidity and spray or with RF~ 13 ~
1.7.
i.
WORKING PRINCIPLE
RFID DETAILS
Radio frequency identification (commonly abbreviated to RFID) is sonamed because it relates to the identification of objects using EM
~ 15 ~
~ 16 ~
power its operation, much like a crystal radio. This results in the lowest
tag cost, but at the expense of performance.
2. Semi-passive tag RFID systems rely on a battery built into the
tag in order to achieve better performance (typically in terms of
operating range). The battery powers the internal circuitry of the tag
during communication, but is not used to generate radio waves.
3. Active tag systems use batteries for their entire operation, and
can therefore generate radio waves proactively, even in the absence of
an RFID reader.
Passive tag RFID systems are the most common type, and are often
referred to simply as RFID systems.
1.8.
maximum operating distance between the reader antenna and the tag,
and the field of the reader is the specific operating area. The frequency
of operation used for an RFID system has a big effect on the operating
range. Analysis of the physics of RFID communications shows that the
optimum frequency is around 400-500MHz [9]. Such analysis cannot
be made generically - there are a number of factors to take into account
and these will have different effects based on the intended application.
Example factors that will be affected
~ 18 ~
~ 19 ~
CHAPTER 2
2.1 CONCEPTS OF MICROCONTROLLER:
Microcontroller is a general purpose device, which
integrates a number of the components of a microprocessor system on to
single chip. It has inbuilt CPU, memory and peripherals to make it as a
mini computer. A microcontroller combines on to the same microchip:
1. The CPU core
2. Memory(both ROM and RAM)
3. Some parallel digital I/O
MICROCONTROLLERS WILL COMBINE OTHER DEVICES SUCH AS:
1. A timer module to allow the microcontroller to perform tasks
for certain time periods.
2. A serial I/O port to allow data to flow between the controller
and other devices such as a PIC or another microcontroller.
3. An ADC to allow the microcontroller to accept analogue input
data for processing.
MICROCONTROLLERS ARE:
1. Smaller in size
2. Consumes less power
3. Inexpensive
Micro controller is a standalone unit, which can perform
functions on its own without any requirement for additional hardware
like I/O ports and external memory.
The heart of the microcontroller is the CPU core. In the past,
this has traditionally been based on an 8-bit microprocessor unit. For
example Motorola uses a basic 6800 microprocessor core in their
6805/6808 microcontroller devices.
In the recent years, microcontrollers have been developed
around specifically designed CPU cores, for example the microchip PIC
range of microcontrollers.
~ 20 ~
PIC (16F877):
~ 21 ~
CORE FEATURES:
2.4
DEVICE
PIC 16F877
PROGRAM
FLASH
8K
~ 23 ~
DATA
MEMORY
DATA
EEPROM
368 Bytes
256 Bytes
i.
~ 24 ~
ii.
I/O PORTS
~ 25 ~
Some pins for these I/O ports are multiplexed with an alternate
function for the peripheral features on the device. In general, when a
peripheral is enabled, that pin may not be used as a general purpose I/O
pin.
a) PORTA and TRISA Register
PORTA is a 6-bit wide bi-directional port. The corresponding data
direction register is TRISA. Setting a TRISA bit (=1) will make the
corresponding PORTA pin an input, i.e., put the corresponding output
driver in a Hi-impedance mode. Clearing a TRISA bit (=0) will make
the corresponding PORTA pin an output, i.e., put the contents of the
output latch on the selected pin.
Reading the PORTA register reads the status of the pins whereas
writing to it will write to the port latch. All write operations are readmodify-write operations. Therefore a write to a port implies that the port
pins are read; this value is modified, and then written to the port data
latch. Pin RA4 is multiplexed with the Timer0 module clock input to
become the RA4/T0CKI pin. The RA4/T0CKI pin is a Schmitt Trigger
input and an open drain output. All other RA port pins have TTL input
levels and full CMOS output drivers. Other PORTA pins are multiplexed
with analog inputs and analog VREF input. The operation of each pin is
selected by clearing/setting the control bits in the ADCON1 register
(A/D Control Register1).
The TRISA register controls the direction of the RA pins, even
when they are being used as analog inputs. The user must ensure the bits
in the TRISA register are maintained set when using them as analog
inputs.
b) PORT A Function
~ 26 ~
PORT B FUNCTIONS
~ 28 ~
When the I2C module is enabled, the PORTC (3:4) pins can be
configured with normal I2C levels or with SMBUS levels by using the
CKE bit (SSPSTAT <6>).
When enabling peripheral functions, care should be taken in
defining TRIS bits for each PORTC pin. Some peripherals override the
TRIS bit to make a pin an output, while other peripherals override the
TRIS bit to make a pin an input. Since the TRIS bit override is in effect
while the peripheral is enabled, read-modify write instructions (BSF,
BCF, XORWF) with TRISC as destination should be avoided. The user
should refer to the corresponding peripheral section for the correct TRIS
bit settings.
f) PORT-C FUNCTIONS:
~ 29 ~
j) PORTE FUNCTIONS :
~ 30 ~
~ 31 ~
2.6
MEMORY ORGANISATION:
There are three memory blocks in each of the PIC16f877 MUCs.
The program memory and Data Memory have separate buses so that
concurrent access can occur.
i.
Banks
00
0
Each bank
extends up to
01
1
7Fh (1238 bytes).
The
lower
10
2
locations of each
bank
are
11
3
reserved for the
Special
Function Registers. Above the Special Function Registers are General
Purpose Registers, implemented as static RAM. All implemented banks
contain special function registers. Some frequently used special
function registers from one bank may be mirrored in another bank for
code reduction and quicker access.
iii.
~ 32 ~
iv.
The instruction set is highly orthogonal and is grouped into three basic
categories:
Byte-oriented operations
Bit-oriented operations
Literal and control operations
All instructions are executed within one single instruction cycle,
unless a conditional test is true or the program counter is changed as a
result of an instruction. In this case, the execution takes two instruction
cycles with the second cycle executed as a NOP. One instruction cycle
consists of four oscillator periods. Thus, for an oscillator frequency of 4
~ 34 ~
vii.
~ 35 ~
~ 36 ~
CHAPTER 3
3.1. RELAY
A relay is an electrically operated switch. Current flowing through
the coil of the relay creates a magnetic field which attracts a lever and
changes the switch contacts. The coil current can be on or off so relays
have two switch positions and they are double throw (changeover)
switches.
~ 37 ~
The supplier's catalogue should show you the relay's connections. The
coil will be obvious and it may be connected either way round. Relay
coils produce brief high voltage 'spikes' when they are switched off and
this can destroy transistors and ICs in the circuit. To prevent damage
you must connect a protection diode across the relay coil.
The animated picture shows a working relay with its coil and
switch contacts. You can see a lever on the left being attracted by
magnetism when the coil is switched on. This lever moves the switch
contacts. There is one set of contacts (SPDT) in the foreground and
another behind them, making the relay DPDT.
The relay's switch connections are usually labeled COM, NC and NO:
COM - Common, always connect to this; it is the moving part of the
switch.
NC - Normally Closed, COM is connected to this when the relay
coil is off.
NO - Normally Open, COM is connected to this when the relay
coil is on.
Connect to COM and NO if you want the switched circuit to be on
when the relay coil is on.
Connect to COM and NC if you want the switched circuit to be on
when the relay coil is off.
i.
CHOOSING A RELAY
~ 38 ~
12V supply but 5V and 24V relays are also readily available.
Some relays operate perfectly well with a supply voltage which is
a little lower than their rated value.
3. Coil:
The circuit must be able to supply the current required by
the relay coil. You can use Ohm's law to calculate the current:
supply voltage
Relay coil current =
coil resistance
4. For example: A 12V supply relay with a coil resistance of 400
passes a current of 30mA. This is OK for a 555 timer IC
(maximum output current 200mA), but it is too much for most
ICs and they will require a transistor to amplify the current.
5. Switch ratings (voltage and current)
The relay's switch contacts must be suitable for the circuit
they are to control. You will need to check the voltage and current
ratings. Note that the voltage rating is usually higher for AC, for
example: "5A at 24V DC or 125V AC".
6. Switch contact arrangement (SPDT, DPDT etc)
Most relays are SPDT or DPDT which are often
described as "single pole changeover" (SPCO) or "double pole
changeover" (DPCO). For further information please see the page
on switches.
ii.
Transistors and ICs (chips) must be protected from the brief high
voltage 'spike' produced when the relay coil is switched off. The
diagram shows how a signal diode (eg 1N4148) is connected across the
relay coil to provide this protection. Note that the diode is connected
'backwards' so that it will normally not conduct. Conduction only occurs
when the relay coil is switched off, at this moment current tries to
continue flowing through the coil and it is harmlessly diverted through
the diode. Without the diode no current could flow and the coil would
produce a damaging high voltage 'spike' in its attempt to keep the
current flowing.
iii.
Advantages of relays:
Relays can switch AC and DC, transistors can only switch DC.
~ 39 ~
Disadvantages of relays:
1. Relays are bulkier than transistors for switching small currents.
iv.
3.2.
LCD DISPLAY
Liquid crystal displays (LCDs) have materials which combine the
~ 40 ~
3.3.
RCM2034R:
~ 41 ~
3.4.
OSCILLATOR
~ 42 ~
Primary
Differences
between
Mechanical
Resonators
and
RC
~ 43 ~
overdriven.
Environmental
factors
like
electromagnetic
OSCILLATOR MODULES :
Many of the considerations described above can be avoided
POWER CONSUMPTION :
Power consumption is another important consideration of
~ 44 ~
~ 45 ~
POTENTIAL TRONSFORMER
Potential Transformer is designed for monitoring single-phase and
i.
POWER SUPPLIES
~ 46 ~
somewhat lower dc voltage, which remains the same even if the input dc
voltage varies, or the output load connected to the dc voltage changes.
A block diagram containing the parts of a typical power supply
and the voltage at various points in the unit is shown in fig 19.1. The ac
voltage, typically 120 V rms, is connected to a transformer, which steps
that ac voltage down to the level for the desired dc output. A diode
rectifier then provides a full-wave rectified voltage that is initially
filtered by a simple capacitor filter to produce a dc voltage. This
resulting dc voltage usually has some ripple or ac voltage variation. A
regulator circuit can use this dc input to provide a dc voltage that not
only has much less ripple voltage but also remains the same dc value
even if the input dc voltage varies somewhat, or the load connected to
the output dc voltage changes. This voltage regulation is usually
obtained using one of a number of popular voltage regulator IC units.
Transformer
Rectifier
Filter
~ 47 ~
IC regulator
Load
ii.
IC VOLTAGE REGULATORS:
Voltage regulators comprise a class of widely used ICs. Regulator
~ 48 ~
IN
OUT
7805
GND
POINTS TO REMEMBER
LCD
~ 49 ~
~ 50 ~
CONCLUSION
~ 51 ~
NOTHING IS IMPOSSIBLE
So we shall look forward to a bright &
sophisticated world.
PROJECT ESTIMATE
~ 52 ~
S.NO
PRICE PER
COMPONENT
QUANTITY
TOTAL
PRICE
1. RFID reader
1500
3000
2. RFID tag
800
800
3. Microcontroller
850
850
4. L.C.D
600
600
5. Transformer
300
300
6. Driver circuit
200
200
7. Relay
30
30
8. PCB
30
30
9. Alarm
20
20
10. L.E.D
100
100
GRAND TOTAL
5993
11. Miscellaneous
~ 53 ~
REFERENCES
www.rfidjournal.com
2.
www.teamrfid.com
3.
www.wikipedia.org
4.
www.rfidjournal.com
5.
www.relayband.com
6.
www.microcontroller.com
7.
www.instructables.com
8.
www.samsung.com
9.
www.futurlec.com
THROUGH BOOKS:
NAME OF THE
S.NO
1.
PUBLICATION
BOOK
D.VIJAYA KUMAR
MICROCONTROLLERS
(ENGLISH)
2.
JOB
ELECTRICAL MACHINES
N.V
- II
3.
ELECTRONIC DEVICES
4.
CIRCUITS
CONTROL OF
AUTHOR
&
ELECTRICAL MACHINES
N.V
MAHESH
KARTHIK
~ 54 ~
N.KARUPPIAH
J.SIVANEYA
SELAVAN
G.MAHALAKSHMI
S.SRITHAR
M.PARASURAM
K.SOURI RAJAN
A.SHANKARA
SUBRAMANIAM