An Midi-In and Thru/Out Board based on the Arduino Pro Micro. It can be used to controll all kind of devices like motors and lights. With an Arduino IDE modification one can use Midi over USB, too. A jumper allows to switch between Midi-thru and Midi-out.
ARCORE USB-Midi hack for the Leonardo. One has to modify the Arduino IDE to run MIDI over USB.
Arcore Midi Hack
USB-Midi installation guide
The Arduino MIDI Library v4.2 for Midi over TX/RX is here:
Arduino Midi Library
from that page:
https://github.com/FortySevenEffects/arduino_midi_library/releases/tag/4.2
https://www.sparkfun.com/products/12640
A super tutorial for the fast PWM on Arduino Leonardo:
http://r6500.blogspot.de/2014/12/fast-pwm-on-arduino-leonardo.html.
Due to the fact that the Pro Micro has no pin 11 or 13 I had to activate fast PWM on pin 5. It is the complementary channel A and thats why all values are 255 - value.
And here's the code:
void pwmSet5(int value) { OCR4A = 255 - value; // Set the negativ PWM value DDRC |= 1 << 6; // Set Output Mode C6 TCCR4A = 0x42; // Activate the complementary channel A }
Here are the links for the MIDI library for MIDI over the serial pins (TX, RX).
MIDI Library 4.2
MIDI Library Callbacks Description
http://www.midi.org/techspecs/midimessages.php
http://dernulleffekt.de/midi/table1.html
http://dernulleffekt.de/midi/table2.html
http://dernulleffekt.de/midi/table3.html
http://dernulleffekt.de/midi/table4.html
The PS202 - MIDI-Duino was designed by Wolfgang Spahn 2015-21.
It is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.