So I made a simple midi controller since there was a discussion about midi in an arduinome, just wanted to see what would be involved. It’s pretty simple to make a stand-alone version.
Here is the schematic, very simple (Potentiometers can be any size):
![]()
Here is the the code. It’s stupid simple, it might be too simple. I don’t know if the delays have to be there but I didn’t want to spam the serial port, also this is just for 2 controls.
// Super Simple Midi Contoler
int val = 0;
int val2 = 0;
void setup()
{
Serial.begin(31250); // Default speed of MIDI serial port
}
void loop()
{
val = analogRead(1)/8; // Divide by 8 to get range of 0-127 for midi
MIDI_TX(176,1,val); // 176 = CC command, 1 = Which Control, val = value read from Potentionmeter
delay(10);
val2 = analogRead(0)/8; // Control point 2
MIDI_TX(176,2,val2);
delay(10);
}
void MIDI_TX(unsigned char MESSAGE, unsigned char CONTROL, unsigned char VALUE) //pass values out through standard Midi Command
{
Serial.print(MESSAGE);
Serial.print(CONTROL);
Serial.print(VALUE);
}
And here is a video:
Now go make your own controller with photoresistors, pressure sensors, touch sensors, whatever!












