Skip to content

About

Tracks shuttle buses for IZTECH, providing real-time locations.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Real-Time Ring Bus Tracking Application for IZTECH Campus

Overview

The Real-Time Ring Bus Tracking Application is designed to improve the commuting experience within the IZTECH campus by providing live tracking of ring buses. This application allows students and staff to see real-time locations of buses, estimated arrival times at stops, and optimize their commuting plans accordingly.

Features

  • Live Bus Tracking: View the current location of any campus ring bus in real-time on a map.
  • Estimated Arrival Times: Get the estimated time of arrival (ETA) at each bus stop.
  • Route Visualization: See the entire route of any selected bus with all stops marked.

Technologies

  • Backend: Spring Boot
  • Frontend: React Native for cross-platform mobile application development
  • Database: MySQL
  • Data Communication Module: E32 433T20d LoRa for long-range communication (5 KM Range)
  • GPS Module: GY-NEO6MV2 for obtaining real-time location data
  • IoT ESP8266 Wifi Module
  • MicroProcessor Arduino Nano

System Design

The system architecture is structured to flow data from the bus all the way to the end-users through the mobile application.

System Design

Data Flow

  • Bus Device collects current coordinates via its GPS module from the satellites and transmits coordinates to the gateway IoT Device via its LoRa Module.
  • Gateway IoT Device receives this data via LoRa Module and forwards it to the Backend Server via Wifi module. These devices stationed in places where wifi is accessible.
  • Web Server processes the incoming data (ETA Calculations, Filtering Corrupt Data, Stop-Location Designation etc.), storing it in the Database, and also retrieves data as requested by the Mobile App.
  • Mobile App fetches and displays this data to the end users, allowing them to track buses in real-time.

Why Using LoRa and Not GSM Modules?

The primary reason for not using GSM module technology was the recurring service fees associated with data transmission. On the other hand, LoRa technology and WiFi modules allow for data transmission at virtually zero cost. This decision led to a more complex system. However, the trade-off was worthwhile, it makes the project more marketable to potential stakeholders. Also more fun project to work on. 🙂

Components

Bus Device

Bus Device Transmitter Wiring Diagram

  • Arduino Nano: Serves as the microcontroller, manages the GPS data to the E32 LoRa Module.
  • E32 LoRa Module: Responsible for transmitting the GPS data to the IoT Gateway Device.
  • GPS Module: Captures current GPS coordinates directly from satellites.

All connections are soldered onto a PCB on Bus Device to prevent wire detachment due to vibrations on the shuttle bus.

IoT Gateway Device

IoT Gateway Device Wiring Diagram

  • ESP8266 Module: Functions as both a microcontroller and a WiFi module. It receives the transmitted data from the E32 LoRa Module and forwarding it via WiFi to the backend server.
  • E32 LoRa Module: Receives the GPS data transmitted from the Bus Device and routes it to the ESP8266 module via jumper wires.

IoT Gateway Devices (Receivers) are stationed on buildings near windows that have WiFi.

Casing of these devices were designed in SolidWorks by a mechanical engineer friend at our university (Head to Acknowledgments for his profile). The designs are available under 3D Printer Model Designs directory. These casings are printed at the IZTECH FabLab using a 3D printer.

Coverage Area

We tested various locations across the campus to determine the best coverage areas for the receiver, Here is the map of our testing locations:

IoT Gateway Device Wiring Diagram

It became apparent that a single IoT Gateway Device (Receiver) would not be sufficient to cover the entire campus for bus device communication.

IoT Gateway Device Wiring Diagram

Therefore, an additional IoT Gateway Device is being assembled and will be placed in two separate locations to get full campus coverage.

Backend Infastructure

Spring Boot for our backend infrastructure due to its robustness and widespread industry adoption, which provides a solid foundation for building and deploying scalable applications.

Mobile App

Mobile app screenshot, route screen and its ETA for each stop.

IoT Gateway Device Wiring Diagram

Contributors

Acknowledgments

Ufuk Kagan Bayram for his contribution to the team and field testing.
Mertcan Turan for his expertise in designing the device casings using SolidWorks 3D design.

About

Tracks shuttle buses for IZTECH, providing real-time locations.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages