Skip to content

Sensors · Location / GPS

NEO-6M GPS Module

UART GPS receiver module for Arduino and ESP32 location projects; verify breakout power and antenna requirements.

Updated November 14, 2026 2 board guides
NEO-6M GPS Module

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

  1. Confirm the exact part number and breakout-board revision.
  2. Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
  3. Check controller pin assignments and bus address or interface mode against the example code.
  4. Power up with external loads disconnected, then test signals before full integration.
  5. 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.

NEO-6M at a glance

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

PinNameDescription
VCCModule supplyInput supply for the breakout; verify the regulator and allowed input range on the exact board.
GNDGroundCommon ground with the controller.
TXUART transmitNMEA output from the GPS; connect to the controller UART RX. Check its logic voltage.
RXUART receiveConfiguration input to the GPS; connect from the controller UART TX only with compatible logic levels.

Wiring & code

Board integration

Library

TinyGPSPlus by Mikal Hart

Arduino IDE → Tools → Manage Libraries → search "TinyGPSPlus" → Install

Wiring

Component pinArduino Uno pinNote
VCC5V
GNDGND
TXD2 (RX)Module TX → Arduino RX.
RXD3 (TX)Most NEO-6M breakouts are 5V-tolerant on RX; check yours if unsure.
sketch.ino
#include <SoftwareSerial.h>
#include <TinyGPSPlus.h>

SoftwareSerial gpsSerial(2, 3); // RX, TX
TinyGPSPlus gps;

void setup() {
  Serial.begin(9600);
  gpsSerial.begin(9600); // NEO-6M default baud
}

void loop() {
  while (gpsSerial.available()) {
    gps.encode(gpsSerial.read());
  }

  if (gps.location.isUpdated()) {
    Serial.print(F("Lat: ")); Serial.print(gps.location.lat(), 6);
    Serial.print(F("  Lng: ")); Serial.println(gps.location.lng(), 6);
  }
}
  • Needs a clear view of the sky — indoors, or even near a window, a cold start can take several minutes or fail entirely to get a fix; test outdoors first before assuming a wiring problem.
  • A cold start (first power-up, or after being moved far from the last fix) can take 30s-a few minutes to lock; a warm start with the same almanac data is much faster.
  • TinyGPSPlus handles all the NMEA sentence parsing — do not try to parse the raw serial output yourself, it is significantly more fiddly than it looks.

Step-by-step

Board guides