The start, stop, and clock messages sent by my “DIY setup” are successfully received by my MPC1000 and other machines (they start, stop and run accordantly).
How ever, using the same setup the messages sent are not recognized on the Midihub input: The midi monitor window does not show anything and the LED does not blink. I’ve done a few A-B testing with other gear to be sure that the Midihub input port is active and the midi monitor window correctly selected.
I’ve also tested mi DYI bundle connected to the midi input of a NI Audio8 soundcard, connected to my PC running Pocket MIDI software as monitor and I get the corresponding “FA, F8, FC” messages and BPM.
Do you know why the Midihub input is not getting the messages successfully?
Aside from checking it with every port and different MIDI cables (just to be sure), I think this is one for @Giedrius!
It might be useful if you have a way of recording the MIDI stream out of the “setup” so that G can have full details of what MH is receiving but clearly not liking. (the forum allows posting of .mid files; other formats you can archive & upload the .zip)
Good Luck (and welcome to the forums)!
PS the Sparkfun sockets are classic 5-pin and not TRS, right?
I did some more tests:
It is not a cable problem: I tried 2 different cables and they both work with the DIY setup output to my MPC MIDI input but they are not recognized by any of the 4 inputs on the MH.
And yes, it is a classic 5-pin DIN output on the Sparkfun MIDI shield, not TRS.
I will try to get raw data from the UART for @Giedrius soon, I don’t have a FTDI converter with me at the time.
I could use the integrated UART in the Nucleo board that is sent via de micro USB port. If I output the same data through it, so different UART port out but same messages and baud rate is it good enough?
In the mean time I did a video of my problem, hope it helps to make it clearer.
Here is the link: https://youtu.be/DHrOgs-AUoQ
I’m no expert, correct me if I’m wrong? but the Spark fun midi board looks like it is for use with 5v I think… The STM32 is 3v isn’t it? Maybe the 220Ohm resistor on the Midi output may be a bit too large. Perhaps it’s just enough to just about drive your MPC, but not quite enough for driving the MH? Just a guess…
This is a good point indeed.
Even though the nucleo board claims to be “Arduino compatible” the UART is directly connected to MCU pins in both cases, arduino and nucleo.
The STM32G0 (nucleo) can output 3.3V max.
The ATmega328 (arduino) can output 5V max.
This might be the reason…
I will try to buffer the uart output from the STM32 and see if it makes a difference.
Cool… If that’s the case, just dropping the 220ohm output resistor to something like 56 ohms should work. Might also wanna double check the resistor values at the Midi In. Not sure if the STM32 pins are 5v tolerant. Like I said I’m no expert, but do like to tinker now and again
Edit: just found my Sparkfun midi board and realised those SMD resistors are a pain to replace (I thought they were through hole on that board).
It’s possible to have 3.3V output, and use it with 5V based MIDI implementations, you must use different Resistor values. All the details are in the spec.