The GY-NEO6MV2 is a GPS module that provides accurate positioning data. It features the NEO-6M GPS chip and includes an onboard antenna, making it suitable for various navigation and tracking applications. This module is widely used in projects requiring precise location information, such as drones, vehicle tracking systems, and outdoor navigation devices.
Parameter | Value |
---|---|
GPS Chip | NEO-6M |
Operating Voltage | 3.3V - 5V |
Current Consumption | 45mA (typical) |
Position Accuracy | 2.5m CEP |
Update Rate | 1Hz (default), up to 5Hz |
Communication | UART |
Antenna | Onboard |
Dimensions | 25mm x 35mm |
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | TX | Transmit data (UART) |
4 | RX | Receive data (UART) |
5 | PPS | Pulse per second (time pulse, optional) |
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
// Create a SoftwareSerial object for communication with the GPS module
SoftwareSerial ss(4, 3); // RX, TX
// Create a TinyGPS++ object
TinyGPSPlus gps;
void setup() {
Serial.begin(9600); // Initialize serial communication with the computer
ss.begin(9600); // Initialize serial communication with the GPS module
Serial.println("GPS Module Test");
}
void loop() {
while (ss.available() > 0) {
gps.encode(ss.read()); // Decode the data from the GPS module
if (gps.location.isUpdated()) {
// Print the latitude and longitude to the Serial Monitor
Serial.print("Latitude: ");
Serial.println(gps.location.lat(), 6);
Serial.print("Longitude: ");
Serial.println(gps.location.lng(), 6);
}
}
}
No GPS Fix: The module is not able to get a GPS fix.
No Data Output: The module is not sending any data.
Inaccurate Positioning: The position data is not accurate.
By following this documentation, users should be able to effectively integrate and utilize the GY-NEO6MV2 GPS module in their projects. Whether you are a beginner or an experienced user, this guide provides the necessary information to get started and troubleshoot common issues.