element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum USB MIDI Host
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Answers 3 answers
  • Subscribers 566 subscribers
  • Views 1492 views
  • Users 0 members are here
  • diy music
  • usb programming
  • midi
  • midi_to_usb
Related

USB MIDI Host

beebox
beebox over 5 years ago

Hi,

 

Does anyone know of a board and shield combination that would support USB MIDI host to MIDI DIN?

 

The purpose is to plug a USB musical keyboard into this device and have the device send to MIDI DIN connectors, without using a computer as the USB host.

 

Here's a text diagram :-)

USB Keyboard <-> USB host device <-> MIDI DIN IN and OUT

 

I'm looking to build this so it could be a product but it may not be possible to do it with off the shelf parts.

  • Sign in to reply
  • Cancel

Top Replies

  • genebren
    genebren over 5 years ago +2 suggested
    Dee, The first part (USB Host) could be handled in this manner: https://www.arduino.cc/en/Reference/USBHost And the second part (Midi) could be handled in this manner: https://create.arduino.cc/projecthub…
  • shabaz
    shabaz over 5 years ago +2 verified
    Hi Dee, The off-the-shelf product is about the price it may take to build a custom one: https://www.dv247.com/en_GB/GBP/Miditech-USB-MIDI-HOST/art-SYN0006178-000?campaign=GShopping/UK&ProgramUUID=HADAqJarPzAA…
  • shabaz
    shabaz over 5 years ago in reply to genebren +1 suggested
    Hi Gene, I could be showing my lack of music knowledge hehe - I *think* (not sure!) USB MIDI is a specific protocol (i.e. a music keyboard with USB connector won't issue keypresses like a typical alphanumeric…
  • genebren
    0 genebren over 5 years ago

    Dee,

     

    The first part (USB Host) could be handled in this manner:

    https://www.arduino.cc/en/Reference/USBHost

     

    And the second part (Midi) could be handled in this manner:

    https://create.arduino.cc/projecthub/mega-das/arduino-midi-controller-14c40c

     

    So, it looks quite doable.  If you want a bigger challenge, and you have the necessary skills, you could use any microprocessor that can support a USB Host port (and there are a lot of them) and include a midi controller circuit (there should be a lot of those out there).  Another approach (one that I have used in the past) is a Vinculum chip from FTDI as the USB Host (here is a link to a ardunio like motherboard with a Vinculum chip: https://www.newark.com/ftdi/vnclo-mb1a/vinculum-ii-usb-host-slave-motherboard/dp/14T7853?st=viniculum )

     

    Good luck,

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • shabaz
    0 shabaz over 5 years ago

    Hi Dee,

     

    The off-the-shelf product is about the price it may take to build a custom one:

    https://www.dv247.com/en_GB/GBP/Miditech-USB-MIDI-HOST/art-SYN0006178-000?campaign=GShopping/UK&ProgramUUID=HADAqJarPzAA…

     

    If you were to build a custom one, you'd need a board with USB host capability, and a typical board would be a Raspberry Pi. See here for such a project: https://stimresp.wordpress.com/2016/02/08/using-a-raspberry-pi-as-usb-midi-host/

    I believe that project makes use of a USB to MIDI adaptor too (i.e. the usual thing used to connect a computer to a traditional keyboard), so that the path is:

    Keyboard(USBMIDI)-->RaspberryPi-->USB-to-MIDI-->MIDI device

     

    If you didn't want to use that USB-to-MIDI adapter either, then you'd need the DIN connector, and some circuitry to translate the 3.3V signals from the Pi into MIDI levels, and write some code to do the interfacing (which would have some latency). There is info here: https://www.instructables.com/id/PiMiDi-A-Raspberry-Pi-Midi-Box-or-How-I-Learned-to/

    If you wanted a shield(or 'hat' in pi terminology) to plug onto the Pi, then there are a few options, generally $25 or more: https://www.osaelectronics.com/product/midi-board-for-raspberry-pi/

    But I think using the options in the first two links are easiest/better.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • shabaz
    0 shabaz over 5 years ago in reply to genebren

    Hi Gene,

     

    I could be showing my lack of music knowledge hehe - I *think* (not sure!) USB MIDI is a specific protocol (i.e. a music keyboard with USB connector won't issue keypresses like a typical alphanumeric keyboard) so that might not be available in an Arduino library (but not sure about that either). I've never used a music keyboard with USB connector, so I don't know though if the keyboards implement as an alphanumeric keyboard, i.e. USB HID device. My old keyboard only has the traditional MIDI DIN connectors.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • genebren
    0 genebren over 5 years ago in reply to shabaz

    Good call shabaz , I scanned right over the 'musical' part and only keyed on the Keyboard.  So this could be an issue.  I have used the vinculum parts in the past, but only to host keyboards and printers.  Looks like you found some better parts anyway.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 5 years ago in reply to genebren

    it's all so vague anyway, finding information on what the keyboards technically support, so I could be totally wrong and maybe USB HID is what's supported!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beebox
    0 beebox over 5 years ago

    Thank you shabaz and genebren for the info.  I wasn't aware of some of these hardware options.

     

    The Teensy Development Board is another option I just learned about in another forum. 

     

    By the way I don't think there is anything USB specific about MIDI over USB, so any standard USB host should be good. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube