PDA

View Full Version : op amp gain


nadersb
Sep4-11, 02:08 PM
hello,
I have a strange problem!
I wanted to amplify my signal and i used 2op amps, each of them has a feedback resistor between (-) pin and output( pin 2 and 6 in 741) the ratio of resistors(r2/r1) is 150, but my signal only amplify 5times! I change the R2 resistor but nothing changed!! i put different resistors but all of them had the same results!! I changed my op amp but still the same results! the second op amp worked perfectly but the first stage has this problem!
does anybody have an idea whats wrong with the op amp?! you can see the circuit in the link below:( the value of capacitors are 0.47uf and the first feedback resistor is not 1M it is 1.5M)
http://www.2shared.com/photo/a_JmZITS/Untitled.html

skeptic2
Sep4-11, 03:04 PM
With no signal input, what is the DC voltage at each of the op amp outputs?

nadersb
Sep4-11, 03:17 PM
after a few second they become zero.

yungman
Sep4-11, 03:55 PM
hello,
I have a strange problem!
I wanted to amplify my signal and i used 2op amps, each of them has a feedback resistor between (-) pin and output( pin 2 and 6 in 741) the ratio of resistors(r2/r1) is 150, but my signal only amplify 5times! I change the R2 resistor but nothing changed!! i put different resistors but all of them had the same results!! I changed my op amp but still the same results! the second op amp worked perfectly but the first stage has this problem!
does anybody have an idea whats wrong with the op amp?! you can see the circuit in the link below:( the value of capacitors are 0.47uf and the first feedback resistor is not 1M it is 1.5M)
http://www.2shared.com/photo/a_JmZITS/Untitled.html

I don't see anything wrong of the circuit. Basically it is powered by 9V and the +ve input biased at 4.5V midway. All stages are AC coupled so no DC offset problem to talk about.

1) First posibility is: My question is what is you frequency input to see only gain of 5. Remember 740 has gain bandwidth of 1MHz, if you have first stage gain of 150, the -3dB bandwidth is only 1MHz/150 which is less than 10KHz. The circuit talk about Ultra Sound signals, what is the frequency?

The second stage has closed loop gain of 10, the frequency response using a 741 is about 100KHz so it is very different.

Give me the input frequency before we talk more.

2) What is the output impedance of the detector/receiver at the left side of the schematic that drive the first op-amp? It is a current devices like a detector diode or photo detector? If so, your analysis is wrong. That is a current devices and the first stage is actually a TRANSIMPEDANCE amp with the transimpedance gain of 1M ohm or 1uA per volt. There is inconsistency with this theory as you change the R2 and nothing happened. But don't dismiss this just yet because it might still be a combination of bandwidth limited and detector characteristic. Please give me the kind of detector you use to be sure.

skeptic2
Sep4-11, 04:43 PM
If your output becomes zero after a few seconds then perhaps your 4.5 V bias is the problem. Can you check pin 3 on both op amps and see if they have 4.5 V on them? I suspect your circuit isn't wired exactly like the diagram.

Once you are able to get a constant 4.5 V at the output of each op amp, why don't you try a gain of 15 instead of 150 and see what happens?

nadersb
Sep5-11, 11:08 AM
I use ultrasound transducer, and input signal is 40khz with 30 mv amplitude(pick to pick)
there is a 33ohm resistor parallel with it as you see in the image that i have sent.
what if I change the op amp, and try different model that is compatible with this frequency?! do you have any suggestion which model would be suitable?!

nadersb
Sep5-11, 11:12 AM
I double checked my connections, and I dont think that (+) pin's bias has any problem, but I will check it again and I will inform you ;)

skeptic2
Sep5-11, 11:29 AM
I use ultrasound transducer, and input signal is 40khz with 30 mv amplitude(pick to pick)
there is a 33ohm resistor parallel with it as you see in the image that i have sent.
what if I change the op amp, and try different model that is compatible with this frequency?! do you have any suggestion which model would be suitable?!

How did you decide on 33 ohms? What happens to your gain if you replace it with 100k ohms? What values are your capacitors? If your signal is 40 kHz, try using a 270k feedback resistor for each op amp.

nadersb
Sep5-11, 11:36 AM
because we use signal generator instead of transducer most of the time and its resistor is 50 ohm so we chose a resistor that is near to 50 ohm .
each capacitor is 0.47uF.
I didnt change the value of input resistor, I will change it and inform you what happens;)

skeptic2
Sep5-11, 12:20 PM
I understand now about the 33 ohm resistor. Still I would prefer a value of 100k or higher at least when using a transducer. The lower the value, the more it will lower the Q and sensitivity of the transducer. A gain higher than you need can cause the op amp to oscillate if the right phase shift occurs. A good rule of thumb is that 60 dB of gain is the most you can achieve on the same board at the same frequency. It is possible to get positive feedback through the power supply, ground or other connections with gains that high.

It still is important that you have 4.5 V at the output of each op amp with no signal in.

yungman
Sep5-11, 12:30 PM
I use ultrasound transducer, and input signal is 40khz with 30 mv amplitude(pick to pick)
there is a 33ohm resistor parallel with it as you see in the image that i have sent.
what if I change the op amp, and try different model that is compatible with this frequency?! do you have any suggestion which model would be suitable?!

I don't see 33ohm, can you double check, I cannot see the entire picture of the signal detector.

40KHz is too high for 741 with gain of 100. Maybe try something like OP-37 or others that has higher gain bandwidth product. But I think you have bigger problem than that.

Did you say you read 0V at the output of the both op-amps(pin 6)? If so, that is wrong, you should get 4.5V on both. I think Skeptic2 is doing a good job helping you, I don't think you need two people telling you what to do. Good luck.

nadersb
Sep5-11, 01:02 PM
I will check pin 3, but what if pin 3 is 4.5?! what else could be the problem for zero output?!
and last thing sir, what do you mean by "bigger problem"?! what is it?!
thank you

jim hardy
Sep5-11, 03:28 PM
i know this sounds dumb but ---

National Semconductor's engineers used to field this problem so often they put it into an application note.........

"how to" schematics usually dont show power connections to the IC
and often newbies dont connect power because it's not shown

and i notice that circuit linked doesn't show power to pins 4&7
and it's easy to mis-wire a round can opamp when you're looking at it from the bottom and using a top view wiring diagram
http://en.wikipedia.org/wiki/File:LM741_Pinout_Round.svg

dont be offended by this dumb question its just i have no idea as to your level of expertise.
i'm not offended if you ignore this post. You can even resent me it's okay.


lastly what is your source for 9V?
If it's a small battery place a few microfarads across it - reason is opamps demand a low-impedance power supply which a BL006P battery is not.

as yungman observed skeptic is doing a good job with technical advice.

but I dont mind asking the real dumb questions.
hope it doesn't offend you guys
and i wont meddle further

old jim

nadersb
Sep5-11, 03:42 PM
:D
dont worry I connected 7 and 4 to Vcc and ground;) I am working with a Dc voltage source.
I will be thankful for your ideas ;)

yungman
Sep5-11, 08:01 PM
I will check pin 3, but what if pin 3 is 4.5?! what else could be the problem for zero output?!
and last thing sir, what do you mean by "bigger problem"?! what is it?!
thank you

What I meant is you have some basic wiring problem. You should get 4.5V at the output on both of the op-amp. If it float to 0V, something is very wrong. I suggest you check your wiring and check for cold solder joint. Get the 4.5V on both output before you worry about the gain. Measure pin 3 is 4.5V, pin 2 should follow pin 6 because output is connect to pin 2 through R2.

Measure and verify pin 7 is 9V and pin 4 is 0V. After you get the correct DC reading, if Skeptic is not around, I'll keep helping you.

nadersb
Sep6-11, 08:10 AM
I checked it today and pin 6 is around 4.5 in both op amps;) so this problem is solved;) I also changed the input resistor( 33ohm) and it worked, I mean when I used 33ohm ac voltage of pin 2 was about 10 mV pick to pick but now we have much more better signal and its about 25pick to pick, so thank you for your suggestion, but I didnt change the op amps yet, when I do it I will inform you;)
thank you

skeptic2
Sep6-11, 09:15 AM
With the new values how much signal are you getting out of the op amps?

nadersb
Sep6-11, 02:35 PM
about 4 V pick to pick, but the problem is we amplify noise too, and i think we should add a filter to our circuit!

yungman
Sep6-11, 07:20 PM
I checked it today and pin 6 is around 4.5 in both op amps;) so this problem is solved;) I also changed the input resistor( 33ohm) and it worked, I mean when I used 33ohm ac voltage of pin 2 was about 10 mV pick to pick but now we have much more better signal and its about 25pick to pick, so thank you for your suggestion, but I didnt change the op amps yet, when I do it I will inform you;)
thank you

I really don't understand what is pick to pick!!! When the op-amp is working, you really should not see any signal on pin 2. It is a summing junction. What I want you to tell me is what is the input to R1, what is the output at pin 6 of the first op-amp.

If your input frequency is 40KHz, if you are using 741 of gain bandwidth product of 1MHz, the -3dB point is about 10KHz. Above 10KHz, the gain will roll off at 6dB per octave. 40KHz is two octave above 10KHz, so your gain will go down 12dB which result of a gain of 25 instead of 100. This mean if you have 1mV at the input of R1, you will have 25mV at pin 6 of the first op-amp.

I do not see the 33ohm in your diagram, so I don't know that part. One thing is the way your circuit is, you are assuming that the output impedance of the detector is very low impedance. If the output impedance is high, your gain is

A_{cl}=\frac{R_2}{R_1+R_{det}} \;\hbox { instead of }\; \frac {R_2}{R_1}

So the whole thing is not as simple as you think. First you have to show me what kind of detector you use as I asked on my first post. And show me the complete circuit where is the 33ohm.

Averagesupernova
Sep6-11, 07:26 PM
What I fail to understand is why we haven't switched to a better op-amp than the 741. Get a good op-amp and then switch back and forth. It will be a good lesson on frequency response.

yungman
Sep6-11, 07:46 PM
I am not convinced that he is really running a gain of 100. I need to see what kind of detector first as a lot of these kind of detectors are current output and you cannot look at it as a voltage source. Yes, I think OP37 will work a mile better than 741. I am sure there are newer and better ones as I used OP37 like 20 years ago. It is a much lower noise amp also design for higher close loop gain. I want to make sure his circuit is really doing what it supposed to do before sending him out to buy another op-amp.

jim hardy
Sep6-11, 11:04 PM
would it be meddling to offer a simple, non-intrusive test?
I said i wouldn't meddle
but old troubleshooters habits die hard.

I always check the dumb things first - it's less embarassing to find them one's self.
And if it's not one of the dumb things, well, you don't have to admit to anybody that you were dumb enough to have looked.
so here's something you can check quietly

>>Reasoning:<<
As Yungman and Skeptic observed, 741 is not a real fast opamp.

it is asking a lot of the 741 to amplify 40 khz by gain 150
though by datasheet it looks like it should do it

