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. ›Raspberry Pi GNSS HATs

Component guide · Intermediate · 3 min read

Raspberry Pi GNSS HATs

Waveshare L76K GPS HAT, u-blox MAX-M8Q HAT and SparkFun GNSS Flex pHAT LG290P (RTK)

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Raspberry Pi GPS and GNSS HATs isRaspberry Pi GPS and GNSS HATs pinoutWiring the Raspberry Pi GPS and GNSS HATsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

A GNSS HAT gives a Raspberry Pi its position and very accurate time from GPS, GLONASS, BeiDou, Galileo and NavIC satellites. The L76K HAT is a simple, low-cost choice; the u-blox MAX-M8Q HAT is sensitive and well supported; the SparkFun LG290P pHAT is multi-band and can reach centimetre accuracy with RTK corrections. They talk to the Pi over UART.

Key specs at a glance

Modules
Quectel L76K, u-blox MAX-M8Q, Quectel LG290P
Systems
GPS, GLONASS, BeiDou, Galileo, QZSS (NavIC on LG290P)
Accuracy
About 2 m; 1 cm with RTK on LG290P
Interface
UART at 9600 or 115200 baud, PPS pin
Antenna
u.FL or SMA, active antenna recommended
Backup
Coin cell keeps the almanac for fast fixes

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1Waveshare L76K GPS HAT for Raspberry Pi₹2,537
  • Option 2Waveshare u-blox GNSS HAT for Raspberry Pi₹3,400
  • Option 3SparkFun GNSS Flex pHAT – LG290P for Raspberry Pi₹18,599
01

What the Raspberry Pi GPS and GNSS HATs is

Raspberry Pi GNSS HATs add GPS or RTK receivers to a Pi for tracking, mapping, NTP time servers and robotics, using modules like the u-blox NEO-M8, ZED-F9P or Quectel L76.

The HATs send NMEA sentences on the Pi's UART. Disable the serial console in raspi-config, enable the serial port, then run gpsd to share the position with any program. The PPS pin lets chrony set the Pi's clock to within microseconds.

Indoors there is usually no fix; put the antenna by a window or outside.

02

Raspberry Pi GPS and GNSS HATs pinout

The pins on the Raspberry Pi GPS and GNSS HATs and what each one does.

PinFunction
TX / RXGPIO14/15 UART
PPSOne pulse per second for precise time
Antennau.FL or SMA
Backup batteryKeeps time and satellite data
PinFunction
TX / RX
GPIO14/15 UART
PPS
One pulse per second for precise time
Antenna
u.FL or SMA
Backup battery
Keeps time and satellite data
03

Wiring the Raspberry Pi GPS and GNSS HATs

The first fix can take a few minutes outdoors. A coin cell on the board makes later fixes take seconds.

Raspberry Pi GPS and GNSS HATs pinConnectionNote
UARTGPIO14 TX, GPIO15 RXSerial console off, serial port on
PPSGPIO18 on most boardsCheck the wiki
AntennaActive GNSS antennaClear sky view
UART
Connection:
GPIO14 TX, GPIO15 RX
Note:
Serial console off, serial port on
PPS
Connection:
GPIO18 on most boards
Note:
Check the wiki
Antenna
Connection:
Active GNSS antenna
Note:
Clear sky view
04

Example code

Run cgps -s for a quick check. For RTK on the LG290P feed RTCM corrections from an NTRIP caster with str2str or RTKLIB.

Read position with gpsd · MicroPython
# sudo apt install gpsd gpsd-clients python3-gps
# sudo nano /etc/default/gpsd   ->  DEVICES="/dev/serial0"
import gps

s = gps.gps(mode=gps.WATCH_ENABLE)
while True:
    r = s.next()
    if r["class"] == "TPV" and getattr(r, "lat", None):
        print(f"{r.lat:.6f}, {r.lon:.6f}  alt {getattr(r, 'alt', 0):.1f} m")
05

Setup and tuning

Serial

enable the UART in raspi-config and disable the serial console.

Software

use gpsd and cgps to read position.

PPS

connect the PPS pin and use chrony for a precise time server.

Antenna

use an active antenna with a sky view.

RTK

for ZED-F9P HATs, add NTRIP corrections using RTKLIB or str2str.

06

What you need

Shop this list6 of 7 found in our store · ₹36,596

  • Waveshare L76K GPS HAT for Raspberry Pi: the part this guide coversWaveshare L76K GPS HAT for Raspberry Pi₹2,537
  • Waveshare u-blox GNSS HAT for Raspberry Pi: another version this guide coversWaveshare u-blox GNSS HAT for Raspberry Pi₹3,400
  • SparkFun GNSS Flex pHAT – LG290P for Raspberry Pi: another version this guide coversSparkFun GNSS Flex pHAT – LG290P for Raspberry Pi₹18,599
  • Raspberry Pi 4 Model B (4 GB): the most common HAT hostRaspberry Pi 4 Model B with 4GB RAM₹11,461Closest match, check the specs
  • Raspberry Pi 5 (4 GB): runs the modem, bus or GNSS softwareRaspberry Pi 5 RTC Battery (Rechargeable, JST)₹149Closest match, check the specs
  • Waveshare GNSS active antenna: needs a clear view of the skyWaveshare GNSS Active Antenna₹450
  • GNSS and LTE combination antenna: one mount for both signalsFind this part
07

Alternatives and when to choose them

  • ✓NEO-7M and NEO-8M modules: for microcontrollers.
  • ✓RTK GNSS breakouts: centimetre accuracy.
  • ✓GPS antennas: better reception.
08

Common mistakes to avoid

  • !Leaving the serial console on.
  • !Testing indoors.
  • !No PPS for time servers.
  • !Passive antennas on long cables.
09

Frequently asked questions

How do I read GPS on a Raspberry Pi?

Enable the UART, install gpsd and view data with cgps.

Can a Pi be a GPS time server?

Yes, with PPS and chrony it gives microsecond-level time.

Why does gpsd show no fix?

The antenna lacks sky view or the serial console still uses the UART.

Can I get centimetre accuracy?

Yes, with an RTK HAT such as a ZED-F9P plus base station or NTRIP corrections.

Do I need an active antenna?

Yes, when the Pi is indoors or the antenna cable is long.

Parts for this guide

  • Waveshare L76K GPS HAT for Raspberry Pi
    ₹2,537View
  • Waveshare u-blox GNSS HAT for Raspberry Pi
    ₹3,400View
  • SparkFun GNSS Flex pHAT – LG290P for Raspberry Pi
    ₹18,599View
  • Raspberry Pi 4 Model B with 4GB RAM
    ₹11,461View
  • Raspberry Pi 5 with 4GB RAM
    ₹14,079View
  • Waveshare GNSS Active Antenna
    ₹450View
  • JC Antenna GNSS + LTE Combination Antenna
    ₹845View
Shop Expansion Boards & HATs

Keep learning

Component guideBeginnerNEO-7M and NEO-8M (M8L-03A) GPS ModulesNEO-7M and NEO-8M modules are the next step up from the NEO-6M: faster fixes and, on M8 parts, GPS plus GLONASS or BeiDou.3 min read · IoT & WirelessComponent guideAdvancedRTK GNSS BreakoutsThese boards bring centimetre-level RTK to Arduino, ESP32 and Raspberry Pi projects such as rovers, lawn robots and surveying.3 min read · IoT & WirelessComponent guideBeginnerActive GPS AntennasAn active GPS antenna has a small amplifier inside, powered through the coax, so it can sit on a roof or vehicle with the module inside.4 min read · Drones & FPV

Sources

  • Waveshare L76K GPS HAT wiki
  • SparkFun GNSS Flex pHAT guide

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

On this page
Short answerWhat the Raspberry Pi GPS and GNSS HATs isRaspberry Pi GPS and GNSS HATs pinoutWiring the Raspberry Pi GPS and GNSS HATsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon 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 guide3 items · ₹6,387

Waveshare L76K GPS HAT for Raspberry Pi · Waveshare u-blox GNSS HAT for Raspberry Pi · Waveshare GNSS Active Antenna

Run itChange the inputs and watch the output

gpsd reads the HAT; each TPV report with a position is printed.

Shell
12.971642, 77.594563  alt 920.1 m

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