Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Comparator circuit misbehaviour

Status
Not open for further replies.

Murugesh_89

Full Member level 5
Full Member level 5
Joined
Nov 23, 2012
Messages
266
Helped
7
Reputation
12
Reaction score
6
Trophy points
1,298
Location
India
Visit site
Activity points
3,267
Hi,
the comparator circuit i am using is given below..

Comparator circuit.JPG

When the non inverting point is at 3.3V and inverting point is at 8.5V i was expecting a 0V at the output where as i got it as 5.3V.

What is the problem with this simple comparator circuit using LM358?

Thanks,
Murugesh
 

The opamp has such a high gain that when the circuit is built on a breadboard then it oscillates. When oscillating, its output is switching high and low at a high frequency. Your multimeter is measuring the average DC output voltage which is near half the supply voltage.

Usually, a comparator circuit has hysteresis (a little positive feedback) so that the output can switch quickly then latch.
 

First of all you must use an oscilloscope to see if the circuit is oscillating.

The datasheet for the LM339 quad comparator and the LM393 dual comparator ICs talk about adding a little hysteresis (positive feedback)so that the output can switch quickly then latch to prevent oscillation.

Hysteresis can be added to your circuit by adding a 1k resistor in series with the input pin 3 and adding a 100k resistor from the output pin 1 to the input pin 3.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top