slopswap / V6

MMC5603 Array Plan
Jumperless V6 · under-breadboard sensing · MEMSIC MMC5603NJ

MMC5603 Array Plan

Everything specific to building the probe tracker out of MMC5603NJ parts: how to run them, how to wire a lot of them with one fixed address, how to arrange them under the V6 breadboard field, and how a probe can talk back through the same sensors. Live numbers follow the sidebar.

Operating point: how to run an MMC5603NJ for tracking

SettingUseWhy
ModeContinuous, Cmm_freq_en then Cmm_en, ODR register 1AhFree-running sampling; the host just reads when Meas_m_done is set, or on a timer.
Bandwidth / rateBW=10 or 11 → 255 Hz with auto SET/RESET; BW=11 + hpower → 1000 HzNoise is 3–4 mG (0.3–0.4 µT) at these settings vs 1.5 mG at 75 Hz; the position bound only loses √(rate), the probe link gains bandwidth.
SET/RESETAt 255 Hz: Auto_SR_en. At 1 kHz: En_prd_set with Prd_set = every 100–250 samplesAMR films flip above ~3.2 mT; a 2×1 magnet reaches 3 mT only inside 5.4 mm, below the surface, and a periodic SET restores the film anyway. Allow 1 ms after a SET.
Resolution20-bit (9 bytes) for ≤255 Hz; 16-bit (6 bytes) is enough at 1 kHz16-bit LSB is 0.1 µT, below the 0.4 µT noise at 1 kHz; at 75–255 Hz the 20-bit read keeps quantization under the 0.15–0.3 µT noise.
ReadoutBurst read from 00h; pointer auto-increments X0,X1,Y0,Y1,Z0,Z1,X2,Y2,Z2One transaction per sensor per sample; status is optional once timing is known.
Decoupling / supply2.2 µF per part, 1.8 V or 3.3 V, VIO = bus levelDatasheet requirement; ~1.3 mA at 255 Hz BW10, 0.75 mA at BW11.
PackageWLP-4, 0.8 × 0.8 × 0.4 mm, 0.4 mm pitchFine-pitch assembly; put the four balls on short stubs with no vias in the pads.

Bus topologies for N identical-address sensors

The MMC5603 is 0x30, period, and its I3C side is documented only as "available" with an I3C-only data-ready interrupt — no dynamic-address or unique-ID details — so I3C does not solve addressing and is treated here as a bandwidth option that needs a bench test. The calculator takes the sidebar's sensor count, rate and bytes per read, and reports what each topology needs. A read costs (3 + bytes) × 9 bit-times plus ~10 % overhead.

Reading it: serial topologies (plain bus, decoder, I3C) are limited by bus time per sample; parallel-SDA and hub topologies read a whole leg in one transaction, so their limit is pins. A 74HC138/74LVC138 decoder costs no bus time at all, it only chooses which sensor hears the clock; it is the right way to make legs, and the parallel-SDA trick is the right way to make a leg fast.

Arrangements on the V6 field

Grids spread evenly over the sensing field (sidebar W × H; 76 × 45 mm is the 16 × 30-hole body). Position error is the Cramér–Rao bound for the sidebar magnet at the chosen rate and ambient, worst case over lateral position and a 45° tilt, saturated sensors dropped. "Reach" is the height where the bound crosses 1.27 mm, half a hole pitch — the height up to which the array can still say which hole the probe is over.

Rules that fall out: error scales with noise and improves as √N; the between-sensor worst case stays flat while the pitch is no larger than the working height, then degrades; so pitch ≈ the reach you want. A 3×6 at ~13 × 15 mm (18 parts, $2.70) covers the field with ~1 mm at 20 mm up; doubling to 4×8 buys about √2, not 2.

Probe link A — passive magnetic buttons

The dipole fit returns the magnet's moment vector. Its magnitude |m| is independent of where the probe is or how it is tilted, so anything that changes |m| is an unambiguous button. A press that flips a small sub-magnet in the stack changes |m| by 2·msub; sliding a steel shunt over it or rotating it 90° gives smaller steps. The chart is the array's 1σ precision on |m| at the chosen rate, with the flip step and a 15 % level spacing for reference.

Mechanisms that keep the probe electronics-free: (1) a pivoted 1×1 that flips 180° on a click, bistable with a tiny detent; (2) a sliding magnet that enters a steel sleeve (shunt, ~30–60 % drop); (3) a second button on the opposite side of the stack giving a different step, so two buttons make four distinguishable |m| levels. Direction changes (a transverse magnet rotating about the probe axis) are not usable: they look like the probe rolling. Latency is a few samples: 4–12 ms at 255 Hz–1 kHz.

Probe link B — active coil uplink

A coil on the probe axis adds a controllable moment to the magnet: electrically the same signal as a passive button, decoded the same way (track |m|, demodulate), but it can carry bits. Field at the nearest sensor versus height for the sidebar coil, with the single-sample noise at the chosen rate; the array improves on this by combining sensors and by lock-in detection on a carrier.

Channel limits: each MMC sample integrates for 1.2 ms (BW11), so symbols shorter than ~3 ms smear: ~250–300 baud at 1 kHz sampling, ~60–80 baud at 255 Hz. Binary on/off keying at SNR ≥ 6 is essentially error-free; four amplitude levels need SNR ≥ 20 and double the rate; a 100–200 Hz carrier with lock-in detection trades rate for range. Budget: enough for button states, a scroll wheel, battery level and a 16-bit tip measurement at 10–20 Hz, not for streaming. The coil costs ~1 mW·s per bit at 50 mA; a CR2032 runs it for months at duty.

Probe options side by side

Recommended path

Board, once

Decoder legs + fast legs

  • One SKU: MMC5603NJ, 0x30, 2.2 µF each.
  • SCL from a 74LVC138 per 8 sensors (no bus time, 3 select lines shared by all decoders), SDA shared per leg.
  • Run legs from RP2350 PIO with parallel SDA for 1 kHz, or serial I2C at 255 Hz for a cheap first spin; the decoder wiring works for both and for I3C on the CH32H417 later.
  • Grid 3×6 to 4×8 over the field; 2.2 µF caps and short stubs.
Probe, phase 1

Magnets and clicks only

  • 2×1 main magnet in the tip, one or two 1×1 flip magnets on buttons.
  • Zero electronics, zero battery, zero pairing; works at any orientation.
  • Firmware: dipole fit → |m| levels → button events, with the background map, LED compensation and residual gating already needed for tracking.
Probe, phase 2

Add a coil and a CH32V003

  • Same magnets; add a 10 mm × 200-turn coil on the axis, a CH32V003 ($0.18), a coin cell or a tip-charged LiPo.
  • 100–300 bit/s uplink carries buttons, encoder, battery and the probe's own tip measurement; the board's LEDs under the tip can blink a slow downlink to a photodiode.
  • The board and tracker firmware do not change between phase 1 and 2: the coil is just a button the MCU can press.

Assumptions and sources

MMC5603NJ facts from the datasheet (Rev. B): ±30 G, 20-bit, noise 1.5/2/3/4 mG rms at BW 00/01/10/11 with 6.6/3.5/2.0/1.2 ms measurement; ODR up to 255 Hz with auto SET/RESET, 1000 Hz with hpower; SET/RESET pulse 375 ns, 1 ms spacing; films tolerate 32 G; I2C 400 kHz; I3C "available", data-ready interrupt I3C only; 0.8 × 0.8 × 0.4 mm WLP. datasheet.

Hosts: RP2350B has 2 hardware I2C, 12 PIO state machines, 48 GPIO, no I3C. CH32H417 has 4 I2C (standard/fast), one I3C at up to 12.5 MHz with dynamic addressing and IBI (MIPI I3C v1.1), DMA, and a PIOC. CH32H417 datasheet.

Model. Dipole magnet with m = Br·V/µ0 (N42, 1.30 T); coil moment N·I·A; field at a sensor from the dipole formula; Cramér–Rao bound with 6 unknowns (position + moment vector) from the Jacobian over unsaturated sensors; |m| precision from the moment block of the covariance. Noise = datasheet rms at the selected rate, in quadrature with the residual ambient. Bus time = (3 + bytes) × 9 bit-times × 1.1 at 400 kHz (I2C) or 12.5 MHz (I3C).

Prior art for coil-to-magnetometer links: Oulu "Pulse" reached 44 bit/s into a phone magnetometer with 80 ms symbols and 4 amplitude levels; the limit there was the phone's ~12 Hz effective sampling and Earth-field drift, both of which an array at 255–1000 Hz with a background map removes. Pulse.