Ublox M8N GPS
|VCC||Pin 2, 5V|
|GND||Pin 6, GND|
|Rx||Pin 8, UART Tx|
|Tx||Pin 10, UART Rx|
Check connection is working
If you have powered theGPS correctly a red led should be on.
This is a GPS, it needs to be able to see the sky to read satellites. So you will need to move your GPS receiver to be near a window or outside so it can see the sky.
When the GPS is receiving data from satellites, four green led’s will blink.
Allow Raspberry Pi to access Serial
Go into the Raspberry pi settings and ‘enable‘ the serial and ‘disable‘ login from shell.
Exit the config by choosing ‘Finish’. You will need to reboot.
Allow Nvidia Nano to access Serial
From the command line enter the following.
systemctl stop nvgetty systemctl disable nvgetty udevadm trigger
Now reboot for the changes to take affect.
Check GPS data is being received
From terminal, enter the following command to find available serial data.
dmesg | grep tty
For the Raspberry Pi the port we need is ‘ttyS0’. For the Nvidia Nano use ‘ttyTHS1’.
In terminal enter the following to read the data being received.
sudo cat /dev/ttyS0
sudo cat /dev/ttyTHS1
Alternatively, ttyS0 is also serial0 for the Raspberry Pi.
You should see data scrolling on the screen.
Install GPS Apps
sudo apt-get install gpsd-clients gpsd -y
Set gpsd to run in the background.
sudo nano /etc/default/gpsd
and change it to
Run GPS apps