The Adafruit Ultimate GPS USB is a high-performance GPS module that offers precise location and timing data. Utilizing the MediaTek MT3339 chipset, it supports various satellite systems, including GPS, GLONASS, QZSS, and more, ensuring global coverage. This module is ideal for a wide range of applications such as asset tracking, navigation, time synchronization, and DIY projects. Its USB interface simplifies connectivity to computers and microcontrollers, making it a versatile choice for both hobbyists and professionals.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (5V input) |
2 | GND | Ground connection |
3 | TX | Transmit data out (GPS to USB/Computer) |
4 | RX | Receive data in (USB/Computer to GPS) |
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
// If using software serial (i.e., not the direct USB connection)
SoftwareSerial mySerial(3, 2); // RX, TX
Adafruit_GPS GPS(&mySerial);
void setup() {
// Start the serial communication
Serial.begin(115200);
GPS.begin(9600);
// Uncomment this line to enable RMC (recommended minimum) and GGA (fix data) including altitude
GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
// Set the update rate
GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ); // 1 Hz update rate
}
void loop() {
// Read data from the GPS
char c = GPS.read();
// If a sentence is received, check if it's a valid fix
if (GPS.newNMEAreceived()) {
if (!GPS.parse(GPS.lastNMEA())) {
return; // Skip this loop if the sentence isn't valid
}
}
// Check if we have a valid GPS fix
if (GPS.fix) {
Serial.print("Location: ");
Serial.print(GPS.latitude, 4); Serial.print(GPS.lat);
Serial.print(", ");
Serial.print(GPS.longitude, 4); Serial.println(GPS.lon);
Serial.print("Speed (knots): "); Serial.println(GPS.speed);
Serial.print("Angle: "); Serial.println(GPS.angle);
Serial.print("Altitude: "); Serial.println(GPS.altitude);
Serial.print("Satellites: "); Serial.println((int)GPS.satellites);
}
}
Q: Can I use the Adafruit Ultimate GPS USB with a Raspberry Pi? A: Yes, you can connect the GPS module to a Raspberry Pi via USB or serial connection, but you will need to configure the serial port and install appropriate libraries to communicate with the GPS.
Q: How can I improve the time to first fix (TTFF)? A: Ensure the GPS module has an unobstructed view of the sky. Additionally, using the module in the same location can help improve TTFF as the GPS can store satellite information.
Q: What is the power consumption of the module? A: The module typically consumes around 20mA during navigation, but this can vary based on the update rate and other factors.
Q: Does the module have a built-in battery for memory backup? A: Yes, the Adafruit Ultimate GPS USB has a built-in rechargeable battery that maintains the time and satellite data to help achieve a faster fix next time it's powered on.
For further assistance or more detailed inquiries, please refer to the Adafruit Ultimate GPS USB official documentation or contact Adafruit's support.