Raspberry pi to GPS logger

Eran Goldman-Malka · May 14, 2017

This is a short procedure to turn your raspberry pi into GPS logger

  1. create a clean raspbian SD and connect it to the raspberry pi
  2. login
  3. sudo apt-get update
  4. sudo apt install vim gpsd gpsd-clients
  5. modify /etc/default/gpsd
    1. change GPSD_OPTIONS=”” to GPSD_OPTIONS=”/dev/ttyACM0″
  6. mkdir gpsdata
  7. vim gpslogger.sh
gpspipe -r -d -l -o /home/pi/gpsdata/data.`date +%F.%H:%M:%S`.nmea
  1. chmod +x gpslogger.sh
  2. crontab -e */5 * * * * /home/pi/gpslogger.sh

  3. Have fun and don’t forget to delete old files from gpsdata …
  • to convert the nmea to csv you can use :

gpsbabel -t -i nmea -f data.2017-04-12.02\:10\:01.nmea -o unicsv -F -

some extras –

if you want to work with python then :

sudo apt install python-gps

and follow : Dan Mandle post

Twitter, Facebook