Path: EDN Asia >> Design Ideas >> Consumer Electronics >> Interfacing MIDI instruments to PC via USB port
Consumer Electronics Share print

Interfacing MIDI instruments to PC via USB port

29 Mar 2016  | Stefano Palazzolo

Share this page with your friends

This design idea employs the FT232BM from Future Technology Devices International, a USB-to-UART interface IC that you need not program, to interface a USB port to the musical-instrument-digital-interface (MIDI) bus (figure). The USB signals directly interface to IC1, an FT232BM. The serial-transmitter and -receiver signals pass through IC2 and IC3 to transform the RS–232 signals to the MIDI's loop current. You can use an EEPROM, IC4, if you want to add a serial-number interface or use more than one interface.


Figure: This USB-to-MIDI interface uses the FT232BM, a USB-to-UART interface chip that you need not program.


This hardware doesn't require you to write any software. However, you must install two drivers. First, you need the free VCP driver from FTDI. It allows you to use this interface as a common serial-port interface. Before you install it, you must change a string in the file FTDIPORT.INF (reference) to set up the 31,250-baud rate for FT232BM. Then, you can configure VCP to run at 38,400 baud. (The real baud rate will be 31,250 as preset in FTDIPORT.INI.)


Listing


Then, you must install another driver that permits you to see your VCP serial port as a MIDI port for addressing all MIDI messages. You can find a lot of similar drivers on the Internet, such as the Roland serial MIDI driver. You can enable this driver on the COM1 or the COM3 port.

The listing shows the changes to add to the FTDIPORT.INF file that change the baud rate from 38,400 to 31,250 baud. Change this file before installation.


Reference
"FT232BM Designers Guide, Version 2," FTDI, 2002/2003.


About the author
Stefano Palazzolo contributed this article.


This article is a Design Idea selected for re-publication by the editors. It was first published on April 17, 2008 in EDN.com.




Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.


Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming


News | Products | Design Features | Regional Roundup | Tech Impact