
Home  Forums  Rules  Articles  The diyAudio Store  Gallery  Blogs  Register  Donations  FAQ  Calendar  Search  Today's Posts  Mark Forums Read  Search 
Headphone Systems Everything to do with Headphones 

Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving 

Thread Tools  Search this Thread 
30th October 2013, 04:17 AM  #1 
diyAudio Member
Join Date: Sep 2013

connect two inverting op amps together
i did some reading on wikipedia and apparently an inverting feedback amplifier layout has lower distortion compared to a non inverting feedback loop, so assume i make something like the design below, will it work? (picture only shows 1 channel)
the first op amp will invert the signal and handle the gain where gain = 1 + R2/R1 the second op amp will have no gain and just invert the signal again assume that the thing above actually works, do i really need R3? following the above question, is the reduced distortion actually worth doing? will using 2 inverting feedback loops actually have more distortion compared to just 1 non inverting feedback loop? im kind of lost here as i am quite new to diy audio, please help, any help will be appreciated 
30th October 2013, 07:09 AM  #2 
diyAudio Member
Join Date: Oct 2010
Location: Up in the alps  motorcycle heaven

That config will not work (go back to your inverting op amp gain equation to see why)
Better if the gain is spread across 2 inverting config op amps more or less equally. Anyway, does it really matter if the output is inverted? Last edited by Johno; 30th October 2013 at 07:11 AM. 
30th October 2013, 07:23 AM  #3 
diyAudio Moderator

That equation is incorrect. The gain is R2/R1 or if you prefer R2/R1 *1
__________________
 Installing and using LTspice. From beginner to advanced. 
30th October 2013, 05:57 PM  #4  
diyAudio Member
Join Date: Sep 2013

thanks, i just realised what's wrong with my schematics, so basically the second op amp inverts the inverted signal but Vout would be 0 since 0/R3 = 0
so what if i do something like the schematic below? where: R2 = R4 R1 = R3 = R2/2 gain would be 4 if i didnt mess things up right? Quote:
sidenote, what happens if i use resistors with larger resistances but remain proportional for all the numbers, like R2 = 1000, R1 = 500 compared to R2 = 10, R1 = 5 

30th October 2013, 06:11 PM  #5 
diyAudio Moderator

You calculate the gain for each stage. Lets say R1 is 68k, R2 is 390k, R3 is 1.5k and R4 is 4.7k.
With R1 at 68k and R2 at 390k then the gain of that stage is 5.7 With R3 at 1.5k and R4 at 4.7k then the gain of the second stage is 3.1 Multiply the two together and you get the overall gain which is +17.67 Yes
__________________
 Installing and using LTspice. From beginner to advanced. 
30th October 2013, 06:13 PM  #6 
diyAudio Moderator

Remember that R1 and R3 define the input impedance for the relevant stage. You shouldn't go to low that the opamp can not drive R3 fully. Usually around 2K would be as low as you would normally go for many common opamps.
__________________
 Installing and using LTspice. From beginner to advanced. 
4th November 2013, 10:46 PM  #7 
diyAudio Member
Join Date: Sep 2013

sorry for being away for quite some time (was busy dealing with midterm)
i see that using 10k ohms is popular (as various cmoy designs use 10k ohms) for R1 and R3 i remember reading somewhere that an ideal op amp should have infinite input impedance, so since higher is better, when is it too high (say i go crazy and get something like 2200k ohms resistors) i see from the datasheet for a OPA2227 that it has an input voltage range of + or  2V, is this the limiting factor preventing ultra high input impedance in op amps? 
4th November 2013, 11:29 PM  #8 
diyAudio Member
Join Date: Oct 2010
Location: Up in the alps  motorcycle heaven

Do not confuse op amp input impedance with the input resistors or with the stage input impedance. They are 3 different quantities.
 op amp input impedance depends on the device you choose  input resistor is a value you must choose  stage input impedance is the parallel combination of input and feedback resistances but of course is dominated by the input resistor which is usually the smaller. Op Amps are not perfect, they have a small but significant input current (that is they do not have infinite input impedance). So this current flowing through your input resistor creates an error voltage that is also amplified along with the signal and appears at the output. Therefore it is wise to keep the input resistance a low as practical, that is somewhere between about 2k and 10k. If you required a stage input impedance to be a certain value, to suit the signal source for example, you will need to calculate it. Just as importantly and for the same reasons, the noninverting input to the op amp should also have an input resistor, even though it goes to ground. The value of this resistor should equal to the parallel combination of the inverting input and the feedback resistors. This value allows the input current generated voltages at the inputs to be equal. However, at the output the 2 offsets are self cancelling (the inverted error cancels the noninverted error). Hope this helps 
5th November 2013, 06:22 AM  #9  
diyAudio Moderator

Quote:
Not sure what you are looking at to interpret the "input voltage range" of the OPA2227. I think the /+2 volts you mean is how near to each rail you can take the input voltage, and that's measured "open loop" with no feedback.
__________________
 Installing and using LTspice. From beginner to advanced. 

6th November 2013, 12:29 AM  #10 
diyAudio Member
Join Date: Sep 2013

i see, but since resistors come in certain values only (and i only have certain values only), when i place a resistor connected to the positive input and ground and assuming i do not have the exact value for the parallel combination of R1 and R2, then should i overshoot and use a bigger value? or should i actually use the closest value possible to get the best noise canceling effect?
the example below should illustrate what i meant nicely assume: R1 = R3 = 5.7k ohm R2 = R4 = 10k ohm gain = approximately 3.1 if i use the layout on the top of the image, then ideally the resistors to positive input should be R5 = R6 = 57/15.7 = 3.63k ohms but i only have 3k and 3.9k resistors, i also have 680 ohms resistors so should i use the 3.9k resistor or should i put two resistors in series for R5 and R6 so that R5 = R6 = 3.68k ohm which is really close to 3.63k ohms? or alternatively, could i follow the layout on the bottom of the image where R7 = R6/2 which ideally should be 1.315k then should i use a single 1.5k resistor or combine a 1k resistor to a 330 ohm resistor? sidenote: is the noise generated by the resistors really that significant? and would trimpots work better since they are trimmable? thanks in advance EDIT: just realised i forgot about the resistors having an error rating of + or  1%, so i guess i could actually manually pair all the resistors with a multimeter and get to the ideal value as close as possible Last edited by thelegendaryblah; 6th November 2013 at 12:38 AM. 
Thread Tools  Search this Thread 


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
non inverting op amp input impedance help  sirus the virus  Solid State  5  8th December 2010 06:11 PM 
Inverting op amp out of phase?  RobertE  Analog Line Level  10  2nd December 2010 07:12 PM 
Burr Brown op amps,in amps,power op amps for sale  magneticnorth  Vendor's Bazaar  1  23rd September 2010 10:50 PM 
inverting / noninverting opamp circuits  Learnincurve  Solid State  11  21st January 2005 05:40 PM 
Inverting/noninverting Opamp Inputs !!!help!!!  IIR  Solid State  17  11th May 2002 02:02 AM 
New To Site?  Need Help? 