ECE 4180 Final Project -- IoT GPS Tracker

Website: https://ece4180.sousys.com

Introduction

In this project, we designed and implemented a GPS Tracker with a backend server and UI. The GPS tracker is a mbed LPC1768 based device equipped with GPS and Wifi module. This project allows a user to visualize their history trips and running trips at realtime.

Team Members

  • Nan Qin
  • Charles Austin

Implementation

The project contains three components, the mbed device with a GPS module, a backend server with an SQLite database, a frontend webpage. Besides the GPS module, the mbed device is also equipped with a Wifi module to have Internet access. Moreover, each device has a hardcoded deviceId. When a device starts running, it sends an HTTP GET request /home/startnewtrip/{deviceId} to the server to obtain a tripId. After the server receives the request, the server initializes a trip and return its tripId to the mbed device. Once the mbed acquires a tripId, it can send GPS location by HTTP GET /realtime/uploadposition/{tripId}/{latitude}/{longtitude}.

There are two types of trips in our design. The first type is realtime trip, meaning the trip is in running state. Realtime trip the default type after a trip is initialized by the server. The second type is terminated trip. When a user decides to end a trip, the mbed can send an HTTP GET /home/endtrip/{tripId}.

The frontend webpage allows users to visualize a trip by selecting its tripId. For a realtime trip, the webpage pulls the latest GPS data from the server periodically. For a terminated trip, the pulling only happens once.

Parts

  • Mbed LPC1768
  • Adafruit HUZZAH ESP8266 Breakout
  • u-blox NEO-6M GPS Module

Wiring

MbedHuzzah ESP 8266External +6V Power Supply
p12rst
p13rx
p14tx
VinVBat+6V
GNDGNDGND
MbedGPS U-blox NEO-6M
p28rx
p27tx
VoutVcc
GNDGND

/media/uploads/caustin4815/img_2714.jpg

Mbed Code

Import programgps

The Mbed code for an IoT GPS tracker made for ECE4180

Frontend and Server Code

https://github.com/Nan0416/ECE4180-GPS-tracker

Demo


Please log in to post comments.