Simulation showcase (work in progress, fork only): see sim/README.md.
Run this firmware with no hardware. Simantic simulates the whole board, peripherals, sensors and buses included. Try it free at simantic.com, or run it locally:
curl -fsSL https://simantic.com/install | sh
Description: The flight computer is Sun Devil Rocketry's first ever in-house designed and manufactured high-power rocketry altimeter. The flight computer project aims to serve as a drop-in replacement for the commercially produced altimeters currently used in Sun Devil Rocketry rockets, while also supporting more advanced rocketry projects by including extra sensors and peripheral interfaces. The board supports dual-deployment parachute ejection through the use of ematch screw terminals, a barometric pressure sensor, a buzzer, an ARM Cortex-M7 microcontroller, and 4 Mb of external flash for logging flight data. The computer also includes a USB port and a micro SD card for easy access to flight data, so a seperate data collection kit is not required. To support more advanced projects, the computer contains a LoRa wireless module, a GPS module, a 9-axis IMU, and four 3-connector PWM servo drivers. Design of the flight computer was optimized for a minimum form factor to allow the computer to be used in a variety of differently sized rockets.
app: application code for the flight computer containing source directories
auto: auto-generated code from STM32CubeMX (not compiled into application)
driver: hardware modules containing hardware specific code for SDR boards
init: Microcontroller initialization and configuration code
lib: third-party libraries for device drivers and middleware, microcontroller pin and peripheral configurations
mod: general purpose shared library for SDR's embedded team
test: automated tests
The current generation SDR flight computer. Supports telemetry and data logging with the ability to support more advanced projects.
The next generation SDR flight computer, which is in early development.
The team's Rev 2 flight firmware (app/rev2) runs on a simulated STM32H743 (stand-in for the H750) with Python peers
for the sensors; ./demo prints the flight log the firmware wrote to its flash, decoded: state, barometric altitude,
pressure, speed and acceleration. Every sensor value is a stand-in: the peers replay emulator/resources/locked_in_flight.csv
open loop (nothing reacts to the firmware), and LoRa telemetry is switched off (SDR_LORA=0) because the flight loop
stalls with it on. The states, altitude, speed and frame logging are the firmware's own computation. In this run the
firmware leaves ASCENT for APOGEE at log time 3.9 s while the replayed altitude is still climbing; that is unexplained
(see sim/README.md).
flowchart LR
fc["Rev 2 flight firmware<br/>STM32H743 (H750 stand-in)"]
baro(["BMP390 baro<br/>Python peer"]) -- "I2C1 0x76: pressure, temperature" --> fc
imu(["BMI270 IMU<br/>Python peer"]) -- "I2C2 0x68: accel, gyro" --> fc
mag(["BMM150 mag<br/>Python peer"]) -- "I2C2 0x10: field (constant)" --> fc
arm(["arm switch<br/>Python peer"]) -- "PD7: raised at 3 s" --> fc
fc -- "SPI2 CS PB12: 118 B flight frames" --> flash(["SST25 flash<br/>Python peer, file-backed"])
fc -- "SPI4 CS PC0: init only in demo (LoRa off)" --- lora(["SX1276 LoRa<br/>Python peer"])
flash -- "decode_flash.py" --> out["terminal: state, alt, pres, speed, accel"]
Run it (needs sim on PATH, curl -fsSL https://simantic.com/install | sh, and the Arm GNU toolchain):
git submodule update --init --recursive --depth 1
sh sim/build.sh
./demo # about 1-2 min wall for 15 virtual s
