Geo Logger

Field test on a kayak trip

Table of Contents

Overview

In this project, I cover my geo logger software package that can be run on a Raspberry Pi to record GPS coordinates, velocity and elevation along a path. Someday, this functionality will reside on my scuba kayak and underwater sensory platform.

The charger is a simple float charger so it can be left on the SLA battery indefinitely so long as its maximum current and voltage output settings are kept appropriate (covered later).

Materials

  • Raspberry Pi 3B+ x11
  • USB-to-TTL Serial Cable x12
  • Ultimate GPS Breakout x13
  • CR1220 Battery x14
  • GPS Active Antenna 28db Gain, 3-5VDC x15
  • Antenna Extension Cable x16
  • Mophie Powerstation 4Ah, Red x17

Code

The steps to run the code and produce a kml file (that is viewable in Google Earth) is fairly straightforward:

  1. Setup Raspberry Pi to run in headless mode8 (so that it can be ran in the field)
  2. init.sh starts the gpsd (GPS) service for the Raspberry Pi. The Raspberry Pi listens to the output of the service on port 2947.
  3. The user starts gps_test.py
  4. The Raspberry Pi then samples gpsd service (~1Hz) and writes this output to a file: gps_log.kml
  5. subsample_kml.py is used to subsample the logged points in gps_log.kml and outputs a subsampled version of it: gps_log_subsampled.kml
  6. Because gps_log_subsampled.kml will just be disconnected location pins if viewed in Google Earth, we use line_string_from_kml.py to convert datapoints in gps_log_subsampled.kml to a format that when viewed in Google Earth, will be a connected line

Visit my git repo to obtain the code and to see an example kml file for each step in the process above.

Enjoy!


  1. https://www.amazon.com/gp/product/B01C6Q4GLE/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 ↩︎

  2. https://www.amazon.com/gp/product/B00DJUHGHI/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 ↩︎

  3. https://www.amazon.com/gp/product/B01H1R8BK0/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 ↩︎

  4. https://www.amazon.com/gp/product/B003CU3E2Q/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&psc=1 ↩︎

  5. https://www.amazon.com/gp/product/B00LXRQY9A/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&psc=1 ↩︎

  6. https://www.amazon.com/gp/product/B071HJN1H9/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1 ↩︎

  7. https://www.amazon.com/mophie-Powerstation-4-000mAh-Red/dp/B006L9I43O ↩︎

  8. https://www.raspberrypi.org/documentation/configuration/wireless/headless.md ↩︎

Research Engineer

My interests lie at the intersection of perception and robotics.