Page 1 of 1

How to connect correctly using IC LM311 voltage comparator

PostPosted: Tue Apr 02, 2013 11:27 pm
by arrave_electro
Salam and Hello everyone,

I have problem in getting the right output from LM311 (voltage comparator). Supposely I want to compare 2 diffrent voltage. To clarify my problem below is my connection :

Pin1 : connect to ground
Pin2: V+ connect to +5V.
Pin3: V- Connect to infrared sensor that had already gone through the voltage divider.The voltage will be vary from +0.6V to +10V
Pin4: connect to GND
Pin 5 : Short together with Pin6.
Pin6: Short together with Pin5.
Pin7: Output Pin Connect to 10kOhms through +5V (since someone said to me that it is open collector, so need to connect to resistor 10kOhm and then +5V).
Pin8: Connect to +5V.

I need TTL output go high (+5V ) and low (0V) with the variation value of V-(pin3). But the IC seems to fail to produce the output as I needed. Can U all share your opinion on how to solve this matter. Already spent more than 10 hours to solve this problem but unfortunately still failed.

regards,
Ariff

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Thu Apr 04, 2013 8:48 am
by ABSF
arrave_electro WROTE:I need TTL output go high (+5V ) and low (0V) with the variation value of V-(pin3). But the IC seems to fail to produce the output as I needed. Can U all share your opinion on how to solve this matter. Already spent more than 10 hours to solve this problem but unfortunately still failed.


What ouputs are you getting when the input is 0.6V and 10V, and when they are varying?

the IC seems to fail to produce the output as I needed
carries very little information and make people guess what you mean by that....

Allen

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Fri Apr 05, 2013 3:20 pm
by arrave_electro
Dear Allen,

The output of IC LM311 always go high eventhough the input fed to Pin3 vary from 0.6V to 10V.

What I need is :
Suppose when V+ > V-, the output of IC LM311 will goes high (+5V).
While when V- > V+ , the output of IC LM311 will goes low (0V).

So is my connection is correct?

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Sat Apr 06, 2013 8:04 pm
by ABSF
I simulated in proteus and it works. But you're not going to get 0V when V- > V+ due to high input offset voltage.

LM311 comparator.PNG


But if the circuit doesnt work in the real hardware. You might use voltage divider to reduce the input voltage by half so that 0.6-10V becomes 0.3 to 5V. The reference at V+ have to be changed to 2.5V and see if it works.

Allen

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Sun Apr 07, 2013 1:08 pm
by arrave_electro
Dear Allen,

Will try your recommendation. If anything i will post it again.
Thx

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Mon Apr 08, 2013 1:43 pm
by arrave_electro
Dear Allen,

Your method is working. Thank you

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Mon Nov 25, 2013 12:32 am
by Adamzxtan

Re: How to connect correctly using IC LM311 voltage comparat

PostPosted: Mon Nov 25, 2013 12:32 am
by Adamzxtan