12.CHAPTER 4tollcorrect
12.CHAPTER 4tollcorrect
Connect the Arduino hardware via USB, and choose the connection type
Bluetooth. Choose the board type and the port number from the Choose board and
Choose board menus. Select the libraries to include in Arduino server. Click Program
to begin uploading the server to Arduino board. Setting with the Arduino Board is
shown in Figure 4.1.
In this project, author use Arduino IDE Software version 2.3.2. Arduino IDE is
an open-source software program that allows users to write and upload code within a
real-time work environment. As this code will thereafter be stored in computer, it is
often utilized by those who have been searching for an extra level of redundancy. The
system is fully compatible with any Arduino software board.
Main Functions and Uses are Arduino IDE can be implemented within
Windows, Mac and Linux operating systems. The majority of its components are
written in JavaScript for easy editing and compiling. While its primary intention is
based around writing codes, there are several other features worth noting. It has been
equipped with a means to easily share any details with other project stakeholders.
Use can modify internal layouts and schematics when require. There are in
depth help guides which will prove useful during the initial installation process. Other
Accessories are several other advantages associated with Arduino IDE. It will
automatically detect any existing Arduino boards that are connected to a personal
computer.
components like ICs, transistors, headers, connectors and other discrete components. It
offers Auto routing and manual routing options to the PCB Designer. The schematic
drawn in the ISIS can be directly transferred ARES.
Figure 4.5. Open Proteus Software and Select New Design in File Menu
50
Step 2: A dialogue box appears to save the current design. However, we are creating a
new design file so you can click Yes or No depending on the content of the present file.
Then a Pop-Up appears asking to select the template.
Step 3: An untitled design sheet will be opened, save it according to your wish, it is
better to create a new folder for every layout as it generates other files supporting your
design. However, it is not mandatory.
Step 6: Select the components from categories of type the part name in Keywords text
box.
Place all the required components and route the wires i.e., make connections.
Either selection mode above the component mode or component mode allows to
connect through wires. Left click from one terminal to other to make connection.
Double right-click on the connected wire or the component to remove connection or the
component respectively.
Start
Yes
Open Entry Gate
Scan RFID
No Displays Unknown
RFID Tag
Vehicle Access Denied
Valid?
on LCD
Yes
Scan RFID
Sufficient No
Balance?
A
55
If IR2 detecteted No
Exit Gate in closed
vehicle at exit gate or
State
press key 6
Yes
No
# key pressed?
Yes
End
No Toll Deduction or Entry: The gate does not open, and no toll deduction occurs.
If Vehicle is Not Blacklisted:
Green LED Turns On: A green LED lights up, signaling the vehicle is authorized to
pass through.
Toll Deduction: The system deducts the required toll amount from the vehicle's account
balance.
GSM Alert to Owner: The GSM module sends a message to the vehicle owner,
confirming toll payment and the remaining balance.
Open Entry Gate (Servo Control): The servo motor controlling the entry gate is
activated, and the gate opens to allow the vehicle to pass.
• Toll Payment Processing
Insufficient Balance: If the vehicle's RFID card does not have enough balance to cover
the toll fee: The system prompts the driver to recharge using the keypad.
Manual Recharge: The driver can use the 4x3 keypad to input a recharge code or enter
toll information.
GSM Alert: After recharge, the GSM module sends a message confirming the balance
top-up. The toll fee is deducted after recharging. The gate opens once the toll is
successfully paid.
• Vehicle Exit Detection
IR Sensor Exit Detection: As the vehicle approaches the exit gate, the second IR sensor
detects the vehicle's presence.
Open Exit Gate (Servo Control): The Arduino controls the exit gate servo motor,
opening the gate to allow the vehicle to exit the toll booth.
• GSM Notification to Tollgate Owner
Report Toll Transaction: The GSM module sends a summary of the transaction (vehicle
ID, toll fee deducted, and balance) to the toll gate owner.
Display on LCD: The LCD updates with a summary of the toll payment and balance
for the current vehicle.
• Manual Control Options
Keypad Manual Control: The system allows toll personnel to manually operate both the
entry and exit gates using the 4x3 keypad.
Open/Close Gates: Personnel can press specific keys to open or close the entry or exit
gates.
57
View Toll Information: The keypad can also be used to access and view toll information
such as the total number of vehicles processed and the amount of toll collected.
• End of Process
Reset System: After each vehicle passes through, the system resets, returning to the
initial state where it waits for the next vehicle to approach the entry gate.
This flowchart provides a comprehensive explanation of the operation of the
RFID and GSM-based electronic toll payment system. Each step ensures the smooth
processing of vehicles through the toll gate, while handling exceptions like blacklisted
vehicles and insufficient balance. The use of GSM technology enhances
communication by alerting both authorities and vehicle owners, while manual control
options provide flexibility for toll personnel.
the toll amount is automatically deducted. A message is then sent to the vehicle owner
through the GSM module confirming the deduction.
Blacklisted Vehicles: If the vehicle is blacklisted, a red LED lights up, and a buzzer
alerts toll personnel. Simultaneously, a GSM message is sent to the nearest police
station to report the presence of a blacklisted vehicle.
Green LED: If the vehicle is not blacklisted and has sufficient balance, a green LED
lights up, and the entry servo barrier is opened automatically, allowing the vehicle to
pass through. Once the vehicle exits, the exit IR sensor triggers the closing of the exit
gate.
LCD Display: An LCD with I2C interface displays relevant toll information, including
the vehicle ID, the deducted amount, and the remaining balance after each transaction.
This provides real-time feedback to the driver and toll booth operator.
Toll Balance Recharging: A 4x3 keypad allows vehicle owners to recharge their toll
balance. The keypad can also be used to view toll information or operate the gates
manually if needed. The system sends a confirmation SMS to the owner upon
successful recharging of the balance via the GSM module.
GSM Communication:
For Toll Deductions: Every time a toll amount is deducted, an SMS is sent to the
vehicle owner indicating the deducted amount and the remaining balance.
For Blacklisted Vehicles: In case a blacklisted vehicle is detected, a notification is sent
to the nearest police station using the GSM module.
For Tollgate Owner: The system can send messages to the tollgate administrator,
providing reports on toll collections and blacklisted vehicles.
Servo Motors: Servo motors control the opening and closing of entry and exit gates.
Based on the input from the IR sensors and RFID scanner, the Arduino Nano sends
signals to the servos to either open or close the gates. This ensures that only authorized
vehicles are allowed to pass through.
Manual Operation: In case of system malfunctions or special conditions, the toll booth
operator can manually open or close the gates using the keypad.
This RFID and GSM-based electronic toll payment system offers a robust,
automated solution to toll management. It streamlines toll payments by reducing human
intervention, enhances security with blacklisted vehicle detection, and improves
communication through GSM notifications. The system is scalable and can be adapted
59
to different toll booths, providing a cost-effective and efficient solution for electronic
toll collection. The circuit diagram is shown in Figure 4.13.
Figure 4.13. Overall Circuit Diagram of RFID and GSM-based Electronic Toll
Payment System
4.7. Summary