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.

Mengajar dengan rangkaian?

Buat kelas, beri siswa rangkaian untuk dirakit, dan periksa hasil kiriman mereka. Coba gratis dengan satu kelas dan hingga 5 siswa.

Coba demo kelas gratis

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
43 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