after trying to get a 6N136, then a 6N138 for MIDI to talk to my arduino Uno (rev 2 and 3) boards, I gave up and bought a Sparkfun MIDI shield...but still no joy. It worries me that the arduino can be programmed when the MIDI shield is in "run" mode, whereas when I built a homemade 6N138 interface this was not the case. Any suggestions?
I am using the code that Sparkfun publish with the device. Also trying code from the MIDI library for arduino. Nothing works. I've tried writing my own code, working with the MIDI library and tweaking the Sparkfun code. Even the code from Sparkfun does not work on its own.
MIDI is a really simple protocol, and yet it's foxed me! I think it might be a hardware issue (e.g. not enough current to the shield, or my homemade boards)
I've tried this:
And this (Example arduino sketch at the bottom of page):
Re-arranged my sketch because it's clear pins 0-7 need to be hooked into the arduino! Dumb mistake.
That is what they get for selling the board without the stackable headers!
To clarify - with the MIDI shield, you can forget about using pins 0-7 for anything, and I was stupid enough not to wire pin 0 (receive - RX) into the arduino,
I soldered a header to connect the MIDI shield to the arduino, and it works now. BUT - I was using a M-M header I had lying around. The lack of stackable headers with the MIDI shield is a silly omission (since you have to solder everything else onto the board) but who gives a *$£# - they don't make them any more.