Raspberry pi to GPS logger

erangoldman@gmail.com, 14 May 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 <pre>#!/bin/bash

gpspipe -r -d -l -o /home/pi/gpsdata/data.date +%F.%H:%M:%S.nmea</pre>

  1. chmod +x gpslogger.sh
  2. crontab -e <pre>*/5 * * * * /home/pi/gpslogger.sh</pre>

  3. Have fun and dont 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