Skip to datasheet
Single differential voltage comparator

LM311 Basic Circuit

Build a basic LM311 circuit with labeled pins, component values and connection guidance.

Package view

LM311 in a circuit

Separate emitter return, reference divider and collector pull-up.

LM311P pin8 at5V,pin4 andemitter1ground. VIN1.5Vpin2,VREF2Vpin3from30k/20kdivider.Collector7has10kpull-up andhigh-impedance meter.Balance5andstrobe6open.100nFbypasses8and4.
Matching net labels are connected. Ground symbols share one return.

Connect it, step by step

Follow the component values and pin connections

Make the reference

30 kΩ over 20 kΩ gives 2 V from 5 V.

Connect the two returns

Ground pin 4 for power and pin 1 for the output transistor. Add 100 nF supply bypass.

Read the collector

Add 10 kΩ to +5 V at pin 7. VIN below 2 V gives LOW; above 2 V gives HIGH.

Component view