# Need help designing and implementing an op-amp based distortion circuit

I've been attempting to design a distortion pedal for use with my bass guitar and amplifier. The simulations in LTspice were promising, I moved to implement it and, in short, it did not work.

Note: The amplifier used in the circuit is merely illustrative. I am actually using an OPA2134. The sheet is here: https://www.ti.com/lit/ds/symlink/opa2134.pdf

This is the basic circuit, a bipolar power supply to power the op-amp and provide a 0V reference, the bass below it, with its impedance accounted for, the amplifier to its right, with soft clipping on top and hard clipping on the right. The bass amplifier is represented by the 1M input resistance.

From what I know, soft clipping is basically logarithmic amplification (high voltages become not so high) with a capacitor in parallel to lower the slew rate. Hard clipping is just cutting the wave once it goes above 0.7V or so (depending on the diode of course).

Now, this works fine as is (simulation-wise), and here are two examples of soft and hard clipping, respectively:

Note: Green is the output, red is the input scaled by 10. The original signal should have an amplitude of around 40mV, I believe. Also, for hard clipping to happen the soft clipping part of the circuit must be disconnected. This would be done with a switch in practice.

Seeing this, I build a little test circuit, with only the bipolar supply and the amplifier. First I used a 220 Ohm input resistance and a 440 Ohm for feedback (so the signal would be amplified by a factor of 3). It worked, but the noise when I played low frequency notes was noticeable.

After that, I switched the feedback resistor for a 10k potentiometer (wired up as a variable resistor). The amplifier produced a very loud, low frequency noise at all times. The bass was (just barely) audible, but it sounded very quiet considering the ~50x amplification factor.

So far, my questions are:

1. Is the bipolar power supply adequate? Would input biasing be better in this situation? If so, why?
2. Is the value of the input and feedback resistors adequate? Should they both be higher/lower?

I thought filtering the input signal might help, so I moved to design a pair of simple filters with the components I had available. This, however, distorted the signal massively. Here are the filters:

I must've done something really dumb (filters are supposed to be quite simple) because the signal looks like this:

As you see, the input signal now has a DC offset, and the output looks like that.

Here's another pair of questions:

1. Are the filters correctly designed?
2. Is there some sort of incompatibility with the bipolar supply?

I hope I was clear enough with the questions and examples, if you need any extra information let me know. Thank you in advance for your time!

SOLUTION

As described in the answer, the solution was using a voltage follower in the power supply to provide a much more stable ground node. The new power supply is below:

Note: The wires that intersect but don't have the blue square are not actually connected, so if you have the same issue, don't connect your output to the op-amps power supply :)

• You have -100mV of input offset probably due to input bias current and 1Meg or something . Null the offset somehow. Commented Dec 31, 2019 at 17:57
• You're not clipping at all on the positive side. Could a diode be smoked, or in backwards? Commented Dec 31, 2019 at 18:23
• nah , its all due to input DC offset, but very crude Bass Synth compared to soundcloud.com/jamie-laboz/iron-pterodactyl Commented Dec 31, 2019 at 18:30
• @ScottSeidman I disconnected the clipping modules for the filter experiment, so it's normal
– Alex
Commented Jan 1, 2020 at 15:13
• To my experience, the acoustic impression of distortion is very sensitive to small changes of the parameters. Since you are referring to your impressions in your question, you should probably first find out what characteristics are due to deviations from your required distortion curve, and which are due to you misunderstanding the psychoacoustic consequences of the required curve. So record your guitar with your PC and then use e.g. Audacity and try out different distortion curves to understand what it sounds like. Commented Jan 2, 2020 at 18:27