Schiller
New Member
Hi there, i'm designing a midi input circuit. It would work with an Arduino Uno
i read carefully this post and the official midi hardware specs
Both resources have been very useful..
I would pose a question:
apparently, my midi input circuit works only with pin 4 (from midi connector) attached to pin 3 of the optocoupler
and pin 5 (from midi connector) attached to pin 2 of the optocoupler. So it works only if i invert the two connections between the midi port and the optocoupler
May this depends from using the circuit with Arduino?
Thanks for your attention...
i read carefully this post and the official midi hardware specs
Both resources have been very useful..
I would pose a question:
apparently, my midi input circuit works only with pin 4 (from midi connector) attached to pin 3 of the optocoupler
and pin 5 (from midi connector) attached to pin 2 of the optocoupler. So it works only if i invert the two connections between the midi port and the optocoupler
May this depends from using the circuit with Arduino?
Thanks for your attention...
As I had questions about this myself I thought I'd post a helpful diagram for anyone who might happen to wonder how to properly hook up a 6N138 optoisolator as a MIDI Input. This diagram shows both the MIDI In and the MIDI Thru. A MIDI Out is identical to a MIDI Thru, however the input to the first Schmitt Trigger inverter is tied to the UART TX rather than the UART RX. This allows you to send the same OR different data from the UART TX to the MIDI Out rather than just mirroring the incoming data from the MIDI In like the MIDI Thru does.
The 1K resistor from pin 7 to ground is required for the quickest rise/fall time of the output transistor as you only have 32uS per byte. It can be 1K or higher. Some have used values as high as 22K here.
Hope this helps anyone who has this question -
**broken link removed**