{
  "schema": "otterchip-audio-bench-v2",
  "generated": "2026-11-05",
  "note": "Pass values are starting targets for this design, not published performance. A failed gate reopens the selection. Nothing has been run.",
  "order": [
    "Buy host, HAT, heatsink, BEN-01 Clippy pair, MIKROE-5721, AMP2X15, one ND65-4. Run B-MIC, B-HP, B-AMP and B-FIT first.",
    "Then build HB1 and PWR1, and run B-DET and B-PWR.",
    "Then shell mock-ups for B-SPK and B-AC."
  ],
  "tests": [
    {
      "id": "B-MIC-1",
      "name": "HAT bias under load",
      "setup": "Close both jumpers. ALSA Mic Bias on. No capsule, then each capsule. DMM on jack tip, J4.5, J4.2.",
      "measure": "Open-circuit voltage, loaded voltage at the capsule, implied series resistor, whether bias reaches J4",
      "passTarget": "Decides the path. Capsule at least about 1.2 V and sensitivity within 2 dB of a 5 V reference, then keep HAT bias. Otherwise fit CON-02.",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-2",
      "name": "Bias against the 5 V reference",
      "setup": "Same capsule on HAT bias and on a clean bench 5 V with 3.9 kohm",
      "measure": "Sensitivity, noise, THD at high level",
      "passTarget": "Report the loss. Over 3 dB noise rise or clipping below 110 dB SPL: fit CON-02.",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-3",
      "name": "Pair match and calibration",
      "setup": "94 dB SPL 1 kHz calibrator, both capsules",
      "measure": "dBFS per channel at PGA 12",
      "passTarget": "Within 1 dB, or store trim as metadata",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-4",
      "name": "Input network and full scale",
      "setup": "Generator into J4 in true and pseudo differential",
      "measure": "Full-scale level, input impedance, low corner, DC on pins",
      "passTarget": "Publish measured FS. If 6 dB below 4.2 Vrms, use the lower clip column.",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-5",
      "name": "Noise floor",
      "setup": "Capsules in a quiet enclosure at PGA 0, 6, 12, 20, 32, differential and single-ended. Use the final installed shielded K1-to-J4 route and record its measured length; repeat with HDMI, display power, amp and headphone stage active.",
      "measure": "A-weighted and unweighted dBFS; K1-to-J4 routed length in mm and routing photograph",
      "passTarget": "Target within 3 dB of the model. Pass B-GND-1 too. Otherwise compare with B-MIC-7 and correct routing before accepting the harness.",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-6",
      "name": "Clipping and headroom",
      "setup": "Loud source or injected signal up to the capsule limit",
      "measure": "Clip level, THD at -1 dBFS",
      "passTarget": "No AGC. Report the true clip SPL.",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-7",
      "name": "Reference comparison",
      "setup": "Same capsules on HAT and on Scarlett with RC bias, phantom off",
      "measure": "Noise and listening",
      "passTarget": "Gap over 3 dB needs an owner decision",
      "status": "NOT RUN"
    },
    {
      "id": "B-MIC-8",
      "name": "Raw path proof",
      "setup": "Sine, silence and clap through arecord on the hw device at 48 kHz",
      "measure": "No resampling, gain ride, gate or filter. Bit-depth check.",
      "passTarget": "Raw file identical in level with speaker filter on and off",
      "status": "NOT RUN"
    },
    {
      "id": "B-AC-1",
      "name": "Mic port response",
      "setup": "Gated or anechoic. Compare bare capsule with the actual roof-port/TPU88A-boot mock-up: Ø7 port, 1.2 mm wall, 1.2 mm capsule-face gap, Ø9 mesh. Repeat without mesh; compare Ø5/Ø8 alternatives only if the current geometry fails.",
      "measure": "1/12 octave, 100 Hz to 20 kHz; record the installed gap and CAD revision",
      "passTarget": "Mandatory. Target ±3 dB against bare capsule to 16 kHz. The larger printable boot lip changes the acoustic cavity; no response is inferred from CAD clearance.",
      "status": "NOT RUN"
    },
    {
      "id": "B-AC-2",
      "name": "Mic isolation",
      "setup": "Real shell and TPU88A boots: typing, MIDI keys, wheels, rocker, speaker sweep. Current boot-to-speaker structure distances are 51.3/57.652 mm, below the earlier 60 mm preference.",
      "measure": "dBFS against quiet room, speech/music recordings with roof ports at x±40 mm",
      "passTarget": "Keystroke peaks at least 20 dB under the same keystroke heard through air only. Target; CAD separation does not prove isolation.",
      "status": "NOT RUN"
    },
    {
      "id": "B-SPK-1",
      "name": "Chamber",
      "setup": "Impedance sweep and leak check",
      "measure": "Fc, Qtc",
      "passTarget": "Fc 110 to 130 Hz, Qtc 0.7 to 0.95",
      "status": "NOT RUN"
    },
    {
      "id": "B-SPK-2",
      "name": "Excursion",
      "setup": "Full DAC level, 60 to 200 Hz, with the passive network",
      "measure": "Peak excursion",
      "passTarget": "Under 3.5 mm everywhere",
      "status": "NOT RUN"
    },
    {
      "id": "B-SPK-3",
      "name": "Plenum and grille response",
      "setup": "Use the latest mechanical left and right chamber/baffle/plenum/display-obstruction mock-ups, not the earlier w=-26 proposal. Fit the current Ø3 mm / 4.5 mm hex-pitch grilles (40.3% pattern open area). Measure bare driver, complete front path, then grille on-axis and ±30 degrees at the desk. Repeat left with HDMI and power leads in their final route. Test both handed ducts because their volumes and throats differ.",
      "measure": "1/12 octave response, dips, L-R difference, insertion loss; actual CAD revision and hole count",
      "passTarget": "Mandatory before accepting the stereo acoustic result. Current pattern is accepted for prototype fabrication only. If deep notches or HF loss remain after damping, use the fallback order.",
      "status": "NOT RUN"
    },
    {
      "id": "B-SPK-0",
      "name": "RELEASE GATE: one complete speaker assembly before any full-body print",
      "setup": "Prerequisite: CAD has corrected cone-motion clearance and closed each intended front path, per latest mechanical QA. Then print ONE complete chamber, baffle, grille and representative display-obstruction mock-up from the CAD coupon files, with the real front path. Fit one ND65-4 and the real amp chain.",
      "measure": "On-axis at the actual listener position through the real plenum and grille: frequency response, insertion loss against the same driver without grille, rattle, and a listening check. A bare-driver measurement does not count.",
      "passTarget": "Full shell release is blocked until this is measured and accepted by the owner. Datasheet data for the ND65-4 does not verify device acoustics. On failure, use the fallback order.",
      "status": "NOT RUN"
    },
    {
      "id": "B-SPK-4",
      "name": "Grille rattle",
      "setup": "Sine sweep at full level with PA12 grille in its seat",
      "measure": "Buzz and rattle by ear and mic",
      "passTarget": "No audible rattle",
      "status": "NOT RUN"
    },
    {
      "id": "B-AMP-1",
      "name": "Amp settings and mute",
      "setup": "SW1 B, SW2 OFF. Fault LED off. Short SD to GND via K3.",
      "measure": "SD voltage, mute depth, polarity of J2",
      "passTarget": "Silent in standby. Fault LED off.",
      "status": "NOT RUN"
    },
    {
      "id": "B-AMP-2",
      "name": "Pop tests",
      "setup": "Scope at speaker terminals: boot, K3 toggle, plug, unplug, reboot, halt, adapter pull, rocker off",
      "measure": "Peak voltage and duration",
      "passTarget": "Target under 50 mV on normal paths. Report adapter pull separately.",
      "status": "NOT RUN"
    },
    {
      "id": "B-AMP-3",
      "name": "Idle hiss",
      "setup": "Mic 30 cm from driver, amp on, DAC silent",
      "measure": "Hiss over room noise",
      "passTarget": "Report. Reduce Rp if audible.",
      "status": "NOT RUN"
    },
    {
      "id": "B-HP-1",
      "name": "Headphone stage",
      "setup": "16, 32, 300 ohm loads on each jack",
      "measure": "Level, THD+N, noise, DC at tip, output impedance",
      "passTarget": "DC under 5 mV. No clipping at 0 dBFS on 32 ohm. Confirm gain 2.",
      "status": "NOT RUN"
    },
    {
      "id": "B-HP-2",
      "name": "ENP and ENA sequence",
      "setup": "Scope rails and output: ENP on, wait 50 ms, ENA on; reverse. Power loss.",
      "measure": "Rail order, click size",
      "passTarget": "Module off with GPIO floating or Pi off. Click below 50 mV at output on normal paths.",
      "status": "NOT RUN"
    },
    {
      "id": "B-HP-3",
      "name": "Module noise on capture",
      "setup": "Record with module enabled and disabled",
      "measure": "New tones in capture",
      "passTarget": "No increase above B-MIC-5, or keep the module off for quiet takes",
      "status": "NOT RUN"
    },
    {
      "id": "B-DET-1",
      "name": "Jack detection",
      "setup": "TRS, TS, CTIA, OMTP in each jack, slow in and out, 100 cycles",
      "measure": "K2, K3, GPIO23, GPIO24 timing",
      "passTarget": "K3 releases before the plug tip touches a contact. K2 selects 3.5 mm when plugged.",
      "status": "NOT RUN"
    },
    {
      "id": "B-DET-2",
      "name": "Transition safety",
      "setup": "Unplug headphones during full-level playback",
      "measure": "Speaker output",
      "passTarget": "Speaker stays silent until software raises SPK_ENABLE. Test with the app killed too.",
      "status": "NOT RUN"
    },
    {
      "id": "B-DET-3",
      "name": "Headset mic path",
      "setup": "User selects headset mono, K1 on, PGA 32, CTIA headset. Then a TRS plug with internal stereo selected.",
      "measure": "Sleeve bias, recording level, HP crosstalk. Confirm a TRS plug leaves internal stereo capture unchanged.",
      "passTarget": "Bias within headset range, crosstalk at least 40 dB under speech. No automatic mic detection exists or is expected.",
      "status": "NOT RUN"
    },
    {
      "id": "B-REL-1",
      "name": "Relay pin check",
      "setup": "Each G6K-2P, unpowered, then at low current from a bench supply on coil pins 1 (+) and 8 (-)",
      "measure": "Continuity 3-2, 6-7 at rest; 3-4, 6-5 energized. Coil polarity and operate voltage.",
      "passTarget": "Must match the datasheet bottom view before soldering in.",
      "status": "NOT RUN"
    },
    {
      "id": "B-REL-2",
      "name": "Relay driver qualification",
      "setup": "One TBD62003APG, 3.3 V GPIO through 1 kohm on an input, G6K-2P coil on 5V_SYS, buck at 4.8 and 5.2 V if possible",
      "measure": "Actual coil voltage, operate and release, input current, clamp action, off level",
      "passTarget": "Coil above the 80% must-operate level at the lowest 5V_SYS, off below 0.6 V at the input. Otherwise revert with CON-04.",
      "status": "NOT RUN"
    },
    {
      "id": "B-DET-4",
      "name": "K3_IN logic margin",
      "setup": "DMM at K3_IN and HP635_SENSE with each plug state, with 5V_SYS at 4.8 and 5.2 V if possible",
      "measure": "Node voltages against measured VIN(ON) and VIN(OFF)",
      "passTarget": "K3 on and off with clear margin in every state",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-1",
      "name": "Pi voltage",
      "setup": "Probe at Pi header under full load with 5.0 V buck, adapter at 11.4 and 12.6 V",
      "measure": "Voltage at Pi, vcgencmd get_throttled, wire drop",
      "passTarget": "Above 4.75 V at the Pi. No under-voltage flags.",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-2",
      "name": "Heat",
      "setup": "Closed shell, worst music load 1 hour, thermocouples on SoC, buck, amp, chamber wall",
      "measure": "Temperature, throttling",
      "passTarget": "No throttling at a realistic project. Otherwise add vents, then CON-03.",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-3",
      "name": "Shutdown sequence",
      "setup": "Rocker off, halt, adapter pull, hung Pi",
      "measure": "Order of K3, ENA, GPIO26, Pololu OFF",
      "passTarget": "Speakers mute first. Service button forces off.",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-4",
      "name": "Off-state backfeed",
      "setup": "Adapter connected, Pi off, rocker in both positions. Meter on Pi 3V3 pin 1 and on GPIO5, 6, 16, 17, 23, 24, 26, 27",
      "measure": "Voltage and current into each GPIO",
      "passTarget": "Pi 3V3 stays at 0 V. Every GPIO under 0.3 V. Under 10 uA.",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-5",
      "name": "Rocker held contact",
      "setup": "Rocker kept closed: adapter connect, software shutdown from a menu, reboot, power loss and restore. Then open and close the rocker.",
      "measure": "Pololu state, does the OFF pulse cut power with A held low, does it turn on after restore, does a held contact interfere",
      "passTarget": "Document the behaviour. Do not claim an automatic power cut from software shutdown with the rocker ON unless this proves it. If held A interferes, feed A through a series capacitor or use only the on-board button, and retest.",
      "status": "NOT RUN"
    },
    {
      "id": "B-PWR-6",
      "name": "Fuse coordination review",
      "setup": "Using fuse time-current data and adapter behaviour, then a current-limited short test on each branch at the wiring end",
      "measure": "Fault current, trip time, wire and jack temperature",
      "passTarget": "Wires and jack stay within rating until the fuse or adapter limit acts. A fast trip is not assumed.",
      "status": "NOT RUN"
    },
    {
      "id": "B-LOAD-1",
      "name": "Pi combined load",
      "setup": "Pi 4, 2560 x 1600 at 60 Hz, GK64X, LPK25 Mk2, optional controls, 48 kHz full duplex for 2 hours",
      "measure": "xruns, USB current, temperature",
      "passTarget": "Zero xruns at the chosen period. USB under 1.2 A.",
      "status": "NOT RUN"
    },
    {
      "id": "B-LOAD-2",
      "name": "Full duplex",
      "setup": "aplay and arecord together on the HAT",
      "measure": "Sync, drift",
      "passTarget": "Same clock, no drift",
      "status": "NOT RUN"
    },
    {
      "id": "B-GND-1",
      "name": "Ground noise",
      "setup": "Amp active, HDMI active, capture on",
      "measure": "Hum and whine at PGA 12 and 32",
      "passTarget": "Within 3 dB of B-MIC-5. If not, use amp Molex differential input.",
      "status": "NOT RUN"
    },
    {
      "id": "B-GND-2",
      "name": "Class-D coupling",
      "setup": "Capture spectrum with amp active, mic lead near speaker lead, then correct",
      "measure": "Spurious tones",
      "passTarget": "Sets the final routing spacing",
      "status": "NOT RUN"
    },
    {
      "id": "B-FIT-1",
      "name": "Pi stack",
      "setup": "Sample Pi 4, HAT, heatsink, 12 mm spacers",
      "measure": "Feeler gauge between heatsink and HAT tails; socket engagement",
      "passTarget": "At least 1 mm air gap. Full pin engagement. No touch.",
      "status": "NOT RUN"
    },
    {
      "id": "B-FIT-2",
      "name": "Wire access",
      "setup": "Solder GPIO tails from underside, fit 8 mm standoffs. Follow the current Pi service sequence, including removing the rear power-entry assembly before lowering the stack. Fit the headphone carrier and actual two same-end 3.5 mm plugs; verify insulation below its long headers.",
      "measure": "Bend room, removable connectors, Pi extraction and microSD access, MIKROE header/plug clearances",
      "passTarget": "No pinched wires or live-metal contact. Actual samples fit and can be removed through the documented route; no inference from reference boxes alone.",
      "status": "NOT RUN"
    },
    {
      "id": "B-FIT-4",
      "name": "USB and display power lead length",
      "setup": "Route 0.3 m Adafruit 4473 leads to GK64X and display power with real plug bends",
      "measure": "Slack, bend radius, strain",
      "passTarget": "0.3 m is enough, or swap that one cable to Adafruit 4474. Do not buy duplicates.",
      "status": "NOT RUN"
    },
    {
      "id": "B-FIT-3",
      "name": "HDMI route",
      "setup": "Display ports exit left. Try Adafruit 4302 first. Only if it does not fit, use ribbon parts of the correct handedness and length.",
      "measure": "Bend radius, plenum intrusion, image at 2560 x 1600",
      "passTarget": "One path only. Stable image for 2 hours.",
      "status": "NOT RUN"
    }
  ]
}
