Components / Integrated circuits / LM339 quad comparator

LM339 quad comparator

Four open-collector comparators.

FunctionQuad comparator
Supply voltage2 to 36 V
PackageDIP-14
Watch out forOutputs need pull-up resistors
Integrated CircuitsReviewedMPN LM339NUsed in 2 projects
LM339
In short

What is the LM339 quad comparator and what is it used for?

Four open-collector comparators. Makers use it for window comparators, level detectors.

How it works

Four comparators that switch their output transistor on when − is above +.

Key specifications

Integrated circuit specValue
FunctionQuad comparator
Supply voltage2 to 36 V
PackageDIP-14
Watch out forOutputs need pull-up resistors

Pinout

1Output 2
2Output 1
3VCC
4Input 1 −
5Input 1 +
6Input 2 −
7Input 2 +
8Input 3 −
9Input 3 +
10Input 4 −
11Input 4 +
12GND
13Output 4
14Output 3

How to use it

Open-collector outputs need a pull-up resistor (for example 10 kΩ) to your logic voltage, which can differ from the comparator's supply. Add hysteresis with positive feedback for noisy inputs.

Applications

Alternatives

Buy at

Common questions

What is the LM339 quad comparator used for?

In maker projects: window comparators, level detectors.

How does the LM339 quad comparator work?

Four comparators that switch their output transistor on when − is above +.

What voltage does the LM339 quad comparator need?

2 to 36 V.

What can I use instead of the LM339 quad comparator?

LM393 Comparator.