Flight computer
Two loops that never block: 200 Hz for attitude and control, 25 Hz for events, logging, and radio.
- CPU240 MHz · 320 KB
- Loopno blocking waits
A custom flight computer with two-axis active control, remote ignition, automatic parachute deployment, and a ground station that follows every flight live.
Sensors feed the state estimate; the flight computer decides and acts; everything is logged on board and sent in CRC-protected frames to the ground station.
FRAME: AA 55 | TYPE | SEQ | LEN | PAYLOAD | CRC-16 · RETRIES KEEP THE SAME SEQ: A COMMAND NEVER RUNS TWICE
Each block has a clear job and known numbers, all tunable from a single firmware configuration file.
Two loops that never block: 200 Hz for attitude and control, 25 Hz for events, logging, and radio.
Two servos (pitch and yaw) correct the pointing error in the rocket's own frame, even while it rolls.
Quaternion attitude and a Kalman filter blending accelerometer, barometer, and GPS into altitude and velocity.
Deployed at apogee, with a backup trigger 5 s after peak altitude if normal detection fails.
A 12 MB partition that survives firmware updates. Several flights stored and exported as CSV.
Binary frames with CRC-16 in both directions, an acknowledgement for every command, and safe retries.
After ignition, the rocket recognizes each stage on its own and reacts. The thresholds below are the firmware's.
Sensors checked, GPS fixed, zero altitude set. Two beeps.
2 beepsLaunch detected by acceleration, then confirmed by a real climb.
≥ 2.5 G for 100 msMotor burnout (MECO). The fins keep correcting while there is airspeed.
< 0.5 G for 50 msFiltered altitude falling for 1 s: SW1 deploys the parachute and the fins center.
25 samplesUnder the parachute. The ground station estimates wind and predicts the landing point.
≈ 6.5 m/sLogging closed and a beep every 5 s to help find the rocket.
v < 1 m/s for 3 sThe interlocks live on the rocket itself. The ground station drives the sequence, but the firmware decides whether to accept it.
A bump, transport, or an elevator never deploys the parachute: without a 5 m climb in 2 s or 15 m/s within 5 s, the rocket returns to READY.
Flight state lives in signed, hashed RTC memory. If the processor restarts in the air, it resumes without recalibrating or moving the fins.
From burn to landing, only STATUS and DESARMAR (disarm) are accepted. Nothing changes gains or erases data in the air.
CRC-16 on every frame, incomplete frames dropped, and a sequence number that prevents double execution.
The same sequence as the ground station panel, executed and verified by the rocket.
Custom Python software with a browser interface. It receives telemetry, sends acknowledged commands, records everything, and replays flights.
Altitude, speeds, acceleration, attitude, fins, and GPS at 25 Hz, with RSSI and frame loss.
Ignition, MECO, apogee, and parachute marked on the curve; zoom, cursor, overlays, and full screen.
Trajectory by phase, wind-based landing prediction, and a GPX search area for handheld GPS.
Opens the full flight from ignition to landing and plays it back at 1×, 2×, or 4×. Flights are also in the flight log.
Preconditions, key, countdown, and a hold-to-fire button with a continuous beep.
CSV for every session, rocket memory download (DUMP), and KML trajectory.
Open the flight log ↗VIDEO: GROUND STATION RECORDING REPLAYING A SIMULATED FLIGHT
Electronics, firmware, the ground station, and bench validation shape the development cycle.
Schematic capture, PCB layout, and 3D board views in Altium Designer.
DONEBoards, sensors, GPS, and actuation modules assembled in the structure.
DONEFirmware v2.0 and ground station complete, validated with simulated flights.
DONESensor and servo calibration, control tuning, and integrated testing.
IN PROGRESSExplore the architecture, development records, bench tests, and video demonstration.