Projects / Shift register LED bar

Shift register LED bar

Beginner1 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. Build the three buttons

    Each has a 10 kΩ to +5 V, the button to GND, and 100 nF to GND at the same node.

  2. 74HC14

    Add the Schmitt gates

    Each node goes to a 74HC14 input, so the output goes high while the button is pressed and the edge is clean.

  3. 14.3 mA

    Wire the 595

    Pins 14, 11 and 12 from the three gates, pin 10 to +5 V, pin 13 to GND and eight LEDs on the outputs.

  4. Enter a pattern

    Hold DATA and press CLOCK for a 1, press CLOCK alone for a 0. Do this eight times.

  5. 14.3 mA

    Latch

    Press LATCH and the pattern appears on the LEDs.

  6. 74HC595

    Chain a second register

    Connect pin 9 (QH') of the first to pin 14 of the second and share the clocks.

In short

How do you build a shift register LED bar?

Clock bits into a 74HC595 by hand with buttons, then latch them to eight LEDs. You need 74HC595 Shift Register, Tactile push button 6 mm × 3, 74HC14 hex Schmitt-trigger inverter, Resistor 10 kΩ × 3, Ceramic Capacitor 100 nF × 3, LED 5 mm red × 8, Resistor 330 Ω × 8, Breadboard power supply module (MB102), 12 V 2 A DC adapter, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 6 steps and about 60 minutes.

Level
Beginner
Time
About 60 min
Parts
11

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Each of three buttonsNode to GND, 10 kΩ from +5 V to the node, 100 nF from node to GNDDebounced by RC
DATA node74HC14 pin 1; output pin 2Goes high while DATA is pressed
CLOCK node74HC14 pin 3; output pin 4Rises on each press
LATCH node74HC14 pin 5; output pin 6Rises on each press
74HC14 pin 274HC595 pin 14 (SER)Serial data
74HC14 pin 474HC595 pin 11 (SRCLK)Shift clock
74HC14 pin 674HC595 pin 12 (RCLK)Latch clock
74HC595 pin 10 (SRCLR)+5 VNever cleared
74HC595 pin 13 (OE)GNDOutputs always enabled
74HC595 QA to QH (pin 15, 1, 2, 3, 4, 5, 6, 7)330 Ω then LED to GNDEight LEDs
74HC14 unused inputs (9, 11, 13)GNDTie off

No code needed

No code. Power: a breadboard power supply module (MB102) from the 12 V adapter, with its jumper set to 5 V. Connect +5 V to pin 16 of the 74HC595 and pin 14 of the 74HC14, and ground to pin 8 of the 74HC595 and pin 7 of the 74HC14.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Eight clocks with DATA heldAfter LATCH all eight LEDs are lit
Eight clocks without DATAAfter LATCH all LEDs are off
Alternate DATAAfter LATCH an alternating pattern appears
Clock without latchingThe LEDs do not change until LATCH

If it does not work

Extra bits shift in

A button bounces. Check each 100 nF and 10 kΩ and the 74HC14 pin numbers.

LEDs show a random pattern at power up

This is normal, the 595 powers up undefined. Shift in eight bits and latch.

Some LEDs never light

Check the LED direction and the 330 Ω resistor on that output.

Pattern is reversed

The first bit you clock in ends up at QH. That is the nature of a shift register.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the shift register LED bar?

74HC595 Shift Register, Tactile push button 6 mm × 3, 74HC14 hex Schmitt-trigger inverter, Resistor 10 kΩ × 3, Ceramic Capacitor 100 nF × 3, LED 5 mm red × 8, Resistor 330 Ω × 8, Breadboard power supply module (MB102), 12 V 2 A DC adapter, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the shift register LED bar take to build?

About 60 minutes for a beginner maker, in 6 steps.

How do I know the shift register LED bar works?

Eight clocks with DATA held: After LATCH all eight LEDs are lit. Eight clocks without DATA: After LATCH all LEDs are off. Alternate DATA: After LATCH an alternating pattern appears.

Extra bits shift in: what should I check?

A button bounces. Check each 100 nF and 10 kΩ and the 74HC14 pin numbers.

LEDs show a random pattern at power up: what should I check?

This is normal, the 595 powers up undefined. Shift in eight bits and latch.

Some LEDs never light: what should I check?

Check the LED direction and the 330 Ω resistor on that output.

Pattern is reversed: what should I check?

The first bit you clock in ends up at QH. That is the nature of a shift register.