slopswap / V6

Magnet Sensing Planner
Jumperless V6 · under-breadboard magnet tracking

Magnet Sensing Planner

Which sensor, which magnet, how many, how far. Everything below is recomputed from the controls: dipole field of the magnet, each sensor's saturation and noise, and the Cramér–Rao bound on probe position for a grid of sensors under the breadboard. Prices are LCSC at ~1k, observed 2026‑10‑18.

Field of the chosen magnet vs distance

On‑axis field of the cylinder (exact formula), with the breadboard surface marked. Horizontal references: each sensor's saturation (solid) and its noise at the chosen update rate (dashed). A sensor reads the magnet where the curve sits between its two lines.

Usable distance window per sensor

From the distance where the nearest sensor saturates to the distance where the signal drops to 10× its noise. The shaded band is below the breadboard surface, unreachable by the probe. In an array only the nearest sensor saturates; the others keep working, so the near edge is soft.

Best achievable position error vs height above the sensors

Cramér–Rao bound for one update at the chosen rate: 3‑D rms position error of a dipole with unknown position and moment (6 unknowns), using the whole grid, saturated sensors dropped, worst case over the probe's lateral position (above a sensor, between two, and in the middle of a cell) and over a 45° tilt. Any real filter sits above these lines; time averaging across updates moves them down by √N. The dashed 1‑axis line is ill‑conditioned close to the plane because a single axis can't separate tilt from offset; fixing the magnet strength or height would help it most.

Position error vs sensor budget per board

Same bound, but each sensor type is bought up to the budget and spread evenly over the board area. Read it as "what does a dollar buy": a flatter, lower line means the part scales better. Evaluated at the cost-chart height set in the sidebar.

What a breadboard circuit puts into the sensors, 7 mm away

Static sources are learnable (they don't move while the probe does); dynamic sources are noise unless they are known to the firmware, like the board's own LED currents. The vertical lines are each sensor's noise at the chosen update rate, and the shaded band is the chosen magnet's field between the surface and 40 mm up.

Sensor sheet for this scenario

Window and error columns use the controls above. "Grid cost" is price × (rows × cols). Addresses: with a shared‑SCL or decoder bus the address scheme stops mattering; it is listed because it decides how much a mux‑less layout costs.

Assumptions and sources

Magnet. Uniformly magnetized cylinder; the field curve uses the exact on‑axis formula, the position bound uses the dipole approximation with moment m = Br·V/µ0 (within ~10 % beyond two magnet diameters). Field falls as 1/z³ far out, so every sensor's distance window is only (saturation ÷ floor)^(1/3) wide, about 6–8×.

Noise. Datasheet rms noise at a reference rate, scaled by √(rate) for averaging, then added in quadrature with the residual ambient figure. MMC5603NJ 4 mG at BW=11 (1 kHz, 1.5 mG at 75 Hz); TMAG5273 147 µT XY at 1× (10 kSPS), 24 µT at 32×; TMAG3001 A2 106 µT / A1 95 µT at 1×; MLX90397 ~3 µT at 5 ms; TLV493D‑A1B6 ~100 µT with a 98 µT LSB (floored at LSB/√12); KTH5721 10–30 µT at high OSR (rate not stated, treated as 1 kHz); HAL403SO 2.4 mV rms into 40 mV/mT, one axis. The ambient figure is what calibration leaves behind: Earth's field and fixed hard iron subtract out, drift and moving metal do not.

Position bound. Fisher information from the dipole Jacobian over all unsaturated sensors, 6 unknowns (x, y, z, m⃗), inverted; reported as √(σx²+σy²+σz²). Constraints you actually have (known magnet strength, probe on the surface so z is known, temporal filtering) all improve on it.

Interference. Straight wire B = 2×10⁻⁷·I/r; a 2.54 mm supply/return pair ≈ 2×10⁻⁷·I·d/r². Unshielded drum‑core inductor estimated as a dipole with the core at ~0.15 T (≈ a 2×1 mm magnet): order 1 mT at 7 mm at rated current; shielded parts leak a few percent of that. Nickel terminations and magnetized steel leads/screws are the hard‑iron offsets that compass‑grade sensors see (µT to tens of µT, static). Rule of thumb from NXP: B[µT] = I[mA] / (5·r[mm]).

Datasheets: MMC5603NJ, TMAG5273, TMAG3001, MLX90397, TLV493D‑A1B6, NXP magnetometer placement.