Pedal-O-Matic foot pedal module

Here’s a differential amplifier topology:
image
When R1 = R2 and R3 = R4, Vout = (R3/R1)(V2-V1).

1 Like

[EDIT] Rats! The + and - input of the U2A op-amp are swapped in the drawing. As you can see this is not the case in the hand drawn original design / schematic, I posted earlier. I will change this.

And then one would need 8 pwm outputs of the Nano to be able to light the LEDs proportionally to the voltage and 4 ‘plain’ ports for the midi LEDs. Or use less ports in combination with a multiplexing network. There are various possible approaches to this.

U1B has feedback on the inverting input, which is as it should be, right?

1 Like

Yep, U1B is drawn correctly. I will change the schematic now and correct the text in my previous post.

In the original sub schematic unfortunately the + and - inputs of the (subtracting) op-amp U2A were swapped. This has been corrected in this schematic:


If you are not interested in using the LEDs to show the foot pedal position, you can leave U2C and U2D out and all signal circuitry connected to them. You could then use a TL072 in stead and adapt the schematic to the pin out of that op-amp.

3 Likes

I added the schematics to the Pedal-O-Matic repository.

3 Likes

Calibration of the LEDs: Set the switch to 0V…5V range. Attach a foot pedal. Now only the green LED may vary in intensity. Set the trim potentiometer RV1 so that the green LED can be varied from off to brightly lit when using the pedal. Set the trim potentiometer RV3 for the Yellow Led so that the LED will not light up but is close to lighting up (if the green LED is dark). If the yellow LEDs does not dimm enough, adjust RV2. You need to adjust RV2 only once, it supplies a bias voltage to all yellow LEDs.

3 Likes

Today I connected 4 foot pedals to Pedal-O-Matic and connected its midi out to Ableton. From Ableton I sent the midi data to a synth which I had programmed to use midi controllers for a.o. the center frequency of a ladder filter, the resonance of that filter and the mix between the output of the ladder filter and a variable state filter. While playing around with this setup I really got the feeling that this will add great modulation possibilities to the way I normally play the instrument.

5 Likes

Nope, because a single LED of a pair can be on, 4 PWM are enough, with another 4 plain digital outputs.
Just connect the two LEDs of one channel in “anti-parallel” between a PWM and a digital pin (with limiting resistors obviously…).
By setting the digital pin to 0 or 1, you chooses which of the LEDs is on, with the PWM you choose intensity (take care, one of the LEDs will be “reversed”, so for one you have to use MAX-value for the PWM)

Edit: to turn both LEDs off, put the digital pin in high-impedance mode (i.e. input).

1 Like

Doesn’t anti-parallel imply that one of the LEDs is always on? In your setup what do you do if you don’t want either to be on?

Put the digital pin in high-impedence mode (i.e. input).
This is a really simplified version of charlieplexing :

3 Likes

High impedance mode, of course, I should have thought of that !

1 Like

And I should have mentionned it in my post…

2 Likes