IoT Based Smart School Bus Monitoring and Notification System
IoT Based Smart School Bus Monitoring and Notification System
Abstract— It is important for every school to have a comprehensive school bus monitoring device that tracks the
trustworthy and secure transportation service to ensure the location, the speed, the people onboard, adherence to route
safety of the students. It helps the school administration to
effectively manage their bus fleet and potentially reduce mishaps. and schedule and other information pertinent to school buses.
This is where vehicle monitoring takes effect. The proposed Real time tracking of the bus allows the children to have more
system provides real time information about various parameters time for activities instead of waiting for a delayed bus and the
of the vehicle like the location, the route, the speed, the list of
notification system ensures the individual safety of each
passengers, the adherence of drivers to schedule and much more.
The system further allows the parents to be notified when their student. Moreover, educational boards like CBSE has also
ward alights or boards the bus. In this system, we make use of started advocating the necessity for school bus monitoring
RFID and GPS technologies and connect them to a remote server systems[1], thus making an affordable and reliable solution the
over WiFi using an ESP8266 microcontroller. An Ublox 6M GPS
module is used to find the current geographic coordinates of the need of the hour.
vehicle's location as well as the speed it is going at. An MFRC522 The tracking is achieved by reading the geographic
RFID reader identifies each student as they board or alight the coordinates of the bus from the GPS[5] module and uploading
vehicle by reading the id from their RFID tags. The system uses
it to a MySQL database in the remote server over WiFi using
the ESP8266 to upload the information from the peripherals to a
database in the web server. The information can be accessed by the microcontroller. This information can then be accessed by
the parents through a mobile application and this helps them a user base that includes the parents, bus drivers and school
track their wards effectively. The school administration can also administration through a mobile application which takes the
access the application to ensure student safety and contact a
driver or a parent. The application also allows the administration location from the database and plots it on a map.
to be informed of emergencies or complaints. The notification system alerts the parent when the id from
their child’s RFID tag is read by the RFID reader, which
Keywords—Vehicle Tracking; ESP8266; GPS; IoT; RFID; Smart
causes the microcontroller to invoke a server script to push
Systems.
notifications to the parent’s mobile[7]. Thus the bus and the
I. INTRODUCTION students onboard will be monitored accurately throughout the
The commute of students from home to school and back has commute.
always been a source of concern for parents. Students often
II. COMPONENTS
get on the wrong buses and get off at the wrong stops. Bus
The proposed prototype used the following hardware
drivers may not be able to identify all the students and will not
components:
know in time if a student is missing. Parents have no way of
knowing if their ward is safe until the evening when the bus A. GPS Tracker [3]
returns. The Ublox 6M GPS performs the following functions:-
While some schools have already implemented GPS tracking ● Continuously monitor the bus by reading parameters
of buses using GSM[5] and other means, they do not ensure like the speed, the geographic location and the route
in real time which is uploaded to the server by the
absolute safety. Some of these devices do not give real time
microcontroller and viewed through a mobile
information whereas some are too expensive to be a
application.
ubiquitous solution. A tracking system that do not identify ● Read the geographic coordinates and time as each
individual students may also lull the guardians into a false student boards and alights the bus which is included
sense of security. The proposed system describes a low cost
89
2017 IEEE Region 10 Humanitarian Technology Conference (R10-HTC)
21 - 23 Dec 2017, Dhaka, Bangladesh
in the push notifications to the respective parents. within[6]. The system will also identify each student as they
board or alight the bus and push notifications to the respective
parents’ mobile device with the time and location of the event.
B. RFID Reader [2]
Figure 1 shows the overall block diagram and the flow of the
The MFRC522 RFID Reader is used to identify each student system.
uniquely by reading the student’s ID from the ID card. The ID
card of each student is embedded with RFID tags. The hardware assembly is kept at the entrance of the school
bus. The two main sensor integrations to the microcontroller
C. ESP8266 Microcontroller [4] are the GPS system and the RFID reader. The GPS system
ESP8266-12f is a WiFi chip and microcontroller that is used obtains the coordinates of the current location of the bus while
here to read the sensor data(GPS and RFID readings) and the RFID reader uniquely identifies each student entering the
upload it to a MySQL database hosted on a remote server. It bus by means of the RFID tag embedded in the student ID
further invokes scripts to push notifications to the parents as cards. Both these readings are fed to the ESP8266
input from the RFID is received. In addition, it verifies the microcontroller[4]. Figure 2 shows the circuitry that connects
validity of the input before it uploads the data to the database. the sensors to the microcontroller.
90
2017 IEEE Region 10 Humanitarian Technology Conference (R10-HTC)
21 - 23 Dec 2017, Dhaka, Bangladesh
with login credentials. A Google Map API is integrated to the and fetch the latitude, longitude and speed values
application UI to plot the location and route of the bus. corresponding to a bus id[7], encoded as JSON in the POST
request.
A parent can scan the database for their child using the unique
id provided for each student and choose to follow them. This
would allow the parents to view the information of the bus
their child takes, like the location, route and speed, plotted on
map and contact the bus driver or the administration and get
notified whenever their child boards or exits the bus. Firebase
Cloud Messaging service is used to push the notifications
using a cURL request in the PHP script that is invoked each
time the hardware ensemble reads an RFID tag[6]. The
Firebase token corresponding to the respective parent is
fetched from the database and the notification is pushed to
their device as can be seen in Figure 3.
The value of bus id would vary with the user type. The query
from a parent would retrieve the data from the column which
matches their child’s bus id whereas the query from a driver
would equal the id of the bus he drives.The id field is set to
auto increment so that the values retrieved by the query will be
the last known information about the bus.
V. USER INTERFACE
91
2017 IEEE Region 10 Humanitarian Technology Conference (R10-HTC)
21 - 23 Dec 2017, Dhaka, Bangladesh
92