Smart-Ticketing-System

๐ŸŽŸ๏ธ Smart Rail Ticketing System Using RFID

An IoT-based railway ticketing solution designed to automate the ticket validation process using RFID technology.
Built with NodeMCU ESP8266, MFRC522 RFID module, Servo Motor, Firebase, and Twilio, this system enables seamless ticket verification, real-time updates, and automated gate control with SMS notifications.


๐Ÿš† Overview

The Smart Rail Ticketing System modernizes railway ticketing through contactless validation.
Each passenger carries an RFID-embedded ticket, which is scanned at entry and exit gates.


๐Ÿงฉ Components Used

Component Description
NodeMCU ESP8266 IoT controller with built-in Wi-Fi for Firebase and Twilio communication
MFRC522 RFID Reader Detects RFID tags and retrieves passenger details
Servo Motor Controls physical gate movement upon verification
Jumper Wires Connections between components for prototyping

๐Ÿ’ป Software Tools

Software Purpose
Arduino IDE Programming and uploading code to NodeMCU
Firebase Real-time cloud database for ticket details
Twilio API Sends automated SMS alerts for journey status

โš™๏ธ Working Principle

  1. Passenger scans RFID-enabled ticket at the entry gate.
  2. NodeMCU reads the tag and authenticates details via Firebase.
  3. Upon validation:
    • Gate opens using Servo Motor.
    • SMS sent via Twilio: โ€œYour journey has started.โ€
  4. Passenger scans again at the destination gate.
  5. System updates status and sends SMS: โ€œYour journey has been completed.โ€

๐Ÿง  Code Flow Summary

  1. Establish Wi-Fi and Firebase connection using credentials.
  2. Initialize RFID module and Servo motor.
  3. Continuously check for card presence.
  4. On tag detection:
    • Extract Name, Ticket ID, and Mobile Number.
    • Send data to Firebase.
    • Trigger gate servo movement.
    • Send SMS via Twilio API.
  5. Reset and wait for the next card.

๐Ÿš€ Advantages


๐Ÿ”ฎ Future Enhancements


๐Ÿงพ Conclusion

This RFID-based railway ticketing system demonstrates how IoT and automation can revolutionize public transportation.
By integrating contactless validation, real-time database updates, and automated gate control, it enhances efficiency, accuracy, and passenger experience while reducing manual workload.


๐Ÿ‘จโ€๐Ÿ’ป Team Members

Department of Computer Science and Applications
The Gandhigram Rural Institute (Deemed to be University)
December 2024


๐Ÿ“š References


๐Ÿชช License

This project is developed for academic and research purposes.
Free to use and modify under the MIT License.