Lab

7-Segment Display: Draw Any Digit with 8 Switches

A common cathode 7-segment display on 5 V with a 220 Ω resistor and a switch per segment. It opens on 8.; flip the switches to draw any digit.

Preview of 7-Segment Display: Draw Any Digit with 8 Switches
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.

Learn to use a multimeter, with circuits you can measure

How a 7-segment display works, with circuits you can try

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

A common cathode 7-segment display on a 5 V battery. Every segment (a to g and the dot, dp) has its own 220 Ω resistor and its own switch, labelled with the segment it lights. It opens with all eight on, showing 8.

Flip the switches to draw a digit: b and c make 1, a, b, d, e and g make 2. The ammeter on COM carries the total: each lit segment adds about 15.4 mA in the lab's offline engine (12.2 mA with NGSpice), so 8. reads about 123 mA (98 mA with NGSpice).

More on pinouts, common anode and the truth table: 7-segment display, explained with live circuits.

What's inside

  • 1× Battery (5 V)
  • 8× Resistor (220 Ω)
  • 8× Switch
  • 1× 7-Segment Display
  • Measured with Voltmeter/Ammeter

Tags

About

By Samir Sabri
Saved December 01, 2026
37 views
Page: dcaclab.com/circuits/88272-7-segment-display-draw-any-digit-with-8-switches

Embed this circuit

<iframe src="https://dcaclab.com/experiments/88272-7-segment-display-draw-any-digit-with-8-switches/iframe" width="560" height="410" frameborder="0"></iframe>

Cite: Sabri, S. (2026). 7-Segment Display: Draw Any Digit with 8 Switches. DCACLab. https://dcaclab.com/circuits/88272-7-segment-display-draw-any-digit-with-8-switches

Related circuits