New software to get you started with high-altitude ballooning
Right now, we’re working on an online project pathway to support you with all your high-altitude balloon (HAB) flight activities, whether you run them with students or as a hobby. We’ll release the resources later in the year, but in the meantime we have some exciting new HAB software to share with you!
Skycademy and early HAB software
Over the past few years, I’ve been lucky enough to conduct several high-altitude balloon (HAB) flights and to help educators who wanted to do HAB projects with learners. In the Foundation’s Skycademy programme, supported by UKHAS members, in particular Dave Akerman, we’ve trained more than 50 teachers to successfully launch near-space missions with their students.
Whenever I advise people who are planning a HAB mission, I tell them that the separate elements actually aren’t that complicated. The difficulty lies in juggling them all at the same time to successfully launch, track, and recover your balloon.
Over the years, some excellent tools and software packages have been developed to help with HAB launches. Dave Akerman’s Pi In The Sky (PITS) software gave beginners the chance to control their first payloads: you enter your own specs into a configuration file, and the software, written in C, handles the rest. Dave’s Long Range (LoRa) gateway software then tracks the payload, receiving balloon data and plotting the flight’s trajectory on a real-time map.
These tools, while useful, present two challenges to the novice HAB enthusiast:
- Exposing and adapting the workings of the software is challenging for novice learners, given that it is written in C
- The existing tracking software and tools are fragmented: one application received LoRa signals; another received radioteletype (RTTY) data; photos were received and had to be manually opened elsewhere; and so on
Introducing Pytrack and SkyGate
Making ballooning as accessible as possible is something we’ve been keen to do since we first got involved in 2015. So I’m delighted to reveal that over the past year, we’ve worked with Dave to produce two new applications to support HAB activities!
Pytrack
Pytrack is a Python implementation of Dave’s original PITS software, and it offers several advantages:
- Learners can create their own tracker in a simpler programming language, rather than simply configuring the existing software
- The core mechanics of the tracker are exposed for the learner to understand, but complex details are abstracted away
- Learners can integrate the technology with standard Python libraries and existing projects
- Pytrack is modular, allowing learners to experiment with underlying radio components
SkyGate
After our last Skycademy event, I started to look for a way to make tracking a payload in flight easier. For Skycademy, we made a hacky tracking box using a Pi, a 7” screen, and a very rough GUI app that I wrote in a hurry lovingly toiled over.
Since then, we have gone on to develop SkyGate, a complete tracking application which runs on a Pi and fits nicely on a 7” screen. It brings together all the tracking functionalities into one intuitive application:
- Live tunable LoRa reception and decoding
- Live tunable RTTY reception and decoding (with compatible USB SDR)
- Image reception and previewing
- GPS tracking to report your location (when using compatible GPS USB dongle)
- Data, images, and GPS upload functionality to HabHub tracking site
- An Overview tab presenting a high-level summary and bearing to payload
- Full customisation via the Settings tab
You can get involved!
We would love HAB enthusiasts to test and experiment with both Pytrack and SkyGate, and to give us feedback. Your input will really help us to write the full guide that we’ll release later this year.
To get started, install both programmes using your command prompt/terminal.
For your payload, run:
sudo apt update sudo apt install python3-pytrack
And your receiver, run:
sudo apt update sudo apt install python3-skygate
Follow this guide to start using Pytrack, and read this overview on SkyGate and what you’ll need for a tracking box. To give us your feedback, please raise issues on the respective GitHub repos: for Pytrack here, and for SkyGate here.
We’ve developed these software packages to make launching and tracking a HAB payload easier and more flexible, and we hope you’ll think we’ve succeeded.
Happy ballooning!
Disclaimer: each country has its own laws regarding HAB launches and radio transmissions in their airspace. Before you attempt to carry out your own HAB flight, you need to ensure you have permission and are complying with all local laws.
10 comments
Jon Witts
Does the Pytrack software works with the PITS and the PITS Zero boards?
Raspberry Pi Staff James Robinson — post author
It does indeed, I flew and recovered a payload last year with an early beta. Worked great (even if we crashed to payload as we launched)
Jon Witts
What USB GPS were you using for the Skygate device?
Cheers,
Jon
David Akerman
Anything will do. I use UBlox USB GPS dongles which you can get from Amazon/ebay for around £7.
Benoit Maag
Hi Dave,
Where can I find software to read data from a ublox dongle on a raspberry pi?
Thank you for your help
Benoit
Dave Akerman
Yes it works with either, RTTY and LoRa. Doesn’t do APRS (used in the USA mainly) which is an add-on board for the full-size PITS.
Functionally, the PyTrack software does all of the important PITS stuff, but currently omits some things (e.g. the add-on I2C sensors). Those can be easily added by anyone who wants to use them, by adding a Python library and a few lines of code to read the sensors and add their values to the telemetry. We could have included this support but the whole idea was to make it easier for users to do this themselves !
Jon Witts
Awesome! I have a PITS Zero kit that I am thinking of replacing the Zero with a Zero W to give myself built-in WiFi… Time to get another HAB club going at school I think!
idreams
Thank you for sharing.
But this tutorial will be useful when not dependent on specific hardware (Not just PITS boards). In addition, PITS boards is relatively expensive.
You must explain how to connect other LoRa and GPS modules and…
David Akerman
You can DIY a compatible tracker if you wish – all the schematics, Gerbers etc are in the PITS hardware github.
idreams
Thanks David Akerman.