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