Mads Kjeldgaard



Cover image for Sustain2MIDI

A useful and cheap way to convert keyboard sustain pedals to USB midi controllers.

Full source code is here.


  • Dirt cheap (all you need is a mono jack socket and a raspberry pi pico)
  • Sends note on/off
  • Note number can be changed easily by sending a midi note to the device.
  • (Optional) Use a WS2812 NeoPixel to show the state and midi note value via colour (I use this module but I think any one should work) – disable this using the SUS2MIDI_NEOPIXEL build flag in the .ini file.