Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
1.1 OBJECTIVE
Our project will be designed under the consideration that all the
vehicles will be placed with a unique tag and to uniquely the identify
vehicle. This unique tag will be placed at the appropriate position on the
vehicle by the manufactures.
1
1.2 ABOUT OUR PROJECT
It’s also a tedious job for the officials, as they have to check each
and every document of all the vehicles at the same time, here RFID
readers will be placed along the roads, which can get the tag ids of all
vehicles that pass through it these by alleviating the overhead in vehicle
checking and carrying out the documents needed for a vehicle.
2
back from the RFID tag into digital information that can then be passed
on to computers that can make use of it.
3
Disposable or one-time use.
Better storage capacity and the fact that they can be reprogrammed.
Contact less transfer of data between the data carrying device and its
reader.
4
Passive, Active, or Semi passive (also known as battery-assisted) active,
semi-passive and passive RFID tags are making RFID technology ore
accessible and prominent in our world. These tags are less expensive to
produce and they can be made small enough to fit on almost any
product.
Most passive RFID tags cost between 7-20 cents. Each [source:
active and semi-passive tags] are more expensive, and RFID
manufactures typically do not quote their range, storage type and
quantity the RFID industry’s goal is to get the cost of a passive RFID
tag down to 5 cents each once more merchandisers adopt it.
5
Various frequencies and their application domain are shown in Table 1.1
FREQUENCY TYPICAL
CHARACTERISTIC
BAND APPLICATION
Access control, Animal
Low Short to medium read range
identification, Inventory
140-500KHZ inexpensive, low reading speed
control, Car immobilizer
Short to medium range,
Intermediate
Potentially inexpensive, Access control, Smart Cards
10-15MHZ
medium reading speed
6
equipment, especially those with active, implanted medical devices such
as cardiac pacemakers.
Tollgates have been very common in countries aboard with the rise
in private participation in roads infrastructure building in India,
tollgates are becoming very common in India too. Mostly in all the
existing tollgates a particular staff will be assigned the duty to
continuously monitor the vehicles that are passed by. It involves
the various steps like vehicle authentication, toll payment etc. This
really a huge consuming process for the users and it also obstructs
the free traffic flow or the road.
7
CHAPTER 2
Memory
Stepper
RFID Motor
Reader
Stepper
Keypad Motor Driver
PIC 16F873A
Microcontroller
IR LCD
TRANSMITTER IR Receiver
Power Supply
8
5. Stepper Motor
6. Stepper Motor Driver
7. Power supply
8. Key Pad
9. Memory
10. IR Sensor
2.2.3 Microcontroller
9
2.2.4 LCD
2.2.9 Memory
The memory module is used to store the database, i.e. RFID's.
Codes.
10
CHAPTER 3
This is the diagram showing the main board which is having PIC
and LCD interfacing. First of all the voltage from the main supply is
step down using step down transformer and it is further step down to 12
v and it is given to the bridge rectifier and by using voltage regulator
and capacitors it is providing 5 v constant supply to the micro controller.
Power led is used to show the current indication in the board. The reset
11
switch is connected in the first pin. then the crystal oscillator is
connected in the 13 and 14th pin. The LCD is connected to the port D by
using a 10 pin connector. The 10th and 9th pin of the connector is
connected to the vcc and ground.
12
3.2.1 PHYSICAL DATA
13
Supply voltage for LCD drive (Wide temp) : VDD-VO 0 - 13.5 V
3.2.3 OPTICAL CHARACTERISTICS (Ta = 25°C, VDD = 5.0V ±
0.25V, STN LC Fluid)
14
A stepper motor is an electromechanical device which converts
electrical pulses into discrete mechanical movements. The shaft or
spindle of a stepper motor rotates indiscrete step increments when
electrical command pulses are applied to it in the proper sequence. The
motors rotation has several direct relationships to these applied input
pulses. The sequence of the applied pulses is directly related to the
direction of motor shafts rotation. The speed of the motor shafts rotation
is directly related to the frequency of the input pulses and the length of
rotation is directly related to the number of input pulses applied.
3.3.1.1 Advantages
15
8. A wide range of rotational speeds can be realized as the speed It
is proportional to the frequency of the input pulses.
3.3.1.2 Disadvantages
1. Resonances can occur if notproperly controlled.
2. Not easy to operate at extremely high speeds.
16
3.5 Flow Chat and descriptions
start
Initialize Port
Welcome Message
Yes
Is
recharge
Mode C
Selected?
No
Is Yes
delete
mode
selected D
?
No
Is lost
mode Yes
selecte E
d?
No
No Is
normal
mode
selecte
d?
A
Is
RFID
Present
No
?
Yes
Is
number
present B
in data
base?
17
1
No
Is card
numbe B
r
Yes
Is No
sufficient Display Sufficient balance
balance
available
?
Yes
Open gate
No Is exist
sensor
interrupted
?
Yes
Close Gate
18
C
Is RFID
present?
Is code No
number
present in
data base?
Yes
Add recharge amount in our existing amount and store in memory Store the code number with
minimum recharge
amount
19
D B
A
STOP
2. Delete mode
3. Normal mode
4. Report lost
20
If normal mode is selected in the display normal mode is shown.
There after the RFID Reader checks whether card is present. If no the
above operation is repeated. If yes it checks whether card is present
in our data base. If card is not present LCD displays a message
showing “Invalid Card” . if card is present it checks whether
sufficient balance is available. If no display the message showing
“Insufficient Balance”. If yes reduce toll amount from the balance
and store in memory. There after the toll gate would be opened. If the
vehicle passes the tollgate and if the sensor is interrupted the tollgate
c loses.
In Report lost mode the customer has the option to delete his /her
RFID tag details. When Report lost mode selected it ask for the id of
the customer. If id is entered the RFID would be removed from the
data base.
21
CHAPTER 4
4.1. Introduction
The PIC Microcontrollers are supported with a full range of
232 port. The PC displays the menu for selecting the calibrating
equipment and all the calibration results graphically and in tabular form.
The user can access the calibration reports, comparison graphs etc at any
time using the menu offered in the PC. To communicate with the PIC
port before using it. To initialize and to communicate with the PIC, the
22
4.2. PIN DIAGRAM:
23
• The 28-pin devices have five A/D input channels, while the 40/44-
pin devices have eight
24
The pinouts for these device families are listed in Table 4.2.
25
4.3.1 PROGRAM MEMORY MAP AND STACK
4.3.1.1. Program Memory Organization
PIC16F873A/874A devices have 4K words x 14 bits. Accessing a
location above the physically implemented address will cause a
wraparound. The Reset vector is at 0000h and the interrupt vector is at
0004h.
26
4.3.1.2 Data Memory Organization
The data memory is partitioned into multiple banks which contain
the General Purpose Registers and the Special Function Registers. Bits
RP1 (Status<6>) and RP0 (Status<5>) are the bank select bits. Each
bank extends up to 7Fh (128 bytes). The lower locations of each bank
are 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.
27
4.5. STATUS REGISTER
The Status register contains the arithmetic status of the ALU, the
Reset status and the bank select bits for data memory. The Status
register can be the destination for any instruction, as with any other
register. If the Status register is the destination for an instruction that
affects the Z, DC or C bits, then the write to these three bits is disabled.
These bits are set or cleared according to the device logic. Furthermore,
the TO and PD bits are not writable, therefore, the result of an
instruction with the Status register as destination may be different than
intended. For example, CLRF STATUS, will clear the upper three bits
and set the Z bit. This leaves the Status register as 000u u1uu (where u =
unchanged). It is recommended, therefore, that only BCF, BSF, SWAPF
and MOVWF instructions are used to alter the Status register because
these instructions do not affect the Z, C or DC bits from the Status
register as Table 4.4.
bit 7 IRP: Register Bank Select bit (used for indirect addressing)
1 = Bank 2, 3 (100h-1FFh)
0 = Bank 0, 1 (00h-FFh)
bit 6-5 RP1:RP0: Register Bank Select bits (used for direct addressing)
11 = Bank 3 (180h-1FFh)
10 = Bank 2 (100h-17Fh)
01 = Bank 1 (80h-FFh)
00 = Bank 0 (00h-7Fh)
28
Each bank is 128 bytes.
bit 4 TO: Time-out bit
1 = After power-up, CLRWDT instruction or SLEEP instruction
0 = A WDT time-out occurred
bit 3 PD: Power-down bit
1 = After power-up or by the CLRWDT instruction
0 = By execution of the SLEEP instruction
bit 2 Z: Zero bit
1 = The result of an arithmetic or logic operation is zero
0 = The result of an arithmetic or logic operation is not zero
bit 1 DC: Digit carry/borrow bit (ADDWF, ADDLW,SUBLW,SUBWF
instructions)
(for borrow, the polarity is reversed)
1 = A carry-out from the 4th low order bit of the result occurred
0 = No carry-out from the 4th low order bit of the result
bit 0 C: Carry/borrow bit (ADDWF, ADDLW,SUBLW,SUBWF
instructions)
1 = A carry-out from the Most Significant bit of the result occurred
0 = No carry-out from the Most Significant bit of the result occurred
29
obtained by concatenating the 8-bit FSR register and the IRP bit
(Status<7>).
30
2. Clear the EEPGD bit to point to EEPROM data memory.
3. Set the RD bit to start the read operation.
4. Read the data from the EEDATA register.
31
3. Write the 8-bit data value to be programmed in the EEDATA
register.
4. Clear the EEPGD bit to point to EEPROM data memory.
5. Set the WREN bit to enable program operations.
6. Disable interrupts (if enabled).
7. Execute the special five instruction sequence:
• Write 55h to EECON2 in two steps (first to W, then to EECON2)
• Write AAh to EECON2 in two steps (firstto W, then to EECON2)
• Set the WR bit
8. Enable interrupts (if using interrupts).
9. Clear the WREN bit to disable program operations.
10. At the completion of the write cycle, the WR bit is cleared and the
EEIF interrupt flag bit is set. (EEIF must be cleared by firmware.) If
step 1 is not implemented, then firmware should check for EEIF to be
set, or WR to clear, to indicate the end of the program cycle.
For lowest current consumption in this mode, place all I/O pins at
either VDD or VSS, ensure no external circuitry is drawing current from
the I/O pin, power down the A/D and disable external clocks. Pull all
I/O
32
pins that are high-impedance inputs, high or low externally, to avoid
switching currents caused by floating inputs. The T0CKI input should
also be at VDD or VSS for lowest current consumption. The
contribution from on-chip pull-ups on PORTB should also be
considered.
The MCLR pin must be at a logic high level (VIHMC).
External MCLR Reset will cause a device Reset. All other events
are considered a continuation of program execution and cause a “wake-
up”. The TO and PD bits in the Status register can be used to determine
the cause of device Reset. The PD bit, which is set on power-up, is
cleared when Sleep is invoked. The TO bit is cleared if a WDT time-out
occurred and caused wake-up. The following peripheral interrupts can
wake the device from Sleep:
33
5. SSP (Start/Stop) bit detect interrupt.
6. SSP transmit or receive in Slave mode (SPI/I2C).
7. USART RX or TX (Synchronous Slave mode).
8. A/D conversion (when A/D clock source is RC).
9. EEPROM write operation completion.
10. Comparator output changes state.
Other peripherals cannot generate interrupts since during Sleep,
no on-chip clocks are present.
34
• If the interrupt occurs during or after the execution of a SLEEP
instruction, the device will immediately wake-up from Sleep. The
SLEEP instruction will be completely executed before the wake-up.
Therefore, the WDT and WDT postscaler will be cleared, the TO bit
will be setand the PD bit will be cleared. Even if the flag bits were
checked before executing a SLEEP instruction, it may be possible for
flag bits to become set before the SLEEP instruction completes. To
determine whether a SLEEP instruction executed, test the PD bit. If the
PD bit is set, the SLEEP instruction was executed as a NOP. To ensure
that the WDT is cleared, a CLRWDT instruction should be executed
before a SLEEP instruction.
35
CHAPTER 5
36
pulsation. A small remaining unwanted alternating voltage component at
mains or twice mains power frequency (depending upon whether half-
or full-wave rectification is used) ripple is unavoidably superimposed on
the direct output voltage.
5.2 MICROCONTROLLER:
5.2.1 DEFINITION OF EMBEDDED SYSTEM
37
5.2.2 IMPORTANCE OF MICROPROCESSOR
A microprocessor is a multipurpose programmable clock driven,
register based electronic device that reads binary instruction from a
storage device called memory, accept binary data as input and processes
data according to those instruction, and provides result as output. A
typical programmable machine can be represented with three
components microprocessor, memory and I/O. These three components
work together or interact with each other to perform a given task. The
physical components of the system are called hardware. A set of
instruction written for the microprocessor to perform a task is called
program, and a group of program is called software.
Microprocessor can be divided into three segments. They are
1) ALU
2) Register array
3) Control unit
38
5.2.5 Control Unit
The control unit provides the necessary timing and control signals
to all the operation in the microcomputers. It controls the flow of data
between the microprocessor, memory and peripherals.
5.2.6 Memory
There are two types of memory, they are ROM & RAM.
ROM is used to store the user programs and data.
RAM is to read and write the program.
5.2.7 Input/Output
39
Usually micro controller have two different architectures, they are
RISC and CISC architectures. Intel designs RISC based micro
controllers whereas CISC based micro controllers are given by
Motorola. The micro controllers are available in N-channel Metal Oxide
Silicon (NMOS) and complementary Metal Oxide Silicon (CMOS)
construction in a variety of package types. The first micro controller is
8031 within built ROM and it is programmed using UVEPROM but it
took around 30ms for clearing and programming.
40
The pins of microcontroller are “programmable” that is, capable of
having several different function depends on the programmer.
41
away. This RFID Card Reader can be used in a wide variety of hobbyist
and commercial applications, including access control, automatic
identification, robotics navigation, inventory tracking, payment systems,
and car immobilization. The RFID card reader read the RFID tag in
range and outputs unique identification
code of the tag at baud rate of 9600. The data from RFID reader can be
interfaced to be read by microcontroller or PC.
5.3.1 Features
· Low-cost method for reading passive RFID transponder tags
· 9600 bps serial interface at 5V TTL level for direct interface to
microcontrollers
· Buzzer & LED indicate valid RFID Tag detection
· Range up to 7 cm for 125 Khz RFID Cards
5.3.2 Information
42
5.3.3 Communication
When the RFID Card Reader is active and a valid RFID
transponder tag is placed within range of the activated reader, the unique
ID will be transmitted as a 12-byte printable ASCII string serially to the
host in the following format:
The start byte and stop byte are used to easily identify that a
correct string has been received from the reader (they correspond to a
line feed and carriage return characters, respectively). The middle ten
bytes are the actual tag's unique ID.
43
detecting is indicated by LED blink and Buzzer beep. The face of the
RFID tag should be held parallel to the front of the antenna (where the
majority of RF energy is focused). If the tag is held sideways
(perpendicular to the antenna) you may have difficulty getting the tag to
be read. Only one transponder tag should be held up to the antenna at
any time. The use of multiple tags at one time will cause tag collisions
and confuse the reader. The tags available with us have a read distance
of approximately 7 cm. Actual distance may vary slightly depending on
the size of the transponder tag and environmental conditions of the
application.
44
or object on a microchip that is attached to an antenna. The combined
antenna and microchip are called an "RFID transponder" or "RFID tag"
and work in combination with an "RFID reader" (sometimes called an
"RFID interrogator").
45
radio stations, RFID tags and readers must be tuned to the same
frequency in order to communicate effectively.
46
2. The motor has full torque at standstill(if the windings are
energized)
3. Precise positioning and repeatability of movement since good
stepper motors have an accuracy of 3 – 5% of a step and this
error is non cumulative from one step to the next.
4. Excellent response to starting/stopping/reversing.
5. Very reliable since there are no contact brushes in the motor.
Therefore the life of the motor is simply dependant on the life of
the bearing.
6. The motors response to digital input pulses provides open-loop
control, making the motor simpler and less costly to control.
7. It is possible to achieve very low speed synchronous rotation with
a load that is directly coupled to the shaft.
8. A wide range of rotational speeds can be realized as the speed is
proportional to the frequency of the input pulses.
5.4.1.2Disadvantages
1. Resonances can occur if not properly controlled.
2. Not easy to operate at extremely high speeds.
47
There are three basic stepper motor types. They are :
• Variable-reluctance
• Permanent-magnet
• Hybrid
This type of stepper motor has been around for a long time. It is
probably the easiest to understand from a structural point of view.
Figure 1 shows a cross section of a typical V.R. stepper motor. This type
of motor consists of a soft iron multi-toothed rotor and a wound stator.
When the stator windings are energized with DC current the poles
become magnetized. Rotation occurs when the rotor teeth are attracted
to the energized stator poles.
48
Often referred to as a “tin can” or “canstock” motor the
permanentmagnet step motor is a low cost andlow resolution type motor
with typicalstep angles of 7.5° to 15°. (48 – 24steps/revolution) PM
motors as the name implies have permanent magnets added to the motor
structure.The rotor no longer has teeth as with the VR motor. Instead the
rotor is magnetized with alternating north and south poles situated in a
straight line parallel to the rotor shaft. These magnetized rotor poles
provide an increased magnetic flux intensity and because of this the PM
motor exhibits improved torque characteristics when compared with the
VR type.
49
expensive. If not then the hybrid motor may be the right choice.There
also exist some special stepper motor designs. One is the discmagnet
motor. Here the rotor is designed disc with rare earth magnets. This
motor type has some advantages such as very low inertia and a
optimized magnetic flow path with no coupling between the two stator
windings. These qualities are essential in some applications.
50
fashion that currents are confined to the conductors of an electronic
circuit. This serves to concentrate the flux at the stator poles. The torque
output produced by the motor is proportional to the intensity of the
magnetic flux generated when the
winding is energized. The basic relationship which defines the intensity
of the magnetic flux is defined by:
H = (N ´ i) ¸ l where:
N = The number of winding turns
i = current
H = Magnetic field intensity
l = Magnetic flux path length
51
TIN-CAN STEPPER MOTOR
52
HYBRID STEPPER MOTOR
53
permanent magnet stepper motor contains an equal number of rotor and
stator pole pairs.
5.5.1 FEATURES
Wide viewing angle and high contrast.
5 to 7 dot character matrix with cursor.
54
Compact and light weight for easy assembly to the host
instrument.
Operable on single 5 V power supply.
Low power consumption.
5.5.2 OVERVIEW
The surfaces of the electrodes that are in contact with the liquid
crystal material are treated so as to align the liquid crystal molecules in a
particular direction. This treatment typically consists of a thin polymer
layer that is unidirectional rubbed using, for example, a cloth. The
direction of the liquid crystal alignment is then defined by the direction
of rubbing.
55
passes through the liquid crystal layer, allowing it to pass through the
second polarized filter. Half of the incident light is absorbed by the first
polarizing filter, but otherwise the entire assembly is transparent.
Both the liquid crystal material and the alignment layer material
contain ionic compounds. If an electric field of one particular polarity is
applied for a long period of time, this ionic material is attracted to the
56
surfaces and degrades the device performance. This is avoided either by
applying an alternating current or by reversing the polarity of the
electric field as the device is addressed.
5.5.3 SPECIFICATIONS
Important factors to consider when evaluating an LCD monitor
57
• Response time: The minimum time necessary to change a pixel's
color or brightness.
• Matrix type: Active or Passive.
• Viewing angle: (coll., more specifically known as viewing
direction).
• Color support: How many types of colors are supported (coll.,
more specifically known as color gamut).
• Brightness: The amount of light emitted from the display (coll.,
more specifically known as luminance).
• Contrast ratio: The ratio of the intensity of the brightest bright to
the darkest dark.
• Aspect ratio: The ratio of the width to the height (for example,
4:3, 16:9 or 16:10).
• Input ports (e.g., DVI, VGA, LVDS, or even S-Video and
HDMI).
5.6.1 Features
• Output Current up to 1A
• Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
• Thermal Overload Protection
• Short Circuit Protection
• Output Transistor Safe Operating Area Protection
5.6.2 Description
58
fixed output voltages, making them useful in a wide range of
applications. Each type employs internal Current limiting, thermal shut
down and safe operating area protection, making it essentially
indestructible. If adequate heat sinking is provided, they can deliver
over 1A output current. Although designed primarily as fixed voltage
regulators, these devices can be used with external components to obtain
adjustable voltages and currents.
59
Figure. 5.5. Block diagram of Voltage Regulator
CHAPTER 6
6.1. CONCLUSION
60
RFID tags have completely revolutionized the way we live.
However the scheme can be readily implemented in field of Tollgate
system is Security system. Theft detects as well as in the field of
automated vehicle identification system can be extended to several areas
in the coming days.
6.2. FUTURE ENHANCEMENT
The system vehicle identification using RFID levels sample scope
for any further enhancements according to the future demands.
61
BIBLIOGRAPHY
62
[5] R. Weinstein, RFID: a technical overview and its application to the
enterprise, IT Professional, Vol. 7, no. 3,pp. 27-33, May-June
2005.
63