Electronics · Magnetic Apogee Detector

MAD

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. It is prototype hardware under development and is not flight qualified.

In developmentDesign notes

How it senses apogee

The rocket turns. The Earth’s field does not.

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.

How MAD senses apogeeA rocket shown at three points on its flight arc against the slanted lines of the Earth’s magnetic field. A bar beside each rocket shows the share of the field measured along the rocket’s long axis: high on the way up, lower as it arcs over, and below the threshold line near apogee.123
  • Earth’s magnetic field
  • Share of the field along the rocket’s axis, |Bx| / |B|
  • Threshold (default 0.22)
  1. 1
    On the way up

    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.

  2. 2
    Arcing over

    As the rocket tips, its axis swings away from the field. Less of the field lies along the axis and the reading falls.

  3. 3
    Near apogee

    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.

Projecting the field onto the rocket’s axisAn arrow labelled B shows the Earth’s magnetic field. A dashed line shows the rocket’s long axis. A thick segment along that axis, labelled Bx, is the part of the field the sensor measures along the axis.BBxrocket axis

The measurement

One ratio, held below a threshold.

The magnetometer reads the field on three axes. Firmware takes the component along the rocket’s long axis, Bx, and divides it by the total field strength, B. The ratio depends only on the angle between the rocket and the field, not on how strong the field is.

The default criterion is |Bx| / |B| at or below 0.22 for 120 ms, checked only after qualification and a 3 s post-arm inhibit. A ratio of 0.22 means the axis is within about 13° of perpendicular to the field.

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 board

The Rev A board.

3D render of the MAD Rev A circuit board: a long, narrow green board with the magnetometer at one end, a USB-C connector on one edge, two pin headers, two cylindrical capacitors and a green screw terminal at the other end.
3D render generated from the Rev A PCB design files. It is not a photograph of a built board, and the layout may change.
Magnetometer
At the nose end, inside a copper keepout and away from metal.
RP2040 and flash
Run the state machine and store the flight log.
USB-C
On the board edge, for configuration and log retrieval.
ARM header
The removable jumper in the charge and fire paths.
Firing capacitors
The stored-energy bank for the match.
Match terminal
Screw terminal at the tail end.

Design

How MAD is meant to work.

01

Orientation is the apogee cue

An MMC5983MA 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

Hardware arming

A removable ARM jumper is part of both the charger-enable and fire-enable hardware paths. Firmware cannot bypass it.

03

Stored-energy firing

A capacitor bank drives one electric match. The firing charger is supplied from the battery regulator, so USB power alone cannot charge the bank.

04

Explicit safety state machine

SAFE → QUALIFY → ARMED → FIRING → LOCKOUT, with any detected fault forcing FAULT. A single firing pulse is followed by lockout until reset.

05

Flight logging

Flight data is logged to on-board flash and read back over USB-C, which is also used for configuration.

06

Wide input range

The Rev A design accepts 3–18 V, including a single-cell LiPo, through a resettable fuse and reverse-polarity protection.

Safety state machine

Every firing passes through the same states.

Arming requires the physical jumper, stable power and capacitor readings, a qualification delay and a post-arm inhibit. A single firing pulse is followed by lockout until reset.

  1. SAFEARM jumper absent. Outputs held off.
  2. QUALIFYJumper present. Power checked through a qualification delay.
  3. ARMEDBank charges. Orientation watched after a post-arm inhibit.
  4. FIRINGA single firing pulse.
  5. LOCKOUTNo further firing until reset.

FAULTAny detected fault forces this state from any other.

Specifications

Rev A design and open items

The first table describes the Rev A prototype design and may change. Nothing in the second table has been finalized.

Rev A design (prototype, subject to change)
Apogee sensingMMC5983MA 3-axis magnetometer, I²C
MicrocontrollerRP2040
Supply input3–18 V, including 1S LiPo; JST-PH connector
OutputOne electric-match channel, 5 mm screw terminal
Firing bank2 × 470 µF at a nominal 12 V
ArmingRemovable ARM jumper in the charge and fire hardware paths
Log storage16 MB flash; 4 MiB append-only flight-log region
Configuration and log retrievalUSB-C, USB 2.0 full speed
Programming and debugSWD header
PCBFour-layer
Not yet finalized
Board dimensionsTo be determined
MassTo be determined
Current draw and battery lifeTo be determined
Operating temperature rangeTo be determined
Flight envelope (altitude, velocity, acceleration)To be determined
Apogee detection performanceTo be determined
Price and availabilityTo be determined

Development status

Where the project stands.

Designed so far

  • Rev A schematic
  • Four-layer PCB layout
  • Fabrication outputs for the Rev A board
  • RP2040 firmware with a USB command interface for status and flight-log retrieval

Still required

  • Unpowered inspection and current-limited bring-up
  • Logic and sensor checks against a reference magnetometer
  • Inert firing-load tests across the input voltage range
  • Controlled initiator tests with statistical margin
  • Flight qualification: vibration, acceleration, EMI, brownout, thermal cycling and airframe magnetic calibration
  • Independent schematic, PCB, firmware and range-safety review

Follow the design.

Architecture, calculations and the verification plan.