Ultimate GPS Tracker Project 13: Calculate Distance and Heading Between Two GPS Points @paulmcwhorter
Ultimate GPS Tracker Project 13: Calculate Distance and Heading Between Two GPS Points  @paulmcwhorter
Uploaded August 2025 | Updated September 2026, 2 weeks ago
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

patreon.com/PaulMcWhorter

In this video I will show you how you can use the Haversine Equation to calculate the exact distance between any two GPS points on earth. The equations allow calculations of distance, and the heading between point1 and point2. By heading, I mean if you start at point1, how many degrees from north would you need to walk to get to point 2. Enjoy!

This toggle button work was explained in greater depth in this class:

youtu.be/s2tjQbwBkxw?si=IIMdnn4u-Ri5CEuo

We are actually pursuing building a GPS Tracker, and this is the gear we will be using in this class:

Raspberry Pi Pico W:
amzn.to/3FA4tqS
Adafruit Ultimate GPS:
amzn.to/4jeRIjj
External Antenna (OPTIONAL):
amzn.to/4myFWTL
Button Battery For Quicker Fix:
amzn.to/3FjoUbH
Breadvolt Power Supply (OPTIONAL):
amzn.to/4kuuJ50
Charging Cable (If You Don’t Have):
amzn.to/3Z0EMGF
Soldering Iron:
amzn.to/3HpZolw
Solder Practice Components:
amzn.to/4mNaEca
Extra Solder:
amzn.to/4kuuDdE
Safety Glasses:
amzn.to/4mwGMjR

[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]
#raspberrypipico
#GPS
#oled -
-
*LEGAL DISCLAIMER:*
The code, hardware setups, circuit diagrams, mathematical calculations, and technical methods provided in this video are strictly for educational and demonstration purposes.

All math, code, and instructional content are provided "AS IS", without warranty of any kind, express or implied, including but not limited to guarantees of accuracy, completeness, or fitness for a specific purpose.

All hardware assembly, circuit wiring, and software execution are performed entirely at your own risk. The creator assumes no liability for equipment damage, component failure, data loss, or personal injury resulting from the use or implementation of any information or files presented in this content.
Ultimate GPS Tracker Project 13: Calculate Distance and Heading Between Two GPS PointsRaspberry Pi Pico W LESSON 102: Creating a Library to Easily Work With Multiple PIO State MachinesWhy I Threw Away the Arduino QArduino Uno R4 WiFi LESSON 2 SUPPLEMENTAL: Calculating  Current Limiting Resistor for LEDAI on the Edge LESSON 36: Select Active Camera in OpenCV With Voice CommandsAI on the Edge LESSON 30: Tune Object Tracker with Mouse Selected ROIArduino Uno R4 WiFi LESSON 89: Calibrating 3-Axis Magnetometer with PyQtRaspberry Pi Pico W LESSON 51: Ultimate Pitch and Roll Gadget Using the MPU6050Raspberry Pi Pico W LESSON 93: Button Controlled Binary Counter Completely  on  PIO State MachineAI on the Edge LESSON 51: Gesture Control of NeoPixel RingRaspberry Pi Pico W LESSON 120: Incorporating an RFID Tag Into Your Pi Pico ProjectRaspberry Pi Pico W LESSON 101: Using PIO State Machines Inside a Micropython Class
Paul McWhorter |

Ultimate GPS Tracker Project 13: Calculate Distance and Heading Between Two GPS Points

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER