Really Cheap Compressor [documentation]
- soggybag
- Resistor Ronker
Information
- Posts: 279
- Joined: 07 Aug 2007, 23:29
- Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
- Location: San Francisco
- Has thanked: 28 times
- Been thanked: 27 times
- Contact:
This reminds me of the John Hollis Flatline compressor. I like the use of two opposing LEDs this is a nice solution to the typical rectifier. It has an inverting signal path.
Blog: http://super-freq.com
- mictester
- Old Solderhand
Information
It's the simplest solution! The original idea was to replace the old fashioned way of getting compression - connecting an LDR across the volume control of your amplifier, then illuminating it with an incandescent lamp driven from a tap on the output transformer. The louder the signal, the brighter the lamp, and the more the audio was shunted to earth at the volume control! It was the very simplest compressor, but along with some nice second harmonic distortion introduced by slightly changing the bias voltage to the screen grids of the output bottles, you ended up with a very "loud", very lovely sounding amplifier that would give fabulous sustain to any guitar.soggybag wrote:This reminds me of the John Hollis Flatline compressor. I like the use of two opposing LEDs this is a nice solution to the typical rectifier. It has an inverting signal path.
The Really Cheap Compressor is a minimum parts design that was meant to be a replacement for the simple valve amplifier modification outlined above. I've built several of them (which reminds me, I need to make another one this week), and everyone who's used them, likes them. If you use a good quality dual op-amp (a TL072 is OK, but the LM833 or NE5532 are slightly quieter), you won't hear any added hiss, and no added distortion. This compressor is entirely clean, and doesn't have any part of the LEDs (or any other diodes) in the signal path, so there's no clipping (unlike with the rectifier circuit in the Dynacomp). The LDR is slightly slow to respond, so the attack of the guitar note is retained, but the squeeze is nicely applied to the decay portion of the note - just where you want it. This is one of those "is it on?" effects, but you really miss it when it's off!
"Why is it humming?" "Because it doesn't know the words!"
- culturejam
- Old Solderhand
Information
Damn skippy!mictester wrote:You're going to learn a lot of colloquial English on this board!
- CRBMoA
- Resistor Ronker
Word!culturejam wrote:Damn skippy!mictester wrote:You're going to learn a lot of colloquial English on this board!
atreidesheir wrote: Let's build some damned pedals!
- chicago_mike
- Tube Twister
Shake a scene you turkeys!
Skyline FX 2013
- soggybag
- Resistor Ronker
Information
- Posts: 279
- Joined: 07 Aug 2007, 23:29
- Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
- Location: San Francisco
- Has thanked: 28 times
- Been thanked: 27 times
- Contact:
You should take a look at the Flatline. It's similar. Both are built on similar ideas but different designs. Here's a link to the Flatline:
http://www.hollis.co.uk/john/flatline.jpg
I like your LED setup with the two LEDs. The Flatline uses a more complex diode network with a single LED. Flatline uses a single op-amp but in a non-inverting arrangement.
http://www.hollis.co.uk/john/flatline.jpg
I like your LED setup with the two LEDs. The Flatline uses a more complex diode network with a single LED. Flatline uses a single op-amp but in a non-inverting arrangement.
Blog: http://super-freq.com
Hey - cool, let me get back to you on your mail (madness here too), but for the
Vactrol version of this one here - do you think it might be smart to do some kind of
rectification before I hit the LED - the VTL5C only has this single LED, not sure how
that would change response characteristics...and on the subject - hmm...
timing network? Okay back to work here
Vactrol version of this one here - do you think it might be smart to do some kind of
rectification before I hit the LED - the VTL5C only has this single LED, not sure how
that would change response characteristics...and on the subject - hmm...
timing network? Okay back to work here
Resident PCB department evil for DIY
- mictester
- Old Solderhand
Information
With the Vactrol, you would want to rectify, but you could just put a reverse-biased diode across the LED side. This would mean that the Vactrol would only light on one half of the applied waveform, but it shouldn't matter too much.livingnote wrote:Hey - cool, let me get back to you on your mail (madness here too), but for the
Vactrol version of this one here - do you think it might be smart to do some kind of
rectification before I hit the LED - the VTL5C only has this single LED, not sure how
that would change response characteristics...and on the subject - hmm...
timing network? Okay back to work here
"Why is it humming?" "Because it doesn't know the words!"
- soggybag
- Resistor Ronker
Information
- Posts: 279
- Joined: 07 Aug 2007, 23:29
- Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
- Location: San Francisco
- Has thanked: 28 times
- Been thanked: 27 times
- Contact:
I have been thinking about your compressor the last few days. Humor my attempt at analysis. Please feel free to let me know where I get it wrong or if there's something I missed.
The basic circuit is made of two a non-inverting buffer or pre-amp and a second buffer that drives the LEDs.
The first buffer is made up of the first op-amp stage. Ignoring the LDR for the moment. This is an inverting stage with a gain of 10 (2M2/220K). The 22pf cap reduces gain for high frequency stuff.
Considering the LDR in the first stage the gain is variable. At the high end the LDR has a resistance of 1M in parallel with the 2M2 the total resistance in the feedback loop is about 670K. Which makes the gain about 3.
As the two green LEDs light up the resistance of the LDR goes down reducing gain. We could pick a number and do the calculations, but figure this whole thing acts as limiter. The louder the signal at the input the brighter the two green LEDs will get reducing gain. As the signal fades away, LEDs dim and the gain rises, we have the compression effect.
It's hard to guess what the range of resistance will be for the LDR. Since it will vary with the device and how bright the LEDs get. Let's imagine the gain ranges from something less than 1 to about 3.
The second stage is made of the second op-amp also inverting. It is driven by the output of the first stage. This second stage has a gain 1 to 11 ( 10K to 110K / 10K). The output of this stage lights the LEDs based on how strong the signal is coming off the first stage.
Here's where I'm a little fuzzy. It seems the first stage would bias the second at about half V. If so that means, with sustain at minimum, we have 4.5v at the positive side of the 1uF cap. How does light up the LED?
I'm guess one LED is being lit while the electrons flow up through the 1K from ground until the cap reaches equilibrium. At which point the LED turns off. When the charge on the cap switches these electrons flow out again and light the other LED.
I'm guessing, if this is correct, that this is why the LEDs don't stay lit when the second op-amp is biased at half V+. The charge at the 1uF cap needs to cycle positive and and negative to keep electrons flowing in and out to alternately light each LED.
These are the kind of things that keep me up at night. Now that I've got this out I can go to sleep.
The basic circuit is made of two a non-inverting buffer or pre-amp and a second buffer that drives the LEDs.
The first buffer is made up of the first op-amp stage. Ignoring the LDR for the moment. This is an inverting stage with a gain of 10 (2M2/220K). The 22pf cap reduces gain for high frequency stuff.
Considering the LDR in the first stage the gain is variable. At the high end the LDR has a resistance of 1M in parallel with the 2M2 the total resistance in the feedback loop is about 670K. Which makes the gain about 3.
As the two green LEDs light up the resistance of the LDR goes down reducing gain. We could pick a number and do the calculations, but figure this whole thing acts as limiter. The louder the signal at the input the brighter the two green LEDs will get reducing gain. As the signal fades away, LEDs dim and the gain rises, we have the compression effect.
It's hard to guess what the range of resistance will be for the LDR. Since it will vary with the device and how bright the LEDs get. Let's imagine the gain ranges from something less than 1 to about 3.
The second stage is made of the second op-amp also inverting. It is driven by the output of the first stage. This second stage has a gain 1 to 11 ( 10K to 110K / 10K). The output of this stage lights the LEDs based on how strong the signal is coming off the first stage.
Here's where I'm a little fuzzy. It seems the first stage would bias the second at about half V. If so that means, with sustain at minimum, we have 4.5v at the positive side of the 1uF cap. How does light up the LED?
I'm guess one LED is being lit while the electrons flow up through the 1K from ground until the cap reaches equilibrium. At which point the LED turns off. When the charge on the cap switches these electrons flow out again and light the other LED.
I'm guessing, if this is correct, that this is why the LEDs don't stay lit when the second op-amp is biased at half V+. The charge at the 1uF cap needs to cycle positive and and negative to keep electrons flowing in and out to alternately light each LED.
These are the kind of things that keep me up at night. Now that I've got this out I can go to sleep.
Blog: http://super-freq.com
- mictester
- Old Solderhand
Information
You can now get your sleep! You're right.soggybag wrote:I have been thinking about your compressor the last few days. Humor my attempt at analysis. Please feel free to let me know where I get it wrong or if there's something I missed. [/quote}
OK.Yes, but they're not really "buffers" - they're both amplifiers.soggybag wrote: The basic circuit is made of two stages - a non-inverting buffer or pre-amp and a second buffer that drives the LEDs.Correct. The 22pF gets rid of any stability problems. It's not a critical value - I've used as high as 100 pF, and you can't hear any change to the signal through the box.soggybag wrote: The first buffer is made up of the first op-amp stage. Ignoring the LDR for the moment. This is an inverting stage with a gain of 10 (2M2/220K). The 22pf cap reduces gain for high frequency stuff.That's almost right, but usually the initial gain is a little higher because the dark resistance of most LEDs I tried was higher than 1M. I found I usually got an initial gain of about 4.soggybag wrote: Considering the LDR in the first stage the gain is variable. At the high end the LDR has a resistance of 1M in parallel with the 2M2 the total resistance in the feedback loop is about 670K. Which makes the gain about 3.The gain actually varies from around 4 down to 0.7, and acts as a compressor rather than a limiter - the input vs output graph shows a compression ratio of about 8:1 (which, I suppose, is close to limiting).soggybag wrote:
As the two green LEDs light up the resistance of the LDR goes down reducing gain. We could pick a number and do the calculations, but figure this whole thing acts as limiter. The louder the signal at the input the brighter the two green LEDs will get reducing gain. As the signal fades away, LEDs dim and the gain rises, we have the compression effect.
It's hard to guess what the range of resistance will be for the LDR. Since it will vary with the device and how bright the LEDs get. Let's imagine the gain ranges from something less than 1 to about 3.Correct. Obviously there's a switch-on threshold for the LEDs which means that there's low level range of signals that aren't affected by the compression. It also has a slightly strange effect in conjunction with the response speed of the LDR in that it doesn't affect the initial attack of each note or chord, which makes the effect less obvious, and leaves the instrument sounding more "natural". This is why some people have asked "Is it on?".soggybag wrote: The second stage is made of the second op-amp also inverting. It is driven by the output of the first stage. This second stage has a gain 1 to 11 ( 10K to 110K / 10K). The output of this stage lights the LEDs based on how strong the signal is coming off the first stage.The LEDs are just seeing an audio signal. Forget the DC conditions at either side of the capacitor feeding the LEDs - it's not significant. The LEDs just "see" the audio and if it exceeds the threshold of conduction of the LEDs, they will light up . The amount they light will be (within limits) proportional to the audio level applied. One will light on positive half cycles, and the other on negative half cycles.soggybag wrote: Here's where I'm a little fuzzy. It seems the first stage would bias the second at about half V. If so that means, with sustain at minimum, we have 4.5v at the positive side of the 1uF cap. How does light up the LED?You don't need to analyse so closely, but you're basically correct.soggybag wrote: I'm guess one LED is being lit while the electrons flow up through the 1K from ground until the cap reaches equilibrium. At which point the LED turns off. When the charge on the cap switches these electrons flow out again and light the other LED.soggybag wrote: I'm guessing, if this is correct, that this is why the LEDs don't stay lit when the second op-amp is biased at half V+. The charge at the 1uF cap needs to cycle positive and and negative to keep electrons flowing in and out to alternately light each LED.
These are the kind of things that keep me up at night. Now that I've got this out I can go to sleep.
Just try the amplifiers with fixed resistors and LEDs on your breadboard, and you'll see that the LEDs light up with each note you play, and fade out as the note decays. When the LEDs are put into the complete circuit with the LDR inside a dark box, the range of sustain is quite remarkable, but the circuit doesn't suffer from the problems of excessive amplification of very quiet signals, which causes hiss and hum issues in compressors like the Black Finger, Dynacomp and many others.
"Why is it humming?" "Because it doesn't know the words!"
Information
Built this yesterday with dunes2k layout... works perfectly.
It's nice and "transparent" (compared to a dynacomp or orangecomp, which are also nice in their own way). mictester is right when he says "it's the is it on" type of comp...it does not pump at all. I really like it and recommend it.
A little bit of advise, if you use futulec's LDR measure them... I initially used LDR #10 which is supposed to be 1M dark but measured 500k... which reduced the gain of the signal... and then switched to #11 which measured close to 1M instead of 2M as specified. This was perfect.
Also, make sure you put the led/ldr in a dark space when testing or no signal will come through (gain will be close to 0).
Thanks mictester and dunes2k!
It's nice and "transparent" (compared to a dynacomp or orangecomp, which are also nice in their own way). mictester is right when he says "it's the is it on" type of comp...it does not pump at all. I really like it and recommend it.
A little bit of advise, if you use futulec's LDR measure them... I initially used LDR #10 which is supposed to be 1M dark but measured 500k... which reduced the gain of the signal... and then switched to #11 which measured close to 1M instead of 2M as specified. This was perfect.
Also, make sure you put the led/ldr in a dark space when testing or no signal will come through (gain will be close to 0).
Thanks mictester and dunes2k!
“Happiness in intelligent people is the rarest thing I know.” - E. Hemingway
- mictester
- Old Solderhand
Information
Thank you for your kind comments!jrjoe21 wrote:Built this yesterday with dunes2k layout... works perfectly.
It's nice and "transparent" (compared to a dynacomp or orangecomp, which are also nice in their own way). mictester is right when he says "it's the is it on" type of comp...it does not pump at all. I really like it and recommend it.
A little bit of advise, if you use futulec's LDR measure them... I initially used LDR #10 which is supposed to be 1M dark but measured 500k... which reduced the gain of the signal... and then switched to #11 which measured close to 1M instead of 2M as specified. This was perfect.
Also, make sure you put the led/ldr in a dark space when testing or no signal will come through (gain will be close to 0).
Thanks mictester and dunes2k!
"Why is it humming?" "Because it doesn't know the words!"
- dune2k
- Breadboard Brother
Fine. 
So the layout is now verified.
So the layout is now verified.
JOHNO wrote:P.S Great pedal for playing 70's porn music.
- soggybag
- Resistor Ronker
Information
- Posts: 279
- Joined: 07 Aug 2007, 23:29
- Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
- Location: San Francisco
- Has thanked: 28 times
- Been thanked: 27 times
- Contact:
Thanks for giving me the review on my analysis. I'm still learning about this electronics stuff.
Here's my take on this. As an exercise I rearranged things so it had a non-inverting input. Basically this is just a mash up between the Really and the Flatline compressors.

