
Ghost fader stack main
chris-albert/ghost-fader
MIDI-controlled volume and pan for balanced stereo synths (Teensy 4.0 + PGA2310)

MIDI-controlled volume and pan for balanced stereo synths (Teensy 4.0 + PGA2310)
Ghost fader is an open-source printed circuit board by chris-albert, from the chris-albert/ghost-fader repository on GitHub. It is a 2-layer board of 108 × 80 mm with 82 parts on 68 nets, routed with 658 tracks and 16 vias.
It is built around the OPA2134PA, THAT1646S08-U and ISO7762FDW, with the L78L05CZ and NRJ6HF among its other parts. Its parts include 45 capacitors, 17 resistors, 10 ICs, 4 connectors and 2 inductors. It belongs with the audio and music boards and the RP2040 boards of this library.
USB-MIDI-controlled volume and pan for two balanced 1/4" line channels. Balanced in, always-balanced out, one input becomes stereo automatically. Bus-powered Seeed XIAO RP2040 plus a 2x2 gain matrix of PGA2310 attenuators. Revision D: USB only, no DIN jack, no DC jack; the audio side is galvanically isolated from the computer. A TI ISO7762F carries the four control lines and two sense lines across a split in the ground pours, the DC-DC module is the only power path across it, and a 78L05 makes the PGA logic supply on the audio side. About $6 of parts on top of rev C (XIAO RP2040, Traco TBA 2-0522).
The full schematic package (block diagram, five sheets, level budget, USB power budget, MIDI map, build order) is published at https://chris-albert.github.io/ghost-fader/ (source: docs/index.html). This file is the short version.
J1/J2 TRS in -> THAT 1246 (bal->SE, -6 dB) -> 2x PGA2310 (2x2 matrix, 4 gains)
-> OPA1642 summers (non-inverting, x2) -> THAT 1646 (SE->bal, +6 dB) -> J3/J4 TRS outEverything runs from the USB cable. There is no external power supply, DC jack or wall adapter. The XIAO's 5V pin is USB VBUS straight through, so it exports the bus 5 V. That feeds PS1, a small isolated 5 V -> +/-12 V DC-DC converter soldered to the board (Traco TBA 2-0522, 2 W, SIP-7), for the analog stages. The PGA2310 logic supply and the audio side of the isolator run on +5VA, made from +12 V by U10, a 78L05, so nothing on the audio side references the USB ground.
PS1 is unregulated: the rails follow the USB voltage and the load, from about +/-11 V on a sagging port to about +/-14 V at 5.25 V and light load. Every part on the rails is rated for that (the PGA2310 absolute maximum is 16 V, which is why the +/-15 V TBA 2-0523 is not used). Headroom at +/-12 V is about 2 dB less than on +/-15 V: the output driver clips near +22 dBu instead of +24. Total rail capacitance, about 120 uF per rail, stays under the 220 uF the TBA 2 allows.
| Load | Current at 5 V |
|---|---|
| XIAO RP2040, isolator side 1 | ~35 mA |
| PS1 delivering ~55 mA on +12 V (analog ~40 mA plus U10 ~15 mA) and ~40 mA on -12 V, at ~80 % | ~230 mA |
| LED | ~2 mA |
| Total | ~265 mA typical, ~330 mA worst case |
USB 2.0 ports allow 500 mA; USB 3 / USB-C ports allow 900 mA or more. Use a real port or a powered hub and a data cable (not charge-only).
Ground: there are two. GND_USB is the XIAO, its USB-C shell, the DIP switch, the LED, the ferrite, the reservoir cap, the isolator's side 1 and the DC-DC input. GND is everything audio, the PGA logic, the isolator's side 2 and the DC-DC output. They meet only through C45, a 1 nF cap that gives the converter's switching noise a local return so it does not radiate as common mode, and R17, 1 M, which stops the audio side drifting when nothing is plugged in. So the audio ground follows whatever gear is plugged into the jacks, the way a transformer-isolated DI does, and the computer's ground noise never enters the box. The isolator is the F (fail-safe low) part: when the XIAO is unpowered its outputs sit low, so the PGAs stay muted until the firmware is up.
For that to hold in the box, the XIAO's USB-C shell must not touch the enclosure: the enclosure belongs to the audio ground (bond it to the jack sleeves or to the PS1 Common pad with a wire, since the NRJ6HF bushings are plastic), so use a plastic bezel or a clearance cutout for the USB-C, not a metal-to-metal fit.
| Pin | Signal |
|---|---|
| USB-C | MIDI in (class-compliant, TinyUSB) and 5 V in |
| 5V | USB 5 V out to FB1, PS1 |
| 3V3 | Isolator side 1 (U8 VCC1) |
| D0, D1 (GP26, GP27) | SENSE_L, SENSE_R through U8 (100 k pull-ups to +5VA on the audio side, internal pull-up off) |
| D2-D5 (GP28, GP29, GP6, GP7) | MIDI channel DIP, INPUT_PULLUP |
| D6 (GP0) | /MUTE to both PGA2310 through U8 (10 k pull-down on the PGA side mutes at boot) |
| D7 (GP1) | /CS through U8 |
| D8 (GP2, SCK) | SCLK through U8 |
| D9 (GP4, the MISO pin) | MIDI activity LED. Nothing comes back from the PGAs, so bit-bang the frame or leave SPI RX unassigned |
| D10 (GP3, MOSI) | SDI of U3 through U8; U3 SDO chains to U4 SDI |
The schematic symbol numbers the XIAO's 14 pins as Seeed's footprint does: 1-7 down the left row from the USB end (D0-D6), 8-14 up the right row (D7-D10, 3V3, GND, 5V).
SPI frame: 32 bits per update, U4's 16-bit word first, then U3's. Each word is the right-channel byte then the left. Code = 192 + 2 * dB, 0 = mute.
| CC | Function |
|---|---|
| 7 | Volume, 127 = 0 dB, 40*log10(v/127) dB |
| 10 | Pan (mono: constant power; stereo: balance) |
| 14, 15 | L / R input trim, +/-12 dB, 64 = 0 dB |
| 85 | Mono sum on/off |
| 120 | Hard mute |
Prices are approximate single-piece USD.
| Ref | Qty | Part | Description | ~$ ea | Notes |
|---|---|---|---|---|---|
| U1, U2 | 2 | THAT 1246S08 | Balanced line receiver, -6 dB | 5.50 | Alt: TI INA137 |
| U3, U4 | 2 | TI PGA2310PA | Stereo volume control, +/-15 V, SPI, DIP-16 | 11.00 | PGA2310UA for SOIC. Not PGA2311 |
| U5 | 1 | TI OPA2134PA | Dual JFET op-amp, DIP-8 | 4.00 | Alt: NE5532P |
| U6, U7 | 2 | THAT 1646S08 | Cross-coupled balanced driver, +6 dB | 5.50 | Alt: TI DRV134 |
| U8 | 1 | TI ISO7762FDW | 6-channel digital isolator, 4 forward / 2 reverse, fail-safe low, SOIC-16W | 4.50 | Not the plain ISO7762 (defaults high, which would unmute the PGAs while the XIAO boots) |
| U9 | 1 | Seeed XIAO RP2040 | MCU with USB-C, class-compliant USB MIDI via TinyUSB | 5.00 | On header pins. Its 5V pin is USB VBUS and feeds the board |
| U10 | 1 | L78L05 | 5 V 100 mA regulator, TO-92, from +12 V | 0.30 | Makes +5VA on the audio side for the PGA logic and U8 side 2, about 15 mA |
| PS1 | 1 | Traco TBA 2-0522 | Board-mounted isolated DC-DC, 4.5-5.5 V in, +/-12 V 80 mA, 2 W, unregulated, SIP-7 | 5.00 | Fed from USB 5 V, not an external supply. Any industry-standard SIP-7 2 W +/-12 V module (Mornsun B0512, RECOM RB-0512D) has the same pinout. Not a +/-15 V part: unregulated rails would pass the PGA2310's 16 V maximum at light load |
| FB1 | 1 | Ferrite bead 600 R @ 100 MHz, >=1 A | Keeps switching noise off USB | 0.20 | |
| J1-J4 | 4 | Neutrik NRJ6HF | 1/4" TRS PCB jack, T and R switching | 3.00 | Switch contacts used on J1, J2 only |
| L1, L2 | 2 | 10 uH, >=300 mA | Rail filters | 0.40 | |
| SW1 | 1 | 4-way DIP | MIDI channel | 0.80 | |
| LED1 | 1 | 3 mm LED | Activity | 0.15 | |
| C3-C6, C17-C20 | 8 | 10 uF non-polar | C3-C6 coupling into PGA inputs, C17-C20 THAT 1646 sense caps | 0.40 | Nichicon UES |
| C1, C2, C7-C10, C15, C16 | 8 | 100 pF C0G | RF caps at every jack tip and ring | 0.10 | |
| C11 | 1 | 47 uF 10 V low-ESR | USB-side reservoir | 0.25 | |
| C12, C13 | 2 | 100 uF 25 V | Rail filters | 0.25 | |
| C14 | 1 | 10 uF | +5VA logic rail | 0.10 | |
| C21-C39, C44 | 20 | 100 nF X7R | One per supply pin; C37/C38 at U10, C39/C44 at U8 | 0.05 | |
| C45 | 1 | 1 nF 1 kV ceramic | Ground barrier cap, GND to GND_USB | 0.15 | Straddles the pour gap at PS1 |
| C40-C43 | 4 | 10 uF 25 V | +/-12 V bulk, input end and output end | 0.10 | |
| R2-R9 | 8 | 10 k 1% | Summing and feedback | 0.05 | |
| R10-R13 | 4 | 10 R | Output build-out | 0.05 | |
| R1, R14 | 2 | 100 k | Plug-sense pull-ups to +5VA | 0.05 | 100 k, not 1 M: U8's inputs leak up to 10 uA |
| R15, R16 | 2 | 10 k, 1 k | Mute pull-down, LED | 0.05 | |
| R17 | 1 | 1 M | Ground barrier bleed, GND to GND_USB | 0.05 | Straddles the pour gap |
| CABLE | 1 | USB A/C to USB-C data cable | Short and thick | 3.00 | |
| ENC | 1 | Hammond 1590BB | Die-cast enclosure | 12.00 | |
| PCB | 1 | 2-layer 108 x 80 mm | Gerbers in hardware/gerbers/ | 10.00 | Corner notches clear the 1590BB lid-screw bosses |
| J5, J6 | 2 | 2x6 shrouded box header, 2.54 mm | Two-board stack only: board link | 0.30 | Stock IDC-Header_2x06 footprint |
| RIBBON | 1 | 12-way IDC ribbon, 2x6 sockets both ends, ~50 mm | Two-board stack only: J5 to J6, pin for pin | 1.50 | |
| STANDOFF | 4 | M3 x 15 mm standoff, 8 M3 screws | Two-board stack only: control board above the main board | 1.50 | 15 mm clears the 11 mm radial caps under it |
Estimated total: about $116 per unit, or about $106 with the narrow board in a printed box instead of the 1590BB, about $112 for the two-board stack (two small boards and the link parts). Cost-down variant with one PGA2310 and a DG419 routing switch instead of the matrix: about $90, loses cross-feed and mono-sum.
hardware/kicad/ is a KiCad 9 project: root sheet plus input, matrix, output, control and power sheets (a second root, ghost-fader-stack.kicad_sch, shares those five sheets and adds sheet 6, the board-link connector pair for the two-board stack below), with a project symbol library (THAT 1246/1646, PGA2310, OPA2134, XIAO RP2040, TBA 2, ISO7762F, 78L05, the GND_USB power symbol) and a footprint for the XIAO on header pins; the TBA 2, the isolator and the regulator use KiCad's stock footprints. ERC passes with zero violations on both roots and the netlist (61 nets, 263 pins; 287 with the link connectors) has been checked pin-for-pin against hardware/kicad/tools/check.py. bom.csv is the KiCad BOM export. Rendered sheets and a PDF are in docs/schematic/ and on the published page.
Every part has a footprint; the jacks use KiCad's stock Neutrik NRJ6HF horizontal footprint, whose pad names match the symbol. The schematic is generated by hardware/kicad/tools/gen.py; edit it in KiCad directly from here on, or edit the generator and rerun it (it needs KiCad's stock symbol libraries at the macOS install path).
hardware/kicad/ghost-fader.kicad_pcb is a routed 2-layer board, 108 x 80 mm, DRC clean against the schematic (the only warnings are the jack noses' and the USB-C shell's silkscreen crossing the board edge, which is inherent to the footprints). Gerbers, Excellon drill file and drill map are in hardware/gerbers/ and zipped as hardware/ghost-fader-gerbers.zip; upload the zip as-is to JLCPCB, PCBWay or OSH Park (2 layers, 1.6 mm, any finish). Renders are in docs/pcb/ and on the published page.
Layout, rear edge at the top:
The LED is a through-hole 3 mm on the left edge near the front corner; bend it out through a hole in the left wall, or toward the front panel, or fit a light pipe. To regenerate the board from the schematic (placement is a table in tools/build_pcb.py, routing is Freerouting):
cd hardware/kicad
kicad-cli sch export netlist --format kicadsexpr -o /tmp/gf.net ghost-fader.kicad_sch
<KiCad python3> tools/build_pcb.py /tmp/gf.net # placement, outline, pours, rules
<KiCad python3> tools/route.py ghost-fader.kicad_pcb <freerouting launcher or jar>
kicad-cli pcb drc --severity-all --schematic-parity -o /tmp/drc.rpt ghost-fader.kicad_pcb<KiCad python3> is the interpreter bundled with KiCad (on macOS /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3), which has the pcbnew module. Freerouting 1.9 was used; 2.4 routes the same board but writes an empty session file from the command line.
hardware/kicad/ghost-fader-narrow.kicad_pcb is the same schematic on a second, independent board shaped for a signal chain: 207 x 38 mm, inputs on the right end, outputs on the left, the XIAO's USB-C out of the middle of the rear long edge, so the box sits in-line like a pedal. It is as narrow as two side-by-side jacks allow: the NRJ6HF jacks sit on an 18 mm pitch (34.8 mm) plus edge clearance. The XIAO (21 mm long) lies across the board with its USB-C at the rear edge. It needs a 3D-printed box: about 40 x 210 mm inside, a ledge under the long board edges, two jack holes in each end wall on the jack centres (10 and 28 mm from the rear edge of the board, at the NRJ6HF bushing height), a USB-C slot and a 3 mm LED hole in the rear wall. No mounting holes; the four jack nuts hold the board. Routed, DRC clean against the schematic (the same jack-nose silkscreen warnings as the main board), 0.6 mm power tracks, 0.3 mm signals, split ground pours both sides. The USB ground island is a pocket on the rear edge, x 104 to 141 mm by 28 mm deep, holding the XIAO, LED, DIP switch, ferrite and reservoir; the audio ground wraps under it so the rails and audio pass from the input end to the output end. U8 straddles the pocket's left wall, PS1 its right wall. Gerbers in hardware/gerbers-narrow/ and hardware/ghost-fader-narrow-gerbers.zip; renders in docs/pcb-narrow/. The 1590BB board above is unchanged.
Everything runs in columns along the length, left to right: output jacks, RF caps, drivers with their sense caps stacked, build-outs and 100n, summer with its resistors, coupling caps, the two PGA2310s stacked across the board with their SPI rows facing each other, the isolator, the LED and XIAO, DIP switch, ferrite and reservoir over the barrier parts and +/-12 V bulk caps, DC-DC, 78L05 and rail filters, receivers with the sense pull-ups, bulk caps, RF caps, input jacks. The LED sits at the rear edge just left of the XIAO, about 107 mm from the left end. Most reference labels sit on the part bodies because there is no room beside them; they read on the bare board. Parts come within 1 mm of the long edges, so give the printed walls clearance above the board edge.
To regenerate: same steps as above with tools/build_pcb_narrow.py in place of tools/build_pcb.py and ghost-fader-narrow.kicad_pcb as the board.
The narrow board is long because everything sits in one row. hardware/kicad/ghost-fader-stack-main.kicad_pcb and ghost-fader-stack-control.kicad_pcb split the same circuit over two boards, one above the other, so the in-line box drops from 207 to 150 mm long and the jacks are 57 mm closer together. Both boards are 38 mm wide like the narrow one; the box is about 40 x 152 mm inside and about 32 mm tall instead of 20.
Both boards are routed and DRC clean (0 unconnected, the usual jack-nose and USB-shell silkscreen warnings), 0.6 mm power tracks, 0.3 mm signals. Schematic parity is checked against ghost-fader-stack.kicad_sch; since each board holds half the parts, the parity report lists the other board's footprints as missing and nothing else, and no pad disagrees with the schematic. Note that kicad-cli pcb drc --schematic-parity only finds the schematic when the board file has the schematic's name, so to check parity copy a board next to the schematic as ghost-fader-stack.kicad_pcb first (the narrow board was re-checked the same way against ghost-fader.kicad_sch and is clean). Gerbers in hardware/gerbers-stack-main/ and hardware/gerbers-stack-control/ with zips beside them; renders and copper SVGs in docs/pcb-stack/.
To regenerate both boards from the stack schematic (placement for both is in tools/build_pcb_stack.py):
cd hardware/kicad
kicad-cli sch export netlist --format kicadsexpr -o /tmp/gf-stack.net ghost-fader-stack.kicad_sch
<KiCad python3> tools/build_pcb_stack.py /tmp/gf-stack.net # writes both boards
<KiCad python3> tools/route.py ghost-fader-stack-main.kicad_pcb <freerouting>
<KiCad python3> tools/route.py ghost-fader-stack-control.kicad_pcb <freerouting>hardware/kicad/ has the real pin numbers and is the one to lay out from.| Qty | Value | Footprint | References |
|---|---|---|---|
| 20 | 100n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C21, C22, C23, C24, C25, C26, C27, C28, C29, C30, C31, C32, C33, C34, C35, C36 +4 |
| 9 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R2, R3, R4, R5, R6, R7, R8, R9, R15 |
| 8 | 100p C0G | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C1, C2, C7, C8, C9, C10, C15, C16 |
| 8 | 10u NP | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C3, C4, C5, C6, C17, C18, C19, C20 |
| 5 | 10u | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C14, C40, C41, C42, C43 |
| 4 | 10R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R10, R11, R12, R13 |
| 4 | NRJ6HF | Connector_Audio:Jack_6.35mm_Neutrik_NRJ6HF_Horizontal | J1, J2, J3, J4 |
| 2 | 100k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R14 |
| 2 | 100u 25V | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C12, C13 |
| 2 | 10uH 300mA | Inductor_THT:L_Axial_L7.0mm_D3.3mm_P10.16mm_Horizontal_Fastron_MICC | L1, L2 |
| 2 | PGA2310PA | Package_DIP:DIP-16_W7.62mm | U3, U4 |
| 2 | THAT1246S08 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1, U2 |
| 2 | THAT1646S08 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U6, U7 |
| 1 | 1M | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R17 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R16 |
| 1 | 1n 1kV | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C45 |
| 1 | 47u low-ESR | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C11 |
| 1 | 600R@100MHz 1A | Inductor_THT:L_Axial_L7.0mm_D3.3mm_P10.16mm_Horizontal_Fastron_MICC | FB1 |
| 1 | ISO7762FDW | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U8 |
| 1 | L78L05 | Package_TO_SOT_THT:TO-92_Inline_Wide | U10 |
| 1 | MIDI act | LED_THT:LED_D3.0mm | LED1 |
| 1 | MIDI channel | Button_Switch_THT:SW_DIP_SPSTx04_Slide_6.7x11.72mm_W7.62mm_P2.54mm_LowProfile | SW1 |
| 1 | OPA2134PA | Package_DIP:DIP-8_W7.62mm | U5 |
| 1 | TBA 2-0522 | Converter_DCDC:Converter_DCDC_TRACO_TBA2-xxxx_Dual_THT | PS1 |
| 1 | XIAO RP2040 | GhostFader:XIAO_RP2040_THT | U9 |

chris-albert/ghost-fader
MIDI-controlled volume and pan for balanced stereo synths (Teensy 4.0 + PGA2310)

chris-albert/ghost-fader
MIDI-controlled volume and pan for balanced stereo synths (Teensy 4.0 + PGA2310)

kennito2035/convey
CONVEY: open 8-channel patient-isolated EEG/sEMG/ECG acquisition board (ADS1299, KiCad 10)




Jscott44/RTEP5-the-raspberry-jam
Realtime digital guitar effects pedal designed for Raspberry PI, written in C++

r4ptor/headphone-DAC-with-amp
A portable (headphone) USB DAC with a separate conversion stage.


alpibrusl/cancho-afm
An automatic AFM (and a high-speed one as the second goal): software in cancho, controller in cancho-hdl, interface in cancho-ui, hardware open only. Design stage.
It measures 108 × 80 mm and has 2 copper layers, 1.6 mm thick.
82 parts, built around the OPA2134PA, THAT1646S08-U, ISO7762FDW and L78L05CZ. 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.
From the chris-albert/ghost-fader repository on GitHub, at the commit this page was made from: the board is hardware/kicad/ghost-fader.kicad_pcb and its schematic hardware/kicad/control.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask chris-albert before reusing the design.