From Waveshare Wiki
Jump to: navigation, search




Primary Attribute
Category: Modules, GPS/GSM, Raspberry Pi
{{{userDefinedInfo}}}: {{{userdefinedvalue}}}
Brand: Waveshare
International: Website
Chinese: 官网
Onboard Interfaces
Related Products


This is a precise centimeter-level Raspberry Pi GNSS HAT based on ZED-F9P. It provides features like multi-band RTK with fast convergence times, high update rate, moving base RTK mode support, concurrent reception of 4 GNSS systems, augment positioning systems support, accurate & fast positioning with minor drifting, and outstanding ability for anti-spoofing & anti-jamming.
By simply attaching it onto the Pi, it is fairly easy to enable GNSS capability for your Raspberry Pi.


  • Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards, Jetson Nano
  • multi-band RTK with fast convergence times, centimeter-level accuracy, high update rate
  • Supports Moving base RTK mode, enabling terminal precise navigation and centimeter-level accuracy
  • Supports concurrent receiving 4 GNSS constellations (GPS, BeiDou, Galileo, and GLONASS), and still retains low power consumption
  • Augment systems support, including SBAS, QZSS, IMES, D-GPS, improving the positioning performance of service location
  • A-GNSS (Assisted GNSS) support, reducing the first positioning time when powered up, improving the acquisition sensitivity
  • Features -167dBm navigating sensitivity and the outstanding ability for anti-spoofing & anti-jamming, supports geo-fencing
  • Supports U-Center, an easy way to config the module
  • Onboard battery holder, supports ML1220 rechargeable cell, for preserving ephemeris information and hot starts
  • 4x LEDs for indicating the module operating status


GNSS Specifications
ZED-F9P Concurrent receiving
Frequency band u-blox F9 platform
Max navigation update rate PVT 8Hz 10Hz 15Hz 15Hz 15Hz 20Hz
PTK 10Hz 12Hz 20HZ 25Hz 25Hz 25Hz
RAW 20Hz 20Hz 25Hz 25Hz 25Hz 25Hz
PTK convergence time <10s <10s <10s <10s <10s <30s
Time-To-First-Fix Cold starts 24s 25s 29s 26s 28s 29s
Hot starts 2s 2s 2s 2s 2s 2s
Aided starts 2s 2s 2s 2s 2s 2s
Positioning accuracy PVT 1.5cm CEP
RTK (horizontal and vertical) 0.01m+1ppm CEP
Sensitivity Tracking and navigating -167 dBm
Re-acquisition -160dBm
Cold starts -148dBm
Hot starts -157dBm
Velocity accuracy 0.05 m/s
Heading accuracy 0.3 degree
PPS accuracy RMS 30ns
99% 60ns
Jamming ±11ns
PPS frequency 0.25Hz ~ 10MHz (configurable)
Operational limits Acceleration (max): 4g
Altitude (max): 50000m
Velocity (max): 500m/s
Other Specifications
Communication interface USB, UART (4800~921600bps, 9600bps by default), I2C (max 400KHz), SPI (5MHz)
Protocol NMEA 0183 Version 4.10, UBX, RTCM 3.3
Power supply 5V
Overall current < [email protected] (continue mode)
Module current [email protected] max (tracking status)
Operating temperature -40℃ ~ 85℃
Dimension 65mm × 30.5mm

Working With Windows PC


Rover means that use the ZED-F9P GPS-RTK HAT as rover, connect and receive RTCM3 data streams from base station providers for high precision centimeter-level positioning.

Base Station Service Providers

1. You need to apply for a reference base station service from a local institution. For example, if you are in the USA, you need to apply from UNAVCO, here we use the Hong Kong Geodetic Survey Services to test in China.
1). Download and install the u-center software.
2). Connect the ZED-F9P GPS-RTK HAT to PC and install drivers according to prompt, after installing, open the u-center software and select the COM port.
3). Choose Receiver-->NTRIP and type the parameter as below:

Note: we recommend the distance between station and rover should be shorter than 50KM.
Address:  landsd-gncaster.realtime.data.gov.hk
Port:  2101
Username:  psi_user
Password:  psi

4). Then click Update source table, choose T430_32 in the NTPIP mount point drop down box and click OK to save and run the RTK service.
5). After connecting NTRIP, the connect status of NTRIP is showed at the bottom of the u-enter. The RTK indicator keeps lighting if the module is in Fixed status and flashing in Float status.

2. Use ZED-F9P GPS-RTK HAT to establish CORS (Continuous Operational Reference System), provide RTCM3 data stream for other equipment, and realize real-time centimeter-level positioning of the equipment, refer to #Stationary Base

Moving Base and Rover