Here's my take on this. As an exercise I rearranged things so it had a non-inverting input. Basically this is just a mash up between the Really and the Flatline compressors.

Blog: http://super-freq.com
- mictester
- Old Solderhand
Information
Your version might work, but some of the values I calculated were deliberately chosen to shape the response (for example) of the sidechain (the second amplifier stage driving the LEDs). I wanted to minimise "handling" noise - to get rid of the thumps that most compressors accentuate when a guitar is moved around. I also wanted to keep the maximum gain down (to minimise noise) and give slightly more compression to upper frequencies, because the lower strings on a guitar naturally have more sustain than the upper strings. I also wanted the circuit to be able to go from almost no compression to completely squashed over the range of the "sustain" control, which I achieved with the component values that I calculated. Finally, I wanted to isolate the LED drive and rectification functions completely from the audio path - I wanted the results to be entirely clean.soggybag wrote:Thanks for giving me the review on my analysis. I'm still learning about this electronics stuff.
Here's my take on this. As an exercise I rearranged things so it had a non-inverting input. Basically this is just a mash up between the Really and the Flatline compressors.
As described, the simple compressor works really well. We've used them in studios, and every guitarist that tried one has wanted one!
"Why is it humming?" "Because it doesn't know the words!"
- soggybag
- Resistor Ronker
Information
- Posts: 279
- Joined: 07 Aug 2007, 23:29
- Completed builds: Fuzz Face, Tone Bender, Big Muff, ICBM, Ugly Face, Green Ringer, Super Fuzz, Multiplex Echo, Multiplex Jr, Rebote, Echo Base, SHO, Fuzz Factory, Titan Boost/Octave, Easy Face, Tone Bender MkII, Trem Shifter, Zero Point Mini...
- Location: San Francisco
- Has thanked: 28 times
- Been thanked: 27 times
- Contact:
My version was more of an exercise.
I brought up the LED thing, because without the cap the the arrangement becomes a DC thing. Where only one of the LEDs is lit. With the cap the situation becomes AC. The idea of a cap being a virtual ground still throws me at times. Just trying to wrap my head around this idea.
I brought up the LED thing, because without the cap the the arrangement becomes a DC thing. Where only one of the LEDs is lit. With the cap the situation becomes AC. The idea of a cap being a virtual ground still throws me at times. Just trying to wrap my head around this idea.
Blog: http://super-freq.com
- dune2k
- Breadboard Brother
I'm going to build it some time soon...probably next month.
I just need a LDR and the 2 LEDs and I don't want to order stuff just for that...
The layout itself should be verified since jrjoe21 built the guitar version (I guess!) and it works. Only difference between the 2 layouts are the changed capacitors mentioned by mictester.
I just need a LDR and the 2 LEDs and I don't want to order stuff just for that...
The layout itself should be verified since jrjoe21 built the guitar version (I guess!) and it works. Only difference between the 2 layouts are the changed capacitors mentioned by mictester.
JOHNO wrote:P.S Great pedal for playing 70's porn music.
- CRBMoA
- Resistor Ronker
Anyone tried this with bass?[/quote]
Not yet. But hopefully the question will prompt the designer to recommend part substitutions where appropriate
, as it is obvious (to me, anyway) that any ham fisted alterations I might make to the circuit would lack the reasoning or analysis of the originator.
Not yet. But hopefully the question will prompt the designer to recommend part substitutions where appropriate
atreidesheir wrote: Let's build some damned pedals!
- mictester
- Old Solderhand
Information
Increase the values of the capacitors as described, and (possibly) increase the gain of the first stage slightly by reducing the 220k to 180k. That works really well with my Precision.dune2k wrote:I'm going to build it some time soon...probably next month.
I just need a LDR and the 2 LEDs and I don't want to order stuff just for that...
The layout itself should be verified since jrjoe21 built the guitar version (I guess!) and it works. Only difference between the 2 layouts are the changed capacitors mentioned by mictester.
Enjoy
"Why is it humming?" "Because it doesn't know the words!"