Connecting multiple analog foot pedals to Arduino

Hi all, Arduino beginner here. I have 12 Roland DP 2 sustain foot pedals that I want to use to trigger MIDI notes (toggle on/off) when pressed. To connect the TR jacks with my Arduino, I bought mono jacks.

As the 12 analog inputs exceed the number of analog ins on my Arduino Uno, I'd like to use sth like this to only use one analog input. As I am a beginner, I have a hard time understanding the circuit and transferring the idea to my mono jacks. Could anyone build a simple visual (like a fritzing illustration) that helps me to understand how the mono jacks have to be linked? Thanks a lot!

If they are only on/off you don't need the analog inputs, digital inputs will suffice.

1 Like

That's great news! Can you help me with the circuit? Base to ground, Tip to 5V, and Ring to a digital input? Would I still need to use an in-between resistor and if so, how would I know the best resistance value for my specific pedal?

Ring to GND, Tip to digital input.
Set pin mode to INPUT_PULLUP

1 Like

Thanks, Jim! One follow-up: So there is no need for a resistor in between? Can you help me understand why this is the case?

it depends how the pedal is wired. if not-pressed what is connected to what ? and if pressed what is connected to what ?
Normally speaking one would use the internal pullup resistor of the board, and when pressed the pedal should make a connection between the GPIO pin and GND. No extra resistor should be required for that.

1 Like

When you set pin mode to INPUT_PULLUP, a resistor inside the arduino chip is connected between the digital input pin and 5V. So basically you are making a simple push button circuit with a pull-up.

The pedal is just an on/off switch that is normally closed (NC). So when you are not pushing the pedal, the pin will read LOW, when you push the pin will read HIGH.

More info here:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.