Skip to the content
2 layers69.8 × 43.2 mmHigh altitude balloon v2, the printed circuit board in 3D

High altitude balloon v2

z3e8/high_altitude_balloon_v2

This repo has flight computer firmware for a high altitude balloon. The target hardware is a custom pcb built around the mspm0g3507 microcontroller, with a bme680 environmental sensor, an external uart gps module, an…

Size
69.8 × 43.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
80
Pads
188
Tracks, vias
565, 59
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
5 May 2026
Updated
5 May 2026

Overview

High altitude balloon v2 is an open-source printed circuit board by z3e8, from the z3e8/high_altitude_balloon_v2 repository on GitHub. It is a 2-layer board of 69.8 × 43.2 mm with 31 parts on 80 nets, routed with 565 tracks and 59 vias.

It is built around the BME680 and RFM95W-915S2. Its parts include 5 resistors, 5 ICs, 5 connectors, 4 capacitors and 3 diodes. It belongs with the radio and wireless boards of this library.

Main components

2

README

README.md

High Altitude Balloon ELEC327 Flight Computer

This repo has flight computer firmware for a high altitude balloon. The target hardware is a custom pcb built around the mspm0g3507 microcontroller, with a bme680 environmental sensor, an external uart gps module, an sx1276 or rfm95w lora radio, and a microsd card.

Repo Layout

  • Firmware: flight software for the custom pcb (primary)
  • Firmware-poc: bench bring-up harness for the launchpad (start here)
  • PCB: kicad schematic and pcb layout files

System Architecture

Hardware

  • mcu: mspm0g3507
  • environmental sensor: bme680 over i2c
  • gps: external breakout over uart
  • lora radio: rfm95w or sx1276 over spi
  • storage: microsd over spi
  • debug uart: cp2102n usb bridge over uart

The lora radio and microsd share the same spi bus. The bme680 uses software i2c and gps uses software uart because pcb v1 routing does not match the validated hardware peripheral pin pairs for the mspm0.

Firmware POC (firmware-poc)

The POC is a minimal bring-up harness. It does not include a state machine or flight logic. Its job is to confirm each peripheral can initialize and run over the correct spi and i2c wiring on the launchpad before trusting the custom pcb.

Firmware-poc can test these breakout boards:

  • microsd
  • lora
  • feather m0

Data Flow:

  • Launchpad boots
  • SPI init then lora register read to confirm version equals 0x12
  • SPI init then microsd mount and fat32 open
  • I2C scan to confirm bus is alive
  • Loop every n seconds:
    • Lora mode transmits one csv packet over 915 mhz
    • SD mode appends one csv row to hab_log.csv and flushes

The firmware-poc/feather/feather_m0/feather_m0.ino runs on an adafruit feather m0 rfm95 as the ground station receiver and prints decoded packets to the serial monitor.

Flight Firmware (firmware)

The flight firmware has two layers: a portable application layer and a hardware-specific platform layer. The application layer does not touch registers directly. It calls platform hooks so the same logic can run on a host pc stub or on real hardware.

Layer 1 Application (portable):

  • src/main.c: startup, boot, periodic tick entry
  • src/hab_app.c: mission state machine and scheduler
  • src/hab_gps.c: nmea sentence parser to structured gps fix
  • src/hab_bme680.c: bme680 driver wrapper
  • src/hab_lora_sx1276.c: sx1276 configuration and transmit
  • src/hab_sd_fatfs.c: fatfs csv append and flush
  • src/hab_math.c: pressure altitude calculation and filtering
  • src/hab_protocol.c: formats telemetry and log csv strings
  • include/hab_types.h: shared data structs, states, event flags
  • include/hab_config.h: timing constants, thresholds, pin assignments

Layer 2 Platform (hardware-specific):

  • src/platform/platform_mspm0_ccs.c: mspm0 clock, gpio, timer, and peripheral init
  • src/platform/diskio_mspm0.c: fatfs disk i/o over spi for microsd
  • src/platform_stub.c: host simulation platform for development and testing
  • include/hab_platform.h: callback interface used by the application layer

Data Flow for One Tick

The scheduler runs every tick (default 1 hz) in this order:

  • Timer tick fires
  • Read bme680 for temperature, pressure, and humidity
  • Read gps for latitude, longitude, altitude, and time
  • Run hab_math to compute pressure altitude and apply filter
  • Run hab_app to update the mission state machine
    • states: BOOT, SELF_TEST, GPS_ACQUIRE, FLIGHT_IDLE, FLIGHT_ACTIVE, EVENT_ACTIVE, FAULT
  • Run hab_protocol to format one full sd csv record
  • Run hab_sd_fatfs to append the record to microsd and flush
  • Every 5 seconds, run hab_protocol to format a short lora packet
  • Run hab_lora_sx1276 to transmit at 915 mhz
  • MCU sleeps until the next tick

The SD card gets a richer record every second. The lora radio sends a compact summary every 5 seconds to the ground station.

Mission States

  • BOOT: hardware initializing
  • SELF_TEST: peripheral connectivity check
  • GPS_ACQUIRE: waiting for a valid gps fix
  • FLIGHT_IDLE: fix acquired, waiting for launch detection
  • FLIGHT_ACTIVE: ascending with full logging and telemetry
  • EVENT_ACTIVE: altitude threshold crossed, event mode
  • FAULT: a sensor or peripheral failed

Build

Both firmware and firmware-poc target TI Code Composer Studio (CCS). Import the folder as a CCS project and build. The MSPM0 SDK must be installed through CCS.

Third-party libraries used:

  • Fatfs for microsd filesystem
  • Bosch bme68x sensorapi for the bme680 driver

Parts

31
QtyValueFootprintReferences
6TestPointTestPoint:TestPoint_Pad_D1.5mmTP1, TP2, TP3, TP4, TP5, TP6
2100nFCapacitor_SMD:C_0402_1005MetricC9, C11
218pFCapacitor_SMD:C_0402_1005MetricC7, C8
24.7kResistor_SMD:R_0402_1005MetricR4, R5
25.1kResistor_SMD:R_0402_1005MetricR7, R8
110kResistor_SMD:R_0402_1005MetricR6
1BME680Package_LGA:Bosch_LGA-8_3x3mm_P0.8mm_ClockwisePinNumberingU5
1Battery ConnectionConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
1CONNECTS TO GPSConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ5
1CrystalCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1LInductor_SMD:L_0402_1005MetricL1
1LEDLED_SMD:LED_0402_1005MetricD2
1LORALED_SMD:LED_0402_1005MetricD3
1Low Dropout RegulatorPackage_TO_SOT_SMD:SOT-23-3U3
1MSP MCUmsp:RGZ0048A-IPC_AU1
1POWERLED_SMD:LED_0402_1005MetricD1
1RFM95W-915S2RF_Module:HOPERF_RFM9XW_SMDU4
1SD CardConnector_Card:microSD_HC_Hirose_DM3AT-SF-PEJM5J6
1SW_PushButton_Switch_SMD:SW_SPST_TL3342SW1
1USB CConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1USB TO UARTPackage_DFN_QFN:SiliconLabs_QFN-20-1EP_3x3mm_P0.5mm_EP1.8x1.8mmU2

More from z3e8/high_altitude_balloon_v2

1
  • 2 layers69.4 × 43.4 mmBaloon, the printed circuit board in 3D

    Baloon

    z3e8/high_altitude_balloon_v2

    This repo has flight computer firmware for a high altitude balloon. The target hardware is a custom pcb built around the mspm0g3507 microcontroller, with a bme680 environmental sensor, an external uart gps module, an…

    27 parts

Similar boards

  • 2 layers0.5 × 31.1 mmEnvinode, the printed circuit board in 3D

    Envinode

    aneeshlingala/FirstResponderSystem

    reverie hacks submission

    14 parts
  • 2 layers98.5 × 34 mmPulse LoRa, the printed circuit board in 3D

    Pulse LoRa

    risejohan/2Bit

    In this repo we can see some designs with free use for the community, 2 Bit electronic

    86 parts17
  • 4 layers45.7 × 90.3 mmIo v2-Board, the printed circuit board in 3D

    Io v2-Board

    Maeswoon/UNHSEDS

    great people building dream rockets

    81 parts11
  • 6 layers100 × 60 mmAether, the printed circuit board in 3D

    Aether

    nasheed-x/aether

    Aether is a versatile flight computer for testing flight hardware and software, focusing on sensor fusion to monitor rocket states and interface with on-board systems.

    180 parts10
  • 2 layers78 × 78 mmAvionics payload, the printed circuit board in 3D

    Avionics payload

    usfsoar/irec-avionics-payload-pcb

    KiCad project for the PCB in the payload of SOAR's IREC Rocket

    37 parts9
  • 4 layers168.2 × 82.9 mm2024 def con badge v1, the printed circuit board in 3D

    2024 def con badge v1

    RetiaLLC/DefconBadge2026

    Retia 2024 DEF CON badge (ESP32-S3): docs, pinouts, flashable firmware incl. DOOM and Meshtastic, examples, KiCad hardware sources

    104 parts8
  • 2 layers51.8 × 53.6 mmCatWAN Farmer, the printed circuit board in 3D

    CatWAN Farmer

    ElectronicCats/CatWAN_Farmer

    CatWAN Farmer, a grower's water saving open source project with LoRa

    53 parts7

Questions

How big is the High altitude balloon v2 PCB?

It measures 69.8 × 43.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the High altitude balloon v2 use?

31 parts, built around the BME680 and RFM95W-915S2. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the High altitude balloon v2 KiCad files?

From the z3e8/high_altitude_balloon_v2 repository on GitHub, at the commit this page was made from: the board is pcb/v1/328.kicad_pcb and its schematic pcb/v1/328.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the High altitude balloon v2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask z3e8 before reusing the design.