Right.. Opamps without mathematics... Here we go. The following explanation ises the ideal model... For clarity sake. Later on i will tack on the practicalities and problems... But , for now, ideal opamp.
An opamp in its pure form ( without circuitry around it ) is an element that looks at the difference between its two inputs. The output gives an amplified value of this difference.
By default this amplification is very large.
If you make the + input more positive than the - inpit the output will go to a very large positive value. It will actually saturate against the positive power supply of the opamp.
If you make the - input more positive than the + input the output will go towards avery large negative value. In practive it will get stuck against the negative supply of the opamp.
If there is NO difference between the inputs then the opamp is in rest and its output will be at half the power supply. If the opamp is powered with + and - 5 volt the output will be 0.
If the opamp is powered with + 5 volts and ground the output will be 2.5 volts.
Think of it as a balance. By putting weight in one of the scales it tips to one side or the other. The circuitry around an opamp is in balance if there is NO difference between the inputs.
This is why opamps are also called differential amplifiers.
Now. This is the basis.
When we start placing components around an opamp things will start to get interesting.
Let's start with the opamp in unity gain.
I tie the output of the opamp to its - input.
________
| |
--|-\ |
| >--+---- out
(1v)-----|+/
I place 1 volt on the + input. Initially the opamps sees a difference. ( its output is wherever and this is also present on the - input. ). So the 'balance' reacts. The opamp will steer its output the other way. This goes on until the output has reached exactly 1 volt. At this point the balance is stable : both inputs see exactly 1 volt and the opamp is in steady state. It is happy because there is no more difference between its inputs.
Great. We made a circuit that can amplify something 1 time. Not very usefull .. ( sometimes it is usefull. )
Lets see if we can get this thing to amplify by two...
You know the principle of a voltage divider right ? Put two resistors in series and the center tap gives you a weighted ratio ... If i take two resistors of , let's say 1 kiloohm , and place them in series. I apply 2 volts across them .. The midpoint will be at 1 volt. If i place 3 volts i get 1.5 volts in the center.
If i make a divider with 1k and 9k , with the 1k at the top i will get 9/10 across the bottom resistor.
1k 1k
0 -+---/\/\/---+----/\/\/---(+2v)
| |
<---(1v)--->
- +
1k 1k
0 -+---/\/\/---+----/\/\/---(+3v)
| |
<--(1.5v)-->
- +
9k 1k
0 -+---/\/\/---+----/\/\/---(+1v)
| |
<--(0.9v)-->
- +
So let's see what we can do...
I connect a 1k resistor from output to - input. And another 1k from - input to ground.
R2
1k
R1 --/\/\/--
1k | |
(0)-/\/\/--+--|-\ |
| >---+---- out
(1v)-----------|+/
I still apply 1 volt on the + input. We know the opamp is only happy if the balance is level ( there is no difference between its inputs. So, in order to get 1 volt on this - input the output needs to be at 2 volts.. We have a divider there made from two resistors. Wow! Our opamp is amplifying ! It makes 2 volts on its output , we divide that off with two resistors and feed this back.
There you have it . Amplification. If you change the ratio of the resistors you can set any amplification ( technical term is 'gain') you want. If you make the resistor between out and '-' input 9 kiloohms the output needs to go to 10 volts before the opamp will see 1 volt on its - input, and the system is in balance.
R2
9k
R1 --/\/\/--
1k | |
(0)-/\/\/--+--|-\ |
| >---+----- out
(1v)-----------|+/ /|\
|
(10v)
|
\|/
(0)
So ,we have made a non- inverting amplifier. The name 'non-inverting' comes from the fact that the sign of the output remains equal to the sign of the input. If i inject +1 volt i will get a positive output. If i inject -1 volt i will get a negative output.
The gain calculation is simple because we deal with a voltage divider.. Simply divide the resistor value ' over' the opamp ( the one between out and -) by the resistor value that sits between - and ground.
But this is a special case where we refer to 'ground'... The opamp is oblivious to ground. It does not know what ground is.
Lets look at a more universal approach. Same setup. We place 1k over the opamp , but this time we commect 1k to a 2 volts source.
I still apply 1 volt to the + input.
R2
1k Ir2
R1 --/\/\/-->-
1k Ir1 | |
2V)-/\/\/-->-----+--|-\ |
| >-----+----- out
(1v)-----------------|+/
What will the opamp do ? Well simple : the rule says 'the opamp is only in balance if there is no difference between its inputs... So it would like to see also 1 volt on the - input. I have applied 2 volts on one side. The opamp will steer its output to ... Zero
At this point the center tap of my voltage divider is at 1 volt.
The easiest way to perform the calculations, without having to memorise equations and special cases is to do the work as currents.
The input of an ideal opamp is high impedant. And no current can flow in or out of it. So. I have a resistor of 1k (R1) with one end tied to 2 volts and the other end tied to a pin that would like to be at 1 volt ( or whatever level is applied to the + input ).
So the voltage across R1 is : 2 volts - 1 volts = 1 volt. 1 volt Across a 1k resistor is 1 milliampere (Ir1=1mA). Now, we know that current needs to flow in a loop. And that the sum of all currents in a node is zero ( for every current entering , one needs to leave of opposite sign but same magnitude ). 1 ampere in is 1 ampere out.. 1 electron in is 1 electorn out ... No escaping the laws of physics...
So we have 1 milliampere flowing towards the - input. Note the usage of the word 'towards'! It is not flowing IN the opamp! So where does it go ? Wel it can only escape through the resistor across the opamp (R2 : the one between - and putput ).
So Ir2 = -Ir1
1milliampere through R2 gives me 1 volt across R2. Since the current is flowing the other way the sign changes. I had 1 volt on the - input and i get -1volt across the resistor R2. So my output voltage is zero.
This is the fundamental equation governing opamps. All the others are special cases or simplifications. Forget those. Remember only this one.
Lets say i have 2 volt on the + input , 3 volt with 3 k to the -input and 9k across the opamp. What is the output ?
R2
9k Ir2
R1 --/\/\/-->-
3k Ir1 | |
(3V)-/\/\/-->-----+--|-\ |
| >-----+----- out
(2v)-----------------|+/
Well ,the opamp is only happy if it sees 2 volt on the - input ( because the + input sits at 2 volts, and then it will be in balance.)
So , 3 volt on one side of R1 , 2 volt on the other side of R1 ... That means 1 volt across it. 1 volt over 3k is 1/3 of a milliampere. That same 1/3 needs to run through the 9k , but with opposite sign.
This gives me -3 volts across R2... But i already have 2 volts on the - input. So the output sits at 2 + (-3) or -1 volt.
So it is very very easy to perform this calculation. Write down the voltages , calculate a current , send the same current through the other resisotr , this results in another voltage. And you know what the output is.
The same is true for the inverting opamp.
Inverting opamp
------------------
Lets say i have a 2 volt signal with a 3k resistor to the + input. My - input sits at -1 volt. There is a 4k resistor between + input and output...
I still have a voltage divider !
(-1V)----------------|-\
| >-----+----- out
(2v)--/\/\/----+-----|+/ |
3k | |
-----/\/\/-----
4K
The opamp wants to see -1 volt at the + input because i put the + input at -1 volt.
So , across the 3k resistor i have 3 volts ( 2 volts on the left , -1 volts on the right .. .). 3 volts in 3 kiloohm is 1 milliampere.
1 milliampere in 4 k is 4 volts. Look at the current flow and the signs . I have -1 volts on the left of the 4 k and 4 volts across out. so the other side sits at -1 + -4 = -5 volts. and that is my output !
So the equation and method works for any opamp circuit ( inverting and non inverting ) even of there is an offset applied to the other pin.
no need to remember equations for when one input is ground , another for when it has an offset , another for non inverting with and without offset or even the equations for summing amplifiers !
summing amplifier :
----------------------
1k Ir3
(-2V)-/\/\/-->---- R4
2K Ir2 | 1k Ir4
(4V)-/\/\/-->-----+--/\/\/-->-
1k Ir1 | |
(2V)-/\/\/-->-----+--|-\ |
| >-----+----- out
(0v)-----------------|+/
the opamp wants to see 0 volts on it - input , because i have put 0 volts on its + input.
let see :
Ir3 : -2 volts across 1k ... = -2 mA
Ir2 : 4 volts across 2k = + 2 mA
Ir1 : 2 volts across 1K = + 2mA
add the current : -2 + +2 + +2 = +2mA
that 2mA needs to go out through R4 ... in 1k... is 2 volts. done. end of calculation !
you can slap on any crazy voltage left of any of the resistors and apply an offset on the + input. it all does not matter. the working principlpe is simple : calculate the current in any of the resistors. sum them up and send the result through the resistor across the opamp. and you are done. It works for any given 'puzzle'.
Opamps in ac behave exactly the same. Only this time, if you have capacitors in the loop : capacitors are frequency dependent. Instead of resistive ohms you have impedances 1/( 2 pi f c ). This gives ac currents. But the equations remains the same. Ditto for filters and anything else you can do with opamps. But, now you don;t have fixed points anymore : you need to sweep frequency and do the calculation for a number of frequencies and plot this out to create the 'bode plot'... not something to do by hand. We got 'compjoeters' to do that !
Now, in practice, opamps do have delay , a maximum working frequency , and you can get current in and out of the inpts ( micro or picoampere range ). They drift a bit and the balance is not always neatly centered ( this is called offset )
But all these factors just throw in a bit of extra current in the nodes and you can take that into account. In ac you also get phase shift which will affect your signal. But that stuff you do not calculate by hand. We got computers to do that...