← Back to VOLUME 15, ISSUE 11, NOVEMBER 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
Design and Implementation of an IoT-Based Student Bus Tracking System Using ESP32, MQTT and FastAPI
Mrs. Jayashuba J, Dhatri Muppuri, Raavi Pranitha, Ragipati Supriya
π 1 viewπ₯ 0 downloads
Abstract: Students who depend on college buses often lack timely information about where the bus is and when it reaches their stop. This paper presents an IoT-based student bus-tracking system that com-bines an ESP32 GPS unit, MQTT communication, a FastAPI backend and a browser-based map. The backend validates incoming telemetry, maintains each busβs movement state, and stores positions and alerts in Supabase. Live positions and alerts are pushed over WebSockets to open browser clients, while Firebase Cloud Messaging (FCM) delivers background notifications to the devices of users subscribed to a bus; Supabase authentication handles sign-in. The alert engine generates event- based alerts for stop proximity, route deviation, trip milestones and loss of tracking data, and a GPS simulator exercises this logic. The reported evaluation comprises 24 automated unit tests, simulator runs, and a walking trial with the ESP32/GPS unit. The simulator runs ex-posed a missed-arrival case in which a bus crossed a stop between two consecutive location updates, and a segment-based proximity check was introduced to correct it. The paper describes the architecture, vali-dation rules and deployment considerations of a practical student bus-tracking prototype.
Keywords: bus tracking, ESP32, GPS, MQTT, FastAPI, Web-Socket, Firebase Cloud Messaging, Internet of Things
Keywords: bus tracking, ESP32, GPS, MQTT, FastAPI, Web-Socket, Firebase Cloud Messaging, Internet of Things
How to Cite:
[1] Mrs. Jayashuba J, Dhatri Muppuri, Raavi Pranitha, Ragipati Supriya, βDesign and Implementation of an IoT-Based Student Bus Tracking System Using ESP32, MQTT and FastAPI,β International Journal of Advanced Research in Computer and Communication Engineering (IJARCCE), DOI: 10.17148/IJARCCE.2026.1511105
