Comparator with flexible output drive
The Texas Instruments LM311DRG4 is a general-purpose comparator that accepts a single supply from 3.5 V to 30 V or dual supplies from ±1.75 V to ±15 V, making it adaptable to 5 V logic rails, 12 V industrial buses, and 24 V control loops without a separate regulator. Its output stage can be configured as MOS, open-collector, open-emitter, or TTL, which lets the comparator drive logic inputs, relay coils, or optocouplers directly, depending on the pull-up or pull-down scheme chosen.
Quiescent current is 7.5 mA max, which is moderate for a comparator running from a 30 V rail; the thermal budget in the 8-SOIC package is adequate for indoor use but not for high-density boards with limited airflow.