Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIN Legacy MIDI workaround #456

Open
aFunkyBass opened this issue Aug 19, 2023 · 8 comments
Open

DIN Legacy MIDI workaround #456

aFunkyBass opened this issue Aug 19, 2023 · 8 comments

Comments

@aFunkyBass
Copy link

I'm writing this post to help anyone who could encounter problems getting the Legacy MIDI to work.

I've built my second Pedalinomini controller and I had some problems getting the MIDI DIN to work powering up the system with a 5V external adaptor. Powering the ESP32 via the USB cable Legacy MIDI was working. That puzzled me a lot!

After monitoring all the levels signal on the MIDI pins with an hoscilloscope, I've realized that the probem was the difference in voltage on the pins. On the schematics the connections are like so:
MIDI out schematics

Now, the previous schematics is taken from the original MIDI specs which was based on 5v logic devices. Being the ESP a 3.3v unit, you have a signal of about 3.3v on pin 5 and a signal of around 5v on pin 4 (not considering the drop down introduced by the resitors). This difference is probably enough to steadily turn on the opto-isolator LED on the receiver, making the communication void. This didn't happen powering it up via the USB plug, because of the voltage drop down introduced by the ESP internal regulator, in fact I had a signal on pin 4 of about 4.5v.

I solved the problem converting the MIDI out to 3.3v logic using the following schematics taken from www.midi.org
Screen_Shot_2020-07-18_at_12 20 08_PM

Use the table to get the correct resistors value and feed pin 4 with 3.3v, and you should be good to go. :)

@prostealth
Copy link

does this fix connection on kemper?
mine are working on line 6, roland, etc. but not on kemper. i have behringer v-amp 2 that also not detecting input from pedalinomini.

@aFunkyBass
Copy link
Author

It probably will... Converting your circuit shouldn't be very hard, as the only thing to do is replace the two resistors as follows:

R4 from 220 to 33 Ohm
R5 from 220 to 10 Ohm

Also, make sure to feed the R4 resistor connected to PIN 4 with 3.3v instead of 5v. You can get a 3.3v from the ESP board.

@alf45tar
Copy link
Owner

alf45tar commented Oct 17, 2024

Only a test can confirm it because 4.5V is acceptable by MIDI specification (5V+-10%) but not all devices work.

@aFunkyBass
Copy link
Author

Only a test can confirm it because 4.5V is acceptable by MIDI specification (5V+-10%) but not all devices work.

It may work... But the specifications for 3.3v circuits state to use the alternative resistors' values. Being Pedalinomini a native 3.3v unit, it's better to go for the correct values in the first place. As a matter of fact, I suggest you to update your schematics. ;)

@prostealth
Copy link

just want to confirm..
it work on my behringer V-Amp 2..
thanks man...

@alf45tar
Copy link
Owner

Which version is working? 3.3V or 5V?

@prostealth
Copy link

Which version is working? 3.3V or 5V?

3.3V

@aFunkyBass
Copy link
Author

aFunkyBass commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants