Seen a lot of people on here talking about setting up a midi controller based on Arduino recently so thought it might be an idea to get all the relevant information collected into one thread.
Here’s some useful links:
[quote]This is some Arduino code that will get 8 potentiometers working:
Ideally, what would be perfect, is if someone could write some Arduino code that will allow x number of potentiometers/buttons and that everyone can use on their controllers (without having to go the HID/midi route or hack a joypad to pieces!)
Me too. I’m not even a novice at programming. As I’ve said before, I don’t think I’m willing to learn a new language just to build a controller, it’s just not time/value efficient for me.
If someone was willing to help out the forum, then that would be pretty awesome.
I built a clone of a midi fighter out of an arduino and the usb to midi hack listed above. It wasn’t too hard to pull off. Mine has no LEDs on it though, I ran out of digital pins and didn’t want to mess with a multiplexer. I didn’t think to take pics while I was making it, but I should be able to write something up on the process if anyone is interested. The hardware side of it was pretty straightforward. Programing it wasn’t too bad, but I had to refer to a lot of example code to get it right.
I think the key for most people is getting the multiplexer working with some decent code that doesn’t introduce too much latency. At least 16 analogues would be nice…
nice one chrisw - i’m almost certainly gonna pick up an Arduino in the new year… gonna be quite a steep learning curve but it’s worth a shot (considering the price).
So I finally got this working in Windows XP (looks to be a workaround for OSX as well). The following steps allow you to pass midi info via USB into your apps utilizing the Roland Serial to MIDI driver. This setup negates the need for an additional app running to convert serial to midi (i was using this program) I pulled the info from here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1161023163
Uninstall your FTDI driver (look in the Arduino drivers folder for FTDIUNIN.exe and be sure to run it in Windows 2000 compatibility mode).
Download this and replace FTDIPORT.INF in your Arduino drivers folder
Plug in your Arduino and reinstall the now modified FTDI driver (direct it to your arduino drivers folder)
Download the Roland driver and install it. I unchecked the box that said something about “use multiple drivers” and left it set to COM 3
IMPORTANT!! Set your serial.baud rate in your sketch to 31250
Make sure your sketch is serial.printing in the appropriate MIDI format (many topics over in arduino forums)
Now open your app and direct it to the Roland MIDI IN
Its basically a midifighter (4x4 arcade button grid) with to sliders, a fader, and 2 thumbsticks (from an xbox 360 controller). Just have to get the code finished and the LED backlighting for the top 4 buttons. Im using a Arduino mega for the brain.
Ordered my Arduino a week ago but still hasn’t turned up lol (it’s a clone from Hong Kong so delivery is slow).
My ultimate aim is to get some code running that’s flexible enough in terms of inputs (analogues/digital/encoders/etc) that the whole DJTT community can download it and use it without too much tweaking. I’m also considering ordering a bunch of Arduino’s, pre-programming them and then re-selling on here them so anyone who’s scared of programming but good at design/building can get started straight away. (I don’t plan on making a profit, just a few quid to cover postage)