Arduino Pro Micro MIDI Controller not recognized by Roland synth but recognized by PC

I'm making a dedicated MIDI controller for Roland GoKeys 5. The keyboard receives MIDI data on channel 4 over USB. I verified it via another USB MIDI controller - I plug it in and when it's programmed to channel 4, I get filter cutoff, pitch bend, notes, etc. to sound. My MIDI controller is done with Arduino Pro Micro and the MIDIUSB library, and when plugged into my Windows PC over USB, the ShowMIDI app is recognizing MIDI sent by the controller on channel 4. I can also control a software synth that way just fine. However, when I plug it into the Roland, nothing happens. Pro Micro powers up, the OLED display shows the controller changes as it should, but there are no sound changes on those same MIDI CCs that work on PC.

What could be the problem? Is there any difference between a hardware off-the-shelf MIDI controller and one implemented with MIDIUSB? Is there a reason it cannot be recognized by a hardware synth but is recognized by a PC? Should I use another board instead, like ESP32? It's an unexpected problem. I designed and 3D-printed the enclosure that bolts onto the synth directly, and I did all the coding, etc. Spent a lot of time on that. Once it was working on PC, I plugged it into the synth and nothing… I verified that the synth can power a controller over USB and receive data, and that the Pro Micro is recognized to send MIDI properly on PC. But I had no idea it wouldn't be recognized by the synth. Why wouldn't it be?

So it sounds like the PC is talking over USB. Is the Roland synth instrument connected somehow to the 5-pin MIDI interface? If so, then how are you interfacing the Pro Micro with that interface on the Roland synth? How have you dealt with the 3.3v to 5V signal conversion?

Can you clarify what this means please? If the Micro is connected to the PC via USB, then surely it is being powered from the PC not the Roland synth? What does “the Pro Micro is recognized to send MIDI properly on PC” mean?

Do you have a circuit diagram for your Pro Micro MIDI interface?

It sounds like you are using custom code that you have written. In order to help determine whether there is a coding problem it would be helpful if we could see the code?

Roland GoKeys5 only has USB ports for MIDI, no standard 5-pin ports.

When Pro Micro is connected to the PC it is powered by PC’s USB and also sees it as a MIDI interface and receives MIDI data which I can see in the ShowMIDI software or a soft synth which responds to those controllers:

When I connect to the Roland’s USB port that works fine with another controller (Alesis keytar USB MIDI controller) it powers up but Roland doesn’t respond to any controllers I send. Those are the same controllers over the same channel 4. So Roland doesn’t see the incoming MIDI somehow or doesn’t recognize Pro Micro as a USB MIDI client.

Ah, since you are connecting to the Roland synth via USB, my guess is that the Roland doesn’t recognise the vid/pid of the Pro Micro as a valid MIDI device. I believe it is possible to modify the vid/pid of the Micro to something that the Roland synth will recognise by messing around with the bootloader, but I don’t have any experience of doing that.

Any idea how to figure out what would Roland accept?

What could be the problem? Is there any difference between a hardware off-the-shelf MIDI controller and one implemented with MIDIUSB? Is there a reason it cannot be recognized by a hardware synth but is recognized by a PC?

One difference between Arduino USB MIDI and commercial USB MIDI is the Arduino also has a USB serial interface in addition to the USB MIDI interface. The USB serial interface is how the Arduino IDE uploads firmware and shows Serial output.

I have no experience with the Roland device. Assuming it work as a USB host, it may be confused by the Arduino USB Serial interface.

Possible query: "How to remove the USB serial interface on arduino pro micro?"

Should I use another board instead, like ESP32?

Unless you need WiFi or Bluetooth, I would not use an ESP32. A board like the Raspberry Pi Pico might work. The Adafruit TinyUSB library supports removing the USB Serial interface by adding Serial.end() as the first line of the setup function and removing Serial.begin. This results in an Arduino USB MIDI device that has only MIDI interfaces just like commercial USB MIDI devices. Use the bootloader to update the firmware.

Thank you, that's a fresh idea i didn't think of. Sounds plausible. In going to Google how to stop the serial USB interface on the Pro Micro. Roland USB slot is meant for a Wi-Fi dongle, so it really could be confused…

Google says it’s possible to disable USB serial interface by modifying USBDesc.h and I did that:

#define CDC_DISABLED  //RB MIDI debug - def commented
#ifndef CDC_DISABLED#define CDC_ENABLED#endif
#ifdef CDC_ENABLED#define CDC_INTERFACE_COUNT	2#define CDC_ENPOINT_COUNT	3#else // CDC_DISABLED#define CDC_INTERFACE_COUNT	1 //RB def 0#define CDC_ENPOINT_COUNT	2 //RB def 0#endif

I also tried with 2 last lines at 0. The result is interesting: before this change PC saw all the MIDI data, and Roland didn’t, but when plussed into Roland, the display slowed down to a crawl, when rotating a pot, values would update twice a second, instead of a fluid change. PC was fluid. Now that I disabled the serial USB I see the same behavior on PC - display slows down and ShowMIDI doesn’t see any MIDI data, though it does recognize “Arduino Micro” as a MIDI device with last 2 lines at 1 and 2. When set to 0 and 0 it doesn’t see the device at all.

So it seems to have something with the USB interface in some way, but just disabling the serial USB interface doesn’t really help.

I suspect the information you are using may be incomplete. I think the following still works but I have not used Leonardo/Pro Micro in years. Fortunately, the avr board support package has not changed since 2022 so the instructions may still work.

Last two lines of what? What does “at 0” mean? I am guessing that it might relate to this:

But what are you setting to 0?

We can’t see your code nor the Google references that you are referring to you unless you post links and example code? The snippet that you did post is presumably from the ‘USBDesc.h’ file but it looks like it got corrupted. I can make out the first two lines, but not sure what to make of the third one…. I expect copy and pasting from a web page has scrambled it. Maybe copy it to a notepad or text editor first. Could you then re-post please exactly as it appears in the file please so its possible to read it along with any changes you might have made?

Thanks.

Here’s my full USBSesc.h

#define PLUGGABLE_USB_ENABLED
#if defined(EPRST6)
#define USB_ENDPOINTS 7 // AtMegaxxU4
#else
#define USB_ENDPOINTS 5 // AtMegaxxU2
#endif
#define ISERIAL_MAX_LEN 20
// Uncomment the following line or pass -DCDC_DISABLED to the compiler
// to disable CDC (serial console via USB).
// That's useful if you want to create an USB device (like an USB Boot Keyboard)
// that works even with problematic devices (like KVM switches).
// Keep in mind that with this change you'll have to use the Arduino's
// reset button to be able to flash it.
#define CDC_DISABLED
#ifndef CDC_DISABLED
#define CDC_ENABLED
#endif
#ifdef CDC_ENABLED
#define CDC_INTERFACE_COUNT 2
#define CDC_ENPOINT_COUNT 3
#else // CDC_DISABLED
#define CDC_INTERFACE_COUNT 0
#define CDC_ENPOINT_COUNT 0
#endif
#define CDC_ACM_INTERFACE 0 // CDC ACM
#define CDC_DATA_INTERFACE 1 // CDC Data
#define CDC_FIRST_ENDPOINT 1
#define CDC_ENDPOINT_ACM (CDC_FIRST_ENDPOINT) // CDC First
#define CDC_ENDPOINT_OUT (CDC_FIRST_ENDPOINT+1)
#define CDC_ENDPOINT_IN (CDC_FIRST_ENDPOINT+2)
#define INTERFACE_COUNT (MSC_INTERFACE + MSC_INTERFACE_COUNT)
#define CDC_RX CDC_ENDPOINT_OUT
#define CDC_TX CDC_ENDPOINT_IN
#define IMANUFACTURER 1
#define IPRODUCT 2
#define ISERIAL 3

  • basically I just uncommented CDC_DISABLED. But I also tried
    #define CDC_INTERFACE_COUNT 1
    #define CDC_ENPOINT_COUNT 2

Success! It works! Roland now sees the data. The only problem that after a couple of minuts the Roiland freezes, which it doesn’t do with Alesis. Maybe the Arduino is sending MIDI data too often and I should increase delay (10); I have at the end of the sketch main loop?

Update: no, that doesn’t help. delay of 20ms results in really stepped and jerky controls, and still Roland freezes after a minute or two. No delay is smooth but also freezes… Hmm…

Good news! Sorry, I can not help with the freeze problem.