Engaged with Tech
YouTube
Flipboard
𝕏
No Result
View All Result
  • Artificial intelligence
  • Business
  • Smartphones
  • Science
  • Automotive
  • Cybersecurity
  • Crypto
  • Gaming
  • Military
  • Research
  • How to
  • About
    • About & Contacts
    • Privacy policy
    • Terms & Conditions
    • Editorial Code of Conduct
  • Artificial intelligence
  • Business
  • Smartphones
  • Science
  • Automotive
  • Cybersecurity
  • Crypto
  • Gaming
  • Military
  • Research
  • How to
  • About
    • About & Contacts
    • Privacy policy
    • Terms & Conditions
    • Editorial Code of Conduct
No Result
View All Result
TechGaged.com
No Result
View All Result
𝕏

How to write a GPS receiver from scratch

by Ana Zirojević
March 19, 2025
in Computer & IT, How to, Research, Smartphones & IoT
How to write a GPS receiver from scratch

How to write a GPS receiver from scratch

Making your own GPS receiver from scratch? It’s certainly possible. All you need is a radio receiver, some software to decode the signals sent down from space, a bit of technical know-how, and perhaps some guidance from an expert – and you’re good to go.

Indeed, GPS is a fascinating piece of modern technology we often take for granted (how did people ever manage to find their way around with just paper maps???), allowing us to locate objects wherever on the planet they might be and take us from point A to point B with no issues.

As with most of the really cool tech, it was originally made for the military and, at the beginning, its ‘coarse’ positioning was only capable of accuracy within a few hundred meters. This legacy code was the first thing that programmer Chris Doble tackled to create his own GPS receiver from scratch.

Running it is possible from pre-recorded sample files or a connected RTL-SDR (a super-cheap USB dongle that can be used as a computer-based radio scanner for receiving live radio signals in your area without internet) and estimates are usually within a few hundred meters of the true location.

Specifically, Doble wrote the code for it in Python with no runtime dependencies other than aiohttp (for the accompanying dashboard), NumPy, Pydantic (for data sterilization), and pyrtlsdr, and shared the process on his YouTube channel, as well as his GitHub account. 

Upon testing it with the accompanying web-based dashboard that shows location estimates and satellite information, the receiver managed to resolve a location rather quickly – in 24 seconds from a cold start – and then display its information in a browser window.

Doble’s GPS receiver setup. Source: Chris Doble / YouTube
Doble’s GPS receiver setup. Source: Chris Doble / YouTube

What you’ll need to make a GPS receiver from scratch

According to the GitHub repository of Doble’s GPS receiver project, which contains a Python package that processes samples of GPS signals from a file or SDR dongle to estimate a clock bias and location, you’ll also need to run the dashboard.

This is because the gpsreceiver package provided by Doble only logs information to stdout, e.g. when satellites are acquired or a solution is computed, but doesn’t have a graphical interface.

GPS receiver’s display. Source: Chris Doble
GPS receiver’s display. Source: Chris Doble

In terms of setup – first, you’re going to need proper hardware. If you want to record your own samples or run the receiver in real-time from an RTL-SDR, you’ll need a GPS antenna and (optionally) a ground plate. As for the software, you’ll use the following code:

python -m venv .env
source .env/bin/activate
pip install -r requirements.txt

Running the GPS receiver setup from a file

If running the setup from a file, it will need to have a series of I/Q samples recorded at a rate matching SAMPLES_PER_MILLISECOND in config.py (the default rate is 2.046 MHz). The samples’ I and Q components must be represented by 32-bit floats and be interleaved, i.e:

[32-bit float][32-bit float][32-bit float][32-bit float]…
      ^             ^             ^             ^
  Sample 0 I    Sample 0 Q    Sample 1 I    Sample 1 Q

You can pass the file to the GPS receiver by running the following from within the gpsreceiver directory:

python -m gpsreceiver -f $FILE_PATH -t $START_TIMESTAMP

Here, $FILE_PATH is the path to the file and $START_TIMESTAMP is the Unix time when the samples began being recorded.

As Doble explained, Phillip Tennen made such a file available as part of his Gypsum project. It contains about 13 minutes of samples recorded from St Ives in the UK. To use it:

  1. Download nov_3_time_18_48_st_ives.zip from here
  2. Unzip it.
  3. Run python -m gpsreceiver -f nov_3_time_18_48_st_ives -t 1699037280.

