precision rectifier

MNA

Apr 9, 2006
204
Joined
Apr 9, 2006
Messages
204
Hello everyone,
please, see the attached figure1....
it is a full wave precision rectifier..... the opamps i m using is LM324.... all the resistors are 330 ohms .... i found it in an article..... calculations went fine but when i m checking it's output on oscilloscope,giving a 5 volt peak to peak sine wave input, the oscilloscope is displaying a waveform like figure 2.... 
please tell me what might be the problem? ......
Thanx for any help
MNA

 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
Should work. Re-check all your wiring for a possible mistake

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
The LM324 is about the slowest opamp ever made a long time ago.
The 1N4002 diodes are also very slow.
The 330 ohm resistors have a very low value.
The opamps are not biased.

I have used a similar circuit with pretty fast opamps and diodes.
Its resistors have a reasonable value.
The opamps are biased at half the supply voltage but a negative supply could be added if you want the opamp outputs to go to 0V.

 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
Simulation also show no obvious problems using the part values in his diagram.

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
AN920 said:
Simulation also show no obvious problems using the part values in his diagram.
The output minimum sink current of an LM324 is only 10mA which is only 6.6V across the 330 ohm feedback resistor. The simulator uses the typical current value of 20mA.

With a very low input frequency that the old LM324 can handle and a very low source impedance, I think the output will not be symmetrical:
 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
His 5V p-p signal should not cause any problems at this minimum current spec.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
There is no need for resistors with such low values.
Don't you think the humps on the original circuit will have different levels as I showed?

I re-drew my circuit and used a dual-polarity supply. Its humps will be at equal levels up to a fairly high frequency.

 

MNA

Apr 9, 2006
204
Joined
Apr 9, 2006
Messages
204
audioguru said:
The output minimum sink current of an LM324 is only 10mA which is only 6.6V across the 330 ohm feedback resistor. The simulator uses the typical current value of 20mA.

With a very low input frequency that the old LM324 can handle and a very low source impedance, I think the output will not be symmetrical:
Audioguru, my calculations resulted symmetrical (see the fig).... m i doing wrong?
 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
Start a process of fault finding. You can't just rely on the calculations.

Check circuit connections.
Increase  the resistance values to see any improvement.
Change the opamp or use another type.
Make sure your AC signal you feeding in does not have any DC offset. This will cause what you are seeing. This can happen when you are using a function generator with the offset control not zero.

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
A diode conducts in only one direction with a voltage drop of about 0.7V.
You shouldn't do calculations with "ideal" diodes.

 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
I think that his problem is due to resistor tolerances. Doing the math on his circuit shows that using 1% resistors the peaks can differ by as much as 10%

One of the resistances (R3) should be made variable to adjust for proper balance.

Using 5% resistors, peaks can differ by 50%

 
Last edited by a moderator:

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
I constructed his circuit and made R3 variable and obtained good results. I also modified the circuit as shown and waveforms looked good up to 1kHz+

Results agreed very much with the simulations.

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi AN920,
your circuit works because it is very different from the original circuit and is very similar to mine.
I think it will measure like this:

 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
I tested his circuit as well. Worked well after R3 was adjusted for balance.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Then there are many ways to make a precision full-wave rectifier circuit.

 

AN920

May 15, 2005
359
Joined
May 15, 2005
Messages
359
Yes I have seen a few variations on this circuit function!

 
Last edited by a moderator:

MNA

Apr 9, 2006
204
Joined
Apr 9, 2006
Messages
204
AN920 said:
Start a process of fault finding. You can't just rely on the calculations.

Check circuit connections.
Increase  the resistance values to see any improvement.
Change the opamp or use another type.
Make sure your AC signal you feeding in does not have any DC offset. This will cause what you are seeing. This can happen when you are using a function generator with the offset control not zero.
Thanx AN920 and audioguru for yr suggestions....
I checked the input AC signal from the function generator. the DC offset was zero.... so i gave the input to the circuit and it still gave me the same output.... i again disconnected the input and checked the input again, it was then giving some DC offset aroung 0.7-1V..... I balanced the offset with the offset knob, then the output of the rectifier was good..... but after sometime without doing any changes to the input it again showed some DC..... so is there something wrong with the function generator since it's offset is varying from time to time?.......

A diode conducts in only one direction with a voltage drop of about 0.7V.
You shouldn't do calculations with "ideal" diodes.
still the output at pin 7 will be 2 volts.....  R4//(R3+R5) isn't it?

Thanx

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Your have extremely low resistor values. Then the output impedance of your signal generator must also be extremely low.

Your generator's output impedance might be 600 ohms so replace all the 330 ohm resistors with 10k.

 

MNA

Apr 9, 2006
204
Joined
Apr 9, 2006
Messages
204
the generator's output impedance is 50 ohms..... changing the resistance values  on the simulator doesn't result in those waveforms which i m getting from the output of the rectifier..... but giving a 1 V dc offset inthe simulation do result intaht waveform..... so it's infact the dc offset which is causing problems.... but why the function generator is changing the dc offset from time to time...i couldn't figure out......

 
Top