madbeanpedals::forum

General => Open Discussion => Topic started by: PhiloB on February 04, 2018, 01:51:36 PM

Title: General Op-Amp question
Post by: PhiloB on February 04, 2018, 01:51:36 PM
I built a basic op-amp overdrive last night and got very low output but everything sounded and functioned well otherwise.  I decided to use my audio probe to see where the output dropped and discovered there was no audio at PIN 6 (JRC4558) and very low output at PIN 7.  I decided it was probably the resistor in the negative feedback loop and found out I had some 1k resistors in my 22k bag.  Problem solved.
But now I'm confused as to why I don't get audio with my probe at the input (PIN 6) but I do at the output (PIN 7).  Can someone help me understand why I can't "hear" the signal at PIN6?
To keep it Madbean, here is a similar schematic:
Title: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 01:15:12 AM
Quote from: PhiloB on February 04, 2018, 01:51:36 PM
I built a basic op-amp overdrive last night and got very low output but everything sounded and functioned well otherwise.  I decided to use my audio probe to see where the output dropped and discovered there was no audio at PIN 6 (JRC4558) and very low output at PIN 7.  I decided it was probably the resistor in the negative feedback loop and found out I had some 1k resistors in my 22k bag.  Problem solved.
But now I'm confused as to why I don't get audio with my probe at the input (PIN 6) but I do at the output (PIN 7).  Can someone help me understand why I can't "hear" the signal at PIN6?
To keep it Madbean, here is a similar schematic:
http://www.ti.com/lit/ds/symlink/rc4558.pdf

Here's the spec sheet. If the link works. If on your schematic they are using the second opamp in a non-inverted config it might be using pin 5?


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: PhiloB on February 05, 2018, 01:20:58 AM
Quote from: blearyeyes on February 05, 2018, 01:15:12 AM
Quote from: PhiloB on February 04, 2018, 01:51:36 PM
I built a basic op-amp overdrive last night and got very low output but everything sounded and functioned well otherwise.  I decided to use my audio probe to see where the output dropped and discovered there was no audio at PIN 6 (JRC4558) and very low output at PIN 7.  I decided it was probably the resistor in the negative feedback loop and found out I had some 1k resistors in my 22k bag.  Problem solved.
But now I'm confused as to why I don't get audio with my probe at the input (PIN 6) but I do at the output (PIN 7).  Can someone help me understand why I can't "hear" the signal at PIN6?
To keep it Madbean, here is a similar schematic:
http://www.ti.com/lit/ds/symlink/rc4558.pdf

Here's the spec sheet. If the link works.


Sent from my iPhone using Tapatalk
Link worked.  I'm missing something though.  Why can't I probe at pin 6 and hear what is being fed into the negative input pin?


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 01:22:19 AM
You should be able to.


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 01:26:00 AM
Try a different chip? Re-flow solder on 6? Try pin 5? That's all I got.


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: midwayfair on February 05, 2018, 02:06:24 AM
Quote from: blearyeyes on February 05, 2018, 01:22:19 AM
You should be able to.


Sent from my iPhone using Tapatalk

You will not hear audio at the inverting input pin of an op amp.
Title: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 02:07:42 AM
Out of phase?  Cancellation? School me brother.
Title: Re: General Op-Amp question
Post by: midwayfair on February 05, 2018, 02:10:53 AM
Quote from: blearyeyes on February 05, 2018, 02:07:42 AM
Out of phase?  Cancellation? School me brother.

