GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign In
  • My Cart
  • Featured
  • Gift Card
  • GPS / GNSS
  • GPS / GNSS Boards
  • High Precision GNSS Boards
  • GPS / GNSS Accessories
  • GPS / GNSS Antennas
  • GPS / GNSS Modules
  • RTK Surveyors
  • Global Tracking
  • GNSS Timing
  • Sensors

This view

  • Original page
  • New address

GeezerVison is showing www.sparkfun.com — Building A GPS System - SparkFun Electronics

Building A GPS System


Thanks to the efforts of brilliant engineers and scientists, GPS (Global Positioning System) is a cornerstone technology in our world today. Whether it's from our vehicle's navigation system or a handheld device while hiking through the woods, we are now able to pinpoint our exact latitude and longitude from satellites orbiting the earth. Pretty crazy, right? Come along with us and learn what it is, how it works and how you can make your own GPS system.

Learn about the history of GPS, how it works and how it came to be an integral technology in today's world.

How does GPS work?

At Medium Earth Orbit (12,550 miles), there are approximately 31 satellites in operation at any given time. This is a relatively large system, run with careful planning and calibration. The principle idea is math. Wait! Let me finish. Your receiver pinpoints location by calculating the distance between you and that satellite. This is done by multiplying the rate of signal (speed of light) by the atomic clock time on the satellite. You can get your location from three satellites, but it will not be as accurate – four satellites are needed to determine your location in three dimensions. Three satellites are needed for x, y and z coordinates, and one satellite to determine the time it took the signal to travel from the satellites to the receiver (see images below).

Four satellites are needed to find an accurate location: X, Y and Z axes, and a clock reading.

Satellite Technology

Ok, cool. So satellites are zipping around spitting out location data, and if I’m in the line of sight then my receiver will tell me my location. Is that it? No, not exactly. We’ve just taken a small step into GPS technology as a whole. We’ve established there are two key parts, satellites and receivers, so now let’s look closer. A receiver is usually a chip that can receive an electromagnetic wave and translate it into readable data. These systems can range from a standalone chip, to a breakout board, to a fancy complete user system, like in a car. If you’re making a project around these types of technologies, you’ll have to understand the three main features they all need to work. For a GPS module you’ll need an antenna, an integrated system to perform math and data communication, and a communication protocol output that feeds to the user or end system.

Antenna

Any wireless communication system will feature the almighty antenna. In short, we’re looking for a conductive metal that, when hit with electromagnetic waves, an electric current inside the conductor will flow. Think of slapping a pool and watching waves ripple on the water. This current flows in a specific way, controlled by the electromagnetic wave. There is an entire engineering discipline dedicated to making antennas, so we won’t go too deep. But, this is an important component for the next part of the system.

Integrated System

There is no exact standard for this portion, but we need electronics to filter out unwanted wave frequencies and read the ones we’re interested in. These systems can be complex, as with GPS-RTK, or simple for regular GPS. A basic recipe would be a filter, signal decoder and some communication output. We use a variety of chips, and each has their own advantages and disadvantages. So how do we communicate with these chips?

Communication Protocols

Let's assume you’ve heard of or have some experience with common communication methods between electronics, like Serial, I2C, SPI, etc. These are hardware-level, computer-to-computer communication methods, but GPS has an extra layer on top. How do we account for many satellites zipping around spitting out their own languages? We introduce GPS communication protocols, which is just a fancy way of saying standardizing. Meet the NMEA-0183 standard: this basically breaks down signals into sentences.

When the signal is decoded into this standard, the once-electromagnetic wave becomes readable to humans. Throw it on communication method lines, and our computer can show us our location.

If you would like to learn even more about GPS, check out our GPS Basics page below.

GPS Basics

The Global Positioning System (GPS) is an engineering marvel that we all have access to for a relatively low cost and no subscription fee. With the correct hardware and minimal effort, you can determine your position and time almost anywhere on the globe.

Finding Your First Location


Now that we've covered the basics with GPS, it's time to dive right in. We've put together a few simple tutorials to introduce you to the hardware and coding needed to build your first GPS project.

Displaying Your Coordinates With A GPS Module

This Arduino tutorial will teach you how to pinpoint and display your GPS coordinates with a press of a button using hardware from our Qwiic Connect System (I2C).

GPS Geo-Mapping At The Push Of A Button

