Arduino Circuits

Displaying Digits on a Seven-Segment Display

Show digits on a seven-segment display and learn which segments must light for each number.

22 November 20265 min read
Seven-segment display with series resistors and a decimal point LED connected to a control board on a breadboard
Breadboard layout, components and jumper connections of the Seven-Segment Display circuit.

Interactive circuit guide

Run the simulation, follow the build steps one by one and try it in our real app.

Real screenshot of our circuit simulator Stopped
Open in our app →

Step-by-step build

What is it for?

In this circuit you connect a seven-segment display to a control board and show digits. The display forms a number by lighting a suitable combination of seven separate light segments, and a small decimal point LED is added as well. Every display segment is driven through its own series resistor and the common terminal goes to ground. You learn how segment coding works and which segments must be lit to form a digit. On the breadboard the display is on the right and the driving resistors on the left. Wires are separated by tidy colours and the ground rail collects at one point. This is the basis of digital display design and segment coding; the same method is used from counters to measuring instruments.

Parts list

The following components are used to build this project:

  • Control board × 1 — Produces the segment patterns.
  • Seven-segment display × 1 — Shows digits with seven segments.
  • Red LED × 1 — Acts as the decimal point.
  • 220 Ω resistor × 2 — Limits segment and decimal point LED currents.
  • Jumper wire × 7 — Makes the data and ground connections.
  • Ground (GND) × 1 — Common reference point.

Build it step by step

  1. Place the display and the decimal point LED on the breadboard.Tip: read the display pin order in the layout notes.
  2. Connect the segment data line to board pin 1 through a 220 Ω resistor.Tip: the resistor protects the segment LEDs.
  3. Connect the display common terminal to ground.Tip: the common terminal is the return path for lit segments.
  4. Connect the decimal point LED with its own resistor to board pin 2.Tip: the long LED leg goes to the signal, the short leg to ground.
  5. Connect the LED cathode to the same ground rail.Tip: both loads share one ground point.
  6. Connect the ground rail to the board GND pin and try digit patterns.Tip: every digit uses a different segment combination.

How it works

A seven-segment display consists of seven independent LED segments. The requested digit is formed by lighting a specific subset of them; for example, the digit eight lights all seven. The control board produces the correct segment pattern for each digit and sends it over the data line. Series resistors limit the current through the segments and protect the LEDs. When the common terminal is connected to ground, the segment given a signal conducts and emits light. The decimal point LED works on the same principle from a separate pin. Segment coding is one of the oldest and most common ways to turn digital information into a human-readable form.

What you learn

  • Explains the logic of seven-segment coding.
  • Knows why every LED load needs a series resistor.
  • Recognises the role of the common terminal connection.
  • Matches a digit to its segment pattern.

Tips

  • If the wrong digit appears, check the segment pattern from the start.
  • If the common terminal is disconnected no segment lights.
  • If segments are too dim, review the resistor value.

Try it yourself

  • Show a digit: Display a chosen digit with the correct segments. The display shows the selected number with the right segments.
  • Light the decimal point: Turn on the decimal point separately from the digit. The decimal point appears independently of the digit.

Getting the parts

If you want to build this project in real life, you can get the parts from hobidevre.com.

Frequently asked questions

What is this circuit for?

It shows digits on a seven-segment display and teaches which segments form each number.

How does the circuit work?

The board sends a segment pattern for each digit over the data line; series resistors protect the segments and the common terminal provides the return path. The decimal point uses a separate LED and pin.

What is the expected result?

The chosen digit appears with the correct segments and the decimal point lights independently.

You may also like