I honestly don't know the reason.
Title: Re: General Op-Amp question
Post by: PhiloB on February 05, 2018, 02:11:56 AM
Hmm.  Inquiring minds want to know!


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: PhiloB on February 05, 2018, 02:13:25 AM
Learnt me something new regardless.  Won't waste a bunch of time next trouble shoot trying hear the signal next time!


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: EBK on February 05, 2018, 02:18:22 AM
Quote from: midwayfair on February 05, 2018, 02:06:24 AM
You will not hear audio at the inverting input pin of an op amp.
I was waiting for someone else to say this before posting.  I felt that I was too sleep-deprived to trust myself confidently asserting this. Hopefully, I don't mess this part up:
The currents flowing into that node are such that the voltage is made to equal the voltage on the non-inverting input (it's the magic of op amps)...  You're listening to a voltage that isn't changing, by design.


(Ok, I did mess that up a little...  I'll try again....)
Title: Re: General Op-Amp question
Post by: EBK on February 05, 2018, 02:29:18 AM
Trying again:

In an ideal op amp no current flows into either op amp input, and the voltages at the inverting and non-inverting inputs are made exactly equal through the magic of the feedback loop. The op amp's output voltage is driven to whatever level will make this happen.  In short, you are listening to the same voltage that is present at the non-inverting input, which in this case, has no audio component.
Title: Re: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 06:51:01 AM
One might expect the audio to go in an input and come out the output amplified but opamps react to the difference between the + and - inputs. So in general the larger the resister in the feedback loop the higher the gain because the difference between the + and - inputs is larger. You also see caps and resisters forming filters which manipulate the feedback's frequency content so that it amplifies certain frequency ranges to create eq curves.  That's all I know and I'm sticking to it. But I could be wrong.
Title: Re: General Op-Amp question
Post by: reddesert on February 05, 2018, 09:02:45 AM
The ideal op-amp, as others have said, has a couple of properties:
- Very high input impedance
- Very high open loop gain across the differential inputs. This means that, when a feedback loop is provided, the output changes in such a way as to equalize the inputs.

In the inverting amplifier configuration, the + input is at ground (or Vref) and the - input is at "virtual ground," or virtual Vref, because the op-amp is trying to keep it there. See for example https://www.electronics-tutorials.ws/opamp/opamp_2.html (https://www.electronics-tutorials.ws/opamp/opamp_2.html)

An op-amp in the inverting amplifier configuration works by putting the inverting input in the middle of a voltage divider between the output, and the original signal.  In the attached Egghead schematic, the original signal is at pin 1 of the first opamp. The voltage divider is R5 and R6, 10K and 22K to the output of the second opamp. I'm going to ignore C4, the 2.2n capacitor, whose effect is to roll of the gain at high frequencies.

The + input, pin 5, is fixed to Vref = 4.5V. So the opamp is going to try to do whatever it can to equalize the inputs, making the - input also equal to 4.5 V constant (so no audible signal).

Let's work out what happens if there is an AC signal relative to Vref at pin 1 of the first opamp. Suppose that we are at the bottom of a 1 volt zero-to-peak sine wave, so that pin 1 is at (4.5V - 1V) = 3.5V.  The output will slew to keep the + and - inputs equal, such that pin 7 will be at some voltage X, pin 6 is at 4.5V, and pin 1 is at 3.5V.  R5 and R6 form a voltage divider with 10K between pin 1 and pin 6, and 32K between pin 1 and pin 7, and we can assume that the same current is flowing through R5 and R6 (because no current goes into the op-amp).  The current in R5 is (4.5 V - 3.5V) / 10K = 0.1 mA.  This means 0.1 mA current through R6, so the voltage drop across R6 is 0.1 mA * 22K = 2.2 V.  So pin 7 has to be 2.2 V higher than pin 6: pin 7 is at 6.7 V.

Similarly, if the signal is at the top of the 1V sine wave, then because pin 6 is lower than pin 1, the current in R6 means that pin 7, the output, is lower still: it will be (4.5-2.2) or 2.3V.

What happened here is that we put in a 1V signal and we are getting out a 2.2V signal with the opposite phase. As in the link above, the gain of the inverting op-amp is -2.2, which you can calculate from -(22K/10K), the ratio of the feedback and input resistors.

This is all a little hard to narrate without drawings and formulae (see the link above for more), but if you follow the logic about the current running through the input and feedback resistors, you can see why an op-amp can have a signal output when the inputs are both sitting at a constant Vref, no audible signal.
Title: Re: General Op-Amp question
Post by: blearyeyes on February 05, 2018, 10:47:58 AM
I know there is math, but for me, I glaze over about then. I need to get an overview of the principles to fit into my poor ADHD addled brain first. I think you have it in your post. I'll peruse it in the morning when time permits.

Thank you for taking the time to write it up!
Title: Re: General Op-Amp question
Post by: EBK on February 05, 2018, 11:16:40 AM
Quote from: blearyeyes on February 05, 2018, 10:47:58 AM
I need to get an overview of the principles to fit into my poor ADHD addled brain first.
That's why I used the word "magic" in my explanation.  ;) 
Title: Re: General Op-Amp question
Post by: PhiloB on February 05, 2018, 01:14:53 PM
Reddesert, thank you for the in depth explanation.  I have a better understanding but will check the link and reread later tonight.
But what I understand, if I remove the op amp from the socket and probe on the "right side" of r5 I'd hear audio.  This also explains why it sounded like PIN6 was "grounding out" somewhere.


Sent from my iPhone using Tapatalk
Title: Re: General Op-Amp question
Post by: reddesert on February 05, 2018, 07:08:48 PM
A picture, as always, is worth a thousand words written while tired, so here is an example drawing of what goes on in this circuit.  I've drawn it as if the first op-amp is outputting a +/- 1V ac signal wave, and labeled the voltages and the current flow through the resistors. The two drawings are similar but one is for the trough of the wave , and the other is for the crest of the wave, so you can see how the output signal varies and the voltages change, but the voltage at the inverting op-amp does not change. The direction of current flow changes, as the voltage drops across R5 and R6 change. (The "v" and "^" in the current label are just my attempt to show the direction of current flow, because I don't know how to draw an arrow in Eagle.)