Ardunio MIDI In schematic
-
- KVRer
- 20 posts since 24 Feb, 2010
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
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
-
- KVRist
- 335 posts since 20 Jul, 2010
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.
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.
-
- KVRer
- Topic Starter
- 20 posts since 24 Feb, 2010
Thanks Skitchy, I'll check it out.skitchy wrote:http://www.sparkfun.com/datasheets/DevT ... ld-v13.pdf
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...skitchy wrote:EDIT : just realized you might have been asking more about software than hardware.
Thanks!
Jeff
-
deleted deleted https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=1
DELETED
-
- KVRian
- 522 posts since 19 Jul, 2007 from Netherlands
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.
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.
-
- KVRer
- 6 posts since 21 Sep, 2005
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.