Gujarat Technological University: S S Agrawal Institute of Engineering and Technology
Gujarat Technological University: S S Agrawal Institute of Engineering and Technology
CERTIFICATE
This is to certify that this report entitled ‘TOLL COLLECTION SYSTEM USING
ARDUINO’ related to the domain of ‘HIGHWAY’ is submitted by Nikhil B Prasad of 4rth
Semester 2nd year for partial fulfilment of requirement for the degree B.E. ELECTRICAL
Engineering of S. S. Agrawal Institute Of Engineering and Technology, Navsari during the
academic year 2024.
DATE:
Faculty Guide
Mr. Sagar R. Patel
I/C H.O.D.
Electrical Engineering Department
S.S.A.I.E.T., Navsari.
PLACE:
Page|3
Acknowledgement
With great pleasure and deep sense of gratitude I would like to extent my sincere thanks to
almighty GOD for these blessings for granting me the chance and the ability to successfully
complete this study.
I would also like to thanks to my Parents for their everlasting love and financial support
throughout our numerous academic years. Without their support, I would not have been able
to accomplish my dreams.I would like to take this opportunity to thank my guide Mr. Sagar
R. Patel, I/C H.O.D. of Electrical Engineering Department S.S.A.I.E.T., Navsari whose
continuous and persistent valuable guidance, suggestions and encouragement have played a
key role in making my Design Engineering work a success.
I also express my sincere thanks to Prof. (Dr.) Dipesh D. Shukla, Principal to give me an
opportunity to do my project freely and support me to undertake this research study.
Also I would like to thank all the Friends and Staff of my collage who have directly or
indirectly provided their unerring support throughout the course of this design engineering
work, without whom none of this would have been possible.
ABSTRACT
ATCS is an Automated Toll Collection System used for collecting tax
automatically. In this we do the identification with the help of radio frequency. A
vehicle will hold an RFID tag. This tag is nothing but unique identification
number assigned. This will be assigned by RTO or traffic governing authority. In
accordance with this number we will store, all basic information as well as the
amount he has paid in advance for the TOLL collection. Reader will be
strategically placed at toll collection center. Whenever the vehicle passes the
toll collection center, the tax amount will be deducted from his prepaid balance.
New balance will be updated. In case if one has insufficient balance, his
updated balance will be negative one. To tackle this problem, we are alarming a
sound, which will alert the authority that this vehicle doesn’t have sufficient
balance and that particular vehicle can be trapped. As vehicles don’t have to
stop in a queue, it assures time saving, fuel conservation and also contributing
in saving of money. Automatic Toll Collection systems have really helped a lot in
reducing the heavy congestion caused in the metropolitan cities of today. It is
one of the easiest methods used to organize the heavy flow of traffic.
INDEX
Page|6
COVER PAGE
i
CERTIFICATE
ii
COMPLETION CERTIFICATE
iii
ACKNOWLEDGEMENT
iv
ABSTRACT
v
INDEX
vi
LIST OF FIGURES
vii
LIST OF TABLES
viii
INTRODUCTION
1
PROBLEM DEFINITION
2
PROBLEM STATEMENT
3
SCOPE OF THE PROJECT
5
EQUIPMENTS REQUIRED
7
METHODOLOGY
20
FUTURE SCOPE OF THE PROJECT
25
CONCLUSION
26
REFERENCE
27
IMAGES OF THE CANVAS
28
PROJECT IMAGES
33
Page|7
LIST OF FIGURES
LIST OF TABLES
INTRODUCTION
As we all know that transportation is the backbone of any country’s economy.
Improvement in transportation systems result into the good lifestyle in which
we achieve extraordinary freedom for movement, immense trade in
manufactured goods and services, as well as higher rate of employment levels
and social mobility. In fact, the economic condition of a nation has been closely
related to efficient ways of transportation. Increasing number of vehicles on the
road, result into number of problems such as congestion, accident rate, air
pollution and many other . All economic activities for different tasks use
different methods of transportation. For this reason, increasing transportation is
an immediate impact on productivity of nation and the economy. Reducing the
cost of transporting resource at production sites and transport completed goods
to markets is one of the important key factors in economic competition.
Automatic toll collection is a technology allows the automated electronic
collection of toll costs. As it is studied by researchers and also applied in various
expressways, bridges, and tunnels require such a process of Automatic Toll
Plaza. ATP is capable of determining if the vehicle is registered or not, and then
informing the management center about to process violations, debits, and
participating accounts .The most excellent advantage of this ATP system is that
it is capable of eliminate congestion in toll plaza, especially during those
seasons when traffic seems to be higher than normal.
Thus, the ATP system is useful for both the motorists and toll operators, this is
the reason of extended use of ATP system throughout the world.
Page|2
PROBLEM DEFINITION
The base idea behind implementing RFID Based Toll System is to automate the
toll collection process and their by reducing manual operation in toll booths and
the long queues at toll booths using RFID tags installed on the vehicles. In
addition to we can not only help the vehicle owners and system administrators
from vehicle theft detection but also can track over speeding vehicles, and
crossing the signals. Here we are going to see some points regarding to purpose
behind choosing this topic & what is the requirement of this type of the project
in our day to day life.
• Automatic collection of toll tax.
• Time saving.
• Record maintenance.
PROBLEM STATEMENT
BACKGROUND OVERVIEW
A. Existing System:
There are two methods of collecting tax presently used they are First is the
traditional manual method where one person collects money and issues a
receipt. The other one is the Smart Card method where the person needs to
show the smart card to the system installed at the toll tax department to open
the Gate.
design of two modules- the Vehicle Module (Active Tag) and the Base Module.
The two modules communicate via RF modem connected to each module.
PROPOSED SYSTEM
This project gives the simplified procedure to passengers to pay toll at toll
booths by making them automated, vehicle theft detection, signal breaking
avoidance, tracking over speed vehicles. All these activities are carried using
single RFID tag thus saving the efforts of carrying money and records manually.
A. Automatic Toll Collection: The RFID Readers mounted at toll booth will
read the prepaid RFID tags fixed on vehicles’ windshield and automatically
respective amount will be deducted. If the tag is removed from the windshield
then cameras fixed at two sites at toll plaza take snaps of the front and back
number plate. Since every vehicle registration ID is linked to users account, toll
can be deducted from the account bank directly.
C. Signal Breaking Avoidance: The vehicle ignoring the traffic signal will
be detected by the RFID readers fixed at signal crossing and will be notified to
the traffic police. This can be done efficiently and great accuracy.
Flexibility of implementation
The main power of ATCS is the technology which is used, that is the RADIO
FREQUENCY IDENTIFICATION. The basic power of this technology is that it’s
very flexible. Even with the slightest of change in ATCS, the product can be
shaped into a completely different implementation and all that can be because
RFID is independent of every other hardware that can be used to boost up the
system’s performance.
RADIO FREQUENCY has vast implementation areas in medical, defence and
many latest products that are being developed is based on RFID solution. The
main areas is animal tracking, human implants, vehicle tracking, speed
tracking, physical implementation.
Following are the features and advancement of ATCS over presently existing
system:
[6]Speedy transport.
EQUIPMENTS REQUIRED:
• Arduino Uno (Atmega 328P Microcontroller)
• MFRC522 RFID Module
• LCD 16X2
• Switch
• RTC DS1307
• Motor Driver L293D
• IR Obstacle Sensor
It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6
analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an
ICSP header, and a reset button. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB cable or power it
with a AC-to-DC adapter or battery to get started.
Specifications:
• Microcontroller ATmega328
• Operating Voltage 5V
• Input Voltage (recommended) 7-12V
• Digital I/O Pins 14 (of which 6 provide PWM output)
• Analog Input Pins 6 DC Current per I/O Pin 40 mA
• DC Current for 3.3V Pin 50 mA
• Flash Memory 32 KB of which 0.5 KB used by boot loader
• SRAM 2 KB
• EEPROM 1 KB
• Clock Speed 16 MHz
Mifare RC522 is the high integrated RFID card reader which works on non-
contact 13.56 MHz communication, is designed by NXP as low power
consumption, low cost and compact size read and write chip, is the best choice
in the development of smart meters and portable hand-held devices.
MF RC522 use the advanced modulation system, fully integrated at 13.56MHz
with all kinds of positive non-contact communication protocols. Support 14443A
compatible answer signal. DSP deal with ISO14443A frames and error
correction. Furthermore, it also supports rapid CRYPTO1 encryption to validate
Mifare series products. MFRC522 support Mifare series higher speed non-
contact communication, duplex communication speed up to 424 kb/s. As a new
family member in 13.56MHz RFID family, MF RC522 has many similarities to
MF RC5200 and MF RC530, and also has more new features.
This module can fit directly in hand held devices for mass production. Module
use 3.3V power supply, and can communicate directly with any CPU board by
connecting through SPI protocol, which ensure reliable work, good reading
distance.
Specifications
• Voltage: DC 3.3V
• Operating Current :13-26mA
• Idle Current :10-13mA
• Sleep current: <80uA
• Peak current: <30mA
• Operating Frequency: 13.56MHz
• Supported card types: mifare1 S50, mifare1 S70, mifare UltraLight,
mifare Pro, mifare Desfire
• Dimensions: 40mm × 60mm
• Module Interface SPI Data Transfer Rate: Max. 10Mbit/s
• Card reading distance :0~30mm (Mifare1 card)
RFID Technology:
The RFID reader is one kind of wireless module used for transferring the data to
identify and track tags which are connected to objects. The RFID tag mainly
includes the stored information. Some of the RFID tags are run by
electromagnetic induction from magnetic fields formed nearby the reader. RFID
reader comprises an RF module that works as a transmitter as well as a receiver
of RF (radio frequency) signals.
Real time clocks (RTC), as the name recommends are clock modules. The
DS1307 real time clock (RTC) IC is an 8 pin device using an I2C interface. The
DS1307 is a low-power clock/calendar with 56 bytes of battery backup SRAM.
The clock/calendar provides seconds, minutes, hours, day, date, month and year
qualified data. The end date of each month is automatically adjusted, especially
for months with less than 31 days.
They are available as integrated circuits (ICs) and supervise timing like a clock
and also operate date like a calendar. The main advantage of RTC is that they
have an arrangement of battery backup which keeps the clock/calendar running
even if there is power failure. An exceptionally little current is required for
keeping the RTC animated. We can find these RTCs in many applications like
embedded systems and computer mother boards, etc. In this article we are
going to see about one of the real time clock (RTC), i.e. DS1307.
Pin 1, 2: Connections for standard 32.768 kHz quartz crystal. The internal
oscillator circuitry is intended for operation with a crystal having a specified
load capacitance of 12.5pF. X1 is the input to the oscillator and can alternatively
be connected to an external 32.768 kHz oscillator. The output of the internal
oscillator, X2 is drifted if an external oscillator is connected to X1.
Pin 3: Battery input for any standard 3V lithium cell or other energy source.
Battery voltage should be between 2V and 3.5V for suitable operation. The
nominal write protect trip point voltage at which access to the RTC and user
RAM is denied is set by the internal circuitry as 1.25 x VBAT nominal. A lithium
battery with 48mAhr or greater will backup the DS1307 for more than 10 years
in the absence of power at 25ºC. UL recognized to ensure against reverse
charging current when utilized as a part of conjunction with a lithium battery.
Pin 4: Ground.
Pin 5: Serial data input/output. The input/output for the I2C serial interface is
the SDA, which is open drain and requires a pull up resistor, allowing a pull up
voltage upto 5.5V. Regardless of the voltage on VCC.
Pin 6: Serial clock input. It is the I2C interface clock input and is used in data
synchronization.
Pin 7: Square wave/output driver. When enabled, the SQWE bit set to 1, the
SQW/OUT pin outputs one of four square-wave frequencies (1Hz, 4 kHz, 8 kHz,
and 32 kHz). This is also open drain and requires an external pull-up resistor. It
requires application of either Vcc or Vb at to operate SQW/OUT, with an
allowable pull up voltage of 5.5V and can be left floating, if not used.
Pin 8: Primary power supply. When voltage is applied within normal limits, the
device is fully accessible and data can be written and read. When a backup
supply is connected to the device and VCC is below VTP, read and writes are
inhibited. However at low voltages, the timekeeping function still functions.
Features:
• Programmable square wave output signal
• Automatic power-fail detect and switch circuitry
• Consumes less than 500nA in battery backup mode with oscillator
running
• Available in 8-pin DIP or SOIC
• Underwriters Laboratory (UL) recognized
• Real-time clock (RTC) counts seconds, minutes, hours, date of the month,
month, day of the week, and year with leap-year compensation valid up to
2100
• 56-byte non-volatile RAM for data storage
• Two-wire interface (I2C)
Using the DS1307 is primarily written to and read the registers of this chip. The
memory contains all 64 DS1307 8-bit registers are addressed from 0 to 63 (from
00H to 3FH the hexadecimal system). The first eight registers are used for the
clock register the remaining 56 vacant can be used as RAM contains temporary
variable if desired. The first seven registers contain information about the time
of the clock including: seconds, minutes, hours, secondary, date, month and
year. The DS1307 include several components such as power circuits, oscillator
circuits, logic controller and I2C interface circuit and the address pointer
register (or RAM). Let’s see the working of DS1307.
TOLL COLLECTION SYSTEM USING ARDUINO December 30, 1899
P a g e | 12
Working of DS1307:
In the simple circuit the two inputs X1 and X2 are connected to a 32.768 kHz
crystal oscillator as the source for the chip. VBAT is connected to positive
culture of a 3V battery chip. Vcc power to the I2C interface is 5V and can be
given using microcontrollers. If the power supply Vcc is not granted read and
writes are inhibited. START and STOP conditions are required when a device
wants to establish communication with a device in the I2C network.
FIGURE 5: i) DS1307
Liquid crystal displays (LCDs) have materials which combine the properties of
both liquids and crystals. An LCD consists of two glass panels, with the liquid
crystal material sand witched in between them. The inner surface of the glass
plates are coated with transparent electrodes which define the character,
symbols or patterns to be displayed polymeric layers are present in between the
electrodes and the liquid crystal, which makes the liquid crystal molecules to
maintain a defined orientation angle.
Pin Description:
Pin Function Name
No
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
3 Contrast adjustment; through a variable resistor VEE
Selects command register when low; and data register Register
4
when high Select
5 Low to write to the register; High to read from the Read/write
register
6 Sends data to data pins when a high to low pulse is Enable
given
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
In this project we will be using RTC module, which is utilized for enabling and
disabling the attendance system within a given time period, so that we can keep
the late comers at bay. The RFID module “RFID-RC522” which can do read and
write operations on NXP based RFID tags. NXP is lead producer of RFID tags in
the world and we can get them on online and offline stores easily. A 16 x 2 LCD
display is used, which is to showcase information such as time, date, number of
attendance, etc. And finally an Arduino board is utilized which is the brain of the
project.
DC Motor Driver:
L293D is a dual H-Bridge motor driver, so with one IC we can interface two DC
motors which can be controlled in both clockwise and counter clockwise
direction we can control speed of each dc motor by giving PWM to enable
pin .L293D has output current of 600mA and peak output current of 1.2A per
channel. Moreover for protection of circuit from back EMF output diodes are
included within the IC. The output supply (VCC2) has a wide range from 4.5V to
36V, which has made L293D a best choice for DC motor driver.
As we can see in the circuit, three pins are needed for interfacing a DC motor
(A, B, Enable). If we want to control speed enable pin is connected to the PWM
pin of microcontroller. We have connected only one motor and used the enable
pin to control the speed of dc motor.
IR LED emits infrared light, means it emits light in the range of Infrared
frequency. We cannot see Infrared light through our eyes; they are invisible to
human eyes. The wavelength of Infrared (700nm – 1mm) is just beyond the
normal visible light. Everything which produces heat emits infrared like our
human body. Infrared have the same properties as visible light, like it can be
focused, reflected and polarized like visible light.
Other than emitting invisible infrared light, IR LED looks like a normal LED and
also operates like a normal LED, means it consumes 20mA current and 3vots
power. IR LEDs have light emitting angle of approx. 20-60 degree and range of
approx. few centimeters to several feet’s, it depends upon the type of IR
transmitter and the manufacturer. Some transmitters have the range in meters.
FIGURE 8: IR LED
IR Receiver (TSOP17XX):
TSOP17XX receives the modulated Infrared waves and changes its output. TSOP
is available in many frequency ranges like TSOP1730, TSOP1738, and
TSOP1740 etc. Last two digits represent the frequency (in Khz) of modulated IR
rays, on which TSOP responds. Like for example TSOP1738 reacts when it
receives the IR radiation modulated at 38Khz. Means it detects the IR which is
switching On and Off at the rate of 38Khz. TSOP’s output is active low, means
its output is remains HIGH when there is no IR, and becomes low when it
detects IR radiation. TSOP operates on particular frequency so that other IRs in
the environment can’t interfere, except the modulated IR of particular
frequency. It has three pins, Ground, Vs (power), and OUTPUT PIN.
IR Receiver circuit is very simple we just need to connect a LED to the output of
the TSOP1738, to test the receiver. We have use BC557 PNP transistor here, to
reverse the effect of TSOP, means whenever the output is HIGH LED will be
OFF and whenever it detects IR and output is low, LED will be ON. PNP
transistor behaves opposite to the NPN transistor, it acts as open switch when a
voltage applied to its base and acts as closed switch when there is no voltage at
its base. So normally TSOP output remains HIGH and Transistor behaves as
open switch and LED will be OFF. As soon as TSOP detects Infrared, its output
becomes low and transistor behaves as closed switch and LED will be ON. A 10k
resistor is used for provide proper biasing to transistor and a 470ohm resistor is
used at LED for limiting the current. So whenever we press the Button at IR
transmitter, it is detected by TSOP1738 and LED will glow.
METHODOLOGY
Flow of RFID based toll tax are:
• Detection of vehicle
• Display of toll
• Payment through RFID card
Whenever any person buys a vehicle, first he/she need to do her vehicle
registered at the RTO office. RTO people will assign a number plate to it along
with it they will give a RFID enabled tag. This card will have a unique ID
feasible to use with that vehicle only. They will also create an account for that
particular smart card and maintain transaction history in database. Owner of
the vehicle needs to deposit some minimum amount to this account. Every time
a registered vehicle approaches the toll booth, first the Infrared sensors will
detect the presence of the vehicle which in turn activates the RFID circuit to
read the RFID enable smart card fixed on the windscreen of the vehicle.
Transaction will begin, depending upon the balance available toll will be
deducted directly or the vehicle will be directed towards another lane to pay tax
manually. The software further updates the details in the Centralized database
server. It also triggers mechanism to generate the bill and will be sent to user as
a text message. On the other hand, whenever any vehicle owner registers a
complaint at the RTO office regarding theft of the vehicle respective entry is
made in the database. Now any vehicle arriving at toll booth with same ID as
already present in stolen vehicle category will be easily identified as the ID
assigned with it is unique. All the toll plazas will be connected to each other
along with the centralized server in the form of LAN. Updates of any sort of
transaction will be immediately updated to local database and centralized
server.
The RFID module must be powered by 3.3V and 5V can damage the on board
components. The RFID-RC522 module works on SPI communication protocol while
communicating with Arduino.
Rest of the circuit:
The Arduino can be powered from 9V wall adapter. There is a buzzer and LED to
indicate that the card is detected. There are 4 buttons provided for viewing the
vehicle attendance, clearing the memory and “yes” and “no” buttons.
Now we have to set the correct time to RTC module to do this, follow the below
steps with completed hardware setup.
• Open the Arduino IDE.
• Navigate to File> Examples> DS1307RTC> SetTime. Upload the code.
Once the code is uploaded to Arduino, open the serial monitor. Now the RTC is
synchronized with the time of your computer.
UID, upload the below code and open the serial monitor.
• Open serial monitor.
• Scan the card/tag on RFID module.
• Now you will see some hexadecimal code for each card.
• Write it down, we will be entering those data in the next program.
We have to place the UID codes here (our RFID tag’s UID):
char UID1[] =
"F6:97:ED:70"; char
UID2[] = "45:B8:AF:C0";
char UID3[] =
"15:9F:A5:C0"; char UID4[]
= "C5:E4:AD:C0"; char
UID5[] = "65:1D:AF:C0";
char UID6[] =
"45:8A:AF:C0"; char
UID7[] = "15:9F:A4:C0";
char UID8[] =
"55:CB:AF:C0"; char
UID9[] = "65:7D:AF:C0";
char UID10[] =
"05:2C:AA:04"; char
UID11[] = "55:7D:AA:04";
char UID12[] = "BD:8A:16:0B";
//----------------------------------------------//
You have place names here:
// -------------- NAMES -----------------------//
char Name1[] = "Vehicle1";
char Name2[] = "
Vehicle2"; char Name3[] =
" Vehicle3"; char Name4[]
= " Vehicle4"; char
Name5[] = " Vehicle5";
char Name6[] = "
Vehicle6"; char Name7[] =
" Vehicle7"; char Name8[]
= " Vehicle8"; char
Name9[] = " Vehicle9";
char Name10[] = "
Vehicle10"; char Name11[]
= " Vehicle11"; char
Name12[] = " Vehicle12";
//--------------------------------------------//
Replace student1, student2 with any name you wish or leave it as it is.
You have to set the time from when to when the attendance system should be
active, rest of the time the system won’t register the attendance when we scan
RFID tag/card:
// ------ From -------- //
int h = 21; // Hrs
int m = 00; //
Min // ------- To
------- // int h1 =
21; // Hrs
int m1 = 50; //Min
//-------------------------//
The upper part is starting time and the lower part is ending time. You have to
enter time in hours from 0 to 23 and minutes from 00 to 59.
CONCLUSION
The Electronic Toll Collection system in expressway based on RFID, a design
scheme was put forward. It is low cost, high security, far communication and
efficiency, etc. It not only improves the passage ability of expressway but also
improves the technology level of charge. Electronic toll collection system using
RFID is an effective measure to reduce management costs and fees, at the same
time, greatly reduce noise and pollutant emission of toll station. In the design of
the proposed Electronic toll collection (ETC) system, real time toll collection and
anti-theft solution system have been designed. This reduces the manual labour
and delays that often occur on roads. This system of collecting tolls is eco
friendly and also results in increased toll lane capacity. Also an anti-theft
solution system module which prevents passing of any defaulter vehicle is
implemented, thus assuring security on the roadways.
REFERENCES
[1]RFID based toll collection system 2011 IEEE third international Conference
[2]Active Wave Inc. http://www.activewaveinc.com
[3] Smart key Access Control System http://www.smartkey-rfid.com
[4] D. M. Grimes and T. O. Jones, ―Automotive radar: A brief review, Proc. IEEE,
vol. 62, no. 6, pp. 804–822, Jun.1974.
[5] Klaus Finkenzeller, “RFID Handbook: Radio-Frequency Identification
Fundamentals and Applications”. John Wiley & Sons, 2000.
EMPATHY CANVAS:
TOLL COLLECTION SYSTEM USING ARDUINO December 30, 1899
P a g e | 27
IDEATION CANVAS: