RailLink

Train Tracking and Notifier System for Sri Lankan Railway

Smart Ticketing Scanner

Introduction

A smart ticketing and navigation system for Sri Lanka Railways aims to modernize railway travel by introducing a seamless, digital experience for passengers. The smart ticketing and navigation system introduces a card-based system, allowing passengers to tap in and out at stations for a seamless travel experience. This eliminates paper tickets, reduces queues, and ensures efficient fare collection. The system also provides real-time train schedules and route guidance, making railway travel more convenient and modernized.

Key Features

Real-Time Tracking Icon

Real-Time Tracking

Live Train Location Updates: Provides real-time train tracking.

Smart Ticketing Icon

Smart Ticketing

Card-Based Ticketing: Customers tap their smart card to enter and exit stations.

Smart Ticketing Icon

Transaction Records Management

All ticketing activities are securely stored and retrievable

Solution Architecture

This architecture integrates smart card scanning hardware, an ESP32-based embedded controller, and a cloud-based backend to manage secure and real-time communication between customers, station admins, and the central database system hosted on AWS. It ensures efficient and scalable operation of the smart railway ticketing system.

Solution Architecture Diagram 1 Solution Architecture Diagram 2

Hardware Components

Relay Module

Relay Module
Used to control high voltage devices through microcontroller signals.

RFID Reader

RFID Scanner
Reads from and writes to RFID smart cards for identifying and authenticating passengers, enabling secure and efficient usage of the smart card system.

LCD Display

LCD Display
Displays real-time information such as ticket status, fare, or station details.

ESP32 Microcontroller

ESP32 Microcontroller
Central controller that processes data, communicates with components, and connects to the cloud.

RFID Cards

RFID Cards
Smart travel cards used by passengers for ticketing and entry/exit authentication.

i2c

I2C Communicator Module
Enables I2C communication with the LCD, allowing efficient data transmission for displaying real-time information.

elec_s

AC Electric Switch
Controls the locking and unlocking of the electric gate by switching the AC power based on system commands.

gps

GPS and GSM module
Find the gps data and transmit.

converter

I5v to 3.3v converter
Convert 5v to 3.3v For secure operation of rfid scanner.

Device Design Overview

CAD Design of Smart Ticketing Device

RFID-Based Smart Ticketing Device – CAD Design
3D model of the smart ticketing terminal showing the layout of key hardware components.

Circuit Diagram
Electronic schematic representing the wiring and connectivity of the smart ticketing system.

Software Workflow: Seamless Ticketing and Train Tracking in Action

1

Smart Ticketing System

Passengers use a smart card to enter the train by tapping at the entry gate. The system verifies the card, checks the balance, and grants access if the amount is sufficient.

2

Real-Time Travel Monitoring

At the exit station, passengers tap the card again. The system calculates the fare, deducts it from the card balance, and logs the trip.

3

Real-Time Train Tracking

GPS modules on each train transmit real-time location data to the backend. This allows passengers and station staff to monitor train positions, arrival times, and delays with up-to-date information.

4

Transaction & Data Management

Transaction details are stored securely in the backend. Passengers can access travel and payment history through the dashboard.

Our Smart Railway Ticketing & Navigation System is built to make railway travel more efficient, secure, and user-friendly. It provides a modern digital solution for Sri Lanka Railways that meets the needs of both passengers and administrators. 🚆✨

🔷 13. Software & Hardware Testing

Front-End Testing

  • Tools: Jest & React Testing Library
  • Unit Tests: Individual components and functions tested separately
  • Integration Tests: Recharge form + balance update working together
  • CI/CD: GitHub Actions for automated testing on every push/merge

Back-End Testing

  • Tool: Postman
  • API Testing:
    • Passenger login & authentication
    • Card scan validation and response
    • Recharge and balance updates
  • Tested data flow, response codes, and error handling

Hardware Testing

  • Manual testing with ESP32 + RFID + Scanner
  • Validated:
    • Card reading accuracy
    • Network reliability under load
  • Monitored power consumption and device resets

Team

Team Member 1

Sandalu Umayanga

E/20/284

Team Member 2

Milinda Perera

E/20/286

Team Member 3

Nadeeka Hansamali

E/20/078

Team Member 4

Lashan panavenna

E/20/279