


It is assumed you have the same flavour of Arduino at each end.The code only supports one CONTROLLER talking MIDI to one PERIPHERAL at present, but I believe all 16 MIDI channels should be available to use.

The best performance will be when the I2C CONTROLLER is sending data to the I2C PERIPHERAL although it will work the other way round too (mostly).In fact, you probably shouldn’t be using it at all. In the default configuration the transmitter is configured as the I2C CONTROLLER and the receiver is the I2C PERIPHERAL on address 0x40. In the examples area are the I2CMIDITransmit and I2CMIDIReceive sketches – one for each Arduino. Like my “IIC Serial MIDI transport”, it is pretty much a copy of the built-in “hardware serial” transport with a few tweaks. I’ve created a “I2C MIDI transport” for the Arduino MIDI Library. The Arduino that is to act as the MIDI receiver can optionally have a loudspeaker connected to D8 via a 220Ω resistor.īoth Arduino’s need power, e.g. The two Arduinos need to have their I2C bus linked up. Optional: 220Ω resistor (for the loudspeaker).If you are new to Arduino, see the Getting Started pages. A Guide to Arduino & the I2C Protocol (Two Wire).These are the key tutorials for the main concepts used in this project: I am not responsible for any damage to expensive instruments! Warning! I strongly recommend using old or second hand equipment for your experiments.
