A smart transportation system designed to optimize bus transportation by providing real-time tracking, route optimization, and passenger management. This platform offers an enhanced commuting experience by ensuring efficiency and convenience for both passengers and bus operators.
The IoT-Based Smart Bus Transportation System aims to transform public transportation by integrating IoT devices and smart technology. Users can track buses in real time, get optimized routes, and manage passenger loads. This project focuses on improving operational efficiency and passenger experience through automation and real-time data.
- As a customer, I want to view the real-time location of the bus, so I can know where I am exactly.
- As a customer, I want to know the estimated arrival time of the buses, so I can know when I'm possibly arriving.
- As a customer, I want to purchase digital tickets, so I can board the bus without needing cash or a physical ticket.
- As a driver, I want to update real-time location, so customers can see where they are.
- As a driver, I want to log my working hours, so I can keep track of my shifts.
- As a driver, I want to scan customers QR code, so I check if the customer is in the right trip.
- As an admin, I want to make trips and organize the buses schedules, so I can ensure timely service.
- As an admin, I want to check drivers applications, and choose whether to approve or reject the driver.
- As an admin, I want to manage user accounts, so I can keep track of active customers.
-
Frontend: The mobile app uses React Native to provide a cross-platform experience on both iOS and Android devices. React Native allows us to create a highly interactive and user-friendly interface with a single codebase.
-
Backend: The backend API is developed using Laravel, a robust PHP framework that provides RESTful API endpoints for managing data and handling requests efficiently.
-
Database: For persistent storage and efficient data management, the project utilizes MySQL. MySQL handles all backend data operations, including user data, bus schedules, and real-time tracking information.
-
Real-time Communication: The application uses Socket.io to provide real-time updates for bus locations, route changes, and passenger notifications, ensuring users receive up-to-date information instantly.
-
Firebase: Used firebase storage for Storing the users image and picture and helping for the drivers applications to be done
-
IoT Integration:
- Seat Detection System: The system includes an Arduino kit using the ESP8266 WiFi module, ultrasonic sensor, and UNO board for real-time detection of someone sitting on the bus seat. This data is sent to the backend, ensuring real-time updates on seat availability.
- Bus Tracking: The system integrates GPS modules for real-time location tracking, as well as passenger load sensors for monitoring bus capacity.
-
FastAPI: FastAPI is used to implement a machine learning model for predicting bus arrival times. The model analyzes historical trip data and provides accurate arrival time predictions based on current conditions.
-
For Admin Panel: The admin panel is developed using React.js, specifically designed to offer a seamless experience for administrators managing schedules, buses, and routes.
We designed iBus using wireframes and mockups, iterating on the design until we reached the ideal layout for easy navigation and a seamless user experience.
- Project Figma design figma
| Home screen | Search Screen |
|---|---|
| Landing | Search |
| Landing screen | Register screen | Login screen |
|---|---|---|
| fsdaf | fsdaf | fsdaf |
| Trips screen | Home screen | Search Screen |
|---|---|---|
| fsdaf | fsdaf | fsdaf |
| Landing Page / Login / Register | Booking a Trip |
|---|---|
| Landing Page / Login / Register | Booking a Trip |
| Bus Screen | Booking Screen | Profile Screen |
|---|---|---|
| fsdaf | fsdaf | fsdaf |
| Landing screen | Login screen | Application screen |
|---|---|---|
| fsdaf | fsdaf | fsdaf |
| Trips screen | Trip Info screen |
|---|---|
| fsdaf | fsdaf |
| Login screen | Dashboard screen |
|---|---|
| Landing | fsdaf |
| Trip Making screen | Users screen |
| Landing | fsdaf |
- This project leverages cutting-edge IoT integration and data management techniques to enhance the experience of public bus transportation users.
-
This project leverages deployment strategies to seamlessly integrate AWS EC2 instance to host Laravel Based web application with SQL database and deploy natural language processing models. With a focus on scalability, reliability, and performance.
-
Backend Testing:
-
This project integrates comprehensive unit testing protocols to validate the functionality of backend components. By isolating and testing each unit, we mitigate risks, enhance code reliability, and ensure the backend operates seamlessly under various conditions. This approach allows for early detection and resolution of issues, reinforcing the system's stability.
To set up iBus locally, follow these steps:
Ensure you have the following hardware and software:
- Arduino UNO board
- ESP8266 Wi-Fi module
- Ultrasonic sensor
- npm (Node Package Manager)
- Composer (for PHP dependencies)
- npm
npm install npm@latest -g
Follow the steps below to install and set up iBus:
-
Clone the repo git clone github
git clone --recurse-submodules https://github.com/SamirJabre/Smart-Bus-System.git
-
For Laravel
composer install
npm install
-
For the React Native
npm install
npx expo install
-
For the Admin Panel(React js)
npm install
-
To run the app
npx expo start
php artisan serve --host:your_ip_address
node server.js
python -m uvicorn app:app --reload
Now, you should be able to run iBus locally and explore its features.