Arduino MIDI LED Light Show
This project will listen to a virtual midi port, and turn the corresponding connected LED.
Parts / Software required:
- 5 or more LEDs
- Virtual MIDI port configurator
- Serial to midi converter
- Software to send midi
- Processing to run the MIDI -> serial converter
Connect the LEDs to the Arduino as following:
These are the pins used in the script:
pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT);
The LEDs I used does not require resistors. If yours do, connect a resistor in series before every LED.
Upload the script to the Arduino.
Set up a virtual midi connection
On Mac I used "Audio Midi Setup". You can use any software that can create virtual midi ports.
Create two virtual MIDI ports: one from software, and one to software.
Open the serial<>midi converter, and select your Arduino's serial port, the midi INPUT port and the midi OUTPUT port.
Open MidiKeys and configure it to the virtual ports.