

Midi trs switcher
midi to TRS converter
- Size
- 80 × 50 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 33
- Nets
- 46
- Pads
- 109
- Tracks, vias
- 142, 31
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 25 Sep 2026
- Updated
- 27 Sep 2026
Overview
Midi trs switcher is an open-source printed circuit board by teste80, from the teste80/badascule-bridge repository on GitHub. It is a 2-layer board of 80 × 50 mm with 33 parts on 46 nets, routed with 142 tracks and 31 vias.
It is built around the G3VM-61VY2 and H11L1. Its parts include 14 resistors, 6 ICs, 5 diodes, 2 connectors and 1 capacitor. It belongs with the audio and music boards and the ESP32 boards of this library.
Main components
2G3VM-61VY2
SOP-4-2.54mm-40℃~+110℃ 1.27V 100us 1Ω 3.75kV 30mA 500mA 600us 60V One set normally open: 2A (SPST - normally open) SOP-4-2.54mm Solid State Relays (MOS Output) ROHSOmronSolid State Relays (MOS Output)H11L1
DIP-6-55℃~+100℃ 1 1.6mA 1Mbit/s 250mW 3V~15V 5kV DC DIP-6 Logic Output Optoisolators ROHSEverlight ElectronicsLogic Output Optoisolators
README
board/README.mdbadascule-bridge board
A small, USB-powered MIDI-to-dual-TRS switcher that receives MIDI over a 5-pin DIN input and switches the tip and ring contacts of two TRS jacks. It is intended for equipment that accepts external contact-closure controls on TRS connectors. The switching logic is implemented in firmware on a Seeed Studio XIAO ESP32-S3; the schematic describes the hardware, not a fixed MIDI message map.
The included firmware supports both DIN and USB MIDI Program Change messages, with configurable mappings and manual control through a Wi-Fi web UI.
Electrical warning: The TRS outputs are intended only for low-energy footswitch or contact-closure control inputs. Never connect an amplifier speaker output, mains voltage, a power-supply rail, or another powered load. Doing so can damage the PhotoMOS relays, the PCB, or the connected equipment. A compatible control input may place a small sensing voltage on its contacts; check the target device's documentation and confirm its voltage and current are within the relay and board ratings before connecting it. The G3VM-61VY2's absolute maximum load ratings are 60 V AC peak/DC and 500 mA at 25 °C; these are limits, not recommended operating targets. See the manufacturer's specifications.
Architecture
5-pin DIN MIDI IN → H11L1 optocoupler → XIAO ESP32-S3
├─ output 1 tip → solid-state relay → TRS jack 1
├─ output 1 ring → solid-state relay → TRS jack 1
├─ output 2 tip → solid-state relay → TRS jack 2
└─ output 2 ring → solid-state relay → TRS jack 2- The DIN input uses a 220 Ω resistor, 1N4148 protection diode, and H11L1 logic-output optocoupler. Its output goes to the XIAO's D7 input with a 470 Ω pull-up to 3.3 V; a 100 nF capacitor decouples the optocoupler supply.
- Four GPIO outputs drive the input LEDs of four G3VM-61VY2 MOSFET relays through 390 Ω resistors. Each channel has an indicator LED with a 1.5 kΩ resistor and a 100 kΩ pull-down at the drive node.
- D0 switches jack 1 tip; D1 switches jack 1 ring; D3 switches jack 2 tip; D4 switches jack 2 ring. Each relay closes its contact between the named tip or ring and the corresponding jack sleeve. The two TRS jacks are independent.
- The XIAO supplies the 3.3 V logic rail. Power the assembled board through the XIAO's USB-C connector.
Main components
| Qty | Component | Role |
|---|---|---|
| 1 | Seeed Studio XIAO ESP32-S3 113991114 | MIDI decoding and output control |
| 1 | H11L1 logic-output optocoupler | DIN MIDI input isolation |
| 1 | 1N4148 diode | MIDI input protection |
| 4 | Omron G3VM-61VY2 MOSFET relay | Tip/ring contact switching |
| 1 | REAN NYS325 5-pin DIN connector | MIDI input |
| 2 | Neutrik NMJ6HFD2 TRS jack | Switched outputs |
| 4 | Indicator LED | Channel state indication |
| 1 | 220 Ω resistor | MIDI input current limit |
| 1 | 470 Ω resistor | Optocoupler output pull-up |
| 4 each | 390 Ω, 1.5 kΩ, and 100 kΩ resistors | Relay LED current limit, indicator current limit, and pull-down |
| 1 | 100 nF, 50 V non-polarized capacitor | Optocoupler supply decoupling |
Check the KiCad schematic, footprints, and BOM before ordering: package and mounting choices are defined by the project files. The described schematic also includes four PCB mounting holes.
Resistor and capacitor size
Use 1/4 W through-hole axial resistors in the DIN0207 size. The PCB footprints are designed for a body approximately 6.3 mm long × 2.5 mm diameter, with 7.62 mm lead spacing.
For C1, use a 100 nF non-polarized through-hole capacitor rated for at least 50 V. The prototype uses a film capacitor, but another suitable capacitor type may be used. Its PCB footprint has 5 mm lead spacing and is sized for a body approximately 5 mm wide × 2.5 mm thick, so verify that the chosen part fits.
Enclosure fit and recommended connectors
Mount the Seeed Studio XIAO ESP32-S3 on pin headers (often sold as goldpin headers) rather than soldering it directly to the PCB. The header height is part of the provided enclosure design and positions the XIAO correctly relative to the enclosure openings. If the XIAO is mounted at a different height, the enclosure design will need to be adjusted.
Use Neutrik NMJ6HFD2 TRS jacks when building the board for the provided enclosure. This model sits flush against the PCB and matches the dimensions used for the sample enclosure. Other jacks may require changes to the PCB footprint or enclosure.
The recommended 5-pin DIN connector is the REAN NYS325. It offers better build quality than many cheaper equivalents. If substituting another connector, verify its footprint, and enclosure fit before ordering the PCB or making the enclosure.
LED brightness and custom enclosure wiring
The indicator LEDs use 1.5 kΩ series resistors to keep them from being overly bright. If more brightness is needed, a lower resistance can be used, provided the resulting current stays within the LED and GPIO ratings. These are the indicator LED resistors, separate from the 390 Ω relay input resistors.
The board also includes footprints for Molex KK254 series (2.54 mm pitch) connectors for the indicator LEDs and DIN MIDI input connector. Other 2.54 mm pitch connectors can be used if their pin layout and mechanical dimensions match the footprints. These are optional: builders can use the board-mounted components or fit the connectors and wire the LEDs and DIN connector to positions of their choice in a custom enclosure. Check the footprint and pinout when choosing mating connectors, and preserve LED polarity and DIN pin assignments when wiring them.
Known board issue
The current MIDI input wiring connector uses a 3-pin footprint, although the MIDI input only needs two wires. The middle pin is not connected; use the two outer pins for the MIDI input wiring, following the schematic's pin assignments. Changing this to a 2-pin footprint is planned for the next board revision.
Files and building
The board files include the KiCad project, schematic, PCB layout, and Gerber files ready for fabrication. Use the editable KiCad files as the source of truth for the circuit, footprints, and component values. The Gerber files can be sent directly to a PCB manufacturer.
Additional manufacturing exports, including component designators, positions,
and the IPC netlist, are available in the production folder.
A direct link to the PCBWay shared project will be added here when it is available, allowing the board to be ordered without uploading the Gerbers manually. Ordering through that link also supports this project: I receive a small commission from qualifying orders placed through it.
Keep the .kicad_pro, .kicad_sch, and .kicad_pcb files here, together with any
project-specific symbol or footprint libraries. Use project-relative library and
3D model paths so the project opens on other machines. Keep fabrication outputs
and the bill of materials in the production/ folder.
The enclosure is a prototype, so check physical fit against your chosen jacks, board, headers, and other hardware before making a finished case.
Populate the PCB and follow the firmware build and upload instructions to program the XIAO. The included firmware drives D0, D1, D3, and D4 and lets you configure Program Change mappings in the web UI. Check each output with a multimeter before connecting the target device. Confirm the target's TRS control pinout and electrical requirements: these outputs are contact closures to sleeve, not audio outputs or MIDI-over-TRS ports. The schematic itself does not define the MIDI mapping; that behavior belongs to the firmware.
Status
Prototype design. Verify the PCB, enclosure fit, and behavior with your target equipment before relying on it in a live setup.
License
See the project license and attribution terms for the license applicable to these materials.
Parts
33| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100K | MyLib:Resistor_THT__R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_485ec1927a | R8, R9, R13, R14 |
| 4 | 1K5 | MyLib:Resistor_THT__R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_485ec1927a | R3, R4, R5, R6 |
| 4 | 390R | MyLib:Resistor_THT__R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_485ec1927a | R7, R10, R11, R12 |
| 4 | G3VM-61VY2 | MyLib:Package_SO__SOP-4_3.8x4.1mm_P2.54mm_dfcff26fbc | U1, U3, U4, U5 |
| 4 | LED | MyLib:Connector_Molex__Molex_KK-254_AE-6410-02A_1x02_P2.54mm_Vertical_3f03d068ee | D2, D3, D4, D5 |
| 4 | MountingHole | MyLib:MountingHole__MountingHole_3.2mm_M3_ISO7380_76ef0fe0f6 | H1, H2, H3, H4 |
| 2 | NMJ6HFD3 | MyLib:Connector_Audio__Jack_6.35mm_Neutrik_NMJ6HFD3_Horizontal_bdcec20657 | J1, J2 |
| 1 | 100nF | MyLib:Capacitor_THT__C_Disc_D5.0mm_W2.5mm_P5.00mm_0d7f7f987d | C1 |
| 1 | 1N4148 | MyLib:Diode_THT__D_DO-35_SOD27_P7.62mm_Horizontal_e9cf4a1726 | D1 |
| 1 | 220R | MyLib:Resistor_THT__R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_485ec1927a | R1 |
| 1 | 470R | MyLib:Resistor_THT__R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal_485ec1927a | R2 |
| 1 | H11L1 | MyLib:Package_DIP__DIP-6_W7.62mm_be17521b56 | U6 |
| 1 | XIAO-ESP32-S3-SMD | MyLib:Seeed_Studio_XIAO_Series_Library__XIAO-ESP32-S3-DIP_e509388080 | U2 |
| 1 | ~ | Connector:midi_out_FanPinHeader_1x03_P2.54mm_Vertical | MIDI_IN |
Questions
How big is the Midi trs switcher PCB?
It measures 80 × 50 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Midi trs switcher use?
33 parts, built around the G3VM-61VY2 and H11L1. 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.
Where can I download the Midi trs switcher KiCad files?
From the teste80/badascule-bridge repository on GitHub, at the commit this page was made from: the board is board/midi_trs_switcher.kicad_pcb and its schematic board/midi_trs_switcher.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Midi trs switcher design in my own project?
Its repository states no licence, so its author keeps all rights: ask teste80 before reusing the design.
Similar boards
- 4 layers68 × 100 mm

- 2 layers108 × 50.3 mm

- 4 layers60 × 94 mm

DaisySeedPedal125b
bkshepherd/DaisySeedProjects
A collection of hardware and software projects based around the Electro-Smith Daisy Seed
80 parts559MIT - 2 layers245.2 × 100 mm

V5 main
zynthian/zynthian-hw
Zynthian hardware stuff: PCBs, schemes, parts specifications, pin assignment, ...
160 parts156 - 2 layers64.3 × 56 mm

Mt32-pi midi hat
chris-jh/mt32-pi-midi-hat
A Raspberry Pi Midi Hat for the project mt32-pi by Dale Whinham (https://github.com/dwhinham/mt32-pi)
22 parts139GPL-3.0 - 2 layers100 × 100 mm

- 2 layers152.4 × 68.6 mm

Pico test synth2
todbot/pico_test_synth
Simple board to help make synths with Raspberry Pi Pico/Pico2 and PCM5102 I2S DAC
55 parts57MIT - 2 layers51.3 × 96.2 mm

Minisynth32
grantek/minisynth32
A 3D-printable MIDI synthesiser inspired by the Roland MT-32 and clumsyMIDI, and powered by the mt32-pi MT-32 emulator.
32 parts45CC-BY-SA-4.0