Академический Документы
Профессиональный Документы
Культура Документы
A Project Report
submitted in partial fulfillment of the requirement
for the award of the degree
of
BACHELOR OF ENGINEERING
in
ELECTRONICS AND COMMUNICATION ENGINEERING
Submitted by Guided by
AJAY BISWAS Ms. PAYAL
07-ECE-1 07 LECTURER
ASHISH SINGH
07-ECE-1 24
KINSHU BHATIA
07-ECE-1 50
MADHUR SHARMA
07-ECE-1 54
DEPARTMENT OF
ELECTRONICS AND COMMUNICATION ENGINEERING
GURGAON INSTITUTE OF TECHNOLOGY & MANAGEMENT
GURGAON, HARYANA
MAHARISHI DAYANAND UNIVERSITY, ROHTAK
AJAY BISWAS
07-ECE-107
ASHISH SINGH
07-ECE-1 24
KINSHU BHATIA
07-ECE-1 50
MADHUR SHARMA
07-ECE-1 54
DECLARATION
We hereby certify that the major project entitled AUTOMATIC TOLLTAX GATE by
AJAY BISWAS (07-ECE-1), ASHISH SINGH (07-ECE-124), KINSHU BHATIA
(07-ECE-150), MADHUR SHARMA (07-ECE-154), in partial fulfillment of
requirements for the award of degree of B.E. (Electronics and Communication) submitted
in the Department of Electronics and Communication at GURGAON INSTITUTE OF
TECHONOLOGY AND MANAGEMENT,GURGAON under Maharishi Dayanand
University, Rohtak is an authentic record of our own work carried out under the
supervision of Ms. PAYAL (lecturer). The matter presented has not been submitted by us
in any other University / Institute for the award of B.E. Degree.
This is to certify that the above statement made by the candidate is correct to the best of
my knowledge
Ms. PAYAL
LECTURER
ABSTRACT
LIST OF TABLES
LIST OF FIGURES
Fig5- optocoupler.
Fig11- pickit1
Fig12- pickit2
• Block Diagram
• Flow Chart
• RF Transmitter Section
• RF Receiver Section
• Circuit Diagram.
Page |4
ACRONYMS
PC CARD:
APDU:
IFD:
ULN 2804:
INTRODUCTION
In our day-to-day life we come across the toll gates. We pay certain amount to the
government in form of tax through this toll gate. We can see these toll gates being placed
on some national highways. So in order to pay tax we are normally going to pay in form
of cash, but instead of that as the technology is growing we can make use of smart card
which is nothing but like a memory card in which we are going to store the details of
particular person and certain amount. The main objective of this project is to pay the toll-
gate tax easily, without any manpower.
The project is aimed at developing a toll tax system based on PIC microcontroller
manufactured by microchip which is an 8-bit microcontroller. The system has
optocoupler sensors to detect length of the vehicle. This gives the data as input to the
microcontroller which after analysis controls the toll's lane gates & amount to be paid
would be shown on 16X2 LCD display. Hence, it would be more effective & cheap with
advancement.
Smart cards are secure tokens that can provide security services to a wide range of
applications. Along with other technology advances, smart card technology has changed
dramatically as well. However, its communication standards are unchanged and do not
Page |6
match with those of mainstream computing, which has limited its success in the Internet
age.
The main objective of this project is to pay the toll gate tax using smart card. Smart card
must be recharged with some amount and whenever a person wants to pay the toll gate
tax, he needs to insert his smart card and deduct amount using keypad.
By using this kind of projects there is no need to carry the amount in form of cash and so
we can have security as well.
The reader provides a path for your application to send and receive commands from the
card. There are many types of readers available, such as serial, PC Card, and standard
keyboard models. Unfortunately, the ISO group was unable to provide a standard for
communicating with the readers so there is no one-size-fits-all approach to smart card
communication.
Each manufacturer provides a different protocol for communication with the reader.
In our project the Smart Card used is of the type Contact type cards. Basically this type of
Smart Cards got SIM like Structure Embedded on a Plastic card for Physical Structure
and Strength. There exist different types of SIM structures according to the type of
Application, Memory and features involved in the Smart Card. It is extremely difficult to
"hack" the value off a card, or otherwise put unauthorized information on the card.
Because it is hard to get the data without authorization, and because it fits in one’s
pocket, a smart card is uniquely appropriate for secure and convenient data storage.
Without permission of the card holder, data could not be captured or modified. Therefore,
smart card could further enhance the data privacy of user.
A smart card, chip card, or integrated circuit card (ICC), is any pocket-sized card with
embedded integrated circuits which can process data or Memory. This implies that it can
receive input which is processed — by way of the ICC applications — and delivered as
Page |7
an output.A smart card resembles a credit card in size and shape, but inside it is
completely different. First of all, it has an inside -- a normal credit card is a simple piece
of plastic. The inside of a smart card usually contains an Embedded Microprocessor or
EEPROM (memory) or some times both.
The microprocessor is under a gold contact pad on one side of the card. Think of the
microprocessor as replacing the usual magnetic stripe on a credit card or debit card.
Smart Card Readers are also known as Card Programmers (because they can write
to a card), card terminals, card acceptance device (CAD) or an interface device (IFD).
When the smart card and the card reader come into contact, each identifies itself to the
other by sending and receiving information. If the messages exchanged do not match, no
further processing takes place.
Working principle
Smart Card Readers are also known as card programmers (because they can write
to a card), card terminals, card acceptance device (CAD) or an interface device (IFD).
There is a slight difference between the card reader and the terminal. The term 'reader' is
generally used to describe a unit that interfaces with a PC for the majority of its
processing requirements. In contrast, a 'terminal' is a self-contained processing device.
The reader provides a path for your application to send and receive commands
from the card. There are many types of readers available, such as serial, PC Card, and
standard keyboard models. Unfortunately, the ISO group was unable to provide a
standard for communicating with the readers so there is no one-size-fits-all approach to
smart card communication.
Each manufacturer provides a different protocol for communication with the reader.
• First you have to communicate with the reader.
• Second, the reader communicates with the card, acting as the intermediary before
sending the data to the card.
• Third, communication with a smart card is based on the APDU format. The card
will process the data and return it to the reader, which will then return the data to its
originating source.
Page |8
The device provides the users with an ease of paying toll-tax according to size of their car
automatically without using the traditional methods. It saves time, and manpower.
Smaller & cheaper car owners deserve to pay less tax than luxury cars & large vehicles.
And the large vehicles carry more no. of person. Thus, large vehicles that covers large
space on road than small ones that are light & occupy less space comparatively.
Therefore tax should be according to the size of the vehicles
If one person have a BMW or MERCEDES about 10-12ft long of Rs.50 lakh or above,
paying tax of Rs.20 and another have Maruti 800 about less than 9ft long of Rs.2 lakh is
also paying the same amount, Is it fair???? We think not!!!! That's why we decided to
work on this project.
To The Individual
To The Society
To The Government
METHODOLOGY
Microcontroller is switched on and giving the required power supply to all the
components on the circuit.
The optocoupler sensors operates only when a vehicle pass through it.
By sensing the size of the vehicle the amount to be paid is displayed on the
screen.
Smart card is inserted in to the smartcard reader, the reader will read the data
which is present on the smartcard, and this information is transferred to the
microcontroller through the RS232. The microcontroller will checks the balance
present on the smartcard and displayed on the LCD.
After paying the amount, barrier gate automatically opens which is controlled by
2c Relays.
After vehicle passed through the gate it closes automatically after some delay
If an ambulance car comes, it will send RF signals that will open the barrier gate
from 500m distance in front of it. That will allow all the vehicles in that lane to
pass without paying the tax clearing the way for the ambulance car.
P a g e | 11
FEATURES
Automatic device.
Embedded system based portable sensors.
A device with high speed of response.
Automatic opening of barrier gate.
buzzer system for sensing any vehicle.
Reliable (Microcontroller Brain).
Very low component cost.
More user friendly (Easy to use).
Ease of installation (Once installed rarely needs further service).
Operates in real time (Faster Response )
ADVANTAGE
Since large vehicles cover large space on roads, they should pay more tax as
compare to other small vehicles.
It will reduce the traffic on roads as people will prefer to use small vehicle which
would cover less space, easy to turn, & hence traffic would reduce.
FUTURE ASPECTS
1. The Smart Card used in this project is of Contact type. The Contact less type
Smart Cards can be used by which the need to insert the Smart card can be
avoided.
2. This project can be implemented in the form of a system by any company by
which it can be made commercial by providing Recharge-coupons etc.
3. The Smart can also be used as an ATM card by which a Single card can be used
for both the financial transactions and toll gate.
4. Contactless smartcards will be introduced soon. With this the smartcard reader
and smartcard mutually communicates through the RF- FREQUENCIES .In this
case both the smartcard and the reader has transmitter and the receiver
5. In the future all the smartcards will be made up on the single protocol which will
help the civilians for different purposes.
P a g e | 12
6. Smartcards are going to be used as unique identity to notice the civilian’s status in
the country.
The development of an embedded system requires some hardware and software products.
Although the hardware requirements depend on the type and complexity of the project,
the following hardware tools are required in all of the experiments we are going to
discuss here.
HARDWARE used
P a g e | 13
Fig3- pin diagram of PIC16F877A
Peripheral Features
• Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
• Two Capture, Compare, PWM modules
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
• Synchronous Serial Port (SSP) with SPI (Master mode) and I2C (Master/Slave)
• Universal Synchronous Asynchronous Receiver Transmitter (USART/SCI) with 9-
bit address detection
• Parallel Slave Port (PSP) – 8 bits wide with external RD, WR and CS controls
(40/44-pin only)
• Brown-out detection circuitry for Brown-out Reset (BOR)
SMART CARD
P a g e | 15
Optocoupler sensors
This device has a compact construction where the emitting-light sources and the detectors
are located face-to-face on the same optical axis. The detector consists of a
phototransistor. Transmitter is positioned opposite the receiver used for small distances
and narrow objects.
Fig5- optocoupler
• Optoelectronic transmitters and receivers are used in pairs and linked optically
• Emitting light is influenced by an object on its way to the detector
• Known as reflective or transmissive sensors or interrupters or slotted switch or optical
switch.
• Change of the light signal causes a change in the electrical signal in the receiver
P a g e | 16
The basic elements of an optical transmissive sensor also known as Photo interrupter are
an emitter and a photo detector. Typically an IRED (Infrared emitting diode) and a
phototransistor is used. The anode of IRED is connected to the power supply via the
resistor 680R and the cathode is grounded. The resistor adjusts the irradiance by limiting
the forward current of the IRED. The collector of the phototransistor acts as an output
pin, connected to microcontroller pins. If an object is moving between the gap the light
will be blocked and the transistor base will on, hence give an high output.
ULN-2804:
DESCRIPTION
The ULN2804 is a high voltage, high current Darlington array comprised of eight NPN
Darlington pairs. The device features open-collector outputs with suppression diodes for
inductive loads and is ideally suited for interfacing between low-level logic circuitry and
high power loads. Typical loads including relays DC motors, filament lamps, LED
displays, printer hammers and high power buffers.
FEATURE
* Eight Darlingtons with common emitters
* TTL, PMOS or CMOS Compatible inputs
* Peak output current to 500mA
* Output voltage to 50V
* Clamp diodes for transient suppression
P a g e | 17
Order number package packing
normal Lead free plating
ULN2804L-D18T ULN2804L-D18T DIP-18 TUBE
ULN2804L-S-18R ULN2804L-S-18R SOP-18 TAPE REEL
P a g e | 18
LCD
LCD is liquid crystal display. Its top contains a screen composed of rectangular array of
so called pixels 240 across and 64 down. Each pixel is about 0.8 mm sq. the pixels are
part of what is called liquid crystal display.
Fig11- pickit1
Fig12- pickit2
P a g e | 20
SOFTWARE used
1. MPLAB IDE
MPLAB Integrated Development Environment (IDE) is a free, integrated toolset for the
development of embedded applications employing Microchip's PIC microcontrollers. On
this platform, program is written in C language. Program is debugged, compiled & run.
2. PIC C Compiler
Microchip’s MPLAB C compilers are full-featured, ANSI compliant high-performance
tools tightly integrated with MPLAB IDE. Source level debugging allows single stepping
through C source code and inspecting variables and structures at critical points in the
code.
P a g e | 21
PROJECT DESIGN
Project Design explains the designing techniques of the project. For designing the project
following techniques were followed:
P a g e | 22
3. Now select the desirable pic microcontroller. Press next.
P a g e | 23
5. Write the program and add the .asm or .c file of your program to the source file.
P a g e | 24
7. The output on PIC simulator software
P a g e | 25
b) DESIGN DESCRIPTION
1. BLOCK DAIGRAM
P a g e | 27
2. RF TRANSMITTER SECTION
P a g e | 28
3. RF TRANSMITTER SECTION
P a g e | 29
4. CIRCUIT DAIGRAM
P a g e | 30
BIBLIOGRAPHY