This Arduino program is for a relatively simple MIDI-based dual controller pedal. It takes both an analogue controller pedal with a 1/4" jack plug along with a digital controller pedal (on/off) also with a 1/4" jack plug, and converts both of them to different MIDI controllers.
By default, the analogue pedal is converted to MIDI controller 11 (expression) and the digital pedal is converted to MIDI controller 66 (sostenuto). However, this can be changed in the firmware source code.
I did this project because I couldn't find (at the time) a MIDI-based swell pedal, and because it seemed an interesting project.
The design uses an Arduino Nano as its main processor. The firmware requires the MIDI library to be installed.
The firmware and hardware designs are (C) Robin Terry 2023.
Please consult the Word document for more information, plus the circuit diagram.