fbpx
Skip to main content

MIDI Forum

Connecting USB devi...
 
Notifications
Clear all

Connecting USB device to MIDI interface device

3 Posts
3 Users
0 Reactions
17 K Views
Gilbert
Posts: 1
New Member
Topic starter
 

I have a drum machine with a USB Type B output (printer type cable). I am wanting to connect this to an audio/MIDI interface (external sound card) that has regular MIDI IN/OUT ports. I already have a USB Type B to USB Type A cable, and have seen a MIDI to USB adapter/converter/interface on Amazon. I'm thinking I could connect this last cable to the MIDI IN/OUT of my audio/MIDI interface, then connect it to the cable from my drum machine using a USB Type A female-female coupler. My only concern is, that my audio/MIDI interface is considered an interface (interfaces to PC), while this MIDI to USB adapter is also called an interface (looks like a simple MIDI cable that has USB on other end, but supposedly has some type of chip and driver in it to convert MIDI to USB data)...would this cause a conflict? Thanks

 
Posted : 11/02/2018 11:20 am
Jason Cowling
Posts: 2
New Member
 

Might want to try a USB host to MIDI converter:

 
Posted : 03/03/2018 12:30 pm
Bruce
Posts: 4
Active Member
 

There is a simple solution to this that I have already prototyped - based on others' work.
Materials needed:
Arduino Uno or Mega
USB Host Shield
2 x 220 ohm resistors
MIDI DIN socket

I have purchased Arduino boards and a USB Host Shield from eBay that work. This brings the cost down to a more reasonable level which should be cheaper than a commercial product.

Insert the USB Host Shield into the sockets on the Arduino. Download and install USB Host Shield Library 2.0 and install it in the Arduino IDE. Circuits@Home built the original shield and you can find a library for it there.

Here is the sketch I used with an Arduino Mega:
File > Examples > USB Host Shield Library 2.0 > USBH_MIDI > USB_MIDI_converter_multi

Connect your MIDI DIN socket using the example from this page:
https://www.arduino.cc/en/Tutorial/Midi

Make sure to disconnect the TX pin from the circuit when uploading your code to the Arduino.

If you want to connect more USB MIDI devices, use a powered USB hub and edit the code accordingly. This was actually a very easy Arduino project and should not be very hard for a beginner. There are a minimal number of parts.

 
Posted : 16/04/2018 3:07 pm
Share: