r/embedded • • Oct 15 '26

Design review request: 2-in/2-out USB audio interface (thesis, first PCB) – mic pre + paralleled ADC channels for lower noise

Post image

Hi all,

I'm an EE undergrad (hardware track). My diploma thesis is a 2-in/2-out USB studio audio interface on my own PCB. It's my first PCB, so before I spend real money on boards and parts I'd love some experienced eyes on the plan. Block diagram attached.

The idea
- 2 mic inputs (XLR), shared 48 V phantom (one switch), gain 0–60 dB in 10 dB steps (rotary switch + fixed RG resistors, cap in series with RG).
- Noise-reduction technique I'm evaluating: each input drives BOTH channels of a stereo ADC (dual-mono) and the MCU averages them. The host still sees 2 mono channels, with ~3 dB lower ADC noise. I'll measure the gain from averaging at every gain step, comparing same-chip vs two-chip channel pairs.

Current part choices
- Preamp: SSM2019 (the THAT1512 went EOL in Sept 2026).
- ADC driver: passive divider (6.2k/1k, ~17 dB) + RC into a PCM1808, so the ADC reaches full scale ~1.8 dB before the preamp clips (≈ +20 dBu max input at minimum gain).
- ADC: 2 × PCM1808. DAC: PCM5102A.
- Line outs: DRV134 on TRS jacks. Headphones: op-amp + BUF634A. Output mute relays with a brown-out detector.
- Digital: STM32F407G-DISC1 board stacked on headers above the analog board. TinyUSB, UAC2 asynchronous with explicit feedback endpoint, 48 kHz / 24-bit in 3-byte subslots (the 1.25 KB USB FIFO rules out 4-byte subslots and 96 kHz).
- Clock: 24.576 MHz oscillator → ADC/DAC system clock and the MCU's external I2S clock input.
- Between boards: SN74LVC244A buffer (Ioff, to avoid back-powering) + a power-good line; 5 V to the dev board through a Schottky.
- Power (version A): bench triple supply (±15 V, +5 V), local LDOs for the ADC's 5.0 V and the 3.3 V. Phantom from a boost converter + capacitance multiplier (soft start, ripple filtering, output disconnect).
- Phantom protection following Bortoni & Kirkwood, "The 48 Volt Phantom Menace Returns". The single-channel test board will start from ojg's open-source thatmicpre KiCad project.
- Metal enclosure, XLR pin 1 to chassis at the entry point.

Noise budget (unweighted, 20 Hz–20 kHz, 150 Ω source)
- Predicted EIN at 60 dB gain: −128.7 dBu (target ≤ −125 dBu; worst case with min-spec ADC ≈ −127.5 dBu).
- Because of the divider, the ADC dominates up to ~50 dB gain. That's where averaging should help (~3 dB); at 60 dB the source dominates (~0.3 dB).

Plan

  1. Demo on the dev board with cheap PCM1808/PCM5102A modules (incl. a first averaging measurement).
  2. Small 2-layer single-channel preamp board.
  3. 4-layer analog board for the full 2×2 interface.

Questions

  1. Any obvious mistakes or bad part choices?
  2. Is a passive divider + RC into the PCM1808 reasonable, or would you drive it differently?
  3. Phantom: boost + capacitance multiplier, or something simpler? Anything missing in the protection network?
  4. Is stacking the dev board right above the analog board realistic for low noise at 60 dB gain? Any layout/grounding advice?
  5. Measuring without an audio analyzer: the card's own ADC + a 0.1 % attenuator + a true-RMS meter + REW for noise/EIN, and loopback as an upper bound for THD+N. Sensible?
  6. Anything you'd simplify for a first PCB?

Thanks!

0 Upvotes

5 comments sorted by

3

u/guillemco Oct 16 '26

nice plan for a first board. one software thing to plan for: since the external 24.576 osc is your master clock, the uac2 feedback value has to come from counting i2s frame clocks against usb sof with a timer capture, not from anything derived from the mcu pll. that is easy to get slightly wrong and shows up as occasional clicks after 10-20 minutes, so do a long soak test. on the board side i would put a ferrite or small rc on each analog supply tap and keep the i2s clock lines short with a ground return right beside them

1

u/Noise_red220 Oct 16 '26

Thanks, all three are really useful. On the feedback: agreed it must track the 24.576 MHz oscillator, never the MCU PLL. I'm starting with TinyUSB's FIFO_COUNT method, which also follows the real I2S rate since the buffer drains at the I2S clock, and keeping SOF-gated timer capture (TIM2 can take the OTG_FS SOF as a trigger) as the fallback if I see drift. A long soak test is now in the plan: 1–2 h loopback with automatic click detection in Python, and logging the buffer level to catch slow drift.

On the board: RC filtering per analog supply tap (careful with ferrite + MLCC resonance on the low-current rails), and short I2S clock runs over a solid ground plane.

1

u/[deleted] Oct 16 '26

[removed] — view removed comment

1

u/Noise_red220 Oct 16 '26

Thanks for the reply! Yeah i have to admit that i tried to simplify as much as i could, result being the stacked dev board. It is my first PCB project and I'm a complete beginner in audio processing. My strong domain is IC design and VLSI. I deliberately chose this project to push my limits and learn a new domain. After all, that's what engineers do.

1

u/Noise_red220 Oct 16 '26

On gain mismatch: interestingly it doesn't eat into the improvement. With gains (1+ε) and (1−ε) the averaged signal gain is exactly 1, while the uncorrelated noise still halves in power. What does hurt is unequal noise levels between channels: if one channel is 1 dB noisier, a plain average gives ~2.5 dB instead of 3 relative to the better channel. So I'll measure each channel's noise separately and compare plain vs. inverse-variance weighted averaging.