Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›IoT & Wireless
  4. ›NEO-6M GPS Module

How-to · Intermediate · 3 min read

NEO-6M GPS Module

Wiring, NMEA Data and Getting a Fix

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWiring the NEO-6MRead position with TinyGPS++Getting a fix fasterWhat the NMEA sentences meanNEO-6M vs NEO-7M vs NEO-M8N vs M10Common mistakesFAQsParts and next steps
Short answer

The NEO-6M is a GPS receiver that outputs latitude, longitude, altitude, speed and time as NMEA text over a 9600 baud serial link. Wire its TX to a serial RX pin, power it from 3.3 to 5 V, give it a clear view of the sky, and parse the data with TinyGPS++. The first fix can take a minute or more; later fixes are faster thanks to the backup battery.

Key specs at a glance

Receiver
u-blox NEO-6M, GPS only (M8N adds GLONASS and others)
Supply
3.3 to 5 V on the module, about 45 mA
Logic
3.3 V UART; TX is safe into 5 V inputs, RX needs a divider from 5 V
Default output
NMEA at 9600 baud, 1 Hz
Accuracy
About 2.5 m horizontal with a good sky view
Time to first fix
Cold about 30 to 60 s outdoors; warm a few seconds
Antenna
Ceramic patch on a cable; must face the sky
01

Wiring the NEO-6M

GPS pinArduino UnoESP32
VCC5V3.3V or 5V
GNDGNDGND
TXD4 (SoftwareSerial RX)GPIO 16 (Serial2 RX)
RXD3 via divider (only needed to configure)GPIO 17 (Serial2 TX)
VCC
Arduino Uno:
5V
ESP32:
3.3V or 5V
GND
Arduino Uno:
GND
ESP32:
GND
TX
Arduino Uno:
D4 (SoftwareSerial RX)
ESP32:
GPIO 16 (Serial2 RX)
RX
Arduino Uno:
D3 via divider (only needed to configure)
ESP32:
GPIO 17 (Serial2 TX)
02

Read position with TinyGPS++

Install TinyGPSPlus from the Library Manager.

Print latitude, longitude and speed · Arduino C++Verify & upload in Electrolark
#include <TinyGPSPlus.h>
#include <SoftwareSerial.h>

TinyGPSPlus gps;
SoftwareSerial ss(4, 3);   // RX, TX  (ESP32: use Serial2.begin(9600, SERIAL_8N1, 16, 17))

void setup() {
  Serial.begin(115200);
  ss.begin(9600);
}

void loop() {
  while (ss.available()) gps.encode(ss.read());
  if (gps.location.isUpdated()) {
    Serial.print("Lat: ");   Serial.print(gps.location.lat(), 6);
    Serial.print("  Lng: "); Serial.print(gps.location.lng(), 6);
    Serial.print("  Sats: "); Serial.print(gps.satellites.value());
    Serial.print("  km/h: "); Serial.println(gps.speed.kmph());
  }
}
03

Getting a fix faster

  • ✓Go outdoors with the antenna flat and facing up. Indoors near a window may work after several minutes; deep indoors it will not.
  • ✓The blue LED blinks once a fix is obtained. Before that, the module still outputs NMEA sentences with empty fields.
  • ✓Keep the backup battery (the small cell on the module) charged by leaving the module powered for a while; it stores satellite data so the next start takes seconds.
  • ✓Keep the antenna away from Wi-Fi modules, switching regulators and metal.
04

What the NMEA sentences mean

SentenceContains
$GPGGATime, position, fix quality, satellites, altitude
$GPRMCTime, date, position, speed, course, fix valid flag
$GPGSVSatellites in view and their signal strength
$GPVTGCourse and speed over ground
SentenceContains
$GPGGA
Time, position, fix quality, satellites, altitude
$GPRMC
Time, date, position, speed, course, fix valid flag
$GPGSV
Satellites in view and their signal strength
$GPVTG
Course and speed over ground
05

NEO-6M vs NEO-7M vs NEO-M8N vs M10

