}

Adding a GPS GY-NEO6MV2 to the Raspberry Pi

Created:

Introduction

GY-NEO6MV2 has RX, TX, VCC, PPS and GND. To make this tutorial a little different we assume that you are already using a real time clock on the raspberrypi.

For this module we will use anther set of GPIO pins.

Step 1: Soldering and connecting GPS to pin out

When we did this tutorial we lack some cable colors, but feel free to use a better set of colors. We used this colors:

  • Green RXD
  • Yellow TXD
  • Grey GND
  • Orange VCC

We used white for PPS we we won't use it in this tutorial.

Once you have all the cables in place we will continue with the raspberrypi connection.

For the raspberrypi 2 the pin out is: IMAGEN

The module required 3v3, we are already using pin 1 for the RTC so we will use pin 17. For GND we can use pin 20, but there are a lot more pins that can be used.

For data we don't have any issues with the RTC since we need UART pins, which are free. We will connect RXD to TXD (GPIO14) which is pin 8 of raspi 2. For TXD we will connect it to the RXD (GPIO15) which is the pin 10 on raspi2.

Step 2: Software configuration

Since The UART port, by default, is used for logins we need to change it for GPS usage.

open /boot/cmdline.txt and change the console parameter from ttyAMA0 to tty1.

If you already have it on tty1 everything is ok.

Open /boot/config.txt and add:

enable_uart=1

Step 3: Installing software

sudo apt-get install gpsd gpsd-clients
sudo dpkg-reconfigure gpsd

execute gpsd:

sudo gpsd /dev/ttyAMA0 -nb

Check that is working ok with:

cgps -s

Appendix:

Message : $GPTXT,01,01,01,NMEA unknown msg*58

Also disable the following:

sudo systemctl stop [email protected]
sudo systemctl disable [email protected]

Also try to:

stty -F /dev/ttyAMA0 -echo
gpsd /dev/ttyAMA0 -nb

Message: $GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30