Sustain pedal 1 input 2 output

Hi you all!

My name is Rafa. I’m a keyboardist in a band and I’m using two keyboards at the same time and one problem I always have is using two sustain pedals, one for each keyboard, and it drives me crazy because It’s completely unconfortable. One idea I had is to use only one pedal and with an Arduino UNO duplicate it using its outputs, so when I press the sustain pedal it outputs it twice to both keyboards. I have the concept but I don’t know how to program it. I wish someone could help me with this, I would really appreciate it.

Thanks in advance!

What sort of signal do the sustain pedals output ?

Can you please provide a link to them ?

Sustain pedals are simply switches, they are passive devices. You can just split the cable and connect one sustain pedal to both keyboards, provided they use the same polarity.