Tag Archives: Adafruit Ultimate GPS

Logging GPS Data on Your Raspberry Pi Pico W GPS Tracker Project

In this lesson I show you how to log GPS data to the flash memory on your Raspberry Pi Pico W. This allows you to not only know where you are, but to also know where you have been. In this lesson, this is the schematic of your project circuit.

GPS Tracker
Schematic for Controlling GPS Tracker from the Breadvolt

For your convenience, here is the code we developed in the the video:

 

Measure Distance Between Two GPS Points with the Haversine Equations

In this video lesson we show how we can modify our GPS tracker project to calculate the distance between any two GPS points. User presses the onboard button to log the first data point. Then the user travels to the next point, and then presses the button again. The system calculates the distance between those two points, and the heading angle between the first and second point.

This is a schematic of the circuit we are using:

GPS Tracker
Schematic for Controlling GPS Tracker from the Breadvolt

For your convenience, this is the code developed in the video lesson:

 

Python Program to Calculate Distance and Heading Between Two GPS Points Using Haversine Formula

In this video lesson we will develop a python program to calculate the distance and heading between any two GPs positions on earth.  The  equations  we will  be  coding  up  are  below:Haversine Formula

The code which we developed is:

 

Portable Power for Your Raspberry Pi Pico W Project Using the Sunfounder Breadvolt

In this video lesson we show how you can power your GPS tracker project from the Sunfounder Breadvolt power supply (order HERE). As explained in the video, never turn the breadvolt on while the Pi Pico is connected to the USB, as this could backfeed current, and damage your computer. Disconnect the USB from the Pi Pico before turning the breadvolt on. Here is our updated schematic for remote operation.

breadvolt
Schematic for Controlling GPS Tracker from the Breadvolt

This is the code we are presently using for the project:

 

Getting Altitude Data from the GPS NMEA Sentences

In this video lesson we show you how you can parse NMEA sentence from your Adafruit Ultimate GPS to get the Altitude of your GPS tracker. At this point, our project has grown to  the point that all our data will not fit on the small OLED screen, so we have also added pushbuttons to allow us to toggle between display screens. For this project we are using the following circuit schematic:

GPS Tracker
This is the schematic we are using as we move forward in the class.

For your convenience, the code developed in the video is below: