NEO-6M practical reference
The NEO-6M is a complete GPS receiver module built around u-blox's NEO-6 chipset, combining the GPS antenna, RF front-end, and positioning engine on a single breakout board. It continuously outputs standard NMEA sentences over UART containing latitude, longitude, altitude, speed, and time, making it the go-to module for adding location tracking, geofencing, or time-synchronization to Arduino and ESP32 projects.
Key specifications
- Chipset: u-blox NEO-6 GPS engine
- Operating voltage: 3.3V–5V DC (module has an onboard regulator; raw NEO-6M chip is 3.3V)
- Operating current: ~45 mA typical during acquisition and tracking
- Position accuracy: ~2.5m CEP (circular error probable)
- Time-to-first-fix: Cold start ~27s, warm start ~27s, hot start ~1s (typical, open-sky conditions)
- Update rate: Up to 5 Hz position updates
- Output format: Standard NMEA 0183 sentences (GPGGA, GPRMC, etc.) over UART
- Interface: UART, default baud rate 9600
- Antenna: Included ceramic patch antenna on most breakout boards, connected via a small U.FL connector
Pinout and connection notes
On boards like the Arduino Uno with only one hardware UART, use SoftwareSerial on spare digital pins so the hardware UART stays free for USB debugging; libraries like TinyGPS++ parse the raw NMEA sentences into usable latitude/longitude/time values. A clear view of the sky is required for a reliable fix — indoor testing will often show no satellites.
- VCC: Power, 3.3–5V DC depending on breakout board
- GND: Ground
- TX: UART transmit — connect to microcontroller RX to receive NMEA data
- RX: UART receive — connect to microcontroller TX to send configuration commands
- PPS: Pulse-per-second output, useful for precise time synchronization projects
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.
Specifications
- Receiver
- u-blox NEO-6M GPS/GNSS receiver family; NEO-6 is GPS-only, not a multi-constellation receiver
- Interface
- UART with NMEA output on common breakout boards
- Default serial format
- Often 9600 baud, 8N1; configuration may have been changed by a previous user
- Position performance
- Accuracy and time-to-fix depend strongly on antenna, sky visibility, interference and receiver configuration
- Antenna
- Common boards use a ceramic patch antenna; some provide a U.FL connector for an external antenna
- Power and logic
- The bare receiver is a low-voltage device; breakout input range and UART output level depend on the board circuitry
- Data
- NMEA sentences can include position, time, fix quality, satellite count and speed
Pinout
| Pin | Name | Description |
|---|---|---|
| VCC | Module supply | Input supply for the breakout; verify the regulator and allowed input range on the exact board. |
| GND | Ground | Common ground with the controller. |
| TX | UART transmit | NMEA output from the GPS; connect to the controller UART RX. Check its logic voltage. |
| RX | UART receive | Configuration input to the GPS; connect from the controller UART TX only with compatible logic levels. |
Wiring & code
Setting up NEO-6M with ESP32 DevKit V1 (UART2 GPIO16/17 example)
Library
TinyGPSPlus + HardwareSerial by Mikal Hart; Arduino-ESP32
Arduino IDE Library Manager: install TinyGPSPlus by Mikal Hart. HardwareSerial is included with the ESP32 Arduino core.
Wiring — ESP32 DevKit V1 example
| GPS pin | ESP32 pin | Notes |
|---|---|---|
| VCC | 3V3 or module-rated input | NEO-6M bare chip uses 3.3V-class power; many breakout boards add a regulator. Verify the exact breakout input range before applying 5V. |
| GND | GND | Common ground with ESP32 unless using a properly designed isolated interface. |
| TX | GPIO16 (UART RX2) | GPS TX outputs NMEA data into the ESP32 RX. Verify module UART voltage is ESP32-safe. |
| RX | GPIO17 (UART TX2) | Optional configuration output from ESP32 to GPS RX; connect only if needed and voltage-compatible. |
| Antenna | GPS antenna | Place with a clear sky view for faster acquisition; indoors or under structures may limit reception. |
#include <TinyGPSPlus.h>
// Classic ESP32 DevKit V1 example:
// GPS TX -> ESP32 GPIO16 (RX2), GPS RX -> ESP32 GPIO17 (TX2).
// Check the actual GPS breakout supply and UART logic levels.
HardwareSerial GPSSerial(2);
TinyGPSPlus gps;
void setup() {
Serial.begin(115200);
GPSSerial.begin(9600, SERIAL_8N1, 16, 17);
Serial.println("Waiting for NEO-6M NMEA data...");
}
void loop() {
while (GPSSerial.available() > 0) {
gps.encode(GPSSerial.read());
}
if (gps.location.isUpdated() && gps.location.isValid()) {
Serial.print("Latitude: ");
Serial.println(gps.location.lat(), 6);
Serial.print("Longitude: ");
Serial.println(gps.location.lng(), 6);
if (gps.altitude.isValid()) {
Serial.print("Altitude (m): ");
Serial.println(gps.altitude.meters(), 1);
}
if (gps.satellites.isValid()) {
Serial.print("Satellites: ");
Serial.println(gps.satellites.value());
}
}
// Other ESP32 tasks (Wi-Fi/MQTT/display) can run here without a long delay.
}Install TinyGPSPlus by Mikal Hart through Arduino IDE Library Manager. Classic ESP32 DevKit V1 GPIO16/17 are only an example; select suitable UART pins for your board. NEO-6M module variants differ in power circuitry and antenna connectors—check the exact breakout schematic. A valid position usually requires satellite reception and may take time after startup. Code has not been physically bench-tested.








