TRS Midi Breakout Board


#1

Hi everyone,

For the last few days, I've been trying to come up with a satisfying circuit diagram for a midi in/out board with 3.5mm trs jack.

As I'm a beginner in electronics, I would like some advice with the circuit diagram I drew. I went through a lot of infos, and tried to pick up as much as I could from the official midi specs and actual 3.3v design implementation, and I'm not sure about some parts of the circuit (mostly in the midi out section).

(the design as been made in kicad so there are kicad specific components like the pwr_flag that aren't physical parts)

I did this circuit for two reasons. First, to have a midi in/out port after I break the board between jp2 and jp3, and to use in other 3.3v project. (I could also see it being a compatible circuit for the next-gen axo)

My first question is, is there anything that looks horribly wrong ? And if yes, why ?

  • In the midi specs it says to use a buffer for the midi out to add additionnal protection, and it also says "It is assumed that the digital buffer driving RC in 3.3V designs is open collector or open drain". Because it is open collector I put a hex inverter gate, but since I use only 2 gates I can use a dual inverter gate (like SN74LVC2G04) ? The reason I used the 74HC05 is because the outputs are open collector and I saw a similar design with a 75HC04 so I tried to stay the closest to it but the unconnected gates might be a waste of space and a source of problem. The hex inverter on this design was used because there was a midi thru port using two more gates.
  • The resistor values on the midi output are straight from the official midi specs (except the 10K pullup), but I saw other design with higher values. It's well argumented in the midi specs, but seeing as no other circuit diagram I saw uses those values I am a little bit concerned. Most diagram are using the values for 5V circuits on 3.3V circuits (which apparently is fine, but might not work with every midi device if I understood correctly).
  • If I don't use the buffer on the midi output, it simplifies a lot the circuit, but on a diagram for the JP2/JP3 cutting parts, it says midi out / open collector. I'm not sure if it means, that the output is already open collector and therefore needs an open collector output or that it is already open collector.

I must admit I'm confused about the buffer and the open collector part and I'm not 100% sure I fully understand the concept. What I understand is that basically it provides additionnal protection in case something goes wrong (if the midi out cable shorts for example).

If possible I'd like to use a single design for the axoloti and other 3.3V projects.

Any input is welcome and apprectiated.

Thanks if you read all the way through and sorry for the rambling, I'll share the final schematic once it's done, because it's hard to find a diagram with a midi output port.


#2

Dual inverter should be fine as long as the specs are in the same ballpark. Double check the voltages etc. Admittedly, I usually use a hex inverter just out of habit and because they're so ubiquitous. Tying the unused inputs to ground makes it unlikely that the hex would cause any problems. If it was me, and even though it's not the recommendation, I'd probably just try an op-amp buffer on the breadboard, and then use that in my design if it worked. Really, I'd just breadboard your circuit and see if it works.

Btw, I've broken apart a few Axoloti boards to adapt to Eurorack. I desolder the DIN jacks and replace them with 3.5mm jacks, then reconnect the main board to the power/midi board with a ribbon cable.


#3

hey @hommes_doutant did you ever end up making these? desperately searching for a small-as-possible trs-breakout, mostly for arduino but would be great for axoloti too.

there are these but i'm trying to not pay 12$ per midi jack...
https://www.elektor.com/midi-in-bob-partly-assembled-module-190070-91


#4

I fused the design with another project I had in mind so there are extra stuff on the one I made that won't be useful to you.

I can send you the schematics though. I didn't have time to properly test it, I removed the double inverter gate so there's a slight chance the midi out isn't as reliable as it should but I followed the official midi specs schematics so it should be fine