Simple compressor found on youtube

Started by 11-90-an, October 17, 2020, 11:55:37 AM

Previous topic - Next topic

11-90-an

Was seatching for diy octave down sound demos and found this guy who made a really simple compressor... no I/O caps, though, but I guess that was part of the "simplest" concept...



He put some build docs In his description...

I can't wrap my mind around it, though, as most of the circuitry and jacks use ... virtual ground?

It is quite interesting though...
flip flop flip flop flip

blackieNYC

Seems like the attack would be instantaneous. Just needs a little makeup gain stage. Very cool.
  • SUPPORTER
http://29hourmusicpeople.bandcamp.com/
Tapflo filter, Gator, Magnus Modulus +,Meathead, 4049er,Great Destroyer,Scrambler+, para EQ, Azabache, two-loop mix/blend, Slow Gear, Phase Royal, Escobedo PWM, Uglyface, Jawari,Corruptor,Tri-Vibe,Battery Warmers

jfrabat

Interesting...  Needs a couple more components, but it certainly IS simple!  And it works!  (would not trade it for my Engineer's Thumb, but it does work!)
I build.  I fix.  I fix again.  And again.  And yet again.  (sometimes again once more).  Then I have something that works! (Most of the time!).

Rob Strand

QuoteI can't wrap my mind around it, though, as most of the circuitry and jacks use ... virtual ground?
Just think of the ground connection between the input and output being ground.
After that the supply is non-grounded.

To me it's like balancing a broom on the end of the handle.   You need to finely and manually adjust the DC bias on the MOSFET to put it in a workable zone.     The sharp MOSFET characteristic provides the knee.    It's kind of half-wave rectifiying but kind of worse because on one signal polarity it turns off the MOSFET more.

The long time constant of the lamp will slow things down and hides a lot of distortion.

Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

#4
Quote from: Rob Strand on October 17, 2020, 09:55:17 PM
QuoteI can’t wrap my mind around it, though, as most of the circuitry and jacks use ... virtual ground?
Just think of the ground connection between the input and output being ground.
After that the supply is non-grounded.

So the ground are connected via the 10k resistor?

I redrew the schem a bit to help me understand...



Did I reverse anything accidentally?  :icon_redface:

I’m thinking there’s a chance that the MOSFET can be replaced with a BJT, and we could add some I/O caps... maybe a resistor from MOSFET to bulb and a cap from the resistor to ground for a attack/release/decay/whatever-it’s-called control? Probably also a simple LPB-1 boost after?

I think I’m getting overexcited... :icon_lol:
flip flop flip flop flip

Rob Strand

QuoteSo the ground are connected via the 10k resistor?
No, the grounds connect together, then the input and output (the center pins) connect together via the 10k.   The output LDR forms a divider with the 10k and reduces the output level.

Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

Quote from: Rob Strand on October 17, 2020, 11:35:50 PM
QuoteSo the ground are connected via the 10k resistor?
No, the grounds connect together, then the input and output (the center pins) connect together via the 10k.   The output LDR forms a divider with the 10k and reduces the output level

So I've been drawing schems wrong the entire time... :icon_redface:

Wait... the  how does the MOSFET get triggered now since it's gate is basically tied to ground?
flip flop flip flop flip

Rob Strand

#7
QuoteWait... the  how does the MOSFET get triggered now since it's gate is basically tied to ground?
The audio input drives the source!!!  and the gate is grounded. 

The current through the lamp passes through the battery and MOSFET but that lamp drive circuit and audio circuit only touch at one point, the source.   It's like two separate circuits.   

The pot biases the MOSFET right at the point where the MOSFET is turning on so a small amount of audio signal pushes past that point and the lamp turns on.   So the audio signal connects to the MOSFET at two points the gate and the source.

Yeah its pretty weird but you can have things like that when you have floating circuits (here the PSU)  and high-impedances (here the gate and source).      If you don't want to go crazy you have to separate the parts of the circuit in your mind.
Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

#8
So I'm guessing this pedal wouldn't work with a daisy-chained PSU? Since I/O jack ground will be connected to PSU ground because of possible other pedals?
flip flop flip flop flip

Rob Strand

QuoteSo I'm guessing this pedal wouldn't work with a daisy-chained PSU?
Not as is.

However, if you add some caps to give DC isolation it's possible to juggle things around so the different parts of the circuit have the same ground.   Roughly like this,

100k pot drawn as 2x50k's:

Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

Quote from: Rob Strand on October 18, 2020, 09:08:08 PM
QuoteSo I'm guessing this pedal wouldn't work with a daisy-chained PSU?
Not as is.

However, if you add some caps to give DC isolation it's possible to juggle things around so the different parts of the circuit have the same ground.   Roughly like this,

100k pot drawn as 2x50k's:



Now that you drew it, it *finally* makes sense... thanks, Rob... :icon_biggrin:

I'll try to find a way to pull this off with a BJT... :icon_biggrin:
flip flop flip flop flip

Rob Strand

QuoteNow that you drew it, it *finally* makes sense... thanks, Rob... :icon_biggrin:

I'll try to find a way to pull this off with a BJT... :icon_biggrin:

With the BJT you lose the high impedance into the gate.   Since you already have power you could add a buffer but the on/off threshold probably sharper with a BJT compared to a MOSFET.    See how you go.   The MOSFET version is "rough and ready" anyway.
Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

#12
Worked on it the whole day, and here's what I came up with:



It's a nifty little compressor (or should I say, limiter) and squishes nicely...

Transistors can be any generic type, I used BC547s

So I'm just gonna break it down a bit... but I'm afraid I can't explain much at all...  :icon_redface:

1. Input buffer - Rob suggested that there should be a buffer up front, so I did that. First I started with a Sziklai pair, but then it used 2 trannies, and it wouldn't be that simple anymore, right? So I chucked out the PNP and it works... :icon_lol:

2. Crude Envelope follower (More like signal bleeper, but oh well...) - 100k trimpot biases the transistor that the LED would be slightly on, and with one big strum, should make the LED light up to it's brightest, (limited by the CLR, of course) then go back down to a slightly on state... honestly I can't explain, but the watching the video from the start of the thread should clear some stuff up... ::)

