Introduction: Simple MIDI in Cable

Picture of Simple MIDI in Cable

How to make a SUPER simple MIDI cable to send data to your joystick / MIDI port.

I had a M-Audio USB uno, which worked great on my ghetto keyboard, but on my newer setup, it would constantly dump garbage notes. Rather than go spend yet another wad of hard earned money, I realized that I probably had most of the parts at my house already.

Step 1: Do Your Homework

Picture of Do Your Homework

After googling around for a bit, I came across a few basic schematics. This one was the schematic I was planning on following, but I had to deviate slightly.

http://web.singnet.com.sg/~lau0cy/pc_midi.gif

My local Fry's Electronics didn't carry a 6N138, but they had the NTE equivalent which I found was a NTE3093. I had resistors at home, but I found I was out of 220 ohm, so I went with 270 ohm, which appear to work just as well.

I didn't care about sending MIDI signals out of my PC, so I left that part out of my design. I wanted all the parts to fit within a DB15 casing.

References:
http://web.singnet.com.sg/~lau0cy/sb.htm
http://www.nteinc.com/specs/3000to3099/pdf/nte3093.pdf
http://nte01.nteinc.com/nte/NTExRefSemiProd.nsf/$$Search?OpenForm

Step 2: Make It REALLY Small

Picture of Make It REALLY Small

After verifying that the schematic did in fact work, it was time to start stacking the parts on top of each other. With only 4 components, this was going to be easy. Building projects using this method can be a great space saver, but will make it HELL trying to repair or debug something, so be sure that everything is working as it should first.

To make this go a little easier, I broke off the 3 extra pins from the IC.

Step 3: Hope That Things Still Fit.

Picture of Hope That Things Still Fit.

Now that all the parts are in a nice little ball, I put some heat shrink over them to protect and insulate them. Since it fits in the DB15 hood with no issue, I do what I do with most of my projects, fill them with hot glue. The glue keeps parts from shaking around, breaking or falling out. Plus, it gives the plug a satisfying weight.

I inject the plug half with glue then smash down the top piece, cutting off the excess with a razor. Then tape around it tightly, and give it 15 minutes to cool down.

I now have a nice MIDI in converter cable with all the parts self contained in the cable. It works much better than my M-Audio USB uno. Hooray for old technology.

Comments

trashman1990 (author)2011-10-26

If you don't have the specific optocoupler (I didn't), you can replace the coupler with just about any you can find. I pulled my coupler (SFH617A) out of an old computer powersupply and added a small random transistor because my chip doesn't have a transistor like the 6M138 does between pins 5,6, and 7. It works great.
BTW all the parts you need should be in a computer power supply if you feel like removing parts from the PCB. The coupler will usually be a 4-pin dip.

WhiteTigerTails (author)2008-03-01

Could ya make a USB version?

Bray (author)WhiteTigerTails2008-03-01

Making a USB to MIDI controller would require much more circuitry. The reason this circuit is so simple is because most sound cards and motherboards which have a Joystick port already have MIDI IN and MIDI OUT on pins 15 and 12 respectively.

Actually, I think you could probably wire the instrument directly to these pins, however putting the optocoupler and friends into the design protects both the MIDI device and the PC from destroying each other.

More information about the Joystick/Game port pinout, look here.

team_nes_1986 (author)Bray2009-06-29

I think it would be easier if you make this after going to Radio Shack to get a joystick-to-USB adapter.

3yE (author)team_nes_19862010-02-28

Joystick to USB adapters won't work with this. They only provide a USB HID for joystic inputs, no USB endpoint for MIDI in/out. Also note that the MIDI ports are not wired to joystick pins, they are wired to pins which were supposed to be unused in the original PC joystick spec.

team_nes_1986 (author)3yE2010-02-28

Now I understand. Thanks for clarifying the whole joystick-to-USB concept for me.

Also, I can't guarantee that this will work on every MIDI keyboard, but on my Casio CTK-496 keyboard, I have found that one could layer two different presets using a DIN-5 patch cable. It's a little complicated, since you have to change patches as well as the MIDI channel.

Derin (author)2008-07-09

wish i had the joystik port

Ibanezfoo (author)2008-02-07

This is cool! I used to use those old XT keyboard extenders for MIDI cables and they worked perfect.

An XT keyboard uses a din connector, just like MIDI. Essentially, the cables are the same.

ellisgl (author)2008-01-29

Only if I had thought of this instead of burning up din-5 and db-15 sockets back in the lat 80's when I was trying to make one when I was much younger.

LinuxH4x0r (author)2008-01-26

Wow! I didn't realize it was that simple. Nice job

GorillazMiko (author)2008-01-26

Woah, nice job! Looks neatly done, great Instructable, the pictures are just incredible, nice work!

About This Instructable

27,764views

23favorites

License:

More by Bray:Simple MIDI in cableUsing a full sized HDD in a LaptopDIY projection screen
Add instructable to: