Author Topic: Op Amp with single dc supply  (Read 8447 times)

0 Members and 1 Guest are viewing this topic.

Offline mikeinfodocTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Op Amp with single dc supply
« on: December 26, 2016, 11:07:50 pm »
I have a simple op amp circuit. (please see screenshot/image).     Currently, I have
  • an AC signal generator for the ac input.
  • I have a single bench top power supply I made for the DC supply.

Therefore, I ONLY see the amplified top/positive part of the input sign wave.

What i want is the entire amplified waveform on the output.   I have been told there is a way to step-up/offset the ac wavefore by vpp/2 thereby converting the AC to a sign DC wave (all above zero volts),   

and then on the output, I could use a cap to remove the DC offset.

Can anyone tell me HOW to do this?  Do you have any sample/similar schematics you could share or point me to?



Thx in advance
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6926
  • Country: de
Re: Op Amp with single dc supply
« Reply #1 on: December 26, 2016, 11:29:07 pm »
What you have is an 1.0 Vpp AC input (0.5 Vp), amplified x22, which would give you 22 Vpp at the output.
However, an opamp will not go beyond the supply rails, so you'll need to look at requirements again.

Apart from that, level shifting / AC-coupling can be done easily
 
The following users thanked this post: mikeinfodoc

Offline ehilarioc

  • Contributor
  • Posts: 17
  • Country: pe
Re: Op Amp with single dc supply
« Reply #2 on: December 26, 2016, 11:31:38 pm »
Level shifting is easy, just use a potentiometer and connect the wiper to the non inverting pin and tune until you get the signal you want at the output. Then you can replace the pot with resistors if needed.

 
The following users thanked this post: mikeinfodoc

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6926
  • Country: de
Re: Op Amp with single dc supply
« Reply #3 on: December 26, 2016, 11:39:40 pm »
Level shifting is easy, just use a potentiometer and connect the wiper to the non inverting pin and tune until you get the signal you want at the output. Then you can replace the pot with resistors if needed.

Please look at the schematic again.
 
The following users thanked this post: mikeinfodoc

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 8491
  • Country: ca
Re: Op Amp with single dc supply
« Reply #4 on: December 26, 2016, 11:52:01 pm »
Your op-amp's output cannot go below 0V yet your input sine wave does. The sim shows that.
I believe you need to bias up the op-amp to 1/2 of 12V (apply 6VDC at pin3) and also AC couple the input via capacitor to R1 (side effect is this gives a low frequency roll-off).
Benta mentioned you are also overdriving the op-amp; it can't output 22V when powered by 12V
 
The following users thanked this post: mikeinfodoc

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 21893
  • Country: gb
  • 0999
Re: Op Amp with single dc supply
« Reply #5 on: December 27, 2016, 12:02:05 am »
Bias the op-amp so its output sits at half the supply rail and AC couple the input and outputs via capacitors.


As mentioned above, an op-amp's output can't go beyond its power supply rails, so you need a higher voltage power supply to amplify a 1Vp-p signal with a gain of 22.
 
The following users thanked this post: mikeinfodoc

Offline ehilarioc

  • Contributor
  • Posts: 17
  • Country: pe
Re: Op Amp with single dc supply
« Reply #6 on: December 27, 2016, 12:05:38 am »
It is true that the opamp output won't go higher than the supply rails, however the only thing mike needs to do is to lower the amplitude of his input signal a little, or increase his voltage supply.

 
The following users thanked this post: mikeinfodoc

Offline KhronX

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: fi
    • Khron's Cave - Electronics Blog
Re: Op Amp with single dc supply
« Reply #7 on: December 27, 2016, 12:13:00 am »
... Or reduce the gain a bit, so the output signal "fits" within the confines of the supply rails :) (Minus whatever drop-out the opamp's output stage is limited by...)
Khron's Cave - Electronics - Audio - Teardowns - Mods - Repairs - Projects - Music - Rants - Shenanigans
 
The following users thanked this post: mikeinfodoc

Offline mikeinfodocTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Op Amp with single dc supply
« Reply #8 on: December 28, 2016, 03:01:24 am »
Thank you all.  Indeed I was over-driving it with the 22k Rf. 

I reduced that.  I am really just trying to get the concept (rather than any specific gain) at the moment.

That said, I tried one of the suggestions above, yet I am still not getting desired results. (upper left of screen is what I tried to model in the sim)

I was thinking I could somehow shift the ac input up, so that I could get an entire waveform on the output.

On the attached, you will see clipping.  I welcome feedback.

Thank you
 

Online MK14

  • Super Contributor
  • ***
  • Posts: 5376
  • Country: gb
Re: Op Amp with single dc supply
« Reply #9 on: December 28, 2016, 03:36:39 am »
For starters, C3 and hence the 12V voltage source, does not look like you connected it up right. Compared to the diagram on the left.
 
The following users thanked this post: mikeinfodoc

Offline mikeinfodocTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Op Amp with single dc supply
« Reply #10 on: December 28, 2016, 03:15:12 pm »
I see what you mean.

I suppose the intent of the diagram was to simply have a DC voltage divider applying 6 volts to the non-inverting input,   ...correct?

So I will need to have the cap in parallel instead of series.  Sound right?
 

I will plan to rework the non-inverting bias when I get home this eve.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 21893
  • Country: gb
  • 0999
Re: Op Amp with single dc supply
« Reply #11 on: December 28, 2016, 03:22:33 pm »
I see what you mean.

I suppose the intent of the diagram was to simply have a DC voltage divider applying 6 volts to the non-inverting input,   ...correct?

So I will need to have the cap in parallel instead of series.  Sound right?
 

I will plan to rework the non-inverting bias when I get home this eve.
Yes, put C3 in parallel with V1, rather than in series.
 
The following users thanked this post: mikeinfodoc

Offline mikeinfodocTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Op Amp with single dc supply
« Reply #12 on: December 29, 2016, 04:15:16 am »
Ok, I corrected the bias on the non-inverting input, and NOW I am getting a full wave on the output. (see attached)

It also appears the gain is what I expected.

A follow up question:

Can anyone help clarify the need/purpose for caps: C1, C3 and C4?  (also are there any recommended values for them?)
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 21893
  • Country: gb
  • 0999
Re: Op Amp with single dc supply
« Reply #13 on: December 29, 2016, 10:44:18 am »
Ok, I corrected the bias on the non-inverting input, and NOW I am getting a full wave on the output. (see attached)

It also appears the gain is what I expected.

A follow up question:

Can anyone help clarify the need/purpose for caps: C1, C3 and C4?  (also are there any recommended values for them?)

C1 is an AC coupling capacitor. Its value depends on the minimum frequency of interest and the input impedance (RG on your schematic).

C = 1/(2pi×FC×R)

Where:
C is the value of C in in Farads
R is the input resistance
FC is the lower cut-off frequency

Ideally C1 should be larger than the value given by the above formula, which returns the capacitance required to reduce the voltage of the signal to 70.7% of the original voltage.

C3 is a general power supply decoupling capacitor. It smooths out any noise on the power. If the power supply voltage increases, it charges a little, absorbing the extra energy, if the voltage decreases, it discharges slightly. You may be able to omit this if the circuit is running from a battery and there are no high current or digital circuits running off the same power supply.

C4 smooths the voltage on the potential divider formed by RG1 & RG2. The voltage on the potential divider is proportional to the supply voltage and is connected to the non-inverting input of the op-amp and is passed through to the output. Without C4, any fluctuations in the supply voltage will pass through the op-amp and appear at the output. Again if it's being run off a battery and there are no other high current or digital circuits, then you may be able to get away without it.
« Last Edit: December 29, 2016, 10:46:54 am by Hero999 »
 
The following users thanked this post: MK14, mikeinfodoc

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Op Amp with single dc supply
« Reply #14 on: December 29, 2016, 12:52:06 pm »
Tghere are multiple ways of handling signals that have below ground swings,
in a single supply system. Link shows some methods, and a calculator for a
simple method using 2 Rs.

https://www.dropbox.com/s/k1yn4m7heaixvmg/ADinput%20negative%20inputs.zip?dl=0


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 
The following users thanked this post: mikeinfodoc

Offline mikeinfodocTopic starter

  • Regular Contributor
  • *
  • Posts: 67
  • Country: us
Re: Op Amp with single dc supply
« Reply #15 on: December 29, 2016, 03:56:27 pm »
Great, thank you all again. 

I took a circuit analysis class this past fall, and thought I would be "on my own" after that.

However, I am finding this forum is unbelievably helpful. 

This was my first post, and I am already awestruck.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf