Mini Project Iot
Mini Project Iot
A MINI-PROJECT REPORT ON
“AUTOMATIC TOLLGATE SYSTEM”
Submitted in the partial fulfillment of the requirement for the award of the
degree of
BACHELOR OF ENGINEERING
In
COMPUTER SCIENCE & ENGINEERING
Submitted By
MANASA P R(1AH22CS086)
PRUTHVI (1AH22CS126)
K SNEHA (1AH22CS065)
KAVERI H S(1AH22CS071)
CERTIFICATE
MANASA P R(1AH22CS086)
PRUTHVI (1AH22CS126
K SNEHA (1AH22CS065)
KAVERI H S(1AH22CS071)
The student of “ACS College of Engineering” in partial fulfillment for the award of Bachelor of Engineering
in Computer Science & Engineering of the Visvesvaraya Technological University, Belagavi during the year
2024–2025. It is certified that all corrections/suggestions indicated for Internal Assessment have been
incorporated in the report deposited in the departmental library. The Mini-Project report has been approved as
it satisfies the academic requirements in respect of Mini-Project work prescribed for the Fifth semester.
External Viva-Voce
Examiner Signature
1._____________________
2._____________________
ABSTRACT
The Automatic Toll Gate System is a cost-effective and efficient solution designed to automate
the toll collection process without relying on advanced technologies such as RFID or image-
based vehicle recognition. The system leverages simple and accessible components, including
infrared (IR) sensors for vehicle detection, weight sensors for vehicle classification, and servo
motors for gate operation.
Upon detecting a vehicle, the system classifies it based on its weight or physical attributes to
calculate the appropriate toll. A real-time display provides feedback on the toll amount, and
payment is facilitated manually or through simple digital methods. Once payment is completed,
the gate automatically opens, allowing smooth traffic flow and reducing the need for human
intervention.
This system is ideal for small-scale toll booths, rural areas, and temporary setups where budget
constraints or infrastructure limitations make high-end systems impractical. While it simplifies
toll operations and reduces costs, the system can be further enhanced by integrating automated
payment systems, data logging, and advanced sensors for improved efficiency and scalability.
This project demonstrates a reliable, low-cost alternative for automating toll operations,
addressing the needs of underdeveloped regions and paving the way for future technological
upgrades.
ACKNOWLEDGEMENT
We take this opportunity to express our sincere gratitude and respect to the ACS College of
Engineering, Bengaluru for providing us an opportunity to carry out Mini Project.
We express our deep regards to our honorable chairman Dr. A C Shanmugam for providing us
an opportunity to fulfil our ambition in this prestige institute.
We would like to express our immense gratitude to Dr. Anandthirtha B Gudi, Principal, ACS
College of Engineering, Bengaluru, for his timely help and inspiration during the tenure of the
course.
We express our sincere regards and thanks to Dr. T Senthil Kumaran, Professor & HOD,
Computer Science and Engineering, ACSCE, Bengaluru for the encouragement and support
throughout the work.
We are highly thankful to our guide Mrs. Lakshmi, Assistant Professor, Computer Science and
Engineering, ACSCE for giving us a valuable suggestion, providing cooperation and moral
support towards completion of department Mini-Project Work.
We are highly thankful to our Coordinator Mrs. Thamarai Selvi V, Assistant Professor,
Computer Science and Engineering, ACSCE for giving us a valuable suggestion, providing
cooperation and moral support towards completion of department mini project.
Finally, we are very thankful to all faculty members of the Department of Computer Science and
Engineering, our friends and our the parents for their constant encouragement, support and help
throughout the period of learning.
MANASA P R(1AH22CS086)
PRUTHVI (1AH22CS126)
K SNEHA (1AH22CS065)
KAVERI H S(1AH22CS071)
CONTENTS
1. INTODUCTION 1-2
1.1 Introduction
1.2 Objective
1.3 Overview of the project
1.4 Problem Definition
1.5 Scope
3. IMPLEMENTATION 17-19
3.1 Code snippets
3.2 Circuit diagram
6. CONCLUSION 25
7. REFERENCE 26
Automatic toll gate system
Chapter 1
INTRODUCTION
1.1 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.
1.2 OBJECTIVE
The primary objectives of the Automatic Toll Gate System are:
• To automate the toll collection process, reducing manual labour and human errors.
• To increase the efficiency of toll collection and reduce waiting time at toll booths.
• To integrate technology such as RFID or QR codes to facilitate seamless payments.
• To provide a user-friendly interface for both drivers and toll operators.
• To improve the overall traffic flow and reduce congestion at toll booths.
and actuators to automate the toll collection process, reducing manual intervention and increasing
efficiency.
1.5 SCOPE
The scope of an Automatic Toll Gate System extends across multiple domains, from transportation
management and technology to customer experience and environmental impact. It involves the
automation of toll collection processes using technologies like RFID, sensors, and microcontrollers.
Below, the scope is elaborated in various aspects that demonstrate how the system can be applied, its
potential benefits, and its future expansion opportunities.
With microcontrollers such as Arduino UNO or specialized embedded systems, the automation of toll
gates can be realized. These controllers process inputs from sensors, and the payment system to manage
the entire toll collection operation.
The primary operation of the system is to collect tolls automatically, eliminating the need for human toll
collectors. This leads to a more streamlined process that reduces human errors and increases operational
efficiency.
Chapter 2
PROPOSED METHODOLOGY
The Automatic Toll Gate System (ATGS) is designed to streamline the toll collection process by
automating vehicle identification, payment processing, and traffic management. The system leverages
technologies such as sensors, microcontrollers, and payment systems to ensure fast and efficient toll
collection process without the need for human intervention.
Below is a detailed explanation of the system design and architecture for the Automatic Toll Gate
System.
3. Gate Mechanism:
o The gate mechanism is an automated barrier system that is controlled by the microcontroller.
o After the payment is confirmed, the microcontroller sends a signal to raise the barrier, allowing the vehicle
to pass.
o If payment fails or there is an issue, the gate remains closed, blocking the vehicle.
4. Payment System:
o Once the vehicle is identified, the microcontroller sends a request to the payment system to deduct the toll
fee.
o The payment can be deducted from a prepaid account or linked credit/debit card. It can be handled via a
direct payment gateway or through integration with a mobile payment app.
o If the payment is successful, the payment system confirms it to the microcontroller, which then allows the
gate to open.
5. Display/Signage:
o A display screen (LED or LCD) shows the status of the toll collection process.
o It can indicate the toll fee, payment status (e.g., successful, failed), and gate status (open or closed).
o It provides visual feedback to both the vehicle driver and the toll booth operator.
6. Communication System:
o The communication system connects all the components of the toll gate system, allowing them to share
data and signals.
o It may involve wired or wireless connections between the microcontroller, RFID reader, payment system,
and gate mechanism.
The architecture of the Automatic Toll Gate System focuses on integrating the different components to
function as a cohesive unit. The main components interact in the following manner:
1. Vehicle Detection:
o The vehicle detection sensors identify the presence of a vehicle at the toll gate. When a vehicle is
detected, the system activates the RFID reader and starts the toll collection process.
3. Toll Calculation:
o Once the vehicle is identified, the system calculates the toll fee based on predefined rules (e.g., vehicle
type, time of day, distance travelled).
o The microcontroller then initiates the payment request.
4. Payment Processing:
o The payment system deducts the toll fee from the user's account (prepaid toll card, bank account, mobile
wallet, etc.).
o The payment status is sent back to the microcontroller. If the payment is successful, the barrier will be
raised.
5. Gate Control:
o The microcontroller sends a signal to the gate mechanism to raise the barrier once payment is confirmed.
o If the payment fails or there are insufficient funds, the gate remains closed, blocking the vehicle.
6. Display Updates:
o The display/signage system updates the driver with the payment status (e.g., "Payment Successful" or
"Insufficient Funds") and indicates whether the gate is open or closed.
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 Pin50 mA
• Flash Memory 32 KB of which 0.5 KB used by boot loader
• SRAM 2 KB
• EEPROM 1 KB
• Clock Speed 16 MHz
2.SERVO MOTOR
A servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear
position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for position
feedback. It also requires a relatively sophisticated controller, often a dedicated module designed
specifically for use with servomotors. Servomotors are not a specific class of motor, although the term
servomotor is often used to refer to a motor suitable for use in a closed-loop control system. Servomotors
are used in applications such as robotics, CNC machinery or automated manufacturing.
3.ULTRASONIC SENSOR
Ultrasonic sensors are commonly used in conjunction with Arduino for various projects such as distance
measurement, object detection, and robotics. The HC-SR04 ultrasonic sensor is one of the most
popular ultrasonic sensors used with Arduino due to its low cost and ease of use.
Using ultrasonic sensors with Arduino, especially the popular HC-SR04 sensor, is a great way to
implement various measurement and detection tasks in embedded systems. This setup is ideal for distance
measurement, object detection, and robotics projects. The simplicity of the components and ease of
integration with Arduino makes it an excellent tool for both beginners and experienced developers.
1. Vehicle Detection
The first step involves detecting the vehicle approaching the toll gate. Data is captured by various sensors
such as:
• Ultrasonic Sensors: Detect the presence and size of the vehicle. These sensors calculate the distance
between the sensor and the vehicle, helping the system determine whether a vehicle is at the toll gate.
• Inductive Loop Sensors: Embedded in the road, these sensors detect the vehicle's presence when the
metal of the vehicle causes a change in inductance.
• Cameras or RFID: In advanced systems, cameras or RFID readers can also be used to identify the
vehicle.
Data Collected:
• Vehicle presence.
• Vehicle size or classification (optional, if based on sensors or cameras).
3. Toll Calculation
Once the vehicle is identified, the system calculates the appropriate toll fee. This calculation depends on
several factors:
• Vehicle Type: Different vehicles are charged differently based on their size, weight, or category. The toll
rate may be higher for larger vehicles such as trucks or buses.
• Time of Day: Some toll systems may apply variable pricing depending on traffic conditions or time of
day (peak or off-peak).
• Traffic Flow: Some systems may adjust toll rates dynamically based on the traffic congestion at a given
time (e.g., congestion pricing).
Data Collected:
• Vehicle classification.
• Time of passage.
• Applicable toll rate.
Data Collected:
• Financial and transaction reports.
• Traffic flow and congestion analysis.
• System performance logs and maintenance alerts
2.4 ALGORITHM
Here’s an algorithm for an Automatic Toll Gate System that operates without RFID and cameras. Instead,
it uses other detection methods like motion sensors, weight sensors, or pressure plates, combined with
manual or basic automation mechanisms for toll collection.
Output:
1. Toll deducted or paid manually.
2. Gate operation (open/close).
Step-by-Step Process:
1. Initialization
• Load pre-configured toll rates and vehicle category rules.
• Connect and initialize hardware components (motion sensors, weight sensors, gate motors).
2. Vehicle Detection
Detect a vehicle approaching the toll gate:
• Use an infrared (IR) sensor or laser beam to detect motion.
• If a vehicle is detected, proceed to the next step.
3. Vehicle Classification
1. Measure the weight or axle count of the vehicle:
4. Toll Calculation
1. Calculate the toll amount:
o Use the vehicle category and toll rate configuration.
o For vehicles with multi-axle classification, calculate dynamically based on axle count.
5. Payment Processing
1. Display the toll amount on an electronic display for the driver.
2. Offer payment options:
o Cash payment at the counter.
o Contactless payment using a mobile device or card (via NFC or QR code scanner).
3. Wait for payment confirmation:
o If successful, log the transaction details (e.g., time, amount, vehicle type).
6. Gate Operation
1. Open the gate if:
o Payment is completed.
o The operator manually approves the payment.
2. Close the gate after the vehicle passes:
o Use a motion sensor or timer to detect the vehicle departure.
7. Exception Handling
1. If payment is incomplete or the vehicle is unregistered:
o Block the gate.
o Notify the operator for manual intervention.
2. If weight sensors fail or data is inconsistent:
o Alert the operator for manual vehicle classification.
Enhancements:
1. Automatic Ticket Dispensing: If prepayment or ticket-based systems are used, dispense a ticket upon
entry for manual collection at the exit point.
2. Mobile App Integration: Allow vehicles to pay tolls in advance via a mobile app, using the transaction
ID at the toll gate for verification.
3. Prepaid Toll Lanes: Implement separate lanes for prepaid toll users where the system deducts tolls based
on a unique ID entered manually.
4. Dynamic Pricing: Adjust tolls dynamically based on traffic flow or time of day.
This algorithm offers an efficient and simple approach to manage tolls in the absence of RFID and camera-
based systems, relying on basic detection mechanisms and manual or semi-automated payment methods.
Chapter 3
IMPLEMENTATION
#include <Servo.h>
Servo myservo;
int pos = 0;
int cm = 0;
void setup() {
myservo.attach(9);
myservo.write(0); // Initialize servo position
pinMode(6, OUTPUT); // Ultrasonic Trigger
pinMode(7, INPUT); // Ultrasonic Echo
Serial.begin(9600);
}
void loop() {
cm = 0.01723 * readUltrasonicDistance(6, 7);
if (cm > 0 && cm < 30) { // Check valid reading and range
Serial.print("Distance: ");
Serial.print(cm);
Serial.println(" cm");
Chapter 4
RESULTS
The implementation of the Automatic Toll Gate System successfully demonstrates the following
outcomes:
1. Vehicle Detection:
o Vehicles are reliably detected using IR sensors at the entry and exit points of the toll gate.
o The system triggers appropriate actions (e.g., toll calculation, gate operation) upon detection.
2. Vehicle Classification:
o Weight sensors or pressure plates effectively classify vehicles as "light" or "heavy."
o The toll amount is calculated based on the weight of the vehicle, with predefined rates for different
categories.
3. Payment Simulation:
o The toll collection process is simulated using a push button to confirm manual payment.
o The system waits for payment confirmation before proceeding with gate operation.
4. Gate Operation:
o A servo motor successfully opens the gate once the toll is paid.
o After the vehicle exits, the gate automatically closes, ensuring smooth traffic flow.
Discussion
Advantages
1. Cost-Effectiveness:
o By eliminating RFID and camera systems, the setup significantly reduces costs, making it suitable for
low-budget installations.
2. Simplicity:
o The design is straightforward, utilizing commonly available components like IR sensors, load cells, and
servo motors.
o This simplicity ensures easy implementation and maintenance.
3. Basic Automation:
o The system automates the core functions of vehicle detection, classification, and gate operation, reducing
the need for human intervention.
4. Scalability:
o Additional sensors or payment methods (e.g., QR codes, contactless cards) can be integrated to enhance
the system.
Limitations
1. Manual Payment Dependency:
o The reliance on manual payment (simulated by a button) introduces delays and reduces the efficiency of
the system compared to fully automated toll booths.
3. Environmental Sensitivity:
o IR sensors can be affected by environmental factors such as rain, dust, or direct sunlight, which may result
in inaccurate vehicle detection.
5. Data Management:
o The system lacks data storage or real-time logging capabilities, which limits its ability to track vehicle
transactions or generate reports.
Future Improvements
1. Automated Payment Options:
o Integrate payment systems like QR code scanners, contactless payment readers, or mobile wallet
compatibility to streamline the toll collection process.
2. Enhanced Detection:
o Use ultrasonic sensors or LIDAR for more accurate vehicle detection under varying environmental
conditions.
4. Vehicle Identification:
o Introduce a barcode or unique ticket system at entry, allowing vehicles to pay tolls at the exit while linking
payments to specific vehicles.
Chapter 5
AIM AND SCOPE
AIM
To design and implement a cost-effective and reliable Automatic Toll Gate System that automates
vehicle detection, classification, toll calculation, and gate operation using simple sensors (IR and weight
sensors) without relying on RFID or camera-based technologies.
SCOPE
1. Automation of Toll Collection:
o Streamline toll collection by automating the process of detecting vehicles, classifying them based on
weight or other physical parameters, and calculating toll amounts dynamically.
2. Cost-Effective Solution:
o Provide an affordable alternative to RFID or camera-based toll systems, making it suitable for small-scale
toll booths or rural setups with limited budgets.
3. Ease of Implementation:
o Use readily available and simple hardware components (e.g., IR sensors, pressure plates, weight sensors,
servo motors) for easy installation and maintenance.
4. Real-Time Feedback:
o Display toll information and transaction status to drivers in real time via an LCD or LED display.
6. Vehicle Classification:
o Classify vehicles based on their weight or other physical characteristics, enabling appropriate toll charges
for different vehicle categories (e.g., light vehicles, heavy vehicles).
9. Scalability:
o Provide a foundation for future upgrades, such as integration with mobile apps, QR code payment systems,
or data logging for audit and analysis.
Applications
1. Small Toll Booths:
Ideal for toll booths on local or less busy roads where traffic volume does not justify the investment in
high-tech systems.
3. Rural Areas:
Suitable for rural areas where budget constraints or infrastructure limitations make high-end systems
impractical.
Chapter 6
CONCLUSION
The Automatic Toll Gate System Without RFID and Cameras is a practical, cost-effective solution
that automates the toll collection process using simple yet efficient technologies like IR sensors, weight
sensors, and servo motors. By eliminating the need for advanced technologies such as RFID and cameras,
this system reduces installation and operational costs, making it particularly suitable for small-scale toll
booths, rural areas, and low-traffic roads.
The system achieves its primary objectives of vehicle detection, classification, toll calculation, payment
simulation, and gate operation. It enhances traffic flow by minimizing human intervention and reducing
waiting times. The integration of real-time feedback mechanisms, such as LCD displays and buzzer alerts,
ensures user convenience and system reliability.
However, the system has certain limitations, such as dependency on manual payment methods and a lack
of advanced vehicle identification capabilities. These limitations can be addressed through future
enhancements, including the integration of QR code payment systems, mobile app support, and real-time
data logging.
Overall, the system provides a robust foundation for automating toll operations in budget-constrained
settings. It serves as a stepping stone for more sophisticated systems while fulfilling the immediate need
for efficient and accessible toll management.
REFERENCES
[1] C.R. Kumar, B. Vijayalakshmi, C. Ramesh, C. Pandian, “Vehicle Theft Alarm and Tracking The
Location Using RFID & GPS”, International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com ISO Certified Journal 2013, pp. 525528.
[2] Sanchit Agarwal, Shachi Gupta, Nidheesh Sharma, “Electronic Toll Collection System Using Barcode
Laser Technology”, International Journal of Emerging Trends & Technology in Computer Science
(IJETTCS), Vol 3, 2014
[3] D. Kiranmayi, “Vehicle Monitoring System Using RFID”, DuruguKiranmayi / (IJCSIT) International
Journal of Computer Science and Information Technologies, Vol. 7 (3), 2016, pp. 1444-1447
[4] R. Karthikayeni1, P. KeerthikaBala2, K. Vignesh, “toll plaza payment using QR code”, International
Research Journal of Engineering and Technology, 2018.
[5] Aishwarya Agarwal, “Automatic License Plate Recognition using Raspberry Pi,” IEEE International
Interdisciplinary Conference on Science Technology Engineering Management Singapore, 22nd, 23rd
April 2017.
[6] Persad, Khali, C. Michael Walton, and Shahriyar Hussain. Toll Collection Technology and Best
Practices. No. Product 0-5217-P1. 2007.
[7] Li, Shuguang, et al. "Video-based traffic data collection system for multiple vehicle types." IET
Intelligent Transport Systems 8.2 (2013): 164-174.