Moving Base and Rover refer to the use of two ZED-F9P GPS-RTK HAT modules to achieve dynamic high-precision positioning and guidance functions, which are widely used in automatic operation systems such as smart cars and precision agriculture, as well as scene applications such as target following in film and television shooting .

1. Moving base(hereafter call MB module) setting
1). Open the u-center, and connect the MB module, choose View-->Configuration View Option(You can also press Ctrl+F9)
2). Choose MSG(Messages) Option, Enable the RTCM3 data streams to UART2:

RTCM 1077
RTCM 1087
RTCM 1097
RTCM 1127
RTCM 1230
RTCM 4072.0
RTCM 4072.1

3). Save the setting. It uses a button battery for RAM parameter storage by default. As Figure 2
4). After the MB module and Rover module are set up, use DuPont cable to connect the UART2 interfaces of the two modules (note that the TXD of the MB Module is connected to the RXD of the Rover module) or use the wireless module to transparently transmit the RTCM3 data stream from the MB Module to the Rover module. As Figure 3
5). After the connection is completed, the u-center connected to the MB module opens the NTRIP client service, please refer to the chapter Rover-->Other Reference #Base Station Service Providers.

2. Rover(Hereafter call Rover module) Setting
1). Open another u-center software and connect to Rover module, choose the correct COM port.
2). Choose View-->Configuration View Option (or Press Ctrl+F9),choose MSG(Messages) and NAV_RELPOSNED, check the UART1 option. As Figure 1
3). Choose CFG, select Save current configuration, and save. It uses a button battery for RAM parameter storage by default.
4). After setting up the MB module and the Rover module, connecting the UART2 interfaces of two modules (note that the TXD of the MB Module is connected to the RXD of the Rover module), open the u-center which is connected to the Rover module, choose View-->Messages View
5). Find and click the UBX-->RELPOSNED option to check and verify the Moving Base application. When the MB module enters the Fix positioning, the Rover module receives the RTCK data stream of the MB module in real-time, and also enters the Fix positioning and outputs the centimeter-level positioning relative to the MB module. The steering angle, as shown in Figure 3 below, Length and Heading, where the size of Length is the distance between the two antennas, and the accuracy is 1cm. Users can move the Rover module antenna in real-time and measure the distance to the MB module antenna and work with the Length on the u-center. In comparison, the centimeter-level positioning function of ZED-F9P is verified from the side. The heading indicates the angle between the two antennas. The user can move the Rover module antenna and observe the change of Heading.

Stationary Base

Stationary Base means that us ZED-F9P GPS-RTK HAT as base station, provide observation data of centimeter-level positioning accuracy relative to the base station for other rover stations .The service of UNAVCO or Hong Kong Geodetic Survey Services which mentioned above work in the same way, they build base stations in various regions send observation data streams to nearby mobile stations through the Internet to achieve centimeter-level positioning of nearby mobile stations.

1. Go to Hong Kong Geodetic Survey Services, make the ZED-F9P GPS-RTK HAT to RTK Fixed status, and get the positioning coordinates. Then configure the Stationary Base
1). Get RTK Fixed positioning coordinates of ZED-F9P GPS-RTK HAT的RTK Fixed by referring to #Rover, as Figure 1
2). Set the Fix Position of ZED-F9P GPS-RTK HAT, as Figure 2
3). Setup local RTCM3 data stream service by NTRIP Server/Caster, the ZED-F9P GPS-RTK HAT should be set as Stationary Base, as Figure 3
4). Use other Rover to connect NTRIP Server and get RTCM3 data streams, as Figure 4.

2. After obtaining the positioning coordinates of the local base station by PPP calculation, set the ZED-F9P GPS-RTK HAT to Stationary Base

Working with Raspberry Pi


1. c codes
c codes use the Qianxun server, which can only be available in China area
2. python codes
The user needs to apply for an RTCM data stream service account from the local organization, fill in as shown in the figure below, and run the routine to perform centimeter-level positioning
2.1 Restart the Raspberry Pi after enabling the hardware serial port
2.2 Connect the GNSS multi-frequency antenna to the HAT after power off, then connect the HAT to the Raspberry Pi
2.3 Use minicom to check whether the HAT outputs NMEA data
2.4 Download the routine and fill in the account information as shown in the figure and run the program

cd Documents
mkdir zed-f9p && cd zed-f9p
wget https://www.waveshare.com/w/upload/e/e8/ZED-F9P_GPS-RTK_HAT_Code.zip
unzip ZED-F9P_GPS-RTK_HAT_Code.zip
cd Documents/zed-f9p/python/
python3 rover.py

If you require technical support, please go to the Support page and post a tickets.