ModuleSystemsUpdate rateChoose it for
NEO-6MGPSUp to 5 HzCheapest, loggers, trackers
NEO-7MGPS + GLONASSUp to 10 HzSlightly better fix
NEO-M8NGPS + GLONASS + Galileo + BeiDouUp to 10 HzDrones, faster and more reliable fixes
M10 (e.g. BN-220/BE-280 class)Multi-constellation, low powerUp to 25 HzModern drones and battery trackers
NEO-6M
Systems:
GPS
Update rate:
Up to 5 Hz
Choose it for:
Cheapest, loggers, trackers
NEO-7M
Systems:
GPS + GLONASS
Update rate:
Up to 10 Hz
Choose it for:
Slightly better fix
NEO-M8N
Systems:
GPS + GLONASS + Galileo + BeiDou
Update rate:
Up to 10 Hz
Choose it for:
Drones, faster and more reliable fixes
M10 (e.g. BN-220/BE-280 class)
Systems:
Multi-constellation, low power
Update rate:
Up to 25 Hz
Choose it for:
Modern drones and battery trackers
06

Common mistakes to avoid

  • !Testing indoors and concluding the module is broken.
  • !Connecting a 5 V TX pin to the module's RX without a divider.
  • !Mounting the antenna upside down or under a metal lid.
  • !Using the Arduino's only hardware serial and then being unable to upload.
  • !Expecting sub-metre accuracy; consumer GPS is about 2 to 5 m.
07

Frequently asked questions

Why is my NEO-6M not getting a fix?

Usually it is indoors or has a poor sky view. Take it outside, wait a minute or two, and check that the antenna faces up. The LED only blinks once a fix is found.

What baud rate does the NEO-6M use?

9600 baud by default. You can change it with u-center software or UBX commands.

Does the NEO-6M work at 3.3 V?

Yes. The module's onboard regulator accepts 3.3 to 5 V, and its serial pins are 3.3 V logic.

How accurate is the NEO-6M?

About 2.5 m horizontal under open sky. Accuracy worsens near buildings and trees. Altitude is less accurate than position.

Can I use the NEO-6M with ESP32?

Yes, on a hardware serial port (Serial2 on GPIO 16 and 17). The ESP32 can then upload positions over Wi-Fi for a live tracker.

Parts for this guide

  • TP4056 1A Li-ion Charger Module with Protection
    ₹19View
  • Resistor Assortment Kit (30 Values)
    ₹33View
Shop GSM & 4G ModulesShop Flight Controllers & GPS

Terms in this guide

GNSSGlobal navigation satellite system: the general term covering GPS (USA), GLONASS, Galileo and BeiDou. Newer modules use several at once for a faster fix.NMEAThe plain-text sentence format (lines starting with $GPGGA, $GPRMC) that GPS modules send over serial.UARTUniversal asynchronous receiver-transmitter: two-wire serial (TX and RX) used by GPS, Bluetooth modules and debug output.Time to first fix (TTFF)How long a GPS module takes to report a position after power-up: a minute or more from cold, seconds when its backup battery has kept the almanac.Baud rateThe speed of a serial link in bits per second. Both ends must use the same value; 9600 and 115200 are the usual defaults.

Projects that use it

Put this into practice: 8 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hoursGPS speedometer and clockView projectIntermediate · 2–3 hoursGPS route loggerView projectIntermediate · 2 hoursGPS geofence alarm for vehicles and cattleView project
Browse all 8 projects

Keep learning

Component guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersComponent guideBeginnerArduino UnoThe Arduino Uno is a beginner-friendly microcontroller board that reads sensors and controls LEDs, motors and relays using simple C++ programs called sketches.5 min read · Boards & MicrocontrollersComponent guideBeginnerLi-ion, 18650 and LiPo BatteriesLithium-ion cells, including 18650s and flat LiPo packs, store about 3.6 to 3.7 V nominal, charge to exactly 4.2 V and should not be discharged below about 3.0 V.4 min read · Power & BatteriesHow-toBeginnerSSD1306 OLED DisplayThe SSD1306 is the driver chip in most small monochrome OLED displays, such as the popular 0.96 inch 128x64 module.3 min read · Displays & LEDs

Sources

  • NEO-6 series datasheet and receiver description (u-blox)
  • NMEA 0183 sentence reference
  • TinyGPS++ library documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWiring the NEO-6MRead position with TinyGPS++Getting a fix fasterWhat the NMEA sentences meanNEO-6M vs NEO-7M vs NEO-M8N vs M10Common mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide2 items · ₹52

TP4056 1A Li-ion Charger Module with Protection · Resistor Assortment Kit (30 Values)

Run itChange the inputs and watch the output
Serial monitor115200 baud
Lat: 12.971599  Lng: 77.594562  Sats: 8  km/h: 0.00

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question