Skip to content

HAB-toolbox

Software to assist in mechanics calculations, and simulations of high altitude baloon payloads.

Installation

We don't have a PyPI package yet! For now use Poetry.

Configuration management is handled by Poetry.

  1. Please install Poetry to use the HAB-toolbox.
  2. Clone this repository: git clone git@github.com:Brickworks/HAB-toolbox.git
  3. Install the package and its dependencies with Poetry: poetry install

Usage (with Poetry)

Simple 1-D ascent simulation

# run the simulation defined by sim_config.json
poetry run hab-toolbox simple-ascent sim_config.json

# run the model with verbose output, plot and save results to a file
poetry run hab-toolbox -v simple-ascent sim_config.json -o test.csv -p

Balloon Library

A set of datasheets for Kaymont high altitude balloons have been transposed into JSON format.

Ascent Model

The HAB ascent model uses the 1976 US Standard Atmosphere (COESA) atmosphere model from the Ambiance Python package to simulate the vertical ascent of a HAB.

See also: Nucleus/1D Atmospheric Flight Model

Other experiments

In addition to helpful development tools, this repository contains experiments that were done to aid in HAB systems design. You can find these experiments in the etc directory.

Kinematic Model

The kinematics model attempts to emulate the motion of the HAB bus from the reference point of the balloon. Information from this model can be used to estimate the performance of future payloads such as active stabilization.

For the first implementation of the kinematics model a spherical pendulum was used to simulate the box. A spherical pendulum was selected as it is a simple demonstrator of the motion of the HAB from the reference frame of the balloon.

The method used for solving the equation of motion was the Runge Kutta method. A home brewed function was created for this toolbox (instead of using the ode45) function for educational purposes.

The method for determining the equations of motion for a spherical pendulum was the Lagrange equations of motion.

Spherical Pendulum

Lagrangian

Runge-Kutta

Flight Simulation with PID Altitude Control

The same 1D atmospheric flight model was implemented in Simulink and integrated with a PID control system to simulate an open-loop altitude control system that bleeds gas from the balloon and drops ballast to maintain a set point altitude.