Gypsum
GPS receiver from a raw antenna 🛰️
Install / Use
/learn @codyd51/GypsumREADME
gypsum is a homebrew GPS receiver written in Python. gypsum can carry out a position fix in less than 60 seconds of antenna readings from a cold start.
gypsum implements a GPS signal processing stack with no dependencies aside from numpy.
gypsum turns any commodity SDR into a GPS receiver. I primarily use an RTL-SDR, and have had success with a HackRF as well. Either of these can be paired with any patch antenna sensitive to 1.57542GHz.
This project comes with a 4-part writeup on implementing a GPS receiver from scratch.
https://github.com/codyd51/gypsum/assets/4972184/e72151fe-994e-4e5a-95b4-19e5c91d2b20
gypsum ships with a web-based dashboard that allows the user to monitor signal quality, track progress, position fix history, and satellite tracking pipeline state.
Using gypsum
The most convenient way to try out gypsum is to use a file containing saved antenna samples. This allows off-the-air development and signal replays.
I've uploaded a sample antenna recording to the Releases section of the repo. Download this file and place it in ./gypsum/vendored_signals/. gypsum needs information on what these files contain, so currently their info is hard-coded here. In the future, we could introduce a bespoke file format that includes the recording parameters and the antenna samples in-band.
# Install gypsum's dependencies
$ pip install -r requirements.txt
# If you want to use the web-based tracking dashboard
$ pip install -r requirements-webapp.txt
# Run gypsum against the cached antenna samples
# (And limit the satellite search scope for speed)
$ python3 gypsum-cli.py --file_name nov_3_time_18_48_st_ives --only_acquire_satellite_ids 25 28 31 32 --present_web_ui
# (In another shell)
# Launch the webserver to observe gypsum
$ gunicorn -b :8080 --timeout 0 web_dashboard:application
The receiver has various behaviors that can be tweaked by modifying config.py.
License
MIT
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
