Author Topic: Strange behavior - simulated op-amp rectifier  (Read 1844 times)

0 Members and 1 Guest are viewing this topic.

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Strange behavior - simulated op-amp rectifier
« on: January 01, 2020, 03:05:44 pm »
Hi

I have, as I mostly do, searched and found some article and a schematic that should be great.
According to the article, this rectifier should be a wary precise full wave version with nearly no loss.
But when I simulate it, it do only rectify the positive AC and on top of that, do it deliver a -2.3V to 9.75V voltage.

Info: input 10V 50Hz
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline unitedatoms

  • Frequent Contributor
  • **
  • !
  • Posts: 324
  • Country: us
Re: Strange behavior - simulated op-amp rectifier
« Reply #1 on: January 01, 2020, 03:43:23 pm »
https://en.wikipedia.org/wiki/Precision_rectifier

I did not look into details, but it looks like the rectifier is working as half wave one. It is intended by design.
Interested in all design related projects no matter how simple, or complicated, slow going or fast, failures or successes
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Strange behavior - simulated op-amp rectifier
« Reply #2 on: January 01, 2020, 04:03:05 pm »
Your circuit consists of two elements.

1. Precision halfwave rectifier (R1/R2/D1/D2/IC1)
2. Halfwave to fullwave converter (R3/R4/R5/IC2)

Split the circuit and test part 1, first without a load - suspect you'll find that R3's virtual earth load on the precision rectifier is the problem, you might need to put a x1 buffer in between D1 and R3.
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #3 on: January 01, 2020, 04:03:48 pm »
https://en.wikipedia.org/wiki/Precision_rectifier

I did not look into details, but it looks like the rectifier is working as half wave one. It is intended by design.
Thanks for the link. No according to the schematic, the original one on the top most image, it says "full wave rectifier"
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #4 on: January 01, 2020, 04:04:43 pm »
Your circuit consists of two elements.

1. Precision halfwave rectifier (R1/R2/D1/D2/IC1)
2. Halfwave to fullwave converter (R3/R4/R5/IC2)

Split the circuit and test part 1, first without a load - suspect you'll find that R3's virtual earth load on the precision rectifier is the problem, you might need to put a x1 buffer in between D1 and R3.
Thanks I'll try that now:-)
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #5 on: January 01, 2020, 04:23:40 pm »
Your circuit consists of two elements.

1. Precision halfwave rectifier (R1/R2/D1/D2/IC1)
2. Halfwave to fullwave converter (R3/R4/R5/IC2)

Split the circuit and test part 1, first without a load - suspect you'll find that R3's virtual earth load on the precision rectifier is the problem, you might need to put a x1 buffer in between D1 and R3.

This is what I have done. I have to admit that I have no idea about that buffer you write about, may I please ask if you can explain some more? :-)
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline not1xor1

  • Frequent Contributor
  • **
  • Posts: 716
  • Country: it
Re: Strange behavior - simulated op-amp rectifier
« Reply #6 on: January 01, 2020, 05:40:44 pm »
Hi

I have, as I mostly do, searched and found some article and a schematic that should be great.
According to the article, this rectifier should be a wary precise full wave version with nearly no loss.
But when I simulate it, it do only rectify the positive AC and on top of that, do it deliver a -2.3V to 9.75V voltage.

Info: input 10V 50Hz

The circuit works works as expected in LTspice. (see attachment)
What kind of program are you using?
Did you set a proper supply voltage for the opamps (both positive and negative and greater than the AC input peak voltage)?
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #7 on: January 01, 2020, 07:57:58 pm »
Hi

I have, as I mostly do, searched and found some article and a schematic that should be great.
According to the article, this rectifier should be a wary precise full wave version with nearly no loss.
But when I simulate it, it do only rectify the positive AC and on top of that, do it deliver a -2.3V to 9.75V voltage.

Info: input 10V 50Hz

The circuit works works as expected in LTspice. (see attachment)
What kind of program are you using?
Did you set a proper supply voltage for the opamps (both positive and negative and greater than the AC input peak voltage)?
I am using Micro-cap to do the simulation
I was just about to write that the circuit works fine: http://tinyurl.com/ustlnbx
But many thanks for doing so much out of it, and yes it looks to work fine in LTSpice.
I have tried to change the two Op-Amps to the same model as you used, but still with no luck.

I have not applied any supply voltage on the Op-amps, since there were not applied any on the original drawing. I tried to remove the supply Voltage on your LT-Spice document and that do remove all the function of the circuit.
The function should be a rectifier but if it already demands DC power, then do I need a PSU for that and then a PSU for that circuit, and so on:-)
Isn't it posibly to avoid supply Voltage?
« Last Edit: January 01, 2020, 09:20:01 pm by FriedMule »
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9964
  • Country: us
Re: Strange behavior - simulated op-amp rectifier
« Reply #8 on: January 01, 2020, 11:31:08 pm »
No, the op amps need a power supply as shown in both of your original schematics.
A precision rectifier is used for signal processing, not as some part of a low loss power supply.

https://en.wikipedia.org/wiki/Precision_rectifier

And pay attention to input and output voltage swings.  Some op anps can't work within a couple of volts of the power supply rails.  Given +-9V supplies,  some opamps will only operate to +-7V on the inputs and outputs.  Rail-To-Rail opamps work a lot closer but don't assume rail-to-rail is anything more than a marketing term.

« Last Edit: January 01, 2020, 11:34:20 pm by rstofer »
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2135
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Strange behavior - simulated op-amp rectifier
« Reply #9 on: January 01, 2020, 11:51:27 pm »
Hi

I have, as I mostly do, searched and found some article and a schematic that should be great.
According to the article, this rectifier should be a wary precise full wave version with nearly no loss.
But when I simulate it, it do only rectify the positive AC and on top of that, do it deliver a -2.3V to 9.75V voltage.

Info: input 10V 50Hz

The circuit works works as expected in LTspice. (see attachment)
What kind of program are you using?
Did you set a proper supply voltage for the opamps (both positive and negative and greater than the AC input peak voltage)?
I am using Micro-cap to do the simulation
I was just about to write that the circuit works fine: http://tinyurl.com/ustlnbx
But many thanks for doing so much out of it, and yes it looks to work fine in LTSpice.
I have tried to change the two Op-Amps to the same model as you used, but still with no luck.

I have not applied any supply voltage on the Op-amps, since there were not applied any on the original drawing. I tried to remove the supply Voltage on your LT-Spice document and that do remove all the function of the circuit.
The function should be a rectifier but if it already demands DC power, then do I need a PSU for that and then a PSU for that circuit, and so on:-)
Isn't it posibly to avoid supply Voltage?

I guess at this point it might be prudent to ask what you are trying to achieve?
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #10 on: January 02, 2020, 08:31:29 am »
No, the op amps need a power supply as shown in both of your original schematics.
A precision rectifier is used for signal processing, not as some part of a low loss power supply.

https://en.wikipedia.org/wiki/Precision_rectifier

And pay attention to input and output voltage swings.  Some op anps can't work within a couple of volts of the power supply rails.  Given +-9V supplies,  some opamps will only operate to +-7V on the inputs and outputs.  Rail-To-Rail opamps work a lot closer but don't assume rail-to-rail is anything more than a marketing term.
I believe you, my thought on using this method is that I have seen many examples where other have used it as a power rectifier and read articles where people have praised this method. But on nearly all of the schematics have there not been shown any supply pins, so maybe it's why it do work in some simulators?
Is there any way to avoid having to use supply? I have thought about using compactors instead and I have thought of an, properly stupid idea, letting some of the finished DC power, back to the Op-Amps supply?
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #11 on: January 02, 2020, 08:36:45 am »
Hi

I have, as I mostly do, searched and found some article and a schematic that should be great.
According to the article, this rectifier should be a wary precise full wave version with nearly no loss.
But when I simulate it, it do only rectify the positive AC and on top of that, do it deliver a -2.3V to 9.75V voltage.

Info: input 10V 50Hz

The circuit works works as expected in LTspice. (see attachment)
What kind of program are you using?
Did you set a proper supply voltage for the opamps (both positive and negative and greater than the AC input peak voltage)?
I am using Micro-cap to do the simulation
I was just about to write that the circuit works fine: http://tinyurl.com/ustlnbx
But many thanks for doing so much out of it, and yes it looks to work fine in LTSpice.
I have tried to change the two Op-Amps to the same model as you used, but still with no luck.

I have not applied any supply voltage on the Op-amps, since there were not applied any on the original drawing. I tried to remove the supply Voltage on your LT-Spice document and that do remove all the function of the circuit.
The function should be a rectifier but if it already demands DC power, then do I need a PSU for that and then a PSU for that circuit, and so on:-)
Isn't it posibly to avoid supply Voltage?

I guess at this point it might be prudent to ask what you are trying to achieve?
My end goal is to build a Optoisolator dimmer, it runs at 1.2V-1.4V at 0.1uA-50uA
I am thinking of using a simple three resistor current divider, where one resistor is a pot.
To save as much power as possible, do I want to eliminate as much voltage drop as possible.
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
Re: Strange behavior - simulated op-amp rectifier
« Reply #12 on: January 02, 2020, 09:17:46 am »
This circuit works as a precision signal rectifier, intended to e.g. measure AC voltages by converting them to DC voltages. It doesn't deliver any power, and requires an external supply to operate at all, indeed it uses more power from the external supply than it uses from the AC input. It's quite common to not show the supply pins in such schematics, they're just implied to be there and appropriately connected to an appropriate supply.

