

Dronemagnav2
DroneMagNav 2.0 - survey-fluxgate magnetic-anomaly navigation board for drones (IGRF-14 + EMAG2v3 continued to flight altitude)
- Size
- 128 × 84 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 222
- Nets
- 212
- Pads
- 909
- Tracks, vias
- 2,178, 418
- Pours
- 8
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 13 Sep 2026
- Updated
- 13 Sep 2026
Overview
Dronemagnav2 is an open-source printed circuit board by ajisrawi, from the ajisrawi/DroneMagNav2.0 repository on GitHub. It is a 4-layer board of 128 × 84 mm with 222 parts on 212 nets, routed with 2,178 tracks and 418 vias.
It is built around the ESP32-S3-WROOM-1-N16R8, MS5611-01BA03 and TPS65131RGER, with the AP2112K-3.3, LT3045EDD and AMS1117-3.3 among its other parts. Its parts include 101 capacitors, 73 resistors, 23 ICs, 8 diodes and 7 connectors. It belongs with the ESP32 boards of this library.
Main components
12ESP32-S3-WROOM-1-N16R8
SMD,25.5x18mm-103.5dBm -40℃~+65℃ 2.4GHz 20.5dBm 355mA 3V~3.6V 95mA ESP32-S3R8 On-board PCB Antenna UART、SPI、I2C、GPIO、I2S、USB SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesMS5611-01BA03
QFN-8(3x5)QFN-8(3x5) Pressure Sensors ROHSMEASPressure SensorsTPS65131RGER
QFN-24-EP(4x4)-15V~-2V、500mV~15V -40℃~+85℃@(TA)、-40℃~+125℃@(TJ) 1.25MHz~1.5MHz 1.95A 2 2.7V~5.5V 500uA Adjustable Boost、Inverting Buck-Boost Built-in No QFN-24-EP(4x4) DC-DC Converters ROHSTexas InstrumentsDC-DC ConvertersAP2112K-3.3
SOT253.3V 600mA CMOS Low Dropout Linear Regulator with EnableDiodes IncorporatedUncategorisedLT3045EDD
SON1020V, 500mA, Ultralow Noise, Ultrahigh PSRR Linear RegulatorAnalog DevicesUncategorisedAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsBMI088
LGA-16(3x4.5)-40℃~+85℃ Accelerometer Gyroscope LGA-16(3x4.5) Accelerometers ROHSBosch SensortecAccelerometersLT3094EDD
SON12-20V, 500mA, Ultralow Noise, Ultrahigh PSRR Negative Linear RegulatorAnalog DevicesUncategorisedMAX-M10S
LCC-18_10.1X9.7LCC-18_10.1X9.7 New Arrivals ROHSu-bloxUncategorisedUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)B5819W
SOD-123-55℃~+125℃ 1.5A 1mA@40V 25A 40V 600mV@1A Standalone SOD-123 Schottky Diodes ROHSMDDSchottky DiodesSMAJ26CA
DO-214AC(SMA)-55℃~+150℃ 26V 28.9V 400W 42.1V 5uA 9.5A Bidirectional TVS DO-214AC(SMA) ESD and Surge Protection (TVS/ESD) ROHSGOODWORKESD And Surge Protection (TVS/ESD)
README
README.mdDroneMagNav 2.0 — survey-fluxgate magnetic-anomaly navigation board
GNSS-denied positioning from the Earth's crustal magnetic field, measured with a survey-grade three-axis fluxgate (no magnetometer on the board), plus the phone-operated great-circle route planner from v1.
survey fluxgate on a mast ─ J2 ─ 3x THS4551 ─ 3x ADS1262 32-bit ─┐ ┌─ IGRF-14 core field (degree 13)
(SENSYS FGM3D/100 LN, ±10 V, ≤8 pT/√Hz) (shared clock+START) │ ├─ EMAG2v3 2′ anomaly grid (4 km)
optional 2nd fluxgate ─ J7 ─ 3x THS4551 ─ AIN2/AIN3 (gradiometer)│ │ or local survey grid
BMI088 IMU ─────────────────────────────────────── ESP32-S3 ─────┼─ map ──┤
MS5611 baro ───────────────────────── particle filter + integrity│ engine └─ both continued to the drone's
u-blox MAX-M10S (init, truth, geoid, date) ──────────────────────┘ altitude above WGS84
│
├─ MAVLink GPS_INPUT → flight controller
└─ WiFi AP → phone: offline map, route, status, integrity, loggingWhat changed from v1
| v1 (DroneMagNav) | 2.0 | |
|---|---|---|
| Magnetometer | LIS3MDL on the board (~320 nT rms raw) | none on board; external survey fluxgate on J2 (≤8 pT/√Hz) digitised by 3× ADS1262 |
| Core field | WMM2025 (degree 12) | IGRF-14 (degree 13, epoch 2025.0, SV to 2030) |
| Anomaly map | WDMAM 3′ at fixed 5 km | EMAG2v3 2′ (3.7 km cells) at 4 km, continued to the drone's altitude (FFT, gain-limited downward continuation); optional local survey with its own reference height |
| Altitude reference | BMP280, MSL | MS5611 (~0.1 m), referenced to GNSS, converted to ellipsoid height with the GNSS geoid separation |
| Power | 5 V from USB/FC | 2S–6S battery (XT30) → 5 V buck; USB-C fallback; ±13.5 V converter → ultra-low-noise ±12 V sensor and +5 V analog rails |
| Integrity | none | chi-square gate with bias-step handling, trajectory-consistency check against dead reckoning, optional gradiometer gate (second fluxgate on J7) |
| Board | 64 × 60 mm, 4 layers | 128 × 84 mm, 4 layers, split analog/digital power plane |
Deliverables
| Item | Where | Status |
|---|---|---|
| Schematics (9 sheets + root) | hardware/dronemagnav2/*.kicad_sch, dronemagnav2-schematic.pdf | ERC 0 errors, 2 intended warnings (shared SPI MISO) |
| Netlist verification | tools/check_netlist.py | 77 critical nets + "no analog pin on a rail" check: PASS |
| PCB 128 × 84 mm, 4-layer | hardware/dronemagnav2/dronemagnav2.kicad_pcb | see PCB status below |
| BOM | docs/BOM.csv | 74 line items, 218 parts (38 optional gradiometer parts, column Fit), MPNs |
| Firmware (ESP32-S3, PlatformIO) | firmware/ | builds, 0 warnings (1.10 MB flash, 129 KB RAM) |
| Integrity checks | tools/integrity_check.py | numpy port vs 4 injected faults, 5 seeds: PASS (figure docs/integrity-sim.png) |
| Map data pipeline | tools/prepare_sd.py | EMAG2v3 GeoTIFF → 116.6 MB MAG2 grid (read-back verified); IGRF-14 → .COF |
| Core-field validation | tools/geomag_check.py | WMM2025 official test values 100/100 (worst 0.0007 nT); IGRF-14 vs independent model 200/200 (worst 0.002 nT) |
| Continuation validation | tools/continuation_check.py | analytic dipoles + EMAG2v3 round trip: PASS (figure docs/continuation-emag2.png) |
| Fluxgate calibration | tools/fluxgate_cal.py | 12-parameter fit, self-test PASS |
Selected sensor
SENSYS FGM3D/100, low-noise option: ±100 µT, ≤8 pT rms/√Hz (0.1–10 Hz),
±10 V at full scale (0.1 V/µT), ±12…±15 V at ±26 mA, 112 g, IP65, orthogonality
option ±0.1°. It was chosen because its full specification is published, its
noise meets the 0.01 nT class, it is used on survey drones (SENSYS MagDrone),
and its analog interface is the de-facto standard. Bartington Mag-13MS (<5
pT/√Hz, ±10 V, ±12 V) plugs into the same connector with a different cable; set
VOLTS_PER_NT in fluxgate.h for other ranges.
J2 (JST-GH 10): 1 +12 V · 2 −12 V · 3 sensor power GND · 4/5 X out/return · 6/7 Y · 8/9 Z · 10 cable shield. Make the cable to your sensor's connector pinout (check the sensor manual); keep the sensor ≥ 0.5 m from motors.
Optional gradiometer: a second fluxgate of the same type on J7 (same
pinout), e.g. 0.5 m below the first on the mast. Its drivers U21–U23 feed the
spare AIN2/AIN3 inputs of the same three ADS1262, which then alternate between
the sensors in pulse-conversion mode. J7, U21–U23 and their passives are marked
optional in the BOM; /cal/grad.txt turns the mode on (see firmware/README.md).
How it navigates
- Measure B vector at 400 SPS on three simultaneous 32-bit channels, average to 20 Hz, apply the fluxgate calibration.
- Compensate the total field for the drone's own magnetism (18-term Tolles-Lawson, fitted in flight with GNSS).
- Model core field = IGRF-14 at (lat, lon, ellipsoid height, date); anomaly = EMAG2v3 or local survey window continued to that height.
- Update a 600-particle filter with measured − (core + anomaly + bias); predict with flight-controller velocity.
- Check every update: gradiometer gate (B − A against the predicted gradient; nearby sources are steep, uniform fields cancel), chi-square gate on the innovation (a persistent offset becomes a bias step), and a trajectory-consistency check (a position jump that dead reckoning cannot explain is rolled back).
- Feed the estimate to the autopilot as
GPS_INPUTwhen GNSS is lost.
Expectations, honestly
- The sensor chain is ~30 pT rms (estimate) — no longer the limit.
- EMAG2v3 only: the map limits accuracy. Its 3.7 km cells and 4 km compilation height hold no short-wavelength detail; continuation puts what it has at the right height but cannot add detail. Expect hundreds of metres to ~1 km over strong continental anomalies, worse over flat or ocean areas.
- ~10 m is the target with a local aeromagnetic survey (e.g. Geoscience
Australia 40–80 m grid, NRCan 200 m, GTK Finland) loaded as
local.bin, a good compensation fit and a mast-mounted sensor. It has not been demonstrated. - Disturbances: in simulation over a 100 m survey layer (27 m fault-free), a
steel structure beside the track, a +60 nT field step and a current loop at the
sensor each pushed the unchecked filter 0.3–3 km off; with the checks the peak
error stayed at 39–84 m. A field that imitates another place on the map is
only bounded (~400 m). Details in
firmware/README.md.
Build / flash / prepare
See firmware/README.md. Short version: pio run -t upload, then
python tools/prepare_sd.py --emag2 <EMAG2v3 tif> --igrf igrf14coeffs.txt --coast <geojson>
and copy firmware/sdcard/* to the card.
Hardware regeneration: python tools/design.py → kicad-cli sch erc / export netlist →
python tools/check_netlist.py → KiCad python tools/make_pcb.py → tools/route.py export/route/import →
tools/widen_power.py → tools/route.py drc → python tools/make_bom.py → python tools/make_fab.py →
python tools/make_design_doc.py.
PCB status
- Placed by
tools/make_pcb.py(260 plane pads fanned out before routing), autorouted with Freerouting (tools/route.py), supply tracks widened (tools/widen_power.py: 181 segments), last two connections (BMI088 +3.3VA, gradiometer driver U21 OUT−) hand-routed bytools/manual_routes.py. - KiCad DRC: 0 unconnected pads, 0 electrical violations; 74 silkscreen notes (reference text over / overlapping copper, cosmetic — fabs clip silk on pads).
- Fab package in
hardware/dronemagnav2/fab/(Gerbers, drill, pick-and-place, notes, ZIP); rendersboard-top.png/board-bottom.png; design documentDroneMagNav2-Design-Document.pdf.
Caveats
- Prototype; not certified for any regulated use.
- Not yet built or run on hardware.
- LT3045/LT3094 application values follow the typical-application pin guidance (ILIM to GND, PGFB to IN, PG/VIOC open); the ADI datasheets could not be downloaded in this session (server timeouts) — verify before ordering.
- Datasheets used for pinouts and values: TI ADS1262, THS4551, TPS65131, TPS62933,
TPS2116; TE MS5611 (in
data/, not redistributed).
Parts
222| Qty | Value | Footprint | References |
|---|---|---|---|
| 28 | 100nF | C_0603_1608Metric | C4, C11, C14, C15, C39, C40, C44, C45, C49, C50, C55, C57, C62, C64, C69, C100 +12 |
| 17 | 10K | R_0603_1608Metric | R4, R5, R37, R38, R39, R40, R41, R42, R43, R47, R48, R49, R50, R51, R52, R53 +1 |
| 16 | 1uF | C_0603_1608Metric | C7, C12, C53, C54, C56, C58, C60, C61, C63, C65, C67, C68, C70, C72, C73, C76 |
| 13 | 100R | R_0603_1608Metric | R8, R21, R22, R27, R28, R33, R34, R60, R61, R66, R67, R72, R73 |
| 12 | 1.00K 0.1% | R_0603_1608Metric | R19, R20, R25, R26, R31, R32, R58, R59, R64, R65, R70, R71 |
| 12 | 10uF | C_0805_2012Metric | C8, C9, C10, C13, C35, C36, C74, C77, C82, C83, C85, C86 |
| 12 | 4.99K 0.1% | R_0603_1608Metric | R17, R18, R23, R24, R29, R30, R56, R57, R62, R63, R68, R69 |
| 12 | 47nF C0G | C_0603_1608Metric | C37, C38, C42, C43, C47, C48, C87, C88, C92, C93, C97, C98 |
| 6 | 10nF C0G | C_0603_1608Metric | C41, C46, C51, C91, C96, C101 |
| 6 | 10uF 25V | C_1206_3216Metric | C18, C19, C20, C21, C29, C32 |
| 6 | THS4551IRGTR | VQFN-16-1EP_3x3mm_P0.5mm_EP1.68x1.68mm | U9, U10, U11, U21, U22, U23 |
| 5 | 4.7uF | C_0805_2012Metric | C16, C17, C28, C31, C34 |
| 4 | 1K | R_0603_1608Metric | R7, R44, R45, R46 |
| 4 | 4.7nF C0G | C_0603_1608Metric | C25, C52, C59, C66 |
| 4 | M3 | MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | 100K | R_0603_1608Metric | R9, R11, R13 |
| 3 | 4.7uF 25V | C_0805_2012Metric | C27, C30, C33 |
| 3 | ADS1262IPWR | TSSOP-28_4.4x9.7mm_P0.65mm | U12, U13, U14 |
| 2 | 120K | R_0603_1608Metric | R14, R15 |
| 2 | 22uF 25V | C_1206_3216Metric | C5, C6 |
| 2 | 33R | R_0603_1608Metric | R35, R36 |
| 2 | 4.7uH | L_Bourns-SRN4018 | L2, L3 |
| 2 | 5.1K | R_0603_1608Metric | R54, R55 |
| 2 | AP2112K-3.3 | SOT-23-5 | U4, U20 |
| 2 | B5819W | D_SOD-123 | D4, D5 |
| 2 | LT3045EDD | DFN-10-1EP_3x3mm_P0.5mm_EP1.65x2.38mm | U6, U8 |
| 1 | 1.02M | R_0603_1608Metric | R10 |
| 1 | 1.10M | R_0603_1608Metric | R12 |
| 1 | 100nF 50V | C_0603_1608Metric | C2 |
| 1 | 10nF | C_0603_1608Metric | C26 |
| 1 | 10uF 50V | C_1206_3216Metric | C1 |
| 1 | 220nF | C_0603_1608Metric | C24 |
| 1 | 3.3uH | L_Coilcraft_XAL4030-XXX | L1 |
| 1 | 33nF | C_0603_1608Metric | C3 |
| 1 | 340K | R_0603_1608Metric | R1 |
| 1 | 49.9K | R_0603_1608Metric | R16 |
| 1 | 52.3K | R_0603_1608Metric | R3 |
| 1 | 6.8pF C0G | C_0603_1608Metric | C22 |
| 1 | 7.3728MHz | Oscillator_SMD_Abracon_ASE-4Pin_3.2x2.5mm | X1 |
| 1 | 7.5pF C0G | C_0603_1608Metric | C23 |
| 1 | 75K | R_0603_1608Metric | R2 |
| 1 | AMS1117-3.3 | SOT-223-3_TabPin2 | U3 |
| 1 | BATT_2S-6S | AMASS_XT30PW-M_1x02_P2.50mm_Horizontal | J1 |
| 1 | BMI088 | Bosch_LGA-16_4.5x3mm_P0.5mm_LayoutBorder7x1y_ClockwisePinNumbering | U16 |
| 1 | BOOT | SW_SPST_PTS645Sx43SMTR92 | SW2 |
| 1 | ESP32-S3-WROOM-1-N16R8 | ESP32-S3-WROOM-1 | U15 |
| 1 | FC_TELEM | JST_GH_SM06B-GHS-TB_1x06-1MP_P1.25mm_Horizontal | J6 |
| 1 | FIX | LED_0603_1608Metric | D7 |
| 1 | FLUXGATE | JST_GH_SM10B-GHS-TB_1x10-1MP_P1.25mm_Horizontal | J2 |
| 1 | FLUXGATE_B | JST_GH_SM10B-GHS-TB_1x10-1MP_P1.25mm_Horizontal | J7 |
| 1 | GNSS_ANT | U.FL_Hirose_U.FL-R-SMT-1_Vertical | J3 |
| 1 | LINK | LED_0603_1608Metric | D8 |
| 1 | LT3094EDD | DFN-12-1EP_3x3mm_P0.45mm_EP1.65x2.38mm_ThermalVias | U7 |
| 1 | MAX-M10S | ublox_MAX | U18 |
| 1 | MS5611-01BA03 | LGA-8_3x5mm_P1.25mm | U17 |
| 1 | NAV | LED_0603_1608Metric | D6 |
| 1 | PWR | LED_0603_1608Metric | D3 |
| 1 | RESET | SW_SPST_PTS645Sx43SMTR92 | SW1 |
| 1 | SMAJ26CA | D_SMA | D2 |
| 1 | SS34 | D_SMA | D1 |
| 1 | TPS2116DRLR | SOT-583-8 | U2 |
| 1 | TPS62933FDRLR | SOT-583-8 | U1 |
| 1 | TPS65131RGER | VQFN-24-1EP_4x4mm_P0.5mm_EP2.45x2.45mm_ThermalVias | U5 |
| 1 | USB-C | USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J5 |
| 1 | USBLC6-2SC6 | SOT-23-6 | U19 |
| 1 | microSD | microSD_HC_Hirose_DM3AT-SF-PEJM5 | J4 |
Similar boards
- 2 layers80 × 60 mm

- 4 layers50 × 100 mm

Flight computer one
liquid-rocketry-illinois/flight-computer-one-hw
SAME51-based flight computer with active control capabilities
105 partsCERN-OHL-S-2.0 - 2 layers21 × 54 mm

SensorBoardNoMCU
Terrapin-Rocket-Team/SRAD-Avionics
Code and PCBs for the avionics subteam for the SRAD flight computer and side projects
29 parts17 - 4 layers64 × 60 mm

Dronemagnav
ajisrawi/dronemagnav
Magnetic-anomaly navigation (MagNav) board + firmware for drones: ESP32-S3, BMI088, LIS3MDL, BMP280, u-blox GNSS, WDMAM map matching, particle filter, MAVLink, phone route planner. Proprietary - all rights reserved.
60 parts11 - 4 layers90 × 90 mm

- 4 layers80 × 120 mm

- 2 layers77 × 32 mm

BananaSchplit
pms67/BananaSchplit
Single rail DC (<12V) to split rail DC supply (+/-12V and +5V).
53 parts66MIT - 4 layers100 × 100 mm

Phmod
gallicchio/AMOD-and-RFMOD
The tutorial's 2x12 adapter (/mudd/133electronics/icepi-zero-dac-adc/adapterboard/) with a 2 x 6 right-angle Pmod socket on a 15 mm extension of its right-hand end, so an Icepi Zero can drive AMOD-A's and RF-MOD's Pmod…
234 parts
Questions
How big is the Dronemagnav2 PCB?
It measures 128 × 84 mm and has 4 copper layers, 1.6 mm thick.
What parts does the Dronemagnav2 use?
222 parts, built around the ESP32-S3-WROOM-1-N16R8, MS5611-01BA03, TPS65131RGER and AP2112K-3.3. 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 Dronemagnav2 KiCad files?
From the ajisrawi/DroneMagNav2.0 repository on GitHub, at the commit this page was made from: the board is hardware/dronemagnav2/dronemagnav2.kicad_pcb and its schematic hardware/dronemagnav2/adc.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Dronemagnav2 design in my own project?
Its repository states no licence, so its author keeps all rights: ask ajisrawi before reusing the design.