RouteLK : Smart Bus Tracking & Passenger Assistance App


Team

Table of Contents

  1. Introduction
  2. Solution Architecture
  3. Hardware & Software Designs
  4. Testing
  5. Detailed budget
  6. Conclusion
  7. Links

Introduction

Public transportation systems in developing regions often suffer from poor visibility, unpredictable arrival times, overcrowding, and lack of reliable passenger information. Traditional bus systems operate without real-time tracking, accurate occupancy monitoring, or intelligent data handling mechanisms, resulting in passenger inconvenience and operational inefficiencies.

The Bus Tracking & Passenger Assistance System is an IoT- and cloud-powered intelligent transport solution designed to address these challenges. The system integrates embedded hardware, real-time GPS tracking, passenger counting logic, cloud-based data processing, and a mobile application interface to deliver:

By combining embedded systems (ESP32 + IR sensors + GPS), wireless communication, and scalable backend services, the solution ensures accurate monitoring even in unstable network conditions.

This system demonstrates how IoT and cloud technologies can modernize public transportation with cost-effective and scalable architecture.

Solution Architecture

High Level Architecture Diagram

Edge Layer (Bus Device):

An ESP32 board connected with peripheral components installed inside the bus collects passenger counts using IR sensors and tracks GPS location. Data is packaged in JSON format and stored locally if internet connectivity fails.

Communication Layer:

Telemetry is transmitted every 10 seconds via 2G connectivity using MQTT or REST. If the network drops, data is cached on an SD card and automatically synchronized once connectivity is restored.

Cloud Backend Layer:

The backend receives and reorders timestamped data, stores it in a database, exposes REST APIs to the mobile app, and classifies crowd level.

Application Layer:

The passenger mobile app displays live bus tracking, traffic-aware ETA, crowd levels, and notifications using map services such as Google Maps Platform.

Data flow Diagram

Hardware and Software Designs

Main Hardware Components

Software Stack

Firmware

Cloud/Backend

Database

Frontend/Mobile Application

Testing

Hardware Testing

Software Testing

End-to-End Integration Testing

Detailed budget

Item Quantity Unit Cost Total
ESP32 CP2102 Type-C Development Board 1 1500 LKR 1500 LKR
NEO-M8N GPS Module 1 3500 LKR 3500 LKR
SD-card module (for local storage) 1 500 LKR 500 LKR
IR sensor pair 4 750 LKR 3000 LKR
Battery(3.7V Li-ion) 2 460 LKR 920 LKR
SIM 800L 2G GSM Module 1 1500 LKR 1500 LKR
16x2 I2C LCD Character Display 1 1000 LKR 1000 LKR
Push Buttons 2 35 LKR 70 LKR
Other components (cables etc.)     5000 LKR
Estimated Total Cost     20000 LKR

Conclusion

The Bus Tracking & Passenger Management System demonstrates the design and implementation of a real-time, IoT-based transport monitoring solution integrating ESP32 hardware, dual-beam IR passenger counting, GPS tracking, cloud data processing, and a traffic-aware mobile application. The system demonstrated accurate occupancy detection, reliable live tracking, and robust offline data handling with automatic synchronization, ensuring zero data loss during connectivity failures. Future developments may include predictive analytics using historical data, integration with digital ticketing systems, AI-based demand forecasting, multi-bus fleet management dashboards, and enhanced security features. From a commercialization perspective, the solution is designed to be low-cost and scalable, making it suitable for deployment in university transport systems, private bus operators, and smart city initiatives, with potential expansion into a subscription-based fleet management service model.