Anda di halaman 1dari 16

BUS TRACKING SYSTEM.

Mechatronics Course Project submitted


by
B.Manideep 17K41A0404

J.Krishna chaithanya 17K41A0440

N.Harika 17K41A0447

J.Nandhitha reddy 17K41A0448

Under the guidance of

Mr. Ch. Rajendra Prasad

Assistant Professor

Department of Electronics and Communication Engineering


ABSTRACT
Now a days the demand of bus tracking systems increasing day by
day in most of business enterprises because knowing the location of bus
using bus tracking systems is user friendly with variety of various
applications. A bus tracking systems is location tracking device.
Decreasing the error in location increases the efficiency of device and
enhances the accuracy. In particular, the focus is on using GPS(Global
Positioning System)module to track the location. In this design the
ESP32 microcontroller has revolutionized the entire area of location
tracking. Modern microcontrollers offer only controlling of devices
when interfaced to them but the ESP32 has many advanced features like
inbuilt WIFI module and Bluetooth module with a low power
consumption rate of 3.3v. The interfacing of GPS module to the ESP32
made the entire system to a compact and low power consuming device
with fewer components. These features made our bus tracking system
very simple and user friendly. The users will view the location of bus on
the map using these latitude and longitude locations. The designed
system finds the location of bus and displays it on the website .
(Bus tracking system is a useful device for many institutions with which people come to
know the location of their bus.)
CONTENTS
ABSTRACT
Chapter No. Title of the Chapter Page No.
1 INTRODUCTION 01
1.1 Overview 01
1.2 Existing Method 01
1.3 Proposed Method 02
2 HARDWARE & SOFTWARE TOOLS USED 03
2.1 DESCRIPTION OF COMPONENTS 03
2.1.1 Arduino Mega/Uno board 03
2.1.2 Sensors 04
2.1.3 Actuators 05
2.1.4 Power supply unit 06
2.2 SOFTWARE TOOLS 07
2.2.1 Arduino Software Description 07
2.2.2 Think speak/ any other apps 08
3 IMPLEMENTATION OF PROJECT 09
3.1 Block diagram of Project 09
3.2 Schematic diagram 09
. 3.3 Description of Project 10
3.4 Results 11
4 CONCLUSION AND FUTURE SCOPE 12
1. INTRODUCTION

OVERVIEW :

ESP32 microcontroller has revolutionized the entire area of location


tracking. Modern microcontrollers offer only controlling of devices when
interfaced to them but the ESP32 has many advanced features like inbuilt WIFI
module and Bluetooth module with a low power consumption rate of 3.3v. The
interfacing of GPS module to the ESP32 made the entire system to a compact and
low power consuming device with fewer components. The GPS module tracks the
location and the ESP32 with the help of WIFI module uploads the data into the
website. The users will view the location of bus on the map using these latitude
and longitude locations.

EXISTING METHOD :

The present GPS location trackers are bulky to carry and has separate
microcontrollers and WIFI modules. By using them they track the location.
Their power consumption rate is also large (i.e >5v).

PROPOSED METHOD:

Usage of ESP32 microcontroller makes the location tracking system


user friendly and it is a compact device with a low power consumption rate of
3.3v.It has in built WIFI module this makes the system very compact.
2. HARDWARE & SOFTWARE TOOLS USED

2.1 DESCRIPTION OF COMPONENTS :


2.1.1 ESP32 microcontroller:

ESP32 is a single 2.4 GHz Wi-Fi-and-Bluetooth combo chip designed with the
TSMC ultra-low-power 40 nm technology. It is designed to achieve the best power
and RF performance, showing robustness, versatility and reliability in a wide
variety of applications and power scenarios. The ESP32 series of chips includes
ESP32-D0WDQ6, ESP32-D0WD, ESP32-D2WD, and ESP32-S0WD. ESP32 is
designed for mobile wearable electronics and Internet-of-Things (IoT) application.
2.1.2 GPS MODULE:
NEO-6M GPS Module with EPROM :
2.1.4 Power supply unit:

2.2 SOFTWARE TOOLS :

Arduino software.

2.2.1 Arduino Software Description:

Arduino is an open-source platform used for building electronics projects.


Arduino consists of both a physical programmable circuit board (often referred to
as a microcontroller) and a piece of software, or IDE (Integrated Development
Environment) that runs on your computer, used to write and upload computer code
to the physical board.
Programs written using Arduino Software (IDE) are called sketches. These
sketches are written in the text editor and are saved with the file extension .ino.
The editor has features for cutting/pasting and for searching/replacing text. The
message area gives feedback while saving and exporting and also displays errors.
The console displays text output by the Arduino Software (IDE), including
complete error messages and other information. The bottom righthand corner of
the window displays the configured board and serial port. The toolbar buttons
allow you to verify and upload programs, create, open, and save sketches, and open
the serial monitor.

2.2.2 Think speak/ any other apps: Website: Cloudchip.in


3. IMPLEMENTATION OF PROJECT

3.1 Block diagram of Project:

Antenna signal GPS MODULE Location ESP32


(microcontroller)

data
ESP32 in built
Cloudchip.in(web WIFI module.
site) Data signal
(website Token.)
Location:*****

3.2 Schematic diagram:

NEO-6 GPS module. ESP32 Board


Antenna
Vcc Vcc 1
(Passive) NEO
Gnd ESP
-6 Gnd 2
32
Tx
Tx 3
Rx
Rx
USB
3.3 Description of Project
3.3(a):SKETCH:
#include <TinyGPS++.h>
#include <Cloudchip.h>
Cloudchip cloudchip;
#define WIFI_AP "PSP"
#define WIFI_PASSWORD "seagate123"
#define TOKEN "16CJtuDSmSrFoPjjaRca"
TinyGPSPlus gps;
void setup() {
Serial.begin(9600);
cloudchip.WiFiInit(WIFI_AP,WIFI_PASSWORD);
cloudchip.Credentials(TOKEN);
}

void loop() {
cloudchip.run();
while(Serial.available()>0)
{
if(gps.encode(Serial.read()))
{

Serial.print(F("Location:"));
if(gps.location.isValid())
{
Serial.print(gps.location.lat(),8);
String lati = String(gps.location.lat(),8);
cloudchip.deviceTelemetry("Latitude",lati);
Serial.print(F(","));
Serial.print(gps.location.lng(),8);
String longi = String(gps.location.lng(),8);
cloudchip.deviceTelemetry("Longtitude",longi);
}
else
{
Serial.print(F("INVALID"));
}
Serial.println();
}

}
delay(10000);
}
3.3(b):

How it works:
Goto cloudchip.in > device > new device > device telemetry > add wifi username,
password,access token

Add the cloudchip library file and TinyGPS++ library file to the program they will
help us to upload the data to the website using the access token.

How to check bus location:


1.Goto cloudchip.in > login >developer >credentials >device management
>map>bus tracking system

2.Goto cloudchip.in > login >developer >credentials >dashboard management


>bus latitude and longitude postions

Access links:
people can access the location of bus using these links:

URL: http://beta.cloudchip.in/dashboard/2c0416c0-47bc-11e9-be5c-
8de29152a99c?publicId=75b5e750-48a5-11e9-be5c-8de29152a99c

Shortend Link: https://bit.ly/2TMQ0PD

QR code:
3.4 Results

Img. ( The location of bus on the website)


4. CONCLUSION AND FUTURE SCOPE

Using this bus tracking system people will save their time by looking at the
location of bus. In near future the driving system of bus will include this GPS
tracking system will less power consumption. During bad weather conditions or
any signal losses the bus tracking systems uses artificial intelligence algorithms to
calculate the location of bus. So that it becomes more user friendly.

Anda mungkin juga menyukai