

The LM393 is a dual comparator integrated circuit (IC) designed to compare two input voltages and output a digital signal based on the comparison. It features two independent voltage comparators in a single package, making it versatile and efficient for a wide range of applications. The LM393 operates with a wide supply voltage range and is known for its low power consumption.








The LM393 is a robust and reliable component with the following key technical details:
| Parameter | Value |
|---|---|
| Supply Voltage (Vcc) | 2V to 36V |
| Input Offset Voltage | ±5mV (typical) |
| Input Bias Current | 25nA (typical) |
| Output Current (Sink) | 16mA (maximum) |
| Response Time | 1.3µs (typical, for 5mV overdrive) |
| Operating Temperature Range | -40°C to +85°C |
| Package Types | DIP-8, SOIC-8, TSSOP-8 |
The LM393 is typically available in an 8-pin package. Below is the pinout and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Output 1 | Output of comparator 1 |
| 2 | Inverting Input 1 | Inverting input of comparator 1 |
| 3 | Non-Inverting Input 1 | Non-inverting input of comparator 1 |
| 4 | GND | Ground (0V reference) |
| 5 | Non-Inverting Input 2 | Non-inverting input of comparator 2 |
| 6 | Inverting Input 2 | Inverting input of comparator 2 |
| 7 | Output 2 | Output of comparator 2 |
| 8 | Vcc | Positive power supply |
The LM393 is straightforward to use in a circuit. Below are the steps and considerations for its proper usage:
The LM393 can be used with an Arduino UNO for voltage level detection. Below is an example circuit and code:
// LM393 Comparator Example with Arduino UNO
// This code reads the output of the LM393 and turns on an LED if the monitored
// voltage exceeds the reference voltage.
const int lm393OutputPin = 2; // LM393 output connected to digital pin 2
const int ledPin = 13; // Onboard LED pin
void setup() {
pinMode(lm393OutputPin, INPUT); // Set LM393 output pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
int comparatorState = digitalRead(lm393OutputPin); // Read LM393 output
if (comparatorState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on LED if output is HIGH
} else {
digitalWrite(ledPin, LOW); // Turn off LED if output is LOW
}
}
No Output Signal:
Output Oscillations:
Slow Response Time:
Overheating:
Q: Can the LM393 be used for AC signal comparison?
A: Yes, the LM393 can compare AC signals, but you may need to bias the inputs appropriately to keep the signals within the input voltage range.
Q: What is the purpose of the pull-up resistor on the output?
A: The LM393 has an open-collector output, which requires a pull-up resistor to define the output voltage level when the output transistor is off.
Q: Can I use the LM393 with a single power supply?
A: Yes, the LM393 is designed to operate with a single supply voltage. Ensure the input signals are within the common-mode voltage range.
This concludes the LM393 documentation.