Install Ublox M8N GPS on Raspberry pi/Nvidia Nano

Spread the love



Nvidia Nano

Raspberry Pi3B+

Ublox M8N GPS


Image result for raspberry pi 3b+ pinout
GPSRaspberry Pi/Nano
VCCPin 2, 5V
RxPin 8, UART Tx
TxPin 10, UART Rx
SDANot connected.
SCL Not connected.

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.

sudo raspi-config

Exit the config by choosing ‘Finish’. You will need to reboot.

sudo 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.

sudo reboot

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.

cat /dev/serial0

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

Look for
and change it to

Run GPS apps

gpspipe -r

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.