01
Orientation is the apogee cue
A three-axis magnetometer measures the field along the rocket’s long axis. Orientation is the sole apogee cue; voltage readings are safety interlocks and telemetry only.
Electronics · Magnetic Apogee Detector
A modern interpretation of Robert Galejs’ magnetometer-only apogee detector. MAD senses the rocket’s orientation against the Earth’s magnetic field to detect apogee. The first Rev B board was powered in December 2026. It is prototype hardware and is not flight qualified.
How it senses apogee
The Earth’s magnetic field points in a fixed direction at the launch site. MAD measures how much of that field lies along the rocket’s long axis, and that share changes as the rocket arcs over.
The rocket’s long axis lies close to the field direction, so most of the field is measured along that axis. The reading is high.
As the rocket tips, its axis swings away from the field. Less of the field lies along the axis and the reading falls.
The axis is close to perpendicular to the field. The reading drops below the threshold, and holding there is MAD’s apogee cue.
Illustration only, not to scale and not flight data. The field is drawn dipping 70° below horizontal; the real angle depends on where you launch. Where in the arc the reading crosses the threshold also depends on the direction the rocket tips, the rail angle and the airframe’s own magnetic bias.
The measurement
MAD has a sensor that measures the Earth’s magnetic field in three directions. The firmware looks at how much of that field points along the length of the rocket,Bx, and compares it with the total field, B. That comparison,|Bx| / |B|, gives a number between 0 and 1 that depends only on which way the rocket is pointing, not on how strong the field is.
While the rocket climbs, the number is high. As the rocket tips over at the top of its flight, the number drops. MAD calls it apogee when the number stays at or below 0.22 for 120 milliseconds, which means the rocket is lying within about 13° of sideways to the field. To avoid false triggers, it only starts checking once its power checks have passed and 3 seconds after arming.
The number follows the rocket’s attitude only if the sensor reads the Earth’s field and nothing else. On the first board, the board’s own parts put a field on the sensor stronger than the Earth’s, and with nothing connected to its output the board fired at the wrong attitude. Firmware 0.3.0 therefore keeps a calibration, made with RustMAD, and takes the board’s own field off every reading. It will not arm without one.
These defaults are starting values in the prototype firmware, not validated flight settings. Orientation is the sole apogee cue: there is no barometer or accelerometer. The prototype firmware has no launch detection. From firmware 0.3.0 it arms only if the number is at least 0.5 when its 2 second wait ends, but once armed it fires whenever the number holds below the threshold, on the ground included.
The board
The first Rev B board was powered on December 2, 2026. The pictures here are still renders from the design files, not photographs. The board is 33 × 138 mm with four layers, and every part is on the front.


Design
01
A three-axis magnetometer measures the field along the rocket’s long axis. Orientation is the sole apogee cue; voltage readings are safety interlocks and telemetry only.
02
The board’s own parts put a magnetic field on the sensor: about 0.6 gauss on the first board, against about 0.4 for the Earth’s field in that room. Firmware 0.3.0 keeps a calibration, made with RustMAD, and takes the board’s field off every reading. It will not arm without one.
03
A removable ARM jumper is part of both the charger-enable and fire-enable hardware paths. Firmware cannot bypass it. With the jumper out, the firing bank is disconnected from every supply and a bleed resistor discharges it.
04
A bank of two 470 µF capacitors, charged to about 12 V, stores 67 mJ for one electric match. The bank charges only from the flight battery, so USB power alone cannot charge it. A resistor in the firing path limits the current into a shorted output.
05
SAFE → QUALIFY → ARMED → FIRING → LOCKOUT. With the jumper fitted, any detected fault forces FAULT. A single firing pulse is followed by lockout until the jumper is removed.
06
Sensor and voltage readings are logged to on-board flash memory and read back over USB-C. The firmware records only while the ARM jumper is fitted, and the log cannot be downloaded or erased until the jumper is out. On the first board, a download of 2,374 records came back with every check byte right.
07
Rev B accepts 3–18 V, including a single-cell LiPo, through a resettable fuse and reverse-polarity protection. The firmware will not arm below 3.3 V.
Safety state machine
Arming requires the physical jumper, stable power and capacitor readings, a stored magnetic calibration, a qualification delay after which the field must read as it does for a rocket standing on its pad, and a post-arm inhibit. A single firing pulse is followed by lockout until the jumper is removed.
FAULTWith the jumper fitted, any detected fault forces this state. It holds until the jumper is removed.
Specifications
The first table describes the Rev B prototype design and may change. Its electrical figures are calculated. Nothing has been measured on a board with instruments; a board’s own log shows its bank reaching 10 V in about a tenth of a second and settling at 11.9 V, from a 4.0 V battery. Nothing in the second table has been finalized.
| Rev B design (prototype, subject to change) | |
|---|---|
| Apogee sensing | Three-axis magnetometer (MMC5983MA) |
| Processor | RP2040 |
| Supply input | 3–18 V, including 1S LiPo; the firmware will not arm below 3.3 V |
| Output | One electric-match channel, 5.08 mm screw terminal |
| Firing | Capacitor discharge: 940 µF charged to about 12 V, 67 mJ stored |
| Arming | Removable ARM jumper in the charge and fire hardware paths |
| Flight log | On-board flash memory, 16 MB, with 4 MB kept for the flight log (262,144 records). Recorded only while the ARM jumper is fitted |
| Calibration | The board’s own magnetic field, stored on the board and taken off every reading. Made with RustMAD, with the ARM jumper out |
| Firmware | 0.3.0, on the downloads page. It needs RustMAD 0.3.0 or later. It ran on a board on the bench on December 3, 2026 |
| USB-C | Loading firmware, reading status, calibrating, and downloading or erasing the flight log |
| Status light | Blue: safe or locked out. Green: qualifying or armed. Red: firing or fault |
| Board | 33 × 138 mm, 1.6 mm thick, four layers, parts on one side |
| Mounting | Two M3 holes 130 mm apart; the one beside the magnetometer takes a brass or nylon screw |
| Not yet finalized | |
|---|---|
| Mass | To be determined |
| Current draw and battery life | To be determined |
| Operating temperature range | To be determined |
| Flight envelope (altitude, velocity, acceleration) | To be determined |
| Apogee detection performance | To be determined |
| Price and availability | To be determined |
Rev A to Rev B
Rev B replaces Rev A. A review of Rev A found wiring errors in its schematic, and its last board layout had shorts between 11 pairs of nets, including 3.3 V to ground.
01
Rev B is a new schematic capture, placement and routing made from one design definition. It is not a patch of Rev A.
02
A solid ground plane and a 3.3 V plane on the inner layers. The battery input, the 5 V supply and the firing loop run on wide copper areas instead of thin tracks.
03
A load switch now sits between the supply and the charger. With the ARM jumper out, the firing bank is disconnected from every supply and bled down.
04
A 0.33 Ω resistor in the firing path keeps the current into a shorted output within the firing transistor’s ratings.
05
The processor reads the ARM jumper through a high resistance, so a processor pin driven high cannot stand in for the jumper. The fire command has an unused pin on each side of it on the processor package.
06
Every part, including the connectors and inductors, is fitted by the board assembler. The placement file is checked pad by pad against the assembler’s published part outlines.
07
Every connector is labelled with its function and polarity on both sides, with the sensor axes, test-point names, the status light’s colours, safety text and a serial-number box.
Development status
The first Rev B board was powered on December 2, 2026, with firmware 0.2.0. USB, the magnetometer and the flight log worked. With nothing connected to its output, the board fired at the wrong attitude, because its own parts put a magnetic field on the sensor stronger than the Earth’s. Firmware 0.3.0 adds a calibration that takes that field off. On December 3 it ran on a board on the bench: calibrated with RustMAD 0.3.0, the board passed the pad check, armed, and fired when it was turned across the field as the board read it. That is one board on a bench, not a flight, and none of the stages of the verification plan has been signed off on any board.
How it works, the safety states and the verification plan.