So it's not applicable for your purpose, for minimum voltage drop at low power, use schottky diodes as the rectifier.
Safety devices hinder evolution
 

Offline FriedMuleTopic starter

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: dk
  • Can make even the simplest task look imposible.
Re: Strange behavior - simulated op-amp rectifier
« Reply #13 on: January 02, 2020, 10:15:01 am »
This circuit works as a precision signal rectifier, intended to e.g. measure AC voltages by converting them to DC voltages. It doesn't deliver any power, and requires an external supply to operate at all, indeed it uses more power from the external supply than it uses from the AC input. It's quite common to not show the supply pins in such schematics, they're just implied to be there and appropriately connected to an appropriate supply.

So it's not applicable for your purpose, for minimum voltage drop at low power, use schottky diodes as the rectifier.
Okay thanks, just a small question, I have seen some use Mosfets with diodes or even schottky's, why do that?
Even if I appear online is it not necessary so, my computer is on 24/7 even if I am not on.
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
Re: Strange behavior - simulated op-amp rectifier
« Reply #14 on: January 02, 2020, 10:26:14 am »
This circuit works as a precision signal rectifier, intended to e.g. measure AC voltages by converting them to DC voltages. It doesn't deliver any power, and requires an external supply to operate at all, indeed it uses more power from the external supply than it uses from the AC input. It's quite common to not show the supply pins in such schematics, they're just implied to be there and appropriately connected to an appropriate supply.

So it's not applicable for your purpose, for minimum voltage drop at low power, use schottky diodes as the rectifier.
Okay thanks, just a small question, I have seen some use Mosfets with diodes or even schottky's, why do that?


This circuit is an "active diode" rectifier (the MOSFETs acting as low voltage drop diodes). It's useful when you need to conserve power in somewhat higher power applications. This means a few amperes of output current, and for this particular circuit input with an voltage range of 5...10V. For lower voltages, the MOSFETs won't turn on, and for higher voltages you'd need a special driver circuit.
Safety devices hinder evolution
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9964
  • Country: us
Re: Strange behavior - simulated op-amp rectifier
« Reply #15 on: January 02, 2020, 04:54:11 pm »

I believe you, my thought on using this method is that I have seen many examples where other have used it as a power rectifier and read articles where people have praised this method. But on nearly all of the schematics have there not been shown any supply pins, so maybe it's why it do work in some simulators?
Is there any way to avoid having to use supply? I have thought about using compactors instead and I have thought of an, properly stupid idea, letting some of the finished DC power, back to the Op-Amps supply?

It is common practice on op amp circuits to omit drawing the power supply wiring but the device almost always shows the pins and labels them something like VC1, VE1 or +9, -9  as shown in your two schematics.

How do you expect all those little transistors inside the op amp to work if they don't have power?

See the schematic about half way down:

https://en.wikipedia.org/wiki/Operational_amplifier
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: Strange behavior - simulated op-amp rectifier
« Reply #16 on: January 02, 2020, 08:35:53 pm »
This circuit works as a precision signal rectifier, intended to e.g. measure AC voltages by converting them to DC voltages. It doesn't deliver any power, and requires an external supply to operate at all, indeed it uses more power from the external supply than it uses from the AC input. It's quite common to not show the supply pins in such schematics, they're just implied to be there and appropriately connected to an appropriate supply.

So it's not applicable for your purpose, for minimum voltage drop at low power, use schottky diodes as the rectifier.
Okay thanks, just a small question, I have seen some use Mosfets with diodes or even schottky's, why do that?

The circuit you're looking for is an ideal diode. The easiest way to do it is to use an IC.
https://www.google.com/search?client=firefox-b-d&q=ideal+diode+controller+IC

The schematic you've posted with the MOSFETs, will not work with a capacitor on the output, so is only good for loads which don't require a smoothed power supply. It is also limited to peak AC voltages of no more than the gate-source voltage rating of the MOSFETs, which is typically around 20V.

There are ICs available to make a proper active bridge rectifier which will work with a capacitor load or some ideal diode controller ICs can be configured as a bridge rectifier.
https://www.nxp.com/docs/en/data-sheet/TEA2208T.pdf
http://www.ti.com/lit/ds/symlink/lm74670-q1.pdf
« Last Edit: January 02, 2020, 08:41:20 pm by Zero999 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf