The SparkFun Qwiic GPS-RTK2 is a cutting-edge Global Navigation Satellite System (GNSS) module that offers high-precision, dual-band RTK capabilities. It is built around the ublox ZED-F9P chipset, which is renowned for its accurate positioning and timing solutions. This module is designed for applications requiring centimeter-level accuracy such as autonomous vehicles, drones, precision agriculture, and surveying.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | 3.3V | Power supply input (3.3V) |
3 | SDA | I2C data line for Qwiic connector |
4 | SCL | I2C clock line for Qwiic connector |
5 | RX | UART receive pin |
6 | TX | UART transmit pin |
7 | INT | Interrupt pin |
8 | RST | Reset pin |
#include <Wire.h>
#include <SparkFun_u-blox_GNSS_Arduino_Library.h>
SFE_UBLOX_GNSS myGNSS;
void setup() {
Wire.begin();
Serial.begin(115200);
while (!Serial); // Wait for serial port to connect
if (myGNSS.begin() == false) {
Serial.println(F("u-blox GNSS not detected at default I2C address. Please check wiring."));
while (1);
}
}
void loop() {
if (myGNSS.getGnssFixOk()) {
double latitude = myGNSS.getLatitude();
double longitude = myGNSS.getLongitude();
double altitude = myGNSS.getAltitude();
Serial.print(F("Latitude: "));
Serial.print(latitude, 8);
Serial.print(F(" Longitude: "));
Serial.print(longitude, 8);
Serial.print(F(" Altitude: "));
Serial.print(altitude);
Serial.println(F("m"));
}
delay(1000);
}
This example initializes the GNSS module and prints the latitude, longitude, and altitude to the serial monitor once a second.
Q: Can the module be used without an external antenna? A: No, an external GNSS antenna is required for the module to function correctly.
Q: What is the maximum update rate? A: The module can provide position updates at up to 20 Hz, depending on the configuration.
Q: Is the module compatible with all GNSS constellations? A: Yes, the ZED-F9P supports multiple constellations including GPS, GLONASS, Galileo, and BeiDou.
Q: How do I connect the module to my microcontroller? A: You can connect via UART, SPI, or I2C. For Arduino boards, I2C with the Qwiic system is the simplest method.
For further assistance, please refer to the SparkFun Qwiic GPS-RTK2 datasheet and the u-blox ZED-F9P integration manual.