1 volt sinewave at 40 khz has dv/dt of 0.25 v/usec
and you are trying to make 15mvX 150 = 2.25 v
which is dv/dt of 0. 565 v/usec

National's datasheet
http://www.national.com/ds/LM/LM741.pdf
near bottom of page 3
states 741 'slew rate' is 0.5 v/usec
so you're using it all
but that datasheet is written for +/- 15 volt supply not your +/- 4.5

Your 741 might be short of "oomph" at reduced supply
see this appnote
http://www.national.com/an/LB/LB-19.pdf
bottom of page 1:
"The slew rate limit is the maximum rate of change of the amplifier’s output voltage and is due to the fact that
the compensation capacitor inside the amplifier only has finite currents available for charging and discharging.....
..For example the full-power bandwidth of the LM741 with a 0.5V/μs Sr is approximately 6 kHz ...."

At your reduced power supply voltage, you may be just asking too much of it --

>>Suggestion:<<
You could test that thought by simply raising your power supply to 30 volts while watching output with an o'scope

if it doesn't help - you dont have to admit you looked.
But either way you'll learn whether "Slew Rate" is affected by supply voltage.

old jim

yungman
Sep6-11, 11:22 PM
Not meddling, the more the merrier!!!:approve:

skeptic2
Sep7-11, 08:23 AM
Nadersb, so you're getting 4 V peak to peak out with the signal generator set at 30 mV and with 25 mV at pin 2 of the op amp. Is that 4 V using both op amps or just one?

You should check the power supply for noise. The noise may disappear once you start using the ultrasonic transducer. It in itself acts as a pretty good filter. If that's not enough, there are some pretty good active filter circuits that will also give you gain.

nadersb
Sep7-11, 10:38 AM
Mr.yungman, sorry about the pick, I meant peak;) it was mistake!
I am working with an ultrasonic transducer( I attach the picture of it)
about 33ohm: do you see the resistor that is parallel with the transducer?! that is 33ohm, but after mr.skeptic comment I changed it to 100k.
Am I answer all of your questions sir?!
thank you for your attention

nadersb
Sep7-11, 10:42 AM
mr.avreagesupernova, I am busy these days so I couldnt buy new op amps, but I will on saturday;)

nadersb
Sep7-11, 10:43 AM
mr.jim hardy, thank you I will test it;)

yungman
Sep7-11, 10:53 AM
Mr.yungman, sorry about the pick, I meant peak;) it was mistake!
I am working with an ultrasonic transducer( I attach the picture of it)
about 33ohm: do you see the resistor that is parallel with the transducer?! that is 33ohm, but after mr.skeptic comment I changed it to 100k.
Am I answer all of your questions sir?!
thank you for your attention

You mean the one in parallel with not value or refence? Yes it's better to change to 100K, don't make sense to be 33 ohm.

yungman
Sep7-11, 11:03 AM
about 4 V pick to pick, but the problem is we amplify noise too, and i think we should add a filter to our circuit!

Is this from the output of the first amp like skeptic asked? Tell me the output of the first amp. What is the value of R1 and R2 now to make sure. If the R2 is still 1.5M, I want you to change to 150K and report back how much pick to pick do you get on the first stage.

The reason I ask is because after I reduce the gain by 10 times, you should get the full response. From that, I can back calculate what is the output from your detector. In turn to make sure the amp is not frequency limited.

You should not get a lot of noise from the electronic. The gain is only 1000, even 741 is reasonable. But if you change to OP37, it is a much lower noise amp. But if the noise is from the detector input, then you might have something elso going on.

jim hardy
Sep7-11, 11:34 PM
"""about 4 V pick to pick, but the problem is we amplify noise too, and i think we should add a filter to our circuit! ""

see figure "voltage swing vs supply voltage " on page 4 of this link:
http://www.national.com/ds/LM/LM148.pdf

it's the datasheet for quad 741 and it has all the good ol' information that used to be on single 741 datasheet. Print a copy to share with your colleagues.
What that graph shows is that opamps need "headroom"
that is, they only guarantee it can drive output within about two and a half volts of supply,
so with 9 volt supply and 2.5 v headroom at each end the output might only swing about 4 volts peak to peak ...

25 millivolts p-p at inverting input?
well it's sure not holding summing junction at zero.
which could be from lack of headroom
or lack of slew rate
or scope probe capacitance upsetting amplifier
or simply out of gain
might you be overdriving it in attempt to get full output ?

I think Yungman is on to something.....
see same datasheet page 5 figure "Open Loop Frequency Response" top right of page...
...at 40 khz it's only got open loop gain of ~30 db = gain of 31.6 if i remember logarithms
with open loop gain of 31 , i wouldn't expect a higher closed loop gain of 150


so i repeat - if you're using an adjustable bench supply, do a quick gain check at higher supply voltage to look for headroom and slew rate limiting
and if you're using a signal generator do a quick gain check at 400hz then 4khz to look for frequency response limiting.

and be aware it's generally risky to connect test equipment to the summing junction particularly if feedback resistance is large.


Glad to see somebody is really bujilding stuff instead of simulating it.
congratulations, sir.
old jim

yungman
Sep8-11, 12:18 AM
"""about 4 V pick to pick, but the problem is we amplify noise too, and i think we should add a filter to our circuit! ""

see figure "voltage swing vs supply voltage " on page 4 of this link:
http://www.national.com/ds/LM/LM148.pdf

it's the datasheet for quad 741 and it has all the good ol' information that used to be on single 741 datasheet. Print a copy to share with your colleagues.
What that graph shows is that opamps need "headroom"
that is, they only guarantee it can drive output within about two and a half volts of supply,
so with 9 volt supply and 2.5 v headroom at each end the output might only swing about 4 volts peak to peak ...

25 millivolts p-p at inverting input?
well it's sure not holding summing junction at zero.
which could be from lack of headroom
or lack of slew rate
or scope probe capacitance upsetting amplifier
or simply out of gain
might you be overdriving it in attempt to get full output ?

I think Yungman is on to something.....
see same datasheet page 5 figure "Open Loop Frequency Response" top right of page...
...at 40 khz it's only got open loop gain of ~30 db = gain of 31.6 if i remember logarithms
with open loop gain of 31 , i wouldn't expect a higher closed loop gain of 150


so i repeat - if you're using an adjustable bench supply, do a quick gain check at higher supply voltage to look for headroom and slew rate limiting
and if you're using a signal generator do a quick gain check at 400hz then 4khz to look for frequency response limiting.

and be aware it's generally risky to connect test equipment to the summing junction particularly if feedback resistance is large.


Glad to see somebody is really bujilding stuff instead of simulating it.
congratulations, sir.
old jim

Amen to this!!! You never learn from simulation. People need to learn to think through the circuit.

Back to the circuit. I think there is a lot of questions op did not share with us to help him.

1) The detector characteristic. We need a data sheet to know exactly what it is. Is it a current out like a photo detector, a voltage output or what. What is the output impedance?

2) What signal the circuit suppose to detect. Is it a wide band from low freq to 40KHz or is it mainly 40KHz. I designed a 64 element ultra sound scanner medical instrument. The signal is a pulse concentrated at one specific frequency. That make it so much easy to reduce noise than wide band. I actually use a parallel tank circuit right at the input to limit the band. And we had multi pole filter all over.

3) OP did not give info on where the noise come from. Is it from the detector, or from noise in the surrounding that picked up by the detector. He need to isolate this. I don't believe the op-amp is the problem because it is only 60dB gain. We did 110dB gain before. Then you really see noise. My suspicion is the detector pick up noise from the surrounding. Is it white noise or noise with specific frequency components.

4) Sooner or later, OP need a better op-amp!!!

I think we are all trying to guess with very little information. Maybe the OP don't want to give out too much info, this is already on the second page and show very very little progress. So far, we know the op-amp finally have the correct DC biasing and does have some sort of signal going through. Not much more. For any of us to help, OP need to provide more info. I have a suspicion the situation is a lot more complicated than just having the op-amp running correctly. At this point, what he is looking for is more a system question.

skeptic2
Sep8-11, 08:09 AM
Nadersb, have you checked your power supply for noise? There are circuits for active filters with gain that you could incorporate into your op amps.

nadersb
Sep8-11, 09:34 AM
First let me thank all of you, all of you are very kind too me;) and sorry for my bad english;)
as I said before I am busy a little bit and I cant work on my project these pas days, I will continue on Saturday, so please give some time to test your ideas and tell you the results;)
and about mr.yungman's comment, let tell you about the circuit, (I dont want to hide anything, I appreciate your help) the circuit is an ultrasonic receiver, we have another circuit that is transmitter, it works perfectly and it sends ultrasonic waves,it has a transducer too
receiver circuit detect these ultrasonic waves(so its input is only 40 khz not a band) first we amplify input,then with two diodes and one capacitor we convert it DC voltage(I am not sure that convert is right verb for here!!) after that we have a comparator, CA3140, it compares pin 2 with 3 and if 3 is bigger than 2 its output(pin6) becomes 6.8V .after that we have 2stages of transistors to amplify current because we want to drive a relay so we need high enough current.
about the transducer, it does not have datasheet, I asked someone and he told me this, so I cant help you with this. is there any question yet?!

nadersb
Sep8-11, 09:38 AM
skeptic, I am sorry but I dont understand what you mean by power supply noise?! how can I check this?!

nadersb
Sep8-11, 09:43 AM
everyone, I will tell you results and more information on saturday, mr yungman I will collect some information about the transducer and I will tell you;)
again thank you all, you are very kind indeed.

yungman
Sep8-11, 11:42 AM
First let me thank all of you, all of you are very kind too me;) and sorry for my bad english;)
as I said before I am busy a little bit and I cant work on my project these pas days, I will continue on Saturday, so please give some time to test your ideas and tell you the results;)
and about mr.yungman's comment, let tell you about the circuit, (I dont want to hide anything, I appreciate your help) the circuit is an ultrasonic receiver, we have another circuit that is transmitter, it works perfectly and it sends ultrasonic waves,it has a transducer too
receiver circuit detect these ultrasonic waves(so its input is only 40 khz not a band) first we amplify input,then with two diodes and one capacitor we convert it DC voltage(I am not sure that convert is right verb for here!!) after that we have a comparator, CA3140, it compares pin 2 with 3 and if 3 is bigger than 2 its output(pin6) becomes 6.8V .after that we have 2stages of transistors to amplify current because we want to drive a relay so we need high enough current.
about the transducer, it does not have datasheet, I asked someone and he told me this, so I cant help you with this. is there any question yet?!

If you don't have the data sheet, then we have to reverse engineering a little. Follow my post on #29. I want you to tell me what is R1 and R2 now. Then change R2 to 1/10 the value and tell me the output of the first amp. Then change to 1/20 value and tell me the output. From that, I can tell what is the transducer output.

You need to get a new op-amp. OP37 is a place to start. When you see signal at pin 2 of the op-amp, that is a tell tale sign your op-amp is running out of steam.

Regarding to noise. I want you to verify where the noise come from.
1) Disconnect the transducer, then short the input on the capacitor side to ground to verify whether the noise is still there. If so, the noise is from the electronics. I don't think so from my experience.
2) Re-connect the transducer. This time cover the transducer so it does not detect any signal. Look at the noise. If the noise is still there just as strong, your noise source is the transducer. Again I don't think so.

IF both 1 and 2 are negative, your problem is the environment. The only thing you can do is using band pass filter. I see you are rectifying the signal, so phase is not important. There is a lot you can do to filter. We use parallel LC tank at the front end and tune at 40KHz.

Like Jim Hardy said, why do you limit yourself to 9V? Is it a hand held device?

Just do all these first, get you amp working, characterize the detector. Then we work on the noise. It should be easy.

yungman
Sep8-11, 11:44 AM
skeptic, I am sorry but I dont understand what you mean by power supply noise?! how can I check this?!


We don't know what your power supply is at this point. If you are using a battery, don't worry about it. But if you are using any other way to power up the circuit, you need to use a scope probe to probe at the 9V point and look at what kind of noise you have.

jim hardy
Sep8-11, 01:04 PM
"If you are using a battery, don't worry about it."

but tack a capacitor across it just in case. Physically close to the 741's.
A couple microfarads should do. Even just another 0.47 would be okay.

skeptic2
Sep8-11, 06:18 PM
skeptic, I am sorry but I dont understand what you mean by power supply noise?! how can I check this?!

Because you gave your voltage measurements in volts peak to peak, I assume you were using a scope. Just switch the input to AC and put the probe on the power supply +9V. Turn the voltage knob (cautiously) to a sensitive level (5 mV peak to peak). Does the trace look noisy? If it does, you might add a forward biased diode in series and a large capacitor after it in parallel. Other smaller capacitors can be added right at the op amp supply terminals.

It sounds like an interesting project. I hope you'll let us know when you get it working how far your range is.

nadersb
Sep10-11, 10:19 AM
gentlemen, some new data: :D
I changed power supply to 20 and here is the results:
op1: pin2:26mV pin6:540mV so gain is:20.76
op2: pin2:500mV pin6:6.1V so gain is:12.2
and with 9V on the power supply we have these voltages:
op1: pin2:24mv pin6:355mV so gain is: 14.79
op2: pin2:330mV pin6:4V so gain is:12.12

about mr.yungman comment I changed the R2 resistor to 1/10 and 1/20 value and I connected transducer instead of signal generator and here is the results:
R2=150k op1:pin2=240mV pin6=3.6V
R2=75k op1: pin2=240mV pin6=2.2V

nadersb
Sep10-11, 10:34 AM
and about noise:
I checked DC power supply with o'scope and it doesnt look noisy, it works perfectly.(it is not battery it is a digital DC power supply)
as you told me I shorted the input to the ground and there was no noise, after that I connected the transducer but I covered it with my hands, still there was no noise, but without the cover, we had noise! its frequency is about 400Hz
so you tell me that add a parallel LC tank at the end of the pin 6 of the second op amp?!

nadersb
Sep10-11, 10:38 AM
I dont change the op amp yet, but tomorrow I will. let see what happens if I use op37.
again thank you all for paying attention:)

skeptic2
Sep10-11, 10:56 AM
so you tell me that add a parallel LC tank at the end of the pin 6 of the second op amp?!

The best place to put a parallel LC tank is in place of the feedback resistor of op1.

yungman
Sep10-11, 01:28 PM
gentlemen, some new data: :D
I changed power supply to 20 and here is the results:
op1: pin2:26mV pin6:540mV so gain is:20.76
op2: pin2:500mV pin6:6.1V so gain is:12.2
and with 9V on the power supply we have these voltages:
op1: pin2:24mv pin6:355mV so gain is: 14.79
op2: pin2:330mV pin6:4V so gain is:12.12

about mr.yungman comment I changed the R2 resistor to 1/10 and 1/20 value and I connected transducer instead of signal generator and here is the results:
R2=150k op1:pin2=240mV pin6=3.6V
R2=75k op1: pin2=240mV pin6=2.2V

Are you sure you measure on the first op-amp? Something is really really wrong in the data. Pin 2 is the summing junction. It should read 0V if the amp is running in closed loop under normal condition. As the frequency approach the amp limit, you'll start to see voltage on pin2 because the loop gain is dropping.

It is normal to see in the original measure of 26mV in the original R2 as the amp run out of steam. But when you change R2, the feed back resistor from 1.5M to 150K, you decrease the closed loop gain by 10. Closed loop frequency response should increase by 10 times which from my estimate is 100KHz. You should see less voltage at pin 2. and you get lower voltage at pin 6 of op-amp 1. But your data show opposite. Check your original R2 to verify it is 1.5M. You really need to ohm out your complete circuit to make sure all the value is correct, all the connection is correct.

We cannot work on a circuit that has some major problem. Make sure R2 we are talking about is the resistor connected from pin 2 to pin 6 of the first op-amp. Make sure the original R2 is 1.5M and the new one you replace is 150K and 75K.........by using an ohmeter after you lift one end up( no connection). I don't know how you breadboard the circuit, if you turn the IC up side down, you might miscount the direction of the pins. Make sure you double check everything. Far as I concern, we are back to square one again.

nadersb
Sep10-11, 02:41 PM
no we DON'T!! I think you misunderstand sir! when I changed R2 to 150k I also changed AC supply, AS I wrote in my previous comments! with 1.5M we used signal generator with around25 mV but with 150k and 75 k we used transducer! as I said we have another circuit that is transmitter, if you bring these two transducers near to each other you will see strong input signal, so what is the problem?! I dont understnad

nadersb
Sep10-11, 03:38 PM
I am not as amateur as you think sir, I know which pin is which! and how could be possible that our circuit is wrong and we have wrong connectios but we have good gain?! is it miracle or something?! :D with all due respect I think there is something wrong with your theory sir!

yungman
Sep10-11, 03:55 PM
I am not as amateur as you think sir, I know which pin is which! and how could be possible that our circuit is wrong and we have wrong connectios but we have good gain?! is it miracle or something?! :D with all due respect I think there is something wrong with your theory sir!

If you are experienced, I would expect you to know to use the same circuit to compare. You gave two result from two totally different condition and expect others to help you. People here are trying VERY HARD to help you and I think your comment is very uncalled for. Three pages into this and you are not going very far.

I know my op-amp theory very well, just trying to help you only. I think someone else is more suitable to help you.

skeptic2
Sep10-11, 04:45 PM
Before we get into an argument over nothing, could you post your schematic nadersb, including the points where you are making measurements and the values?

jim hardy
Sep10-11, 05:45 PM
Yungman has a point.

So much signal voltage at pin 2 summing junction says it's not operating as an operational amplifier.
HOWEVER - it is bad practice to measure at the summing junction. Scope lead capacitance delays feedback wrecking your phase margin. It is possible in fact likely that measuring pin 2 upsets the opamp so badly you are getting bogus numbers. As soon as you connect the test prod to pin 2 the circuit changes - test leads have capacitance(especially 1X scope prods) and opamps detest capacitance at their summing junctions.

Perhaps this disagreement is a simple misunderstanding.

When you say "signal at pin 2" are you reading directly ON pin 2,
or are you readig ON LEFT SIDE of the 10K resistor that GOES to pin 2?

There's a BIG difference. It's okay to measure left side of that resistor but not right side.

It is possible that your scope probe, when connected to pin 2, is disrupting the circuit throwing it into oscillation and giving a false reading. Capacitance at summng junction has that effect. When you remove the probe the circuit reverts back to normal.

You might clarify which you're measuring, and if you ARE measuring right on pin 2, watch output voltage at same time (other scope channel or a second voltmeter)and i bet it goes haywire while your scope is connected.
Dont measure pin 2 , measure opposite end of that 10K instead.

Gains should be reported as (voltage on pin 6)/(voltage on LEFT side of resistor connected to pin 2) . Not (pin 6) / (pin 2) because pin 2 is the op-amp's most ticklish spot.

A sanity check on pin 3 would be a good idea just to make sure the capacitor is not allowing any AC there. Measring pin 3 might upset the opamp a little but the cap should hold it reasonably still. If you see more than a couple millivolts, might be a board layout problem. Arrange your signal common so that the cap on pin 3 is commoned real close to transducer and far from power supply negative lead..

I hope you guys find this is indeed a mis-communication because i am interested in learning from all of you.

That's another advantage of building something instead of simulating iit, you develop real world skill with real world test equipment.

hope this helps.

I found it interesting that the gain increased when you raised the voltage.
But i think we have two or three things going on in your circuit.
How good we'll all feel when we've got them straightened out!
As one of my old country Math professors used to say - "once you get the problems nailed down you can usually stomp them to death"

Keep at it, for Mother Nature loves to make us work hard for the lessons she teaches us .

old jim

minijh
Sep14-11, 02:10 AM
Hi every one! New player is in! :D I'm Nader's teammate on this little project. He is on a trip so I'm taking his turn.
First I wanted to thank everyone including "yungman", "skeptic2" & Jim. For sophomore students of EE -who have been busy analyzing complex circuits on paper or via simulation- getting involved with circuits in the real world (!) seems a little different; Actually more than a little! ;) So thanks a lot for helping us learning & having fun in combination. I guess I better apologize for any misunderstanding unwittingly occurred. As Sceptic wisely mentioned it was over nothing! :)

minijh
Sep14-11, 03:00 AM
@Jim:
Nice points you mentioned abt pin 2 of opamps indeeeeeeed! But I have this question: when you say "signal on pin2 means our opamp isn't in its operational state", How strong a signal should be to say so? I mean is a signal with p-p of 10 mvs considered as "no signal"? :D
About what you asked about our measurements, as you asked us to measure pin 2 we did so,directly on pin2! :D Reading before the resistor is just equivalent to reading pin6 of the previous opamp in ac analysis ?! Correct me if I’m wrong :)
I can’t say anything but I just loved what you said & I hope the misunderstanding is over:
“I hope you guys find this is indeed a mis-communication because i am interested in learning from all of you.
That's another advantage of building something instead of simulating iit, you develop real world skill with real world test equipment.”

jim hardy
Sep14-11, 09:21 PM
" Reading before the resistor is just equivalent to reading pin6 of the previous opamp in ac analysis ?! Correct me if I’m wrong :)""
"

welll for all practical purposes, Yes.
i see a capacitor in between pin 6 and 10K resistor so the DC value could be different on pin 6 side of that cap, but in your circuit only by a few millivolts. EDIT: And you did say ac analysis... my bad.

""About what you asked about our measurements, as you asked us to measure pin 2 we did so,directly on pin2!"
oops we should have said "signal to pin 2 measured at junction of 10K and cap"



""But I have this question: when you say "signal on pin2 means our opamp isn't in its operational state", How strong a signal should be to say so? I mean is a signal with p-p of 10 mvs considered as "no signal"? ""

let's think for a moment.
Thinking is exact and measurement is approximate.
The basic principle of the opamp is that it will hold the two inputs equal.
That is true for both inverting (your arrangement) and non-inverting (where input signal goes to pin 3 not 2).

In an exact world, your circuit would hold pin 3 at exactly 4.5 volts, with no variations because of the RC filter 10K and the capacitor.
The opamp would attempt to hold pin 2 at exactly the same voltage.
In a real world there is likely some teeny bit of signal frequency showing up at pin 3 from parasitic capacitances or ground loops or something. The opamp will obediently try to reproduce that at pin 2.
So look at pin 3, it's okay to put the scope there because of that big cap already on pin 3. If you see 10 mv there the opamp is entitled to put 10 mv on pin 2 as well. But you cant look at pin 2 for reasons already mentioned.
I will be surprised if there's as much as a millivolt at pin 3, let alone ten millivolts.

Now more directly to your question:
return to thinking mode:
What is open loop gain of opamp?
something like 10^6 at low frequency.
So in an inverting configuration, the signal at pin 2 should be [output signal] / 10^6
which is going to be in microvolts.
Remember you can only get 4v of signal in your circuit, and to produce that takes only 4/10^6 which is 4 microvolts at pin 2.
If you have more, the circuit is failing to be an ideal inverting amplifier.

As you raise frequency the opamp's gain falls off so the voltage at pin 2 required to produce same output swing becomes larger. Read that appnote on slew rate limiting.

i too hope the misunderstanding is over.

Let us know how it works measuring on upstream side of 10K at pin 2.
And whether gain is affected by supply voltage.



Good luck with your project.
Yungman and i both think your 741 is not quite up to the task of high gain at 40khz.
Here's a faster opamp, two to a package and widely available from hobbyist sites:
http://www.national.com/profile/snip.cgi/openDS=TL082
be aware you may need to raise power supply to 12 volts.
should give you better gain. There's way faster ones yet out there.

We learn by doing. Hats off to you guys.

And thanks for the kind words.

minijh
Sep16-11, 06:54 AM
1) Thanks a lot for clarification Jim, I'll test the circuit just the way you said & I'll inform you.

2) "Now more directly to your question:
return to thinking mode:
What is open loop gain of opamp?
something like 10^6 at low frequency.
So in an inverting configuration, the signal at pin 2 should be [output signal] / 10^6
which is going to be in microvolts.
Remember you can only get 4v of signal in your circuit, and to produce that takes only 4/10^6 which is 4 microvolts at pin 2.
If you have more, the circuit is failing to be an ideal inverting amplifier."

What you just said shot the 741 in head! :D we thought it would be better to get rid of him as soon as possible! Poor 741! so we went for some other ops including op37 as yungman advised. Do we have to change anything? I mean R1 or R2 or..? cuz when we substitute 741 with the new fellow, the circuit wrecked badly!

3) By the way, after your advice we tuned the dc supply up to 20 volts, with 30mvs of signal generator as the input, we got near 6 volts out!
4) Nice technics Skeptic & Yungman said abt searching for the source of noise! we checked them all, as Yungman wisely predicted it was the environment. We also tried to detect its frequency with oscope, it was some 200Hz. What do you suggest for out LC Tank filter? For maximum efficiency of the circuit-maximum board-, what would be the best frequency to put the bandwidth around? To Strongly pass 40ks & kill 200s?

5) Hats off to you Jim! You've been extraordinary helpful! :)

P.S: @Skeptic: Sry for my delay, Now that everything got crystal clear I'll check for all the pins of the circuit & get you know of it. Our laboratory was closed these days,I have to wait till tomorrow. :)

skeptic2
Sep16-11, 07:17 AM
What you just said shot the 741 in head! :D we thought it would be better to get rid of him as soon as possible! Poor 741! so we went for some other ops including op37 as yungman advised. Do we have to change anything? I mean R1 or R2 or..? cuz when we substitute 741 with the new fellow, the circuit wrecked badly!

3) By the way, after your advice we tuned the dc supply up to 20 volts, with 30mvs of signal generator as the input, we got near 6 volts out!

4) What do you suggest for out LC Tank filter? For maximum efficiency of the circuit-maximum board-, what would be the best frequency to put the bandwidth around? To Strongly pass 40ks & kill 200s?


What do you mean, "...the circuit wrecked badly"? What did the circuit do?

Is the 6 volts out at the output of the first op amp or the second? If the second, what is the output from the first op amp? Are the outputs clean sinewaves or are they distorted or noisy?

You might start with a tank circuit with 100uH and 160nF. My preference is to strongly pass 40 kHz, that way you eliminate everything you don't want.

minijh
Sep16-11, 01:41 PM
@Skeptic2:
I meant there was no amplification, like when you use ops out of order or something like that. :-?? We checked for some 2 more op37 but still same result. So the problem couldn't be the op-amps themselves.

6volt out the circuit, output of the second one. I'll check tomorrow for sure, I mean in less than 12 hours! :D

Thanks for your comment on filtering.

Tomorrow!The big day!
:)

skeptic2
Sep16-11, 03:34 PM
The only problem with using a tank circuit is its low impedance. For instance with the values I gave you the Q of the inductor will be under 30. Since the reactance of the inductor is 25 ohms, the maximum impedance of the tank circuit would be 750 ohms. That would mean to get a gain of 25 you'd need to replace the 10 K resistor at the input with a 30 ohm resistor.

minijh
Sep18-11, 09:33 AM
Finally, I got into laboratory & took this data out the circuit before they threw me out of there! :D

@Jim:I checked for pin 3 in ac status, there was some like 0.1 mv p-p!!! as you had told me so, earlier :)

op741/ DCSup=20v/ Vin(p-p)=30mv/ R(feedback)op1=150k

op1:
pin2(B4 Resistor):30 mv (As expected! :D)
pin3:10 v
pin6:320 mv (ac)
=> gain=10.6

op2:
pin2(B4 Resistor):320 mv (as expected)
pin3:10 v (not directly measured)
pin6:5 v (ac)
=> gain=15.62

minijh
Sep18-11, 09:39 AM
What takes attention is the difference in gain of each stage. It seems stage 1's got bugs down there! :D

jim hardy
Sep18-11, 01:20 PM
To see your progress is very heartening. Thanks!


first stage gain is ten , lower than desired;; and
second is fifteen, higher than desired ???

okay first things first
First stage
i'd wager first stage is slew rate limited.
Will your signal generator allow you to drive with a square wave instead of sine?
Try that and look at output. The more it resembles a sawtooth od triangle wave, the more you are seeing the opamp limited by how fast it is capable of moving its output.
Repeat but with a 400 hz squarewave not 40 khz, output should be a more faithful reproduction.

Second stage has more input swing so can drive output at a faster slew rate.
But why so much gain? are you still using 100K / 1K there?
any green stripes on those second stage resistors?
brown black orange = 10K
brown black yellow = 100K
brown green yellow = 150K
brown black green = 1meg
brown green green = 1.5 meg

and if you are using 1% resistors there's a third stripe for third digit before the multiplier band...
------------

did you say the circuit 'wrecked' with op37?
that looks like a wonderful opamp.
http://www.analog.com/en/all-operational-amplifiers-op-amps/operational-amplifiers-op-amps/op37/products/product.html
Fast opamps are sensitive to capacitance at their inverting input and board layout(long leads) can get you.

See if a few picofarad capacitor in parallel with your 1 meg feedback resistor settles it down.
Tack one across the .47 that's on pin 3 also - capacitors that are made from a rolled up foil have some parasitic inductance so need a high frequency bypass. I dont know what style is your 0.47uf .

old jim

skeptic2
Sep19-11, 07:16 AM
I suspect that if you are using a 741 for the 2nd op amp and are getting 5V pk-pk out that you are seeing a triangle wave instead of a sine wave. That is a sign you are slew rate limited. That shouldn't be true of op amp 1 though. You must have some other problem with op amp 1.

minijh
Sep19-11, 03:13 PM
Good news every one! Using your advice, we checked OP-37 for our circuit- but we had to change resistors- and we got 9 volt out!cheers! :)
(what we did was playing with resistors, triggering the signal and here are the results:)

DC Sup=12/OP-37/Vin(p-p)=25 mv

OP1
R1=10k/R2=180k
pin2=25 mv
pin3=6v
pin6=0.5 v

OP2
R1=100k/R2=1.8M
pin2=0.5v
pin3=6v
pin6=9v

As we have a relay to be turned on, we took 9v dc out with two diodes and a capacitor. Regarding this, Is it important to check for slew rate or something?
*by the way as Jim said, I checked the signals for they were sines, just as signal generator produced.

What we have achieved in our project up to now:
1. Producing 40KHz pulses with p-p 0f 5v and send via a transducer(transmitter),
2. Receive the transmitted signal within a second transducer (receiver),
3. Amplifying with gain of some360,
4. Rectifying the signal,
5. Detecting the signal using a comparator3140,
6. Amplifying current the relay needs,
7. Tik Toks on relay! :)
8. Do whatever you want we relay's output...

There is only one thing left for better efficiency, and that is filtering. As you have suggested before it is better to do so before amplification; using a band-pass filter. We need low image impedance there -Correct me if I’m wrong- We checked the Rin of our circuit with an ohmmeter turning off the supplies & we got some 22Ks, Isn’t it a little big for our purpose?
Thanks every one
:)

skeptic2
Sep19-11, 03:43 PM
1. You could make 1 op amp a low pass active filter with gain and the other one a high pass active filter with gain.

2. You could use a Twin T notch filter in the feedback loop of the 1st op amp which would give you a bandpass characteristic.

3 There are probably other active bandpass filter designs on the internet.

jim hardy
Sep19-11, 07:04 PM
congratulations on your success !!

Hmmmm - Active filters are fascinating because they are such a direct application of math.
They are a whole field unto themselves.
My experience is limited, Yungman is FAR more conversant than i.

Once upon a time i needed sharp filters with gain
and stumbled across this IC
and built my filters (22 and 27 khz) , measured Q almost 100 had to tweak down to ~50 to get bandwidth to cover the FM signals i was decoding. (Telephone touch tones FM'd onto ultrasonic carriers. )

In other words:
"Here's a great filter that can be built by an amateur"
http://www.national.com/ds/LM/LM359.pdf
the Biquad on page 22/23
and someplace National has an appnote on active filters with a discussion of this one.
AN72 mentions it but i think there's a better one somewhere in their library.
http://www.national.com/an/AN/AN-72.pdf

it's called 'biquad' because both numerator and denomoinator of transfer function have a quadratic in them
so there's poles and zeroes galore to tinker with.
The formulas in the datasheet work.
I hand picked my resistors and capacitors to achieve the values called for by formulas.
worked quite well.

Just a thought....

old jim

ps keep your eyes peeled for those old 1970's catalogs - paperbacks several inches thick.
National, Signetics, RCA, TI et al
Packed with information, they are. You find them in junkshops and Ebay.