MIDI vampire 1 on Arduino

Hi all!
I've recently ported MIDI vampire 1 code for Arduino hardware. You can find the source code here: https://github.com/bryaq/vamp1_arduino. Hexfile ready to flash can be found here: https://gist.github.com/bryaq/a8caf7fd69d49a9871e0.
The code runs on Arduino UNO at 16MHz and the output is 31250Hz 16bit. The schematics is almost the same as original except R2 value which is 1MOhm. I've also added an option to set user-defined bitrate (115200) instead of the standard 31250. To select this option connect PD6 pin (Arduino pin 6) to GND with a 1k-2.2k resistor. This option allows you to connect your Arduino to PC and use some helper software to connect Arduino's serial port to MIDI software from which you can control and play on MIDI Vampire 1. A nice example of this helper software is Hairless MIDI<->Serial: http://projectgus.github.io/hairless-midiserial/. There are instructions on it's website for different platforms (Linux, Windows, Mac) how to use it. (Note for Linux users: On Linux I prefer ttymidi (http://www.varal.org/ttymidi/); first, I run ttymidi, then run vmpk and, finally, connect them with aconnect.) In the case of 31250 baudrate you should provide a proper MIDI IN circuit (search the web for it) on RX pin using 6n138 optocoupler.
As you can see you'll need very few parts to try MIDI Vampire with Arduino. Please also note that if you do not connect A0-A3 Arduino pins to GND the MIDI channel number will be 16.
I've recently ported MIDI vampire 1 code for Arduino hardware. You can find the source code here: https://github.com/bryaq/vamp1_arduino. Hexfile ready to flash can be found here: https://gist.github.com/bryaq/a8caf7fd69d49a9871e0.
The code runs on Arduino UNO at 16MHz and the output is 31250Hz 16bit. The schematics is almost the same as original except R2 value which is 1MOhm. I've also added an option to set user-defined bitrate (115200) instead of the standard 31250. To select this option connect PD6 pin (Arduino pin 6) to GND with a 1k-2.2k resistor. This option allows you to connect your Arduino to PC and use some helper software to connect Arduino's serial port to MIDI software from which you can control and play on MIDI Vampire 1. A nice example of this helper software is Hairless MIDI<->Serial: http://projectgus.github.io/hairless-midiserial/. There are instructions on it's website for different platforms (Linux, Windows, Mac) how to use it. (Note for Linux users: On Linux I prefer ttymidi (http://www.varal.org/ttymidi/); first, I run ttymidi, then run vmpk and, finally, connect them with aconnect.) In the case of 31250 baudrate you should provide a proper MIDI IN circuit (search the web for it) on RX pin using 6n138 optocoupler.
As you can see you'll need very few parts to try MIDI Vampire with Arduino. Please also note that if you do not connect A0-A3 Arduino pins to GND the MIDI channel number will be 16.