If you want to record your own file:

  1. Connect your antenna to your RTL-SDR and your RTL-SDR to your computer.
  2. Install GNU Radio.
  3. Open the GNU Radio Companion (GNURC) by running gnuradio-companion.
  4. Open rtl_srd_gps_sampler.grc in GNURC.
  5. Click play in GNURC. A window will open.
  6. Record data for as long as you’d like.
  7. Close the window that opened in step 5.
  8. There will be a new file called samples-TIMESTAMP.
  9. Run python -m gpsreceiver -f samples-TIMESTAMP -t TIMESTAMP.

Running the GPS receiver from an RTL-SDR

If you’re running your setup from an RTL-SDR, then you should use the code:

python -m gpsreceiver –rtl-sdr

Development

# Autoformat
make format

# Type check
make type_check

Dashboard

Referring to the dashboard, Doble pointed out that it takes information from the receiver’s HTTP server and renders it in a web-based interface, as well as that the receiver only exposes an HTTP server when running from a file, whereas “doing so when running from real-time RTL-SDR data causes the receiver to miss data and lose lock on satellites.”

Setup

pnpm install

# A Google Maps API key is required to show location estimates on a map. Replace
# the ellipses (…) with your API key. See here[1] for more instructions.
#
# 1: https://developers.google.com/maps/documentation/javascript/cloud-setup
echo “VITE_GOOGLE_MAPS_API_KEY=…” >> .env.local

# If you know the receiver’s actual location and want to show it on the map to
# compare it with the estimated location, set this environment variable. Replace
# LAT and LNG with the receiver’s actual latitude and longitude.
echo “VITE_ACTUAL_LOCATION=LAT,LNG” >> .env.local

Running

pnpm start

Here, Doble noted that the GPS receiver must be running in order for data to be available to the dashboard.

Development

# Autoformat
pnpm format

# Generate dashboard/src/http_types.ts from gpsreceiver/gpsreceiver/http_types.py.
#
# Run from the root of the repository.
./bin/generate_dashboard_types.sh

# Lint
pnpm lint

# Type check
pnpm type_check

For Doble’s detailed walkthrough and resources for the entire process of making your own GPS receiver from scratch, visit the project’s GitHub repository and its developer’s YouTube playlist, and you’ll be ready in no time.

Meanwhile, NASA has managed to acquire and track GPS navigation signals on the surface of the Moon with its Lunar GNSS Receiver Experiment, making it the first technology demonstration to get Earth-based navigation signals on our planet’s only natural satellite.

What do you think?

Join Techgaged on Telegram

Get first-access to daily trending tech stories, AI breakthroughs, and more, before it hits your feed.

Subscribe

SUBSCRIBE to our YouTube channel ▶️
Over 6,000m² of pure car culture. On October 25th, Vilnius hosted the biggest car season closing event of the year – RHS Tuning Car Show 2025 at Litexpo Exhibition Center. This is what happened when Europe's most creative builds, passionate enthusiasts, and automotive culture collided in one massive showcase.

From professional tuning projects to timeless classics, from drift builds to stance perfection – this aftermovie captures the energy, creativity, and passion that makes RHS the ultimate celebration of modified car culture in the Baltics.

🎯 WHAT YOU'LL SEE:
→ Unique custom builds from across Europe
→ Professional tuning projects and creative modifications
→ Classic car showcases
→ The atmosphere that makes RHS legendary
→ TOP 10 awards and Best One winner reveal

🏆 EVENT HIGHLIGHTS:
• 6,000+ m² of exhibition space
• 100+ unique cars and custom projects
• Visitors from across Europe
• Powered by Mantas Wizard, Red Bull, and DJ Car
• Interactive zones by SONAX, Liqui Moly, and Visų Šventų Tattoo

RHS Tuning Car Show 2025 once again proved that automotive culture in Lithuania is alive, creative, and rapidly growing. This is more than a car show – it's a celebration of passion, craftsmanship, and the community that keeps car culture thriving.

📌 Subscribe for more exclusive event coverage and cinematic stories about the trends and culture shaping our world.

🎥 All event footage captured with official media accreditation and permission.

