Skip to content
Solace · In buildSolace build book

Flight computer

Lodestar, in three versions.

A model rocket flight computer is a small board that measures a rocket’s height and acceleration, logs every sample and radios live data to the ground. Lodestar is ours, for NOVTAR Solace. None of the three versions fires anything.

CompilesNot yet tested on hardwareMeasure only

Renders, not photographs: none of the three has flown yet. Lite flies first, then Lodestar. Nothing on any of them fires anything.

How it works

One flight software for all three.

Everything below is the flight software as it runs on today’s Heltec setup: the same code builds for Lodestar Lite and for Lodestar, with features switched on by what each board has.

Status

Designed, compiled, not yet flown.

Not yet flown

The firmware compiles for both boards, and Mission Control has been tested end to end in Simulation mode, but none of it has been tested on real hardware yet. Everything here is the design, not a flight result.

Rendered from the design

Every part and every wire, where the design puts them.

Made in Blender from Solace's design files and the wiring table, with the boards drawn to their published sizes. Not photographs: nothing is built yet.

Render from the design files: The flight computer
The flight computerSolace's flight computer on its plywood sled, as wired: the Heltec WiFi LoRa 32 V3 on nylon standoffs, the BMP280 barometer and MPU6050 motion sensor on one I2C bus, the 1S LiPo, slide switch, buzzer and the 868 MHz antenna. The status LEDs and the microSD module are on the back face.
Render from the design files: The board, close up
The board, close upThe Heltec V3 close up: the OLED, the USB-C socket with the PRG and RST buttons, the radio's shield, the IPEX antenna socket, and the I2C wires running under the board to the sensors.
Render from the design files: Pad check: all green
Pad check: all greenThe back face on the pad: all three status LEDs green (sensors found, logging with space free, radio and battery good), as they show through the windows in the payload tube. The microSD module sits below them, its card pointing aft under Kapton tape.
Render from the design files: Pulled apart, wired
Pulled apart, wiredEvery part of the flight computer pulled clear of the sled, with each wire still joining what it joins: I2C to both sensors, the battery through the switch, the buzzer, the status LEDs through their 330 ohm resistor, the microSD on its own SPI bus, and the antenna.
Render from the design files: Into the coupler
Into the couplerThe sled slides into the coupler from the payload end: its bottom tab goes into the bulkhead's slot, the sled cap drops over the top tab and the nose shoulder holds it all down.
Render from the design files: From above
From aboveStraight down on the component side, square on, to scale: the sled's hole field, tie slots and wire pass-through as cut, with every part where the design puts it.

The board

One small board does the measuring, logging and radio.

Board
Heltec WiFi LoRa 32 V3ESP32-S3 with an SX1262 LoRa radio and 8 MB of flash on one board.
Barometer
BMP280Air pressure, turned into height above the pad.
Motion
MPU6050Acceleration and rotation on three axes.
Storage
On-board flash and a microSD cardEvery sample is written to a log file (LittleFS) and copied to a CSV on a microSD card, so a lost radio signal never loses the flight.
Ground station
A second Heltec V3Receives telemetry and passes it to Mission Control on the laptop over USB.
Why not a Raspberry Pi
ESP32A Pi is heavier, needs more power and is slow to boot.

Flight phases

It works out where it is in the flight by itself.

The thresholds below come straight from the firmware, so this page changes when the firmware does.

  1. PADOn the rail. Averages the pressure to zero the height, beeps 3 short for all OK, 2 long for don't fly.
  2. BOOSTMotor burning. Starts on a hard push (or a real climb if the motion sensor is missing).
  3. COASTMotor out, still climbing to the highest point.
  4. DESCENTPast the peak. The motor's own ejection charge has put the parachute out.
  5. LANDEDStill for 5 seconds. Chirps so it can be found; LOCATE works again.

Thresholds

The numbers it decides with.

SettingValueWhat it means
PAD_LOG_MS100 msSample at 10 Hz on the pad
PAD_FLASH_MS1,000 ms...but only write one sample a second to flash while nothing is moving
FLIGHT_LOG_MS20 ms50 Hz in flight
TELEMETRY_MS500 ms2 packets a second
LAUNCH_G2.5 gTotal acceleration that counts as launch (3 samples in a row)
LAUNCH_ALT_M20 mOr climbing this far above the pad...
LAUNCH_VEL_MS5 m/s...while rising at least this fast (baro-only launch, used if the IMU is missing)
APOGEE_DROP_M2 mFiltered altitude this far below the peak = past apogee
LANDED_STILL_MS5,000 msVertical speed under 1 m/s for this long = landed
BOOST_MAX_MS5,000 msSolace's motor burns for about 1.6 s; after 5 s it is coasting whatever the IMU says
FALSE_LAUNCH_MS10,000 ms10 s after "launch" with less than FALSE_LAUNCH_M of climb = it was a knock
FLIGHT_MAX_MS300,000 ms5 minutes after launch, call it landed (an Solace flight is about a minute)
GROUND_TAU_S600 sOn the pad, the ground pressure follows the weather with a 10 minute lag
LOG_RESERVE_BYTES524,288 bytes512 KB free = about 5 minutes at 50 Hz; less than that is a NO-GO
BATT_MIN_MV2,500 mVA reading below this means the divider is off or no battery is fitted

What it logs

30 bytes per sample, 50 times a second in flight.

On the pad it samples 10 times a second but only writes once a second while nothing moves, so a long wait at a club launch can't fill the flash.

4 Bt_mstime since power on, ms
4 Bpressure_paair pressure, pascals
4 Balt_mfiltered altitude above the pad
2 Bvel_cms
2 Baxmilli-g
2 Baymilli-g
2 Bazmilli-g
2 Bgx0.1 deg/s
2 Bgy0.1 deg/s
2 Bgz0.1 deg/s
2 Btemp_c100temperature, hundredths of a degree C
1 Bstateflight phase

Radio

Live telemetry to the ground, twice a second.

Frequency
869.525 MHzUK licence-free band 869.40 to 869.65 MHz, 10% duty cycle limit.
Spreading factor
SF7Short packets, about 25 ms each.
Bandwidth
250 kHz
Power
14 dBm
Rate
2 packets a secondAbout 5% duty, inside the 10% limit.
Sync word
0x4EThe letter N, so other LoRa users are ignored.
2 Bmagic'N', '1'
2 Bseq
4 Bt_mstime since power on
1 BstateN1State
4 Balt_dmaltitude above the pad, decimetres
2 Bvel_cmsvertical speed, cm/s
4 Bmax_dmhighest altitude so far, decimetres
2 Bacc_mgtotal acceleration, milli-g
2 Bbatt_mvbattery, millivolts (0 if not measured)
1 Bflagsbit0 baro ok, bit1 imu ok, bit2 logging ok, bit3 flash nearly full (NO-GO),
1 Backid of the last ground command the rocket received

Each packet is 25 bytes. The rocket and the ground station share these settings from one file, so they can't drift apart.

Questions

Short answers.

  • What does a model rocket flight computer do? It measures height and motion, logs the flight and sends telemetry to the ground. Ours does not control the motor or fire anything. How a barometer altimeter works.
  • How does the data reach the ground? Over a LoRa radio link, twice a second. How LoRa telemetry works.
  • Which version flies first? Lodestar Lite, the cheap two-layer board, is planned to fly on NOVTAR Solace first. None of the versions has flown. Lodestar Lite.
  • Where can I read about flying one safely? Flying at a UKRA club launch and our safety page.

Measure only

Nothing on this board can fire anything.

  • No pyro channel, no firing output, no deployment code. The certified motor's own ejection charge puts the parachute out.
  • The only commands from the ground are PING and LOCATE. PING checks the radio link; LOCATE sounds the buzzer for 10 seconds. The rocket only acts on them on the pad or after landing.
  • Electronic parachute deployment waits until the board has proven itself over several flights.
  • Bad barometer readings are thrown away rather than turned into impossible heights, and a knock on the pad can't leave it stuck in flight mode.