A smart terminal for cashless transportation

Introduction

With the growing need for efficient public transportation, a smart payment system can reduce hassles and streamline fare collection. This project presents a Smart Bus Fare Payment System where passengers use RFID cards for fare payment based on the distance they travel. The system involves Unihiker and Arduino, along with GPS, RFID cards, and the Go

ogle Maps API to accurately calculate and deduct fares based on the distance traveled.

 

System Overview

⚪ Unihiker Board: Acts as the brain of the system, handling distance calculation and fare deduction.

 

⚪ Arduino: Interfaces with the RFID reader and GPS module to collect and send data to the Unihiker. 

 

⚪ RFID Cards: Stores user information and balance. Passengers scan the card when entering and exiting the bus. 

 

⚪ GPS Module: Tracks the bus’s location, used to calculate the distance traveled. 

 

⚪ Google Maps API: Used by Unihiker to calculate the distance between entry and exit points.MongoDB Database: Stores all transaction data, including user information, travel history, and fare deductions.

HARDWARE LIST
1 UNIHIKER
1 RFID Module
1 Battery
1 Arduino
1 GPS Module
STEP 1
Wiring components and circuit making

Let's connect the RFID and GPS with Arduino as shown in the diagram below. 

 

 

 

 

 

System Workflow

1. Card Registration: The RFID card is initialized with user details and a balance in the system.

 

2. Boarding the Bus

   The user scans the RFID card at the entry point. 

   ⚪Arduino reads the RFID data, captures the GPS location, and sends it to the Unihiker. 

 

3. Exiting the Bus:

    The user scans the card again when exiting the bus. 

    Arduino again captures the GPS location and sends it to the Unihiker. 

 

4.Distance Calculation

   The Unihiker, using the Google Maps API, calculates the distance traveled between entry and exit points. 

 

5. Fare Calculation and Deduction

   Based on the distance, Unihiker calculates the fare and sends the amount to Arduino.           Arduino updates the balance on the RFID card. 6. Data Storage:    

   ⚪All transactions, travel data, and user details are saved in the MongoDB database.

Project Flowchat

         +-----------------------+
        |  User Scans RFID Card  |
        +-----------------------+
                 |
                 v
        +-----------------------+
        |   Arduino Reads Card   |
        +-----------------------+
                 |
                 v
        +-----------------------+
        | Arduino Captures GPS   |
        +-----------------------+
                 |
                 v
        +--------------------------+
        | Send GPS Data to Unihiker |
        +--------------------------+
                 |
                 v
        +--------------------------------------+
        | Unihiker Calculates Distance (API)   |
        +--------------------------------------+
                 |
                 v
        +-------------------------------+
        | Calculate Fare and Send to Ard |
        +-------------------------------+
                 |
                 v
        +-----------------------+
        |  Deduct Fare & Update |
        +-----------------------+
 

Conclusion

This system offers a convenient, efficient, and user-friendly approach to managing bus fares. By integrating Unihiker, Arduino, RFID, GPS, and MongoDB, this smart payment solution not only enhances the user experience but also streamlines fare management for public transport operators.

Future Improvements

⚪ Real-Time Fare Updates: Integrate a mobile app for users to track their travel history and fare deductions.     

 

⚪Security Enhancements: Add encryption for communication between Unihiker, Arduino, and MongoDB to secure user data.   

 

⚪Dynamic Fare: Implement dynamic fare rates based on time, route, or traffic conditions.

License
All Rights
Reserved
licensBg
0