The BIG Arduino MIDI controller thread

The BIG Arduino MIDI controller thread

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:

video of it in action:

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!)

Good idea Milo - I’ve been thinking about having a go at an Arduino based project but the programming side puts me off a tad.

That sounds awesome. Lets hope someone fulfills the request

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.

nice one man :slight_smile:

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…

milo you seen this? http://www.modk.it/

more user friendly?

That look very interesting Chris, thanks for the heads up. I’m sure a lot of people will like the look of that!

archies i also just found this site.

lists all the schematics for console controllers Joystick Controller - PCB and Wiring

also the start button and select button are analog too so 2 analog inputs?

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).

Invaluable pieces of information that I could have used MONTHS ago!!! Good work Mil0!

Mods. . .Can we get this Stickied?

Arduino Mux Shield (48 analogue/digital I/O) - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248736243/0

Direct MIDI over USB

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

  1. Uninstall your FTDI driver (look in the Arduino drivers folder for FTDIUNIN.exe and be sure to run it in Windows 2000 compatibility mode).

  2. Download this and replace FTDIPORT.INF in your Arduino drivers folder

  3. Plug in your Arduino and reinstall the now modified FTDI driver (direct it to your arduino drivers folder)

  4. 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

  5. IMPORTANT!! Set your serial.baud rate in your sketch to 31250

  6. Make sure your sketch is serial.printing in the appropriate MIDI format (many topics over in arduino forums)

  7. Now open your app and direct it to the Roland MIDI IN

nice one! what kind of controller are you designing? how many analogues/buttons/etc?

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.

ah excellent! your code will serve well as the basis for other peoples controllers (if you’d care to share it?)

are the LED’s going to be midi activated or activated electronically (when a button is pressed, completing a circuit)

Here’s 8 analog pots going into a standard Midifighter through a CD4051B multiplexer.
Better pictures in the Midifighter forum.

This is near exactly what I’ve been trying to do. :eek:

. . .I think I just sharted in my pants a lil!

What’s the max of inputs that can be used? Analog? Digital? How many can I add to a MF?

. . .Oh nevermind! . . I’m getting more and more excited and got more and more questions seeing this. . . .

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)

Good Idea Milo.

I’m sure you will get a lot of interest.

Let me know when you get that arduino delevered because I’ve been thinking of getting the same one myself.