Let's ramp up our GPS tracking skills with KML files and Google Earth. We'll make a tracker that logs location and allows us to visualize our steps with Google Earth.

Make sure to look at our hookup guides!

When learning how to use GPS hardware, one of the best ways to learn is to view the hookup guides. For each product SparkFun carries we have an associated hookup guide on the product pages located under the description. We do our best to walkthrough all the connections needed, associated libraries and a working demonstration or two to get your project off the ground.

Step Up In Accuracy And Precision


With technological advances in GPS receivers, we are able to achieve positional accuracy to one centimeter and even keep your bearing when there is little to no signal.

Real-Time Kinematics (RTK)

GPS receivers capable of RTK take in the normal signals from the Global Navigation Satellite Systems (GNSS) along with a correction stream to achieve 1cm positional accuracy. On top of these signals an RTK receiver takes in an RTCM correction stream and then calculates your location with 1cm accuracy in real time. The rate varies between receivers but most will output a solution at least once per second; some receivers can output this higher precision solution up to 20 times a second. Learm more about RTK in our What is GPS RTK tutorial.

What Is GPS RTK?

Learn about the latest generation of GPS and GNSS receivers to get 14mm positional accuracy!

Dead Reckoning

Navigating a dense city, short tunnel or parking garage can provide poor signal quality or complete signal loss. These issues can be overcome with dead reckoning; the process of determining current position by combining previously determined positional data with speed and heading. 3D inertial measurement units (IMUs) and vehicle distance data (e.g. wheel ticks, and odometers) can be used to continually calculate a vehicles current position when GNSS data momentarily fails. Dead Reckoning can be achieved with our GPS Dead Reckoning NEO-M8U breakout board.

Best of Both Worlds

Putting together both real-time kinematics and dead reckoning used to be a task that required thousands of dollars of special equipment. Luckily technolgy has advanced to the point where achieving incredible untethered accuracy is much more accessable. SparkFun makes two boards (the GPS-RTK Dead Reckoning Breakout and the GPS-RTK Dead Reckoning pHAT for Raspberry Pi) to do just that. These boards will require a fair amount of end-user work to set up and calibrate as they are made for professional applications.


Find Your Hardware


As with any technology, GPS hardware comes in many shapes and sizes to fit the specific needs of your project. Below we have listed a few of our favorite breakout boards, antennas and modules.

Our Creative Technologist Rob takes us through the different types of GPS hardware and information to help you build the system right for you.

See Our GPS Buying Guide

GPS Breakout Boards

