Home
LogicRoo / Combinational Gates / 7-Segment Display Circuit — driving a digit with a CD4511 | Logicroo

7-Segment Display Circuit — driving a digit with a CD4511 | Logicroo

Build a BCD-to-7-segment display circuit with a CD4511 driver IC. Pinout, parts list, breadboard steps, and an interactive digit you can drive yourself.

Digital electronics · 1 driver IC

Feed it four bits,
get one digit.

The CD4511 takes a 4-bit binary number and lights up exactly the segments needed to show it as a decimal digit — no code, no microcontroller, just logic gates.

4Input bits
7Output segments
0–9Digits shown
CD4511Driver IC
Click D0–D3 to drive it, or flip the view to watch the circuit itself →
SCH-02 · CD4511_DECODER
latch open
⇄ Show circuit diagram
Binary0000 Decimal0
+V GND D3 D2 D1 D0 10kΩ pull-downs CD4511 IC1 VDD GND a b c d e f g 1kΩ ×7 drives the display common cathode DISP1
Binary0000 Decimal0
D30
D20
D10
D00
LT · lamp test
BL · blank
LE · latch

Toggle D0–D3 to set a BCD value · hold LT or BL to test · flip the view above to see it as a circuit


Parts bin

What you need

One driver chip does all the decoding — the rest is current-limiting and a clean way to feed it a number.

×1 CD4511 — BCD to 7-segment driver IC IC1
×1 7-Segment Display, common cathode DISP
×7 1 kΩ Resistor — segment current limit R1–R7
×4 10 kΩ Resistor — input pull-down R8–R11
×4 Pushbutton — BCD input bits D0–D3
×1 Breadboard BASE
×— Jumper Wires BASE
×1 5V Supply (3–15V accepted) PWR

Reference

CD4511 pin overview

Sixteen pins, four jobs: take power, take a number, decide what to show, and hold it there if asked.

PinNumberTypeWhat it does
VDD 16 Power Supply voltage, +3V to +15V
GND 8 Power Ground, 0V
D0–D3 7, 1, 2, 6 Input 4-bit BCD data input
a–g 9–15 Output One output per display segment
LT 3 Input Lamp test — LOW lights every segment
BL 4 Input Blank — LOW forces every segment off
LE 5 Input Latch enable — HIGH freezes the display

Operating principle

How four bits become one digit

It's a lookup, wired directly in logic gates instead of software. Flip to the circuit view above and toggle D0–D3 to watch it happen live.

01

Press buttons on D0–D3 to set a 4-bit binary value.

02

The CD4511 latches that value and decodes it internally.

03

The matching output pins swing HIGH; the rest stay LOW.

04

Current flows through the resistors and lights the matching digit.

Inside the CD4511, each of the four input pins feeds a small memory cell called a D latch. Whatever binary value sits on D0–D3 gets held there the instant it arrives.

A block of logic gates then reads all four latched bits at once and works out, for that specific combination, which of the seven segments need to be on to draw the matching digit — this is the "BCD to 7-segment" conversion the chip is named for.

Because the mapping is fixed in hardware, there's no counting, no scanning, no code involved. Change the input and the correct segments switch on the same instant.

Three control pins worth knowing

LT (Lamp Test) — pull it LOW and every segment lights, regardless of the input. Good for confirming none have burned out.

BL (Blank) — pull it LOW and every segment turns off, regardless of the input. Useful for PWM brightness control.

LE (Latch Enable) — pull it HIGH and the chip freezes on whatever it's currently showing, ignoring further changes at D0–D3 until it goes LOW again.


Assembly

Building it on a breadboard

Five steps — the same footprint works for a single digit or, later, one stage of a multi-digit counter.

Seat the CD4511

Straddle the chip across the centre gap of the breadboard, notch to the left, so pins 1–8 and 9–16 land in separate rows.

Wire power and the control pins

VDD (16) to the positive rail, GND (8) to the negative rail. For ordinary counting, tie LT and BL straight to VDD and LE straight to GND — that keeps the chip in normal, live-decoding mode.

Add the four BCD buttons

Each of D0–D3 gets its own pushbutton to +V and its own 10 kΩ resistor down to GND. The resistor keeps the pin reading a clean LOW until the button is actually pressed.

Wire the display

Run outputs a through g to the matching segment pins on the display, each through its own 1 kΩ resistor. Tie the display's common cathode pin to GND.

Power up and count

Press combinations of the four buttons to step through 0000–1001 and watch the digit change. Anything from 1010 upward isn't a valid decimal digit, so the display simply blanks.


If it misbehaves

Wrong digit, no digit, or every segment lit

Almost always one of the three control pins, or one swapped wire.