Author Topic: Op amp not working out as planned  (Read 8997 times)

0 Members and 1 Guest are viewing this topic.

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #25 on: April 05, 2018, 11:10:47 am »

The AD9833 has a VOUT Maximum of 0.65V and a VOUT Minimum of 38mV.

So, that's the peak input voltage.

Regarding the peak output voltage, here are the specifications for a branded budget 5MHz arbitrary function generator -

2mVpp~10Vpp (50?, ?10MHz)
4mVpp~20Vpp (high impedance, ?10MHz)

So, maybe something along these lines (Vpp and maximum frequency) looks sensible for my purpose, which is to have a signal generator to experiment with op amps (which I'm now actually doing), filters, etc ?

I'll not be putting the signal down long cables.

I understand that I'm going to have to put in more volts in if I want more volts out.

Thanks
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Op amp not working out as planned
« Reply #26 on: April 05, 2018, 07:40:58 pm »
The AD9833 has a VOUT Maximum of 0.65V and a VOUT Minimum of 38mV.

Yep, it outputs a constant amplitude sine, triangle or square. But with only 25M samples per second I think any wave over 1MHz is going to be quite rough, and 12.5MHz not really possible other than just a 12.5MHz square, unless I've missed something!
http://www.analog.com/media/en/technical-documentation/data-sheets/AD9833.pdf

Have you scoped the AD933's 38-650mV output directly to see what a ~1MHz+ sine, triangle and square look like?

I wouldn't know where to go from here in producing a variable amplitude, variable offset output, but you could get the AD9833's output to a 0V centered 1.25Vpp with something like this.

.  That took much longer than I thought it would.
 
The following users thanked this post: netdudeuk

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #27 on: April 05, 2018, 08:02:57 pm »
The AD9833 has a VOUT Maximum of 0.65V and a VOUT Minimum of 38mV.

Yep, it outputs a constant amplitude sine, triangle or square. But with only 25M samples per second I think any wave over 1MHz is going to be quite rough, and 12.5MHz not really possible other than just a 12.5MHz square, unless I've missed something!
http://www.analog.com/media/en/technical-documentation/data-sheets/AD9833.pdf
Yes you have missed something: an anti-aliasing filter will theoretically give a pure sine wave, right up to half the sampling frequency. In practise, you'll probably be limited to less than half the sample rate, but it should be possible to get a much higher frequency, than 1MHz and still have a decent sine wave.

The problem will be the triangle wave and other arbitrary wave shapes, assuming this IC can do that, but I haven't chekted the data sheet.
 
The following users thanked this post: netdudeuk

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Op amp not working out as planned
« Reply #28 on: April 05, 2018, 08:30:16 pm »
"The problem will be the triangle wave and other arbitrary wave shapes"

It only does fixed amplitude 10 bit sine, triangle, and square, with a 28 bit word to set the frequency.
I love the way the data sheet keeps saying "No other components necessary". :-DD
« Last Edit: April 05, 2018, 08:34:02 pm by StillTrying »
.  That took much longer than I thought it would.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Op amp not working out as planned
« Reply #29 on: April 05, 2018, 08:40:50 pm »
At least to start with use a bipolar supply, you can work on making a single rail version after you have it working properly. Even a pair of 9V batteries can work quite well, op-amps typically draw very little current so you should be able to run it for a long time. Building a simple bench supply is another classic beginner project, it's hard to have too many power supplies.
 

Offline Wimberleytech

  • Super Contributor
  • ***
  • Posts: 1133
  • Country: us
Re: Op amp not working out as planned
« Reply #30 on: April 05, 2018, 08:48:02 pm »
Quote
Yes you have missed something: an anti-aliasing filter will theoretically give a pure sine wave, right up to half the sampling frequency. In practise, you'll probably be limited to less than half the sample rate, but it should be possible to get a much higher frequency, than 1MHz and still have a decent sine wave.


Did you mean "smoothing filter," and more specifically a "brick wall smoothing filter" would be the only way to get a pure sine up to half the sampling frequency?
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Op amp not working out as planned
« Reply #31 on: April 06, 2018, 12:43:10 am »
Here's another +/- 12V version. Simply driving the top end R1 in the above schem. with -1V to +8V allows for the 1.2Vpp output to be offset all -Ve, all +Ve or centered on 0V of course, which looks like that.

Amplitude is still fixed at 1.2Vpp, until someone comes up with a good simple idea. :)

LT .asc if someone wants to play with it.
.  That took much longer than I thought it would.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #32 on: April 06, 2018, 10:57:38 pm »
Here's another +/- 12V version. Simply driving the top end R1 in the above schem. with -1V to +8V allows for the 1.2Vpp output to be offset all -Ve, all +Ve or centered on 0V of course, which looks like that.

Amplitude is still fixed at 1.2Vpp, until someone comes up with a good simple idea. :)

LT .asc if someone wants to play with it.
Unfortunately the LT1022 is unsuitable for this application. It's over an order of magnitude too slow. Try a faster amplifier such as the AD818.


The AD9833 has a VOUT Maximum of 0.65V and a VOUT Minimum of 38mV.

So, that's the peak input voltage.

Regarding the peak output voltage, here are the specifications for a branded budget 5MHz arbitrary function generator -

2mVpp~10Vpp (50?, ?10MHz)
4mVpp~20Vpp (high impedance, ?10MHz)

So, maybe something along these lines (Vpp and maximum frequency) looks sensible for my purpose, which is to have a signal generator to experiment with op amps (which I'm now actually doing), filters, etc ?

I'll not be putting the signal down long cables.

I understand that I'm going to have to put in more volts in if I want more volts out.

Thanks

What's your budget?

High speed amplifier ICs aren't cheap, especially ones suitable for running off the higher supply voltages required to give 20Vpp. The AD818 I just mentioned above seems to be the best value for money and meets your specification.

You'll need an anti-aliasing filter. I think a passive, LRC design might be the best option here, as it's tricky to design an active filter at these frequencies.
 
The following users thanked this post: netdudeuk

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #33 on: April 26, 2018, 12:16:38 pm »
Here's another +/- 12V version. Simply driving the top end R1 in the above schem. with -1V to +8V allows for the 1.2Vpp output to be offset all -Ve, all +Ve or centered on 0V of course, which looks like that.

Amplitude is still fixed at 1.2Vpp, until someone comes up with a good simple idea. :)

LT .asc if someone wants to play with it.
Unfortunately the LT1022 is unsuitable for this application. It's over an order of magnitude too slow. Try a faster amplifier such as the AD818.


The AD9833 has a VOUT Maximum of 0.65V and a VOUT Minimum of 38mV.

So, that's the peak input voltage.

Regarding the peak output voltage, here are the specifications for a branded budget 5MHz arbitrary function generator -

2mVpp~10Vpp (50?, ?10MHz)
4mVpp~20Vpp (high impedance, ?10MHz)

So, maybe something along these lines (Vpp and maximum frequency) looks sensible for my purpose, which is to have a signal generator to experiment with op amps (which I'm now actually doing), filters, etc ?

I'll not be putting the signal down long cables.

I understand that I'm going to have to put in more volts in if I want more volts out.

Thanks

What's your budget?

High speed amplifier ICs aren't cheap, especially ones suitable for running off the higher supply voltages required to give 20Vpp. The AD818 I just mentioned above seems to be the best value for money and meets your specification.

You'll need an anti-aliasing filter. I think a passive, LRC design might be the best option here, as it's tricky to design an active filter at these frequencies.

I've ordered a AD818 thanks.
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #34 on: June 07, 2018, 06:00:30 pm »
I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks

 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #35 on: June 07, 2018, 07:19:31 pm »
I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks
No, those are the minimum gains before it can become unstable and oscillate: ≥ means greater than or equal to and ≤ means less than or equal to.

This is very common on faster op-amps. Look at the OP37 datasheet, for example: it says gains >5.
http://www.analog.com/media/en/technical-documentation/data-sheets/OP37.pdf
« Last Edit: June 07, 2018, 07:21:30 pm by Hero999 »
 
The following users thanked this post: netdudeuk

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2765
  • Country: us
Re: Op amp not working out as planned
« Reply #36 on: June 07, 2018, 07:23:22 pm »
Assuming the first scope trace is the output from the DDS chip, that is 600 mV peak to peak.  Your resistors program the op amp to have a gain of 11.  So, you are expecting to get an output of 6.6 V P-P from a 5V power supply.  Clearly, it will HAVE to clip.

Jon
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #37 on: June 08, 2018, 09:27:08 am »
I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks
No, those are the minimum gains before it can become unstable and oscillate: ≥ means greater than or equal to and ≤ means less than or equal to.

This is very common on faster op-amps. Look at the OP37 datasheet, for example: it says gains >5.
http://www.analog.com/media/en/technical-documentation/data-sheets/OP37.pdf

Thanks.  Can I just use this in an inverting amplifier configuration like I did with the previous ones, using the same two resistor calculation to get the desired gain ?
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #38 on: June 08, 2018, 11:14:04 am »
Quote
Yes you have missed something: an anti-aliasing filter will theoretically give a pure sine wave, right up to half the sampling frequency. In practise, you'll probably be limited to less than half the sample rate, but it should be possible to get a much higher frequency, than 1MHz and still have a decent sine wave.


Did you mean "smoothing filter," and more specifically a "brick wall smoothing filter" would be the only way to get a pure sine up to half the sampling frequency?
Yes, you're right, I was talking about a brick wall filter, which is the only way to get a sine wave, up to half the sample rate. Unfortunately, it's useless for other wave shapes.

I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks
No, those are the minimum gains before it can become unstable and oscillate: ≥ means greater than or equal to and ≤ means less than or equal to.

This is very common on faster op-amps. Look at the OP37 datasheet, for example: it says gains >5.
http://www.analog.com/media/en/technical-documentation/data-sheets/OP37.pdf

Thanks.  Can I just use this in an inverting amplifier configuration like I did with the previous ones, using the same two resistor calculation to get the desired gain ?
Remind me which resistor values are you planning to use? A few schematics have been posted and I don't know which one you're referring to.

That op-amp should be fine for gains greater than 2, as long as the resistor values aren't too high. The bias current of that op-amp is fairly high, so high resistor values will cause it output DC point to drift significantly. High resistor values will also slow it down, as there it will take longer to charge/discharge the parasitic capacitances.

 
The following users thanked this post: netdudeuk

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #39 on: June 08, 2018, 11:30:12 am »
Quote
Yes you have missed something: an anti-aliasing filter will theoretically give a pure sine wave, right up to half the sampling frequency. In practise, you'll probably be limited to less than half the sample rate, but it should be possible to get a much higher frequency, than 1MHz and still have a decent sine wave.


Did you mean "smoothing filter," and more specifically a "brick wall smoothing filter" would be the only way to get a pure sine up to half the sampling frequency?
Yes, you're right, I was talking about a brick wall filter, which is the only way to get a sine wave, up to half the sample rate. Unfortunately, it's useless for other wave shapes.

I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks
No, those are the minimum gains before it can become unstable and oscillate: ≥ means greater than or equal to and ≤ means less than or equal to.

This is very common on faster op-amps. Look at the OP37 datasheet, for example: it says gains >5.
http://www.analog.com/media/en/technical-documentation/data-sheets/OP37.pdf

Thanks.  Can I just use this in an inverting amplifier configuration like I did with the previous ones, using the same two resistor calculation to get the desired gain ?
Remind me which resistor values are you planning to use? A few schematics have been posted and I don't know which one you're referring to.

That op-amp should be fine for gains greater than 2, as long as the resistor values aren't too high. The bias current of that op-amp is fairly high, so high resistor values will cause it output DC point to drift significantly. High resistor values will also slow it down, as there it will take longer to charge/discharge the parasitic capacitances.

The very first one right at the top of the post.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #40 on: June 08, 2018, 12:10:23 pm »
Quote
Yes you have missed something: an anti-aliasing filter will theoretically give a pure sine wave, right up to half the sampling frequency. In practise, you'll probably be limited to less than half the sample rate, but it should be possible to get a much higher frequency, than 1MHz and still have a decent sine wave.


Did you mean "smoothing filter," and more specifically a "brick wall smoothing filter" would be the only way to get a pure sine up to half the sampling frequency?
Yes, you're right, I was talking about a brick wall filter, which is the only way to get a sine wave, up to half the sample rate. Unfortunately, it's useless for other wave shapes.

I have the AD818 but TBH, I'm not sure to hook it up for this application.

Here's the data sheet -

http://www.analog.com/media/en/technical-documentation/data-sheets/AD818.pdf

Also, the data sheet states (gain ≥ 2, or gain ≤ –1).  Is this really the limit of how much it can boost the signal from the AD9833 ?

Thanks
No, those are the minimum gains before it can become unstable and oscillate: ≥ means greater than or equal to and ≤ means less than or equal to.

This is very common on faster op-amps. Look at the OP37 datasheet, for example: it says gains >5.
http://www.analog.com/media/en/technical-documentation/data-sheets/OP37.pdf

Thanks.  Can I just use this in an inverting amplifier configuration like I did with the previous ones, using the same two resistor calculation to get the desired gain ?
Remind me which resistor values are you planning to use? A few schematics have been posted and I don't know which one you're referring to.

That op-amp should be fine for gains greater than 2, as long as the resistor values aren't too high. The bias current of that op-amp is fairly high, so high resistor values will cause it output DC point to drift significantly. High resistor values will also slow it down, as there it will take longer to charge/discharge the parasitic capacitances.

The very first one right at the top of the post.
So your original schematic?


I advise reducing them by a factor of ten: RIN = 1k, RF = 10k.

The advice previously given, regarding a dual power supply and output switch is still relevant: a dual 5V or single 10V power supply is essential with 600mVpp in and a gain of 10.
« Last Edit: June 08, 2018, 12:13:10 pm by Hero999 »
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #41 on: June 10, 2018, 04:32:50 pm »
So, no success, with virtually nothing on the output of the op amp.

I've checked the wiring several times and it looks ok.

RIN = 1k, RF = 10k
Non inverting input is biased to 5v
5v supply for the DDS and Arduino
10v supply for the AD818
Common ground

What could be causing this ?

Thanks

 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Op amp not working out as planned
« Reply #42 on: June 10, 2018, 05:03:38 pm »
You did not use a series input capacitor so its input DC voltage is amplified and causes its output to be close to 0V all the time.
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #43 on: June 11, 2018, 12:06:52 pm »
I added a series input capacitor and amended RF to 2K.  So, the gain should be 2.

However, the scope traces still don't look right (especially as it isn't inverting).

Either there is still something wrong with the circuit or I'm measuring it wrong  |O

 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #44 on: June 12, 2018, 01:06:24 pm »
I added a series input capacitor and amended RF to 2K.  So, the gain should be 2.

However, the scope traces still don't look right (especially as it isn't inverting).

Either there is still something wrong with the circuit or I'm measuring it wrong  |O
That doesn't look right. Which trace is which? Where is the 'scope's 0V connection going to?

Please post a complete schematic and a photograph, showing how it's physically connected up.
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #45 on: June 12, 2018, 01:12:30 pm »
I added a series input capacitor and amended RF to 2K.  So, the gain should be 2.

However, the scope traces still don't look right (especially as it isn't inverting).

Either there is still something wrong with the circuit or I'm measuring it wrong  |O
That doesn't look right. Which trace is which? Where is the 'scope's 0V connection going to?

Please post a complete schematic and a photograph, showing how it's physically connected up.

The yellow trace is connected to the output of the DDS before the series input capacitor.  The blue trace is the output of the op amp.

So, yes, it doesn't look right.

The scope grounds, the ground for the 5 volt supply (Rigol DP832) and the ground for the 10 volt supply (the same DP832) are all connected together.

I'll need to get a photo and a schematic later.

Thanks
 

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #46 on: June 12, 2018, 04:18:17 pm »
Schematic and setup photos.

Thanks
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Op amp not working out as planned
« Reply #47 on: June 13, 2018, 05:43:21 pm »
Schematic and setup photos.

Thanks
That circuit looks fine.

Such a high speed op-amp shouldn't be used on breadboard, but it doesn't appear to be oscillating. If all the connections are good, then I'd suspect it's the op-amp. Can you change the op-amp for the TL071 or TL081?

If not, you could try the old '741 but the frequency would need to be lowered to 10kHz and a larger DC blocking capacitor used: try 1μF.
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Op amp not working out as planned
« Reply #48 on: June 13, 2018, 11:10:09 pm »
The op amp might have more gain if you connected pin 4 to 0V. :)
.  That took much longer than I thought it would.
 
The following users thanked this post: netdudeuk

Offline netdudeukTopic starter

  • Frequent Contributor
  • **
  • Posts: 447
  • Country: gb
Re: Op amp not working out as planned
« Reply #49 on: June 18, 2018, 03:33:47 pm »
The op amp might have more gain if you connected pin 4 to 0V. :)

It is working somewhat better now thanks  :)

I wanted to create an adjustable offset on the output so I connected the non inverting input to another rail on my PSU instead of the 5V.  The ground for this was connected to all the others.

However, if I dialled in anything more than a few hundred mV, I had what I'm guessing we'd describe as unwanted oscillation.  The basic sine wave was still there but rather than a line that traced the rise and fall of the signal, think of it as a many columned bar graph where the numbers followed the sine wave.  I don't have access to the equipment at the moment but hopefully it is clear what I mean.

Why would this be ?

Thanks again.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf