Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Simple Precision Rectifier Circuit -- Stumped

Status
Not open for further replies.

MiniMax

New Member
Alright, basically, I've built the following precision rectifier circuit but I can't discern the problem at all.

I've attached the schematic, input signal and output signal. Of course, the output should be a typical half wave rectifier but I just can't work out why the output is like that, I must be missing something obvious.

(I've taken this oppurtunity to draw my first schematic onto a computer to try and get the hang of it :p.) If I've missed anything, please let me know.


Cheers.
 

Attachments

  • rect-sche.png
    rect-sche.png
    2.5 KB · Views: 1,405
  • rect-in.png
    rect-in.png
    5.8 KB · Views: 605
  • rect-out.png
    rect-out.png
    5.1 KB · Views: 598
hi, :)

Is the input signal sinewave swinging below 0V.?
 
Hey, if I've got the definition of 'swing' correct (was never given a direct definition), yes it does swing below 0V.
 
The circuit as drawn has a mono-polar supply (ie 0 and 9v).
To work correctly with a sinewave which is symetrical about 0v I suggest that it needs a bi-polar supply. (ie +9v and -9v).

JimB
 
I have since realised that due to the op-amp being single-power supply, I need Vcc+/2 at the non-inverting input. I've built that so 4.5V now enters the non-inverting input, but now I get the attached output waveform.

I'm really not sure what is wrong here.
 

Attachments

  • rect-out2.png
    rect-out2.png
    7.2 KB · Views: 557
The circuit as drawn has a mono-polar supply (ie 0 and 9v).
To work correctly with a sinewave which is symetrical about 0v I suggest that it needs a bi-polar supply. (ie +9v and -9v).

JimB

So even with a single supply op-amp and Vcc/2 as the non-inverting input, it still doesnt work with a sine wave that swings below 0V?
 
So even with a single supply op-amp and Vcc/2 as the non-inverting input, it still doesnt work with a sine wave that swings below 0V?
hi,
Is the signal coupled via a capacitor to the input.?

Also try not to drive the LM234 outside its linear region, turn the inp signal down.

EDIT: repost the modified circuit.

EDIT: added a dwg clip from the datasheet.
 

Attachments

  • esp01 Jul. 31.gif
    esp01 Jul. 31.gif
    23 KB · Views: 842
Last edited:
Do it like this:
 

Attachments

  • half-wave active rectifiers.PNG
    half-wave active rectifiers.PNG
    22 KB · Views: 1,555
Okay, I cobbled together a dual 9V supply and nicked a dual supply op-amp from a previous project and it appears to have done the trick.

I'm now just trying to get rid of that offset of 0.22v. I think it's to do with that my +ve rail is 9.24v wheras -ve rail is at 9.02v. Coupling caps on the input and output have no effect.


Blue and yellow lines are the original input wave range and the red line in the middle being 0v.
 

Attachments

  • rect-sche2.png
    rect-sche2.png
    2.5 KB · Views: 510
  • rect-out3.png
    rect-out3.png
    7.2 KB · Views: 450
Okay, I cobbled together a dual 9V supply and nicked a dual supply op-amp from a previous project and it appears to have done the trick.

I'm now just trying to get rid of that offset of 0.22v. I think it's to do with that my +ve rail is 9.24v wheras -ve rail is at 9.02v. Coupling caps on the input and output have no effect.


Blue and yellow lines are the original input wave range and the red line in the middle being 0v.


hi,
Where is the negative half cycle, I thought it was a fullwave prec rectifier.
 
The load or scope should be connected to the output and to 0V, not to a negative voltage.
The bottom of the trace should be at 0V and the top should be the -4V inverted to +4V. Yours has the bottom too low at about -1.3V and the top is too low at +3V.

Any opamp can be used, even a single supply LM324 in tha latest circuit.
The gain is 1 so the output will have an offset voltage the same low amount as the opamp, 6mV max. I don't see an offset voltage of 0.22V.

I think the trace is in the wrong position because your 'scope is not DC-coupled but is actually an AC-coupled sound-card 'scope??
 
Okay, I cobbled together a dual 9V supply and nicked a dual supply op-amp from a previous project and it appears to have done the trick.

I'm now just trying to get rid of that offset of 0.22v. I think it's to do with that my +ve rail is 9.24v wheras -ve rail is at 9.02v. Coupling caps on the input and output have no effect.

Blue and yellow lines are the original input wave range and the red line in the middle being 0v.

I agree with audioguru that the signal looks like it is AC coupled.

The only other problem you have with that circuit is that the output impedance depends a lot on whether the output is +ve or 0 V. When the output is +ve, the op-amp feedback makes the output impedance effectively zero. However, when the output is 0V, the output impedance is 10 kΩ. If there is capacitance on the output it will not be pulled down effectively by the output when it is at 0 V.
 
Nah, said in the first post it's a half wave rectifier.


hi,
From the text I thought you were looking for a FW rect.? No problem.:)

This link may prove helpful.

**broken link removed**
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top