What Arduino are you using? What MIDI breakout board?
It's not clear exactly what you're trying to achieve but if it is just to connect MIDI from a device that uses MIDI over USB to "old-fashioned" 5-pin DIN MIDI devices of some sort then wouldn't it be easier just to use one of the many cheap USB-MIDI converters like this.
Steve