Lab

LM393 Comparator with Pull-Up Resistor and LED

An LM393 compares a 0.5 V to 4.5 V sine with a 3 V reference. With a 10 kΩ pull-up, OUT1 is 5.0 V while the sine is above 3 V, and 0.21 V with the LED lit…

Preview of LM393 Comparator with Pull-Up Resistor and LED
Open in the lab Embed Run the circuit right here. To edit it in the full lab, sign in; free accounts have a time limit there.

Teaching with circuits?

Create a classroom, give your students a circuit to build, and review what they submit. Try it free with one classroom and up to 5 students.

Try the free classroom demo

How it works

What this circuit does

The LM393 holds two comparators. Comparator 1 compares IN1+ with IN1-: when IN1+ is below IN1- its output pulls down to ground, and when IN1+ is above it lets go. The output can only pull down, so a 10 kΩ pull-up resistor to +5 V makes it go high.

A red LED with 1 kΩ runs from +5 V to OUT1, so it lights while OUT1 is low.

How it is wired

Pins down the left side, then up the right side, as the lab draws them:

Pin 1, OUT1: to the 10 kΩ pull-up (to +5 V) and to the LED cathode; the LED anode goes through 1 kΩ to +5 V.

Pin 2, IN1-: to a 3 V terminal, the reference (on a real board, two resistors from 5 V).

Pin 3, IN1+: to the sine source (2 V peak on a 2.5 V offset, 1 kHz); the source's other side goes to ground.

Pin 4, GND: to the ground part.

Pins 5 to 7, the second comparator (IN2+, IN2-, OUT2): not used.

Pin 8, VCC: to the +5 V terminal.

What the chart shows

What's inside

  • 2× Battery
  • 1× Power Source
  • 2× Resistor (10 kΩ, 1 kΩ)
  • 1× LED
  • 1× LM393

Tags

About

By Samir Sabri
Saved November 16, 2026
7 views
Page: dcaclab.com/circuits/88007-lm393-comparator-with-pull-up-resistor-and-led

Embed this circuit

<iframe src="https://dcaclab.com/experiments/88007-lm393-comparator-with-pull-up-resistor-and-led/iframe" width="560" height="410" frameborder="0"></iframe>

Cite: Sabri, S. (2026). LM393 Comparator with Pull-Up Resistor and LED. DCACLab. https://dcaclab.com/circuits/88007-lm393-comparator-with-pull-up-resistor-and-led

Related circuits