Ardunio MIDI In schematic

...and how to do so...
Post Reply New Topic
RELATED
PRODUCTS

Post

I've created projects with my Arduino using MIDI Out before, and I am now building a project with MIDI In. MIDI Out was very straight forward and easy. MIDI In is a bit more complicated and I need a little help.

I've found two excellent tutorials on configuring an Arduino with MIDI In:

http://www.notesandvolts.com/2012/01/fu ... asics.html

and

http://www.instructables.com/id/Send-an ... h-Arduino/

The configurations of the two are very similar, but I don't have any experience with building a MIDI In, so I don't know which one is "correct" and I was wondering if some of the members here could chime in.

Thanks,

Jeff

Post

I bought a MIDI shield simply because I didn't want to risk accidentally frying any gear, but you can get the schematics here :
http://www.sparkfun.com/datasheets/DevT ... ld-v13.pdf
That shows you how to hook up midi ports - it looks pretty straightforward. Ignore all the stuff on the right hand side of the schematic (extra buttons and knobs that came with the shield), and if you want to 'live dangerously' you could leave out the opto-coupler too.

EDIT : just realized you might have been asking more about software than hardware. The trick with MIDI in is that you need to put all bytes received onto a 'stack', wait until you have at least 3 bytes piled up, then pull them off the stack and interpret them in whatever way you choose using your own code. Hope that helps.

Post

Thanks Skitchy, I'll check it out.

skitchy wrote:EDIT : just realized you might have been asking more about software than hardware.
Nope, you got it right. My question is about the MIDI hardware only and what the "correct" schematic is. The software side of things I can handle...

Thanks!

Jeff

Post

DELETED

Post

I remember having some trouble getting the opto to work correctly (I think I used the cny17). Having a scope is handy at those times.

I also added buffers (open collector inverter gates) and added signal leds (works great for further testing).

Perhaps you might also be interested in a library I started (and have yet to finish ;-)
The Arduino Template Library (ATL).

Hope it helps.
Grtx, Marc Jacobi.
VST.NET | MIDI.NET

Post

I've done some MIDI stuff with an AVR based microcontroller... the circuit for the MIDI in and out should be the same though. If you get stuck let me know and I'll dig up the details.

Post Reply

Return to “DIY: Build it and they will come”