MIDI vampire 1 on Arduino

MIDI vampire 1 on Arduino

Postby bryaq » Wed Mar 25, 2015 12:25 pm

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.
Attachments
vamp1_arduino_bb.jpg
vamp1_arduino_bb.jpg (68.64 KiB) Viewed 6981 times
bryaq
 
Posts: 2
Joined: Wed Mar 25, 2015 6:38 am

Re: MIDI vampire 1 on Arduino

Postby guest » Wed Mar 25, 2015 3:41 pm

aweomse!!!!!! i can not thank you enough. this was a back burner project of mine for a long time, and i just never got around to doing it. ill have a look at the code, and hopefully post it up in the wiki for everyone to use. i think a lot of people will be interested in this. 2 quick questions:

1. what is the pot doing in the schematic? is this a volume pot? why not take the output from the wiper (and make it a 10kA)?
2. what is the 2.2k resistor doing?
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: MIDI vampire 1 on Arduino

Postby guest » Wed Mar 25, 2015 8:11 pm

i figured out what the 2.2k resistor is for (ie i actually read your whole post...). i think youve inspired me to get off my butt and write a C version for the arduino, so that others can easily get in there and hack around.
guest
Site Admin
 
Posts: 449
Joined: Thu May 20, 2010 11:58 pm

Re: MIDI vampire 1 on Arduino

Postby bryaq » Thu Mar 26, 2015 11:45 am

Hi! Yes, it is a volume pot. With 10k it was too loud for my soundcard's line-in.
bryaq
 
Posts: 2
Joined: Wed Mar 25, 2015 6:38 am


Return to MIDIvampire

Who is online

Users browsing this forum: No registered users and 1 guest


cron