Arduino MIDI Foot Pedal Keyboard

MIDI Foot Pedal Keyboard

The Origin

My dad is a musician.  He can play a multitude of instruments.  However, he only has two arms, BUT he also has legs!  That’s when we decided that we would reuse the foot pedals from an old organ and convert them into an arduino powered MIDI keyboard.  Now he can easily play electric guitar and fill the empty sound with excellent bass notes produced from his QS8 Quadrasynth.

 MIDI Foot Pedal Keyboard

An Introduction to MIDI

MIDI stands for Musical Instrument Digital Interface.  As you can guess, it conducts all operations digitally.  MIDI doesn’t send sound frequencies as instruments do.  MIDI works generally with two parts: a controller and a sequencer.  The controller is what is manipulated by the musician and sends serial data to the sequencer.  The sequencer can be a computer, keyboard, synthesizer, or even a standalone rack mount sequencer.

The MIDI controller does not make any sound on its own.  It REQUIRES some form of a sequencer.  The sequencer decodes the serial data and produces sound based on the given data.

MIDI data is commonly sent in three parts: the MIDI channel (up to 16 channels can be used at once), the note, and the velocity (basically the volume of the note or how loud you want it to be).

Step 1: Materials

I ordered my arduino parts, crystals, powersupply, and capacitors from http://cutedigi.com.  Use a common 12V power adapter to power the powersupply.  I can’t imagine this project drawing much current, so I’m sure a 500mA power adapter will suffice.

Step 2: Obtaining the Foot Pedals

What a steal!

The organ used in this instructable is a Wurlitzer organ.  My dad found it on craigslist and picked it up for $25!!  Everything worked, but he didn’t care for the tone.  The pedals, however, were perfect.  There are twenty five keys and the switches are built into the pedals instead of mounted inside the organ with the pedals hitting the switches.  Also note how the switches use magnets to connect the switch.  These switches will be almost impossible to wear out!  Consider taking the volume pedal as well.  It controls a potentiometer, which is pertinent to our interests! MIDI Foot Pedal Keyboard schematic

This organ has an interesting version of a Leslie speaker.  That might be used for another project on another day.

Step 3: Making a Dual Stand-Alone Arduino

The foot pedals chosen in this project has twenty-five notes.  The ATmega 328 (the one I use) has at MOST 20 digital inputs (including using the analog inputs as digital inputs.)   One is used for sending the MIDI data.  This leaves 19 digital inputs for the pedals.  Instead of using an AVR that has more inputs, I found it easier to buy two ATmega 328s and run them together.  The inputs were split 13 in one and 12 in another.

The 16 MHZ crystal is connected to pins 9 and 10 of the IC.  One capacitor is also connected to pin 9 and then to ground, while the other to pin 10 and then to ground.

Solder the IC seats, powersupply, crystals, capacitors, and connector down to the perf board.  Print out the picture of the ATmega Arduino pinout.  Write whatever you used to label the pedal wires down on each.  My dad simply labeled them like the notes: C, C+, D, D+, E, etc. (+ meaning #) This will help with the programming step.    Send a +5V wire to one side of all the pedal switches.  The returning wires from the pedals are wired to the digital inputs of the IC.  Be sure to include pull down resistors on the inputs for the pedals.

Read more: Arduino MIDI Foot Pedal Keyboard

Leave a Comment

Your email address will not be published. Required fields are marked *