4

Im trying to make a super simple guitar amp.

heres the circuit using an LM386 operational amplifier:

enter image description here

What exactly would affect gain but not volume, and volume but not gain? In the example circuit on the LM386 datasheet theres a 10k potentiometer at the input, but online some people called this a volume control and some a gain control. Im confused. For a gain control I was thinking of adding a variable resistor or potentiometer between pins 1 and 8, instead of R3 in my circuit, because thats how gain seems its supposed to be regulated on the LM386. But will this also increase the volume? Does a bigger voltage swing of the signal mean a higher volume of the sound? I want to be able to get the distortion and clipping of high gain but at a low volume.

TwoheadedFetus
  • 223
  • 3
  • 8
  • 3
    LM386 is more of a ukulele amp, if even that. –  Dec 19 '17 at 18:14
  • @Brian Drummond yeah I know its gonna be a tiny battery powered amp just for fun – TwoheadedFetus Dec 19 '17 at 18:15
  • Gain and volume are basically the same. (how much voltage appears across your speaker.) – George Herold Dec 19 '17 at 18:42
  • Why do you think that "gain" and "volume" are two different things? – Dave Tweed Dec 19 '17 at 18:43
  • Because volume is the product of input level , gain and speaker efficiency. –  Dec 19 '17 at 18:51
  • In the simplest designs, a control labeled "gain" is a pot *before* the first gain (in the electrical sense) stage and a control labeled "volume" or "master" is a pot *after* the last preamp gain stage, but before any power amp circuitry, if there is a power amp in the device. For all-tube class A-B amps, master/volume is before the phase inverter. For distortion pedals, master/volume is right before any output resistors or capacitors. – Todd Wilcox Dec 19 '17 at 19:34
  • 3
    @DaveTweed (and every other EE who is not a guitarist reading this): For electric guitar devices, "gain" on a control means "amount of distortion". It is not meant in the electrical sense. "Volume" usually means "final sound intensity or output level after all signal processing", the latter meaning any distortion, EQ, or whatever. Sometimes the "volume" control is called "master" as in "master volume". Other times the "gain" control is called "volume" and the "volume" control is called "master". – Todd Wilcox Dec 19 '17 at 19:37
  • Looking at some LM386-based guitar amp schematics, it looks like no one does what you are trying to do. Example: https://robrobinette.com/How_the_Ruby_Amp_Works.htm What I would do is find a simple tube screamer or big muff or fuzz face schematic online and add that to your design before the LM386 amp section. Basically build a distortion pedal into the design and use the LM386 as a mostly clean amp. You could either tweak the distortion stage so that you can clean it up by turning the gain control down or have a switch to bypass it for clean playing. I would do the former. – Todd Wilcox Dec 19 '17 at 19:52
  • @ToddWilcox: When used that way, the terms refer to multistage amplifiers -- the "gain" is the gain of the stage upstream of the distortion generator, and "volume" is the gain of the stage after that. We were presented with a single-stage design to which this distinction does not apply. – Dave Tweed Dec 19 '17 at 20:01
  • @DaveTweed I think the asker didn't quite understand that the LM386 design they are working with is single stage when they asked their question, which is why in drtechno's answer and my last comment we both recommended adding another stage to make the whole system multistage. But that also explains why the asker thought "volume" and "gain" were two different things. Any electric guitar player will think that volume and gain are two different things, because in the world of musical equipment, they always are. – Todd Wilcox Dec 19 '17 at 20:04
  • @ToddWilcox: You have a very narrow definition of "music". I've been a musician longer than I've been an EE, but I work in genres that don't depend on artificial electronic distortion. Indeed, I'm most often struggling to eliminate distortion -- live sound, recording, music synthesis, etc. In these areas, "gain" and "volume" always mean the same thing. If I want distortion, I say "distortion". – Dave Tweed Dec 19 '17 at 20:11
  • @DaveTweed Good point. On a mixer or mic pre you would have gain/trim/etc. So... Why did you ask why the asker thought "gain" and "volume" are two different things? Because input trim and fader level are two different things so whether you call them "gain" or "trim" or whatever, you should have understood immediately what the asker was getting at. Wait, "gain" and "volume" are not the same on any musical device I've ever used that has more than one of those controls. Not sure what you're using. – Todd Wilcox Dec 19 '17 at 20:14

3 Answers3

1

If your are talking about the "loudness" of the audio signal coming out of your speakers then gain and volume are the same.
Simplified: gain is a technical term how much a signal is amplified. Thus a gain of 10x means the output signal is ten times larger then the input signal. A gain of 0.1 means output signal is ten times smaller then the input signal. The more 'gain' the 'louder' the music.
If your are dealing with music it is normal to have the same 'gain' but in order to control the volume, you somewhere in the system make the signal amplitude variable between 0 and max. (As your hearing is logarithmic you use a logarithmic variable resistor). With the volume control you make a variable 'gain' between 0 and 1.
Lets say your amplifier has a total 'gain' of 10.000. What you do with the variable resistor is you make the input signal smaller. If we make it 1000 times smaller. That is a gain of 1/1000. the 'gain' of the whole system is 1/1000 * 10.000 = 10. If you turn your volume completely down the gain is 0. That gives 0 * 10.000 is a gain of 0. (No amplification which should be silence but you will still hear noise. Let's ignore that). If you turn the volume control to max the 'gain' of the system is 1 * 10.000 is 10.000.
The answer to your question is that you can NOT change the volume and not the gain or vice versa.

I want to be able to get the distortion and clipping of high gain but at a low volume.

Straightforward hard 'clipping' is simple using .e.g. a set of diodes but I assume you want to keep the 'volume' the same and variable the amount of clipping. In that case I suggest you look for a good circuit using the www. because it is a bit beyond the scope of 'stackexchange' to make a design for you.

Oldfart
  • 14,212
  • 2
  • 15
  • 41
1

The LM386 is one of the major choices in building small 9V powered practice amps. I do believe it was the pignose was the first one out there with it. It used the encapsulated version of this chip that Velleman Kits sells to their diy market. Overall, it makes a great clean practice amp.

Now with your questions about gain staging, you would would use the negative feedback pins (1&8 ) along with the resistors that is added on the input pins to achieve the total gain. its not necessary to vary the negative feedback for your application because of the lead length that will occur doing that might give you poor results. I would just set this chip at a reasonable amplification and leave it at that.

As far as making a practice amp with distortion, I would put a two more op amp stages before the lm386, so I could vary amplitude as well have a pre-buffer and a makeup amp stage, so I could sandwich some diode distortion there between those two op amps. Alternatively, you could use a distortion pedal that would have the same circuit.

drtechno
  • 1,033
  • 6
  • 8
0

Note that minimum gain for LM386 is \$ v_{out} / v_{in} = 20 \$. You can raise the gain by making R3 a variable resistor. It is paralleled with an internal resistance of 1350 ohms. If R3 is infinite, gain is 20. In this condition, you have maximum feedback, lowest distortion.

If your guitar input signal is large enough to badly overload the output by clipping tops & bottoms of peaks, you'd want to add the 10K variable resistor at the pin 2,3 input.
If your guitar input signal is very small, the 10K input variable resistor isn't used, and you'd increase gain with the R3 resistor.

Your pin 7 bypass capacitor could be much larger than 0.1uf. (greater than 50uf perhaps).

glen_geek
  • 23,591
  • 1
  • 22
  • 50