#RHS2025 #TuningCarShow #CarCulture #ModifiedCars #Vilnius #Lithuania #Aftermovie #CarShow #TuningLife #CustomCars #CarMeet #AutomotiveCulture #CarEnthusiast #Litexpo
LITHUANIA'S BIGGEST TUNING CAR SHOW 2025 | RHS AFTERMOVIE
For centuries, witnesses around the world have reported glowing spheres drifting through the air – sometimes floating harmlessly, sometimes exploding with deadly force. Once dismissed as myth, ball lightning has defied science for over 250 years. But in 2012, on a remote plateau in China, cameras finally captured the impossible. What researchers discovered could rewrite our understanding of nature itself.

In this video, you’ll discover:
- The shocking 1753 tragedy that made ball lightning famous;
- How scientists in China filmed a glowing orb of plasma for the first time in history;
- The “burning dirt” theory – why vaporized silicon might hold the key;
- How mysterious orbs can pass through glass and appear inside airplanes;
- Competing theories like the “microwave bubble” model;
- The ongoing quest to recreate ball lightning in the lab;
- Why understanding this mystery could make the skies and our planet safer.

👉 Do you think ball lightning is a misunderstood natural event or something science still can’t explain? Share your thoughts in the comments, hit like, and subscribe for more deep dives into Earth’s greatest mysteries.

Chapters:
 0:00 Intro
 0:41 The Breakthrough on the Plateau
 2:42 The Hunt for an Explanation
 5:03 The Current Frontier
 6:33 What’s next?

#BallLightning, #AtmosphericPhysics, #NaturalMystery, #LightningMystery, #ScienceDocumentary, #UnexplainedPhenomena, #LightningScience, #WeatherPhenomena, #EarthMysteries, #MysteriousEvents
BALL LIGHTNING PHENOMENA: EARTH’S MOST UNEXPLAINED NATURAL EVENT
In 1950, Alan Turing predicted machines that could think and talk like humans — and the world laughed at him. He called it The Turing Test: if you couldn't tell whether you were chatting with a person or a machine, then maybe the machine was intelligent. But that "crazy" prediction sparked 70 years of research… and eventually gave us ChatGPT in your pocket today.

#AIHistory #ChatGPT #AlanTuring #ArtificialIntelligence #TuringTest #AIOrigins #TechHistory #AIShorts #OpenAI #MachineLearning #AIExplained #TechShorts #AIRevolution #FutureOfAI #HistoryOfAI
He Predicted ChatGPT in 1950 and Everyone Laughed at Him #shorts
Over 70 years before ChatGPT, a handful of dreamers already predicted Artificial Intelligence — and the world laughed. From Alan Turing’s bold question “Can machines think?” to billion-dollar breakthroughs and the rise of ChatGPT, this is the untold story of how an impossible idea survived ridicule, failure, and winters to reshape humanity’s future.

In this video, you’ll discover:
- How Alan Turing’s 1950 question became the foundation of AI;
- The secret meeting at Dartmouth that gave Artificial Intelligence its name;
- Early AI experiments like ELIZA and MYCIN — and why they failed;
- The AI Winter that nearly killed the entire field;
- Geoffrey Hinton’s neural network comeback and Deep Blue’s historic chess win;
- The rise of deep learning, GPUs, and data-driven AI;
- The Transformer revolution and how ChatGPT changed everything.

👉 Do you think AI is humanity’s greatest invention—or our biggest risk? Share your thoughts in the comments, hit like, and subscribe for more deep dives into the truth behind technology.

Chapters:
0:00 Intro
0:30 Alan Turing & The Turing Test
1:11 The Dartmouth Workshop – Birth of AI
1:55 Early AI & Expert Systems
2:28 The AI Winter
3:04 Neural Nets & The Early Revival
3:49 The Deep Learning Boom
4:20 Transformers & ChatGPT
5:00 The Future of AI

#AIHistory #ChatGPT #ArtificialIntelligence #AlanTuring #DeepLearning #NeuralNetworks #OpenAI #TechHistory #AIDocumentary #MachineLearning #TuringTest #GPT #AIExplained #FutureOfAI #TechDocumentary
The Origins Of AI: They Predicted ChatGPT In 1950 And Everyone Laughed
From fishing village to 13.5M people in ONE generation 🤯 The Shenzhen transformation story that changed the world. Watch the full video ⬆️

#Shenzhen #China #MadeInChina #UrbanTransformation #Economics #Manufacturing #Documentary #TechHistory #GlobalEconomy #ChineseHistory #worldfactory
How China’s Fishing Village Became a Megacity?
For decades, the world has seen the label “Made in China” stamped on everything from sneakers to smartphones. But China’s rise as the “world’s factory” wasn’t just about cheap labor — it was the result of bold reforms, ancient traditions, and a strategy that blended history with innovation.

In this video, you’ll discover:
- How Deng Xiaoping’s 1978 “Reform and Opening Up” transformed China’s economy;
- The rise of Shenzhen and Special Economic Zones that attracted global factories;
- How China became the largest exporter and lifted millions out of poverty;
- The hidden role of the Digital Silk Road in extending China’s global influence;
- How smart cities and AI are preserving ancient heritage sites;
- The revival of traditional artisans through e-commerce and livestreaming;
- China’s future: from Made in China 2025 to AI, robotics, and green energy.

👉 Do you think China will remain the world’s factory — or evolve into something even bigger? Share your thoughts in the comments, hit like, and subscribe for more deep dives into global power shifts.

Chapters:
0:00 Intro
0:47 Building the World’s Factory
2:21 The Hidden History Behind the Factory
4:15 Beyond the Factory Model
5:09 What’s Next

#MadeInChina #ChinasEconomy #WorldsFactory #BeltAndRoad #DigitalSilkRoad #China2025 #ChineseHistory #Shenzhen #EcommerceChina #SmartCities #GlobalEconomy #ChinaInnovation #FactoryOfTheWorld #ChinaTrade #ChinaExplained
THE SECRET RISE OF CHINA: HOW IT BECAME THE WORLD’S FACTORY
Sam Bankman-Fried, once hailed as the ‘Crypto King,’ is sentenced to 25 years in prison after the $8 billion FTX collapse. This shocking crypto scam rocked the world and left thousands without their funds. This is just one tech scandal. Watch the full video to see all 6 explosive stories.

#FTX #SamBankmanFried #cryptoscam #cryptonews #SBF #prison #CryptoFraud #FTXCollapse #CryptoCrash #FinancialFraud #shorts #trending
Biggest Crypto Scam Ever Exposed! #shorts
She promised to revolutionize healthcare with just one drop of blood. Elizabeth Holmes fooled investors, patients, and Silicon Valley with fake technology. Theranos soared to a $9 billion valuation before the truth came out—it never worked. Now she's serving 11 years in prison for the biggest healthcare fraud in history. This is just one scandal. Google, Apple, Facebook – they all have shocking secrets too. Watch the full video to uncover all 6 scandals! 🚀

#Theranos #ElizabethHolmes #TechScandal #MedicalFraud #SiliconValley #Fraud #BloodTest #TheDropout #TechExposed #Shorts #StartupScandal #BusinessFraud
Elizabeth Holmes Fooled Everyone: Theranos $9B Healthcare Scam #shorts
A single lie cost $900 million. Apple's software update betrayed 500 million users. A crypto exchange vanished with $8 billion overnight.
This is Big Tech’s dark side – fraud, manipulation, and criminal cover-ups behind every shiny launch.
And that's just a beginning! Watch the full video to uncover all 6 scandals! 🚀

#BigTech #TechScandal #Fraud #Lies #Exposed #TechNews #apple #google #meta #facebook #ftx #theranos #ebay #shorts #short #ElizabethHolmes #FTXCollapse #SamBankmanFried #CambridgeAnalytica #AppleBatterygate #TechFraud #CryptoScandal #FraudDocumentary #TechNews #StartupFraud #CorporateScandal #iphone
The SHOCKING Truth About Big Tech! #shorts
Load More... SUBSCRIBE

Tags: DIYglobal positioningglobal positioning systemGPSGPS receiverhardwarehow-toITNASAradioreceiversignalsoftwareTechnology

Related Posts

A wooden judge’s gavel, balance scale, and stack of old law books on a dimly lit desk, symbolizing justice and legal proceedings.
Business & Technology

Lawsuit says Roblox became ‘a school shooter’s playground’ under a16z

by Ana Zirojević
October 29, 2025

A new lawsuit filed in Kentucky accuses Roblox and its top investors, Andreessen Horowitz (a16z) and Kleiner Perkins, of enabling...

Read moreDetails
A picture of Chinese president

How China became the ‘world’s factory’: The hidden history

October 13, 2025
A military drone

NASA and War Department set to put autonomous cargo drones in the air

September 12, 2025
Tesla deploys first-ever Unsupervised FSD in Europe - but there’s a catch

Tesla deploys first-ever Unsupervised FSD in Europe – but there’s a catch

September 5, 2025
40% of Coinbase code now written by AI, CEO reveals

40% of Coinbase code now written by AI, CEO reveals

September 4, 2025
Samsung TV meltdown: Streaming apps suddenly unusable

Samsung TV meltdown: Streaming apps suddenly unusable

August 1, 2025
Load More

🔝 Popular

  • A metallic Bitcoin with a red arrow pointing down showing a price crash

    Crypto Crash Could Worsen as Bitcoin Inches Towards New Death Cross

    0 shares
    Share 0 Tweet 0
  • Cardano Flashes Buy Signal – Plot Twist Incoming?

    0 shares
    Share 0 Tweet 0
  • EU to get Apple’s Live Translation on Airpods Next Month

    0 shares
    Share 0 Tweet 0
  • DOGE Trendline Breakout: Fakeout or Face-Melter?

    0 shares
    Share 0 Tweet 0
  • Polish Ranked Top Language for Prompting AI – English in 6th Place

    0 shares
    Share 0 Tweet 0

Latest

A futuristic humanoid robot with a sleek red-and-white face and exposed mechanical components, symbolizing advanced artificial intelligence and robotics technology.
Artificial intelligence

Polish Ranked Top Language for Prompting AI – English in 6th Place

by Ana Zirojević
November 5, 2025

As artificial intelligence (AI) becomes more commonplace, Polish has emerged as the most effective language for prompting, outperforming English, Spanish,...

A stylized Dogecoin Shiba Inu overlaid on a crypto price chart with trendlines, symbolizing DOGE breaking out of a bullish pattern.

DOGE Trendline Breakout: Fakeout or Face-Melter?

November 5, 2025
Cardano coins in front of rising blue and orange price candles, symbolizing ADA market momentum and a potential bullish signal.

Cardano Flashes Buy Signal – Plot Twist Incoming?

November 5, 2025
Two mean sitting across from each other talking using Apple Airpods Live Translation

EU to get Apple’s Live Translation on Airpods Next Month

November 5, 2025
A picture of president Donald Trump answering questions in a press conference

White House’s “End of Crypto War” Speech Rejected as Market Bleeds

November 5, 2025

Categories

  • Artificial intelligence
  • Bitcoin & Crypto
  • Business & Technology
  • Automotive
  • Computer & IT
  • Cybersecurity
  • Gaming
  • Research
  • Science
  • Smart devices
  • Guides & Reviews

About

Techgaged.com is a go-to source for the latest insights and updates in the world of technology. We provide comprehensive coverage of advancements, trends, and innovations across various sectors, including electronics, software, AI, cybersecurity, and more.

Email for advertising requests: hello@techgaged.com

Pages

  • About
  • Editorial Code of Conduct
  • Homepage
  • News
  • Privacy Policy
  • Terms & Conditions

RSS RSS

  • Polish Ranked Top Language for Prompting AI – English in 6th Place November 5, 2025
  • DOGE Trendline Breakout: Fakeout or Face-Melter? November 5, 2025
  • Cardano Flashes Buy Signal – Plot Twist Incoming? November 5, 2025
  • EU to get Apple’s Live Translation on Airpods Next Month November 4, 2025
  • White House’s “End of Crypto War” Speech Rejected as Market Bleeds November 4, 2025
  • Google Meet Integrates Chat Feature for Smoother Communication November 4, 2025
  • Crypto Crash Could Worsen as Bitcoin Inches Towards New Death Cross November 4, 2025
  • Artificial intelligence
  • Business
  • Smartphones
  • Science
  • Automotive
  • Cybersecurity
  • Crypto
  • Gaming
  • Military
  • Research
  • How to
  • About

© 2020-2025 Technology news - TechGaged.com.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Artificial intelligence
  • Business
  • Smartphones
  • Science
  • Automotive
  • Cybersecurity
  • Crypto
  • Gaming
  • Military
  • Research
  • How to
  • About
    • About & Contacts
    • Privacy policy
    • Terms & Conditions
    • Editorial Code of Conduct

© 2020-2025 Technology news - TechGaged.com.