Skip to content

thedarkevil987/Gps-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPS System

This GPS system is designed to calculate the distance between two points on the earth's surface using a GPS module and a TM4C123GH6PM microcontroller. The program reads data from the GPS module, calculates the distance between the current location and the destination location, and turns on an LED based on that distance.

Setup

To set up the hardware:

  1. Connect the GPS module to the microcontroller using a UART connection.
  2. Connect the LED to the microcontroller.
  3. Upload the code to the microcontroller.

How it works

The program reads data from the GPS module using the UART connection and parses it to obtain the current latitude and longitude. It then uses the Haversine formula to calculate the distance between the current location and the destination location.

The LED turns green when the distance is less than 0.5 meters from the destination, yellow when the distance is between 0.5 and 5 meters from the destination, and red when the distance is more than 5 meters from the destination.

Code Files

  • main.c: This file contains the main code for the GPS system. It initializes the UART and LED, and reads data from the GPS module. It then calculates the distance to the destination and turns on the LED accordingly.

  • GPIO.h and GPIO.c: These files contain functions for initializing and controlling the LED.

  • UART.h and UART.c: These files contain functions for initializing and reading data from the GPS module using UART.

  • GPS.h and GPS.c: These files contain functions for parsing the GPS data and calculating the distance using the Haversine formula.

  • stdint.h, math.h, stdlib.h, stdio.h, and string.h: These are standard C libraries used in the program.

Usage

To use the system:

  1. Turn on the GPS module and the microcontroller.
  2. Wait for the LED to turn green to indicate that the destination has been reached.
  3. If the LED turns yellow, you are getting close to the destination. If the LED turns red, you are far from the destination.

Contributors

We want to assure you that all contributors to this project have a good understanding of each other's code, even though we divided the work among us.

GPS File

  • Yousef Shawky Mohamed (2001500)
  • Philopateer Sameh (2000955)
  • Fathy Abdelhady Fathy (2001152)

Main File

  • Omar Saleh Mohamed (2001993)
  • Ahmed Ayman Abd El Fatah (2000128)
  • Fady Adel Botros (2001388)

UART File

  • Adham Mohamed Mohamed Hassan (2001378)
  • Ezzat Tarek Mohamed alsayed (2001022)
  • Mohamed Ali Fadl Kassem (2000965)

GPIO File

  • Youssef Saad Gobran (2001440)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published