
Now it's time to test the buttons are working correctly. Cheap boards can sometimes be very inconsistent and low-quality - it happened to me whilst working on this project. If you are still having problems it might be worth checking your breadboard. Install the correct driver for your USB-MIDI interface Verify the circuit is connected to a USB-MIDI interface with a MIDI cableĬheck your MIDI cable is connected to the input on your USB-MIDI interface

If nothing happens, don't panic! Try troubleshooting:Ĭheck the MIDI port is wired correctly - there should be 2 spare pins on the outside edges If everything is working correctly you should see a message appear in your MIDI monitor. This code will send a CC message, wait 1 second, send a PC message then wait 1 second indefinitely. ndProgramChange(12,1) // send a MIDI PC - 12 = value, 1 = channel ndControlChange(56,127,1) // send a MIDI CC - 56 = note, 127 = velocity, 1 = channel Serial.begin(31250) // setup serial for MIDI MIDI_CREATE_INSTANCE(HardwareSerial,Serial, midiOut) // create a MIDI object called midiOut You'll also need a program to monitor the incoming MIDI data:Ĭonnect the Arduino to your computer and upload the following test code (don't forget to select the correct board and port from the Tools > Board and Tools > Port menus).

Once you have installed the Library, you can include it in your code by going to Sketch > Include Library > MIDI.

This project uses the excellent Arduino MIDI Library v4.2 by Forty Seven Effects. Your computer is receiving the data, therefore it is the input. The MIDI port wired up on the breadboard is sending data, so it is the output. You will need a USB-MIDI interface (many audio interfaces can do this) and a MIDI cable. Now that all the hardware is finished, it's time to test it.
