Real-Time Fare Collection, Balance Monitoring, and Secure Notification for Shuttle Services Using RFID Technology
Category: IoT, Embedded Systems, Shuttle Payment System, Smart Transportation Solutions
Tools & Technologies: ESP32 Development Board, RC522 RFID Reader, RFID Card Tags (13.56MHz), 4x4
Matrix Keypad, LCD2004 with I2C Interface, LED Indicators, Buzzer with Driver Module, 18650 Li-Ion
Batteries, Battery Holder, Type-C Charging Port, Charging Module, Boost Converter (XL6019),
Connecting Wires, Jumper Wires, Veroboard, DIL Connectors, Soldering Lead, Heat Shrink Tubing,
Switch, Resistors, Firebase Realtime Database for Cloud Storage and Notifications, Arduino IDE for
Programming.
Status: Completed
In response to the demand for secure, contactless payment in campus shuttle services, this project integrates RFID technology, an ESP32 microcontroller, and Firebase Realtime Database to provide instant fare processing, live balance tracking, and reliable user authentication. A 4×4 matrix keypad and I2C-driven LCD offer an intuitive local interface, complemented by Wi-Fi connectivity for cloud updates and email alerts. Built-in buzzer and LED indicators deliver clear transaction and system status feedback. This solution addresses the growing need for efficient payment systems in university shuttle networks and similar settings, leveraging RFID, real-time data management, and robust IoT connectivity. Designed with user convenience in mind, it transitions from traditional manual fare collection to smart transportation, effectively eradicating manual processes and significantly boosting operational efficiency.
Aim:
To develop an IoT-based RFID shuttle payment and monitoring system
that enables secure, real-time fare collection and balance management for university shuttle
services.
Objectives:
The objectives of the project are outlined below:
The following is the pinout diagram for the ESP32 Development Board used in this project, along with the GPIO pins utilized.
Pinout Diagram:GPIO Pin | Component | Description |
---|---|---|
GPIO 5 | RC522 RFID (SS) | Slave Select pin for RFID communication. |
GPIO 0 | RC522 RFID (RST) | Reset pin for RFID module. |
GPIO 27 | Buzzer | Outputs sound for transaction feedback. |
GPIO 12 | Red LED | Indicates failed transactions or errors. |
GPIO 4 | Blue LED | Indicates successful transactions. |
GPIO 13 | WiFi LED | Shows WiFi connectivity status. |
GPIO 32, 33, 25, 26 | Keypad Rows | Row pins for the 4x4 matrix keypad. |
GPIO 17, 16, 2, 15 | Keypad Columns | Column pins for the 4x4 matrix keypad. |
GPIO 21 (SDA) | LCD I2C SDA | Serial data for LCD2004 |
GPIO 22 (SCL) | LCD I2C SCL | Serial clock for LCD2004 |
This layout ensures efficient utilization of GPIO pins for seamless system operation.
Components Used: ESP32 Development Board, RC522 RFID Reader, RFID Card Tags (13.56MHz), 4x4 Matrix Keypad, LCD2004 with I2C Interface, LED Indicators, Buzzer with Driver Module, 18650 Li-Ion Batteries, Battery Holder, Type-C Charging Port, Charging Module, Boost Converter (XL6019), Connecting Wires, Jumper Wires, Veroboard, DIL Connectors, Soldering Lead, Heat Shrink Tubing, Switch, Resistors.
Functions of the Components Used
Hardware Assembly
Veroboard, LCD, and 4x4 Matrix Keypad
18650 Li-Ion Batteries with Battery Holder, and RC522 RFID Reader with RFID Card
Tags (13.56MHz)
The Complete Power Supply Section, and the Buzzer
Firebase Database Structure and Results
Firebase Realtime Database Overview
/Driver
Driver Email: "[email protected]"
Driver Name: "Damilare Lekan Adekeye"
/Student
/studentA
Account Balance
Current Balance: 1700
Initial Balance: 1850
Last Updated Vehicle Cost: 150
Email: "[email protected]"
HashKey: "MK-001"
Matric Number: "20MK8329K4"
Name: "Okoro Kelly Efedhoma"
UID: "83 66 78 29"
/studentB
Account Balance
Current Balance: 1550
Initial Balance: 1700
Last Updated Vehicle Cost: 150
Email: "[email protected]"
HashKey: "MK-002"
Matric Number: "20MK798748"
Name: "Okoro Kelly"
UID: "C3 DE 52 0A"
/studentC
Account Balance
Current Balance: 650
Initial Balance: 800
Last Updated Vehicle Cost: 150
Email: "[email protected]"
HashKey: "MK-003"
Matric Number: "20MK098GH3"
Name: "Damilare L. Adekeye"
UID: "83 CD 6E 07"
/studentD
Account Balance
Current Balance: 1710
Initial Balance: 1850
Last Updated Vehicle Cost: 140
Email: "[email protected]"
HashKey: "MK-004"
Matric Number: "20MK098GH4"
Name: "yemi"
UID: "E3 79 DA 0A"
These Are The Pictorial Results For Payment Initiation
Start Up Display
Connection to WiFi Display
WiFi Connected Display
Homepage
Input Price Section
Scan to pay, After # Button is Pressed
Card Detected
Transaction in Progress
Payment Successful Section
Email Sent Successfully
The Next Pictorial Results Are For The Card Information Check
Check Card information by pressing A
Scan card to fetch Information
Card Detected for Information Check
Card Information Delivered
Firebase Result
Result Email Screenshot for Deewansonic Engineering
Result Email Screenshot for Damilare L. Adekeye
Result Email Screenshot for Yemi
Result Email Screenshot for Okoro
Mailjet
Mailjet Dashboard Showing the Number of Email Sent
Note: More test result cases for Unregistered cards, and a more detailed visual
representation, including a comprehensive video
demonstrating the testing process for all Cards, is available
here.
My Design and Myself
Happy Me, and the Device I Built 🥳
I sincerely appreciate you taking the time to explore my portfolio and learn about my work and expertise. It is my hope that these projects and insights have demonstrated my passion for innovation, my technical skills, and my dedication to delivering impactful solutions.
If you have any questions, require further information, or wish to discuss potential collaborations, I would be delighted to connect. Please feel free to reach out via the Contact section. Your feedback and inquiries are highly valued and will be addressed promptly.
Thank you once again for your interest in my work. I look forward to the opportunity to collaborate and contribute meaningfully to your projects or organization. Together, let us innovate and achieve excellence.
Best regards,
Damilare Lekan Adekeye