GPS breakout boards are equipped with a receiver, and have the ability to interface with your favorite development boards, such as a SparkFun RedBoard Qwiic.

  1. SparkFun GNSS Timing Breakout - ZED-F9T-20B (Qwiic)

    SparkFun GNSS Timing Breakout - ZED-F9T-20B (Qwiic)

    $314.95 As low as $267.71
    In stock
    Compare Add to Wish List
  2. SparkPNT GNSS Disciplined Oscillator Plus

    SparkPNT GNSS Disciplined Oscillator Plus

    $3,500.00
    In stock
    Compare Add to Wish List
  3. An assembled SparkFun mosaic-G5 P3 & IM19 IMU GNSS Flex pHAT from an angle.

    SparkFun GNSS Flex pHAT - mosaic-G5 P3 & IM19 IMU

    $874.95 As low as $743.71
    Backorder
    Compare Add to Wish List
  4. The SAM-M8Q Qwiic GNSS Receiver from an angle.

    SparkFun GNSS Receiver - SAM-M8Q (Qwiic)

    $36.95 As low as $31.41
    In stock
    Compare Add to Wish List
  5. SparkFun Allband GNSS RTK Breakout - mosaic-G5 P3

    SparkFun Allband GNSS RTK Breakout - mosaic-G5 P3

    $699.95 As low as $594.96
    In stock
    Compare Add to Wish List
  6. Featured image of the SparkFun GNSS Flex pHAT - mosaic-G5 P3 board.

    SparkFun GNSS Flex pHAT - mosaic-G5 P3

    $674.95 As low as $573.71
    Backorder
    Compare Add to Wish List
  7. A SparkPNT mosaic-G5 P3 & IM19 IMU GNSS Flex Module from an angle.

    SparkPNT GNSS Flex Module - mosaic-G5 P3 & IM19 IMU

    $849.95 As low as $722.46
    In stock
    Compare Add to Wish List
  8. SparkPNT GNSS Flex Module - mosaic-G5 P3

    SparkPNT GNSS Flex Module - mosaic-G5 P3

    $649.95 As low as $552.46
    In stock
    Compare Add to Wish List
  9. SparkFun GNSS Flex pHAT - mosaic-X5 & IM19 IMU

    SparkFun GNSS Flex pHAT - mosaic-X5 & IM19 IMU

    $799.95 As low as $679.96
    Backorder
    Compare Add to Wish List
  10. SparkPNT GNSS Flex Module - mosaic-X5 & IM19 IMU

    SparkPNT GNSS Flex Module - mosaic-X5 & IM19 IMU

    $774.95 As low as $658.71
    In stock
    Compare Add to Wish List
  11. SparkFun Quadband GNSS RTK with Heading Breakout - LG580P (Qwiic)

    SparkFun Quadband GNSS RTK with Heading Breakout - LG580P (Qwiic)

    $249.95 As low as $212.46
    In stock
    Compare Add to Wish List
  12. SparkFun GNSS Flex pHAT - LG580P

    SparkFun GNSS Flex pHAT - LG580P

    $224.95 As low as $191.21
    In stock
    Compare Add to Wish List
  13. SparkFun GNSS Flex Breakout

    SparkFun GNSS Flex Breakout

    $29.95 As low as $25.46
    In stock
    Compare Add to Wish List
  14. SparkFun GNSS Flex pHAT - ZED-X20P & IM19 IMU

    SparkFun GNSS Flex pHAT - ZED-X20P & IM19 IMU

    $449.95 As low as $382.46
    Backorder
    Compare Add to Wish List
  15. SparkFun GNSS Flex pHAT - ZED-X20P

    SparkFun GNSS Flex pHAT - ZED-X20P

    $299.95 As low as $254.96
    Backorder
    Compare Add to Wish List
See All GPS & GNSS Breakout Boards

Enclosed RTK Surveyors

RTK Surveyors are enclosed and ready to use GNSS receiver for millimeter-level positioning. No programming required!

  1. SparkPNT FP (No GNSS Receiver)

    SparkPNT FP (No GNSS Receiver)

    $1,400.00 As low as $1,190.00
    In stock
    Compare Add to Wish List
  2. SparkPNT FPL

    SparkPNT FPL

    $1,550.00 As low as $1,317.50
    In stock
    Compare Add to Wish List
  3. SparkPNT FPL-T

    SparkPNT FPL-T

    $1,700.00 As low as $1,445.00
    In stock
    Compare Add to Wish List
  4. SparkPNT FPM

    SparkPNT FPM

    $1,950.00
    In stock
    Compare Add to Wish List
  5. SparkPNT FPM-T

    SparkPNT FPM-T

    $2,100.00
    In stock
    Compare Add to Wish List
  6. SparkPNT FPX

    SparkPNT FPX

    $1,650.00
    In stock
    Compare Add to Wish List
  7. SparkPNT FPX-T

    SparkPNT FPX-T

    $1,800.00
    In stock
    Compare Add to Wish List
  8. A SparkPNT TX2 from an angle.

    SparkPNT TX2

    Special Price Current price: $1,124.96 Regular Price Original price: $1,249.95
    In stock
    Compare Add to Wish List
  9. SparkPNT RTK Facet mosaic

    SparkPNT RTK Facet mosaic

    $1,599.95
    Backorder
    Compare Add to Wish List
  10. SparkFun RTK Facet (Retired)
    Out of stock

    SparkFun RTK Facet (Retired)

    $699.95 As low as $594.96
    Compare Add to Wish List
  11. Main product image of SparkFun RTK Torch on a white background.
    Out of stock

    SparkFun RTK Torch

    $2,149.95 As low as $1,827.46
    Compare Add to Wish List
  12. SparkPNT RTK mosaic-X5

    SparkPNT RTK mosaic-X5

    $1,249.95 As low as $1,062.46
    In stock
    Compare Add to Wish List
  13. SparkFun RTK Reference Station

    SparkFun RTK Reference Station

    $739.95 As low as $628.96
    In stock
    Compare Add to Wish List
  14. The SparkFun RTK Facet in its black carrying case with accessories on a white background.

    SparkFun RTK Facet

    $739.95 As low as $628.96
    Backorder
    Compare Add to Wish List
  15. SparkFun RTK EVK
    Out of stock

    SparkFun RTK EVK

    $1,249.95 As low as $1,062.46
    Compare Add to Wish List
