Transistor and op-amp stages
One transistor or op-amp gain stage, the kind every pedal is built from. Set the supply and the resistors, and see where the part sits, how far the output can swing each way before it clips, and the gain. Then drive it with a sine and watch the output.
Swipe sideways for the whole drawing. Tap a part to jump to its value. The red numbers are DC voltages to ground.
Transfer curve and self-bias line
Output at the load, one cycle
Harmonics
evenodd dB below the fundamental, 2nd to 10th
All values
Reading the chart
Each gray curve shows the collector current for one base current, across the range of collector voltage. The curves are nearly flat. The collector current is the base current times the transistor’s gain (its hFE), and the collector voltage barely changes it. The curves bend down near 0 V, where the transistor saturates.
With these collector and emitter resistors, the transistor can only be at a point on the DC load line. The line runs from the full supply voltage at zero current to the current that would flow if the transistor were a dead short. The bias resistors set the base current, which sets where on that line the transistor idles. That point is the operating point. The signal passes through the output cap, so for the signal the load is in parallel with the collector resistor, and the signal moves along the steeper AC load line. An emitter resistor with no bypass cap adds to that line’s resistance. It also sets the gain, which is close to the collector load divided by the emitter resistance.
Swinging down, the collector runs into saturation, about 0.2 V. Swinging up, the current falls to zero and the transistor cuts off. Whichever comes first sets the clean headroom. A stage biased with its collector near half the supply has about the same room both ways.
PNP A PNP transistor works like an NPN with every polarity reversed. Its emitter goes to the positive side, so a PNP pedal runs on a negative supply: positive ground, with the battery’s plus to ground, as in the germanium fuzzes and treble boosters. Every voltage on the drawing reads negative. The chart shows its curves the same way as an NPN, against the voltage from emitter to collector.
Leakage Germanium transistors pass some collector current with no base current at all. When that shows, the lowest curve is the one at no base current, sitting above zero. Leakage grows quickly with temperature, so germanium stages drift as they warm up.
Collector feedback A resistor from the collector to the base keeps the bias steady. If the collector current rises, the collector voltage falls, and less current flows through the resistor into the base. That brings the collector current back down. The bias then depends less on the transistor’s gain. The same resistor feeds back some of the signal, which lowers the input impedance.
The emitter resistor A resistor under the emitter with no cap across it feeds back part of the signal. The emitter voltage follows the base up and down, so less of the input signal is left between base and emitter, and the gain falls. The gain comes out close to the collector resistor (in parallel with the load) divided by the emitter resistor. Those resistors set it more than the transistor or its current does. The bypassed emitter resistor in All values has a cap across it, so it adds to the bias but doesn’t cut the gain.
Each gray curve shows the drain current for one gate voltage, from 0 V down toward cutoff. Above a few volts on the drain, past the knee of each curve, the curves are flat and the gate voltage sets the current. Below the knee the JFET acts like a resistor. The top curve, with the gate at 0 V, is the most current the JFET can pass, called its IDSS.
The source resistor is all the bias the stage needs. The drain current through it raises the source above the grounded gate, so the gate is negative compared with the source. More current means more bias. The self-bias line shows every point where the current and the bias agree, and the JFET idles where that line meets its curves. That point is the operating point. The small chart under the curves shows the same thing another way: the JFET’s current against gate voltage, crossed by the straight self-bias line.
The DC and AC load lines work as on a BJT. Swinging down, the drain runs into the knee. Swinging up, the current falls to zero. JFETs vary a lot from one to the next, so two JFETs of the same type idle at different points with the same resistors. That’s why many JFET pedals have a trimmer on the drain or source.
The chart shows the stage’s gain against frequency, worked out with the bench’s engine. The gray line is the gain of the op-amp by itself with no feedback (its open-loop gain), which falls 6 dB per octave above a low frequency. The stage can’t have more gain than the op-amp has, so the stage’s gain rolls off where the two lines meet. That frequency is close to the op-amp’s gain-bandwidth product divided by 1 + Rf / Rg (or by 1 + Rf / Ri for an inverting stage).
On a single supply the op-amp needs a reference halfway up, so the output can swing both ways. The output stops short of each rail by an amount that depends on the op-amp, about 1.5 V on a TL072 or a 4558 and a few tens of millivolts on a rail-to-rail part. The waveform shows the output pin with both limits. Most overdrives clip with diodes before the op-amp reaches a limit. For those, try the clippers tool.
Slew rate is how fast the output voltage can change. At a high enough frequency, a full swing needs the output to change faster than that, and the sine turns into a triangle. The full-power bandwidth is the highest frequency at which a full swing stays clean.
From the bench A transistor or op-amp on the bench can be opened on this page from its part box, when its stage is one of the forms above. The whole circuit is then solved as you have it on the bench, and only that stage’s parts can be changed. Each value you change is added to Your changes on the bench. The DC load line comes from the stage’s resistors. The AC load line is the load the collector or drain sees at 1 kHz in the whole circuit. The sine is set so that the stage’s input would swing by the signal level if nothing ahead of it clipped, and the gain is measured from the stage’s input to the collector, drain or output pin.
Warnings Red flags a transistor saturated or cut off at rest, a JFET in its ohmic region or with its gate forward-biased, an op-amp output near a rail at rest, or the solver not settling.