Quote

I used a blue LED, but it's only because it was the nearest LED to my hand at the time. Other colors will also have different respones.
I also used 10k as the CLR value, but that was simply because 10k seemed to be the safest value of that LED... of course, different LEDs need different CLRs..

3. Boost - Basically the beavis colorboost with a higher input resistor because of some fizz I noticed...



From the output of that 1u cap, the 10k controls the amount of compression (or depth of compression). I used 2 LDRs because I wanted a quicker and sharper response from it...
And the 100k pot is a volume pot since the boost can give lots of gain. I think around 10 o'clock would be unity signal...

Overall, I'm quite happy with this circuit, simple and works well, of course doesn't compare to a dynacomp or engineer's thumb, I recommend you break out the great and finicky breadboard that you have sitting in the corner and try it out. I wanna see if it works out for others too... also, please, suggestions and corrections are appreciated a lot.. :icon_biggrin: It's still on breadboard, after all... :icon_mrgreen:

p.s.1. When sustaining, say, a chord or low note, that was strummed hard, there is a tendency of envelope ripple. Placing the 1u cap from LED cathode to ground helped a bit, but putting a traditional RC network before the transistor doesn't really work, it upsets the balance of the envelope follower I guess...

p.s.2. I don't recommend rolling a vactrol, but placing them right beside each other with the LDR facing the LED it better, without rolling, so you can see the LED blinkity blinking, as looking at the LED makes tweaking the trimpot much easier.

p.s.3 There seems to still be some fizz in the decay of hard-strummed notes... anybody with an idea to remove this?
flip flop flip flop flip

Rob Strand

I haven't gone through all the details of your post yet - have to go do something.

QuoteWorked on it the whole day, and here's what I came up with:
Very keen!

QuoteThere seems to still be some fizz in the decay of hard-strummed notes... anybody with an idea to remove this?
It might be the transistor driving the LEDs.   When the signal is positive a large current flows into the base because the BE junction to act like clipping diode.  You might be able to put a resistor in series with the 1uF cap on the base, try 2k2.    A smaller cap might also help but the resistor is better.
Send:     . .- .-. - .... / - --- / --. --- .-. -
According to the water analogy of electricity, transistor leakage is caused by holes.

11-90-an

#14
Made some revisions... now it's in version 1.1



- Corrected some wrongly written values, 5.1M -> 5.6M
- Component value changes, 470k ->220k, 10k pot -> 5k pot
- Added 2.2k resistor in series with 1u cap to reduce fizz from envfollower (Thanks Rob, fixed the problem entirely... ;D)

I still need a name for it though, any suggestions?
I think I'll just call it Optical Limiter or "OptoLim"... :icon_cool:
flip flop flip flop flip

11-90-an

I made a perf layout, could you guys spot any mistakes/errors? Any perfing rules broken?  :icon_lol:
I'm basing it off the v1.1 schem ^^


flip flop flip flop flip

snk

Nice :)
Thank you for the layout, and the schematic!
Any plan to release a veroboard layout as well at some point?

11-90-an

Quote from: snk on October 20, 2020, 06:11:49 AM
Nice :)
Thank you for the layout, and the schematic!
Any plan to release a veroboard layout as well at some point?

Thanks! The layout isn't verified yet, when I get my trimpots I'll try it. never worked with vero before, but I'll give it  try...  :icon_mrgreen:
flip flop flip flop flip

deadastronaut

https://www.youtube.com/user/100roberthenry
https://deadastronaut.wixsite.com/effects

chasm reverb/tremshifter/faze filter/abductor II delay/timestream reverb/dreamtime delay/skinwalker hi gain dist/black triangle OD/ nano drums/space patrol fuzz//

11-90-an

Quote from: deadastronaut on October 20, 2020, 06:42:35 AM
nifty lil comp/lim.....why 2 ldrs?

I also wanted a steeper and faster volume deduction, since they're wired in parallel, the volume will go down x2 as fast than with only 1 LDR

Also, forgot to add. Don't use ready made vactrols as they're probably too fast... :icon_lol:
The best LED's to use are the slow ones. Less ripple.
flip flop flip flop flip