Learn More About RTK Surveyors

Antennas

Some projects require an antenna to better recieve signals from the satellites. Below are some of our favorites.

  1. An assembled SparkPNT Segmented Surveying Pole.

    SparkPNT Segmented Surveying Pole (1.8m)

    $120.00 As low as $108.00
    In stock
    Compare Add to Wish List
  2. A SparkPNT Surveying Bipod Attachment.

    SparkPNT Surveying Bipod Attachment

    $100.00 As low as $90.00
    In stock
    Compare Add to Wish List
  3. GNSS Multi-Band L1/L2/L5 Helical Antenna (Locking SMA)

    GNSS Multi-Band L1/L2/L5 Helical Antenna (Locking SMA)

    $99.95 As low as $89.96
    In stock
    Compare Add to Wish List
  4. GNSS L1/L2+L Embedded Surveying Antenna - 150mm (U.FL)

    GNSS L1/L2+L Embedded Surveying Antenna - 150mm (U.FL)

    $149.95 As low as $134.96
    In stock
    Compare Add to Wish List
  5. Iridium Qualified 9704 Helical Antenna

    Iridium Qualified 9704 Helical Antenna

    $109.95
    In stock
    Compare Add to Wish List
  6. GPS Antenna - TE Puck PCB Mount

    GPS Antenna - TE Puck PCB Mount

    $2.25 As low as $2.03
    In stock
    Compare Add to Wish List
  7. Molex Cube PCB Mount Antenna

    Molex Cube PCB Mount Antenna

    $2.60 As low as $2.34
    In stock
    Compare Add to Wish List
  8. Molex Ceramic Chip PCB Mount Antenna

    Molex Ceramic Chip PCB Mount Antenna

    $0.75 As low as $0.68
    In stock
    Compare Add to Wish List
  9. Ceramic Chip Antenna - W3062A

    Ceramic Chip Antenna - W3062A

    $1.95 As low as $1.76
    In stock
    Compare Add to Wish List
  10. Helix GPS Antenna - Molex Molded PCB Mount
    Out of stock

    Helix GPS Antenna - Molex Molded PCB Mount

    $1.95 As low as $1.76
    Compare Add to Wish List
See All GPS Antennas

Additional Resources


Here are a few other projects that use GPS. We are always trying to expand our library of projects and tutorials, so check back often or fill out the form above to be notified of new content.

Base station setupBase station setup

Setting Up A Rover Base RTK System

Getting GNSS RTCM correction data from a base to a rover is easy with a serial telemetry radio! We'll show you how to get your high precision RTK GNSS system setup and running.

rtk roof enclosurertk roof enclosure

How To Build A DIY GNSS Reference Station

Learn how to affix a GNSS antenna, use PPP to get its ECEF coordinates and then broadcast your own RTCM data over the internet and cellular using NTRIP to increase rover reception to 10km!

Qwiic clock setupQwiic clock setup

Qwiic GPS Clock

What time is it? Time for you to... Qwiic-ly build a GPS clock and output it to a display! This project provides you with the current date and time using GPS satellites. Read the date and time as a digital or analog clock. Or even configure the clock for military, your time zone, or automatically adjust the time for daylight savings time!

Get Heavy And Humid With This DIY GPS Humidity Tracker

Python And GPS Tracking Tutorial

Positional Monitoring Without GNSS?

Getting Started with U-Center For u-blox

Learn the tips and tricks to use the u-blox software tool to configure your GPS receiver.

RFID Beginners Tutorial

In this tutorial we'll revisit some RFID basics and practice by making a remote work logger using an RFID reader and a GPS module. You'll scan a card and get ID, location, and time. All the perfect data to punch in and punch out from the middle of Nowhere!

GPS vs GNSS

So you’re wondering what the difference is between GPS and GNSS? Good news, you’re not alone and you’ve come to the right place! In this blog, we’ll lay out the similarities, differences, and how each will fit into your next project.

Understanding GNSS Orbits

Check out our latest geospatial blog post - this time focusing on orbits, their uses, and which GNSS systems utilize them!

Get a Quote for

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.