# Op-Amp comparator output not reaching 0V

I am using a UA741CP opamp IC as a simple opamp voltage comparator.

I initially supplied it with 5V and tested the circuit as shown but even though I give voltage less than inverting input to non-inverting input I am getting 1.8 V or near not 0 V as output.

I hope someone knows the answer.

Regards,

• Try read this e2e.ti.com/blogs_/archives/b/thesignal/archive/2012/05/08/… And next ty to read the um741 datasheet and find : Maximum peak output voltage swing.
– G36
Dec 21, 2019 at 12:49
• Thanks @G36 will go through it
– Mr.B
Dec 21, 2019 at 13:03
• You release that the original 741 design was done in 1967. So that is now more than half a century old. There have been some improvements but it is still a rather old-fashioned design. Dec 21, 2019 at 13:14
• Welcome to EE! Any complex thing can be understood through simpler analogous things. Here you can get some idea of the op-amp behavior by the help of simpler electric analogies. Think of the op-amp output as of a potentiometer; its slider is controlled by the input voltages.... but the slider cannot reach the ends... or small resistances are inserted in the ends. So the output voltage cannot reach the rails; it will be close to rails but will not completely reach them. That is why, the old 741 cannot "swing close to the supply rails, in either direction"... Dec 21, 2019 at 13:29
• Thanks for the easy to grasp perfect explanation @Circuitfantasist. I will keep this in mind
– Mr.B
Dec 21, 2019 at 13:31

This is expected behaviour from the ancient 741.

From the datasheet:

As you can see, the output voltage cannot reach the supply voltages

The thing of it is, that it isn't proportional to the supply voltage. The output can never get closer to the voltage rails than 1 or 2 volts.

Since you are working with a supply voltage of 5V, you have very little room for the voltage to change. The output will probably vary between something like 2V and 3V. Not really all that useful.

There are many reasons not to use the 741. I won't repeat them here, but pretty much every reason not to use the 741 applies in your case.

You should use a rail to rail opamp, or, since you need to buy a part anyway, just go ahead and get a comparator rated to work on a single 5V power supply.

The LM393 is a comparator rated to operate on 5V. It is commonly available -it is nearly as common as the 741.

• Thanks @JRE but is there any workaround for output to reach gnd potential of power supply. Thanks again
– Mr.B
Dec 21, 2019 at 13:10
• Nope. The 741 isn't made for the conditions you are trying to use it in. You'd end up building half a comparator with indivudual parts if you try to get that circuit to reach ground.
– JRE
Dec 21, 2019 at 13:13
• I even tried a pull down resistor on the output pin still it shows 1.8 V infact the voltage increased by 0.1 V what is the reason behind it?
– Mr.B
Dec 21, 2019 at 13:14
• Yeah. It is also expected that the output will be further from ground when you put more of a load on it. You see those two lines? One is for a load of 10k, the other is for a load of 2k. Drawing more current makes it worse.
– JRE
Dec 21, 2019 at 13:16
• Great,Thanks @JRE this made things clear to me. Regards, Mr.B
– Mr.B
Dec 21, 2019 at 13:17

You've got a couple of problems with your circuit.

The main one is that the '741 is not specified to operating with a V+ (Vcc) to V- (GND) voltage of only 5 volts. The data sheet from TI says +/-5 V min, under recommended operating conditions.

Then you have to look at what the output voltage swing is for the supplies you end up by using. The '741 was never intended to be used in an application that required the output to swing close to the supply rails, in either direction.

• Thanks @SteveSh, I am a newbie to this field I cant get you. can you explain with more detail so that I can understand
– Mr.B
Dec 21, 2019 at 13:02
• I would just rephrase that to "the main one is the '741". There are more products shipping where you could make a valid argument for a 12AX7 (vacuum tube) than products where LM741 would be acceptable, much less the best choice. It's just altogether obsolete. Dec 21, 2019 at 15:44