Build it step by step
0 of 6 doneBuild the three buttons
Each has a 10 kΩ to +5 V, the button to GND, and 100 nF to GND at the same node.
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.
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.
Enter a pattern
Hold DATA and press CLOCK for a 1, press CLOCK alone for a 0. Do this eight times.
Latch
Press LATCH and the pattern appears on the LEDs.
Chain a second register
Connect pin 9 (QH') of the first to pin 14 of the second and share the clocks.
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
- Integrated CircuitsBuy
- SwitchesBuy
- Integrated CircuitsBuy
- PassivesBuyResistor 10 kΩ × 3
- PassivesBuy
- SemiconductorsBuyLED 5 mm red × 8
- PassivesBuyResistor 330 Ω × 8
- PowerBuy
- PowerBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Each of three buttons | Node to GND, 10 kΩ from +5 V to the node, 100 nF from node to GND | Debounced by RC |
| DATA node | 74HC14 pin 1; output pin 2 | Goes high while DATA is pressed |
| CLOCK node | 74HC14 pin 3; output pin 4 | Rises on each press |
| LATCH node | 74HC14 pin 5; output pin 6 | Rises on each press |
| 74HC14 pin 2 | 74HC595 pin 14 (SER) | Serial data |
| 74HC14 pin 4 | 74HC595 pin 11 (SRCLK) | Shift clock |
| 74HC14 pin 6 | 74HC595 pin 12 (RCLK) | Latch clock |
| 74HC595 pin 10 (SRCLR) | +5 V | Never cleared |
| 74HC595 pin 13 (OE) | GND | Outputs always enabled |
| 74HC595 QA to QH (pin 15, 1, 2, 3, 4, 5, 6, 7) | 330 Ω then LED to GND | Eight LEDs |
| 74HC14 unused inputs (9, 11, 13) | GND | Tie 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.
| Check | Expected |
|---|---|
| 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 |
| Clock without latching | The 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 →
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.
