Step 3: Adding Piezos
The piezo generates electricity based on the amount of deflection in the crystal. Some piezos used in instrumentation are gripped on the side (a cantilever mount). I chose to make small indentations in the backing material that would allow the piezos to bend and flex. So mounting the piezos is an important consideration when your goal is to read the current from individual keystrokes. It's not like using a piezo as a pickup on a guitar.
One must be careful when attaching devices to the analog pins. The piezos can generate voltages from -20vdc to +60vdc. I put them on a scope and it's quite an interesting wave form. The clamping diodes on the ATmel allow up to 1 milliamp (1000 microamps). So the 1M ohm pull down resistor helps protect the analog inputs on the arduino.
In the end the piezos worked fine - but getting the analog inputs on the board to recognize and turn them reliably into a midi signal is a work in progress. This is why I like working with Tom. He's already come up with some different designs for my unique needs. So the next task is figuring out how to add some subtle circuitry that will make the arduino a little more responsive.
I've tried implementing this simple circuit (below) to the output and I think that with some changes in the code and tuning of the circuit I will have a good basic design.
Now onto the next step - adding a mux. Which again - Tom Scarff cranked out in short order. There is still quite a bit of design work left but i'm very pleased with the initial product; a six note midi controller (soon to be expanded).