Solved - Unable to send MIDI to Arduino Pro through FTDI Breakout

Hello,

I'm trying to communicate to my Arduino Pro 328 (3.3V / 8Mhz) with MIDI CC messages using an Axiom 49 MIDI controller via the Hairless MIDI/Serial Bridge (The Hairless MIDI<->Serial Bridge), but have been unsuccessful so far. After performing some tests I think the the Sparkfun FTDI Basic Breakout I'm using is the bottleneck preventing the converted MIDI signals from my computer from passing to the Arduino Pro. (https://www.sparkfun.com/products/9873)
(Running off a Mac Pro OS 10.6.8 fwiw...)

Has anyone else ever run into this issue when trying to control an Arduino Pro via MIDI? Has anyone successfully done this?

Below are my testing configurations and code to show how I encountered this problem and arrived at this conclusion.

Tests:

  1. Initially I performed a test to verify that my Arduino Pro and FTDI breakout were working properly. I created a simple Arduino test sketch to control an RGB LED connected to my Arduino Pro via input into Arduino's serial monitor. Everything worked fine with the following configuration:
    • Computer keyboard input into Arduino Serial Monitor => FTDI Breakout => Arduino Pro => RGB LED == works!

  2. For my second test I attempted to control the R, G, and B brightness values of the same RGB LED connected to my Arduino via the CC messages generated from 3 faders on my Axiom. This failed. The 'TX' light on the FTDI Breakout did light up red every time it received a converted MIDI CC message from the Hairless MIDI/Serial bridge (every time I moved my faders), but those signals don't seem to be passed onto the Arduino Pro and light up the LED.

Configuration:
• MIDI CC output from moving faders on Axiom => Computer running Hairless MIDI/Serial Bridge => FTDI Breakout => Arduino Pro =>RGB LED == failed.

Code: (attached to this post so I don't exceed Arduino forum's post character count limit)

  1. For my third and final test I swapped out the Arduino Pro and FTDI Breakout for an Arduino Mega 2560 loaded with the exact same code from above onto it. Using this configuration everything worked perfectly.

Configuration:
• MIDI CC output from moving faders on Axiom => Computer running Hairless MIDI/Serial Bridge => Arduino Mega => RGB LED== worked!

Code: Same used in test #2.

I don't think there's anything wrong with my code because it worked fine when running off my Mega. From what I can see, signs point to the FTDI Breakout preventing MIDI messages from passing to my Arduino Pro. How can I fix this issue and be able to send MIDI signals to my Arduino Pro via the FTDI breakout? Is it a matter of adjusting my baud rate? I already tried a few different settings (9600 / 31250) but nothing seemed to work and I don't know where to go from here. Thanks in advance for your input.

sketch_nov07a.ino (9.46 KB)

Figured out what the issue was. It was a relatively easy fix. Just had to set both Hairless MIDI / Serial Bridge's and my Arduino's baud rates to 57600, and that seemed to fix the issue. Was able to get my Axiom controller to control the LED connected to my Arduino Pro just fine after this adjustment.