← All parts

NEO-6M GPS Module

u-bloxNEO-6M

u-blox NEO-6M GPS receiver module. Outputs NMEA sentences over UART (default 9600 baud); the PPS pin gives a 1Hz timing pulse once it has a fix.

In stock

Specifications

0

No specs listed.

Pinout

5
PinNameFunctionsNotes
1VCC
POWER
2.7-3.6V (modules add a regulator for 5V)
2RX
UART
UART RX (to MCU TX)
3TX
UART
UART TX (NMEA out)
4GND
GND
Ground
5PPS
GPIO
1Hz pulse-per-second

Interactive pinout

Highlight:
NEO-6M

Click a pin to copy its name · tap a tag above to spotlight a bus.

Starter code

Community starter examples — minimal, unofficial, and provided to get you wiring fast. Verify against the manufacturer datasheet before relying on them.

Arduino (C++)

Arduino library: TinyGPSPlus

arduino
// NEO-6M GPS — community starter example
#include <TinyGPSPlus.h>

#if defined(ESP32)
  HardwareSerial& GPS = Serial2;       // ESP32: RX2=GPIO16, TX2=GPIO17
  #define GPS_BEGIN() GPS.begin(9600, SERIAL_8N1, 16, 17)
#else
  #include <SoftwareSerial.h>
  SoftwareSerial GPS(4, 3);            // Uno: RX=D4 (from GPS TX), TX=D3
  #define GPS_BEGIN() GPS.begin(9600)
#endif

TinyGPSPlus gps;

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

void loop() {
  while (GPS.available()) {
    if (gps.encode(GPS.read()) && gps.location.isValid()) {
      Serial.print(gps.location.lat(), 6); Serial.print(", ");
      Serial.println(gps.location.lng(), 6);
    }
  }
}

MicroPython

MicroPython library: micropyGPS (inisis/micropyGPS) - optional, for parsing

python
# NEO-6M GPS (ESP32) — community starter example
# raw NMEA shown; parse with micropyGPS if you want fields
from machine import UART
import time

gps = UART(2, baudrate=9600, tx=17, rx=16)   # GPS TX -> RX2=GPIO16

while True:
    line = gps.readline()
    if line:
        print(line)             # e.g. b'$GPGGA,...'
    time.sleep_ms(200)

Wiring

PinArduino Uno R3ESP32 DevKitC (WROOM-32)Notes
VCC+5V5VModule regulator; 3.3-5 V
GNDGNDGND
TXD4 (RX)GPIO16 (RX2)GPS TX -> board RX
RXD3 (TX)GPIO17 (TX2)Board TX -> GPS RX (3.3 V logic)

Typical uses

  • GPS location, speed, and UTC time
  • Trackers and data loggers