2 Timothy 1:7 (KJV)

7 For God hath not given us the spirit of fear; but of power, and of love, and of a sound mind.


74HC595 Shift Register Series Part 3 | Breadboard Build

In this part of the series, I build the 74HC595 shift register circuit on camera, one connection at a time. We’ll start with the two clock switches from Part 2, make room on the breadboard, and wire the shift register, two pushbuttons, and eight green LEDs.

Once the circuit is together, I’ll show you how to clear the register and enter an eight-bit number by hand. For the test, we’ll load 0000 0010, which is binary for 2. When we latch the result, only the second LED from the right should light.
Watch Video:


What You’ll Need

  • One 74HC595 shift register in a 16-pin DIP package

  • The two debounced clock switches and transistor interface from Part 2

  • Two normally open momentary pushbuttons for DATA and CLEAR

  • Two 10 kΩ resistors, one for each pushbutton

  • Eight LEDs and eight 2 kΩ resistors

  • One 0.1 µF ceramic capacitor, marked 104

  • A 5 V supply, breadboards, and jumper wires


1. Expand the Breadboard and Connect the Rails

Start at 2:11 in the video.

I start with the breadboard from Part 2. The SN7400N debounces the two switches, and the transistor stages provide the clock signals we’ll connect to the 74HC595.

I add another breadboard to make room for the eight LEDs. When you snap two breadboards together, the power rails still need jumper wires between them. With the supply off, I extend +5 V and ground to the sections that need both, then run a ground jumper to the rail I’ll use for the LED cathodes.

In my build, I use red jumpers for +5 V and green or brown jumpers for ground. Follow the rail markings and where each jumper actually goes when checking the wiring. Both the clock circuit and the shift register need the same ground reference.


2. Install the 74HC595 and Wire Its Power Pins

Start at 5:32 for chip placement and 7:15 for power wiring.

Place the 74HC595 across the center gap of the breadboard. The gap separates the two rows of pins so you can wire each side independently. Looking down at the chip with the notch at the top, pin 1 is at the upper left. Count down that side to pin 8, then up the other side from pin 9 to pin 16.

  • Connect pin 16 (VCC) to +5 V.

  • Connect pin 8 (GND) to ground.

  • Connect the 0.1 µF bypass capacitor across pins 16 and 8. Keep it close to the chip. The ceramic capacitor marked 104 can go in either direction.

  • Connect pin 13 (/OE) to ground. This is the active-low output enable. Grounding it enables the outputs so they can drive the LEDs.


3. Wire the CLEAR Pushbutton

Start at 10:40 in the video.

The CLEAR button connects to pin 10 (/SRCLR). Here’s how I wire it:

  1. Connect a 10 kΩ resistor between pin 10 and +5 V.

  2. Connect a normally open pushbutton between pin 10 and ground.

With the button released, the pull-up resistor holds pin 10 HIGH. When I press CLEAR, pin 10 goes LOW and sets all eight bits in the shift register to zero.

The LEDs display the bits held in the output latch. To show the cleared bits on the LEDs, I hold CLEAR and flip S2 from A to B. That copies all eight zeros to the outputs at once.


4. Wire the DATA Pushbutton

Start at 13:51 in the video.

The DATA button connects to pin 14 (SER), the serial data input.

  1. Connect a 10 kΩ resistor between pin 14 and ground.

  2. Connect a normally open pushbutton between pin 14 and +5 V.

When I hold DATA down, pin 14 is HIGH and the next bit will be a 1. When I release DATA, the resistor pulls pin 14 LOW and the next bit will be a 0. I set the button first, let it settle, and then flip the shift clock to load that bit.


5. Connect the Shift and Latch Clocks

Start at 15:55 in the video.

  • S1 goes to pin 11 (SRCLK). Connect the S1 transistor collector output from Part 2 to pin 11. Moving S1 from A to B shifts in the bit on DATA. Any bits already stored move one position toward QH.

  • S2 goes to pin 12 (RCLK). Connect the S2 transistor collector output from Part 2 to pin 12. Moving S2 from A to B copies all eight bits from the shift register to the output latch. That’s when the LED display updates.

Keep the existing collector pull-up resistors from Part 2. After an A-to-B move, return the switch to A so it’s ready for the next rising edge.


6. Install and Wire All Eight LEDs

Start at 18:22 for the LED installation and 21:44 for the output wiring.

Each output goes through its own 2 kΩ resistor to the anode of an LED. The cathode goes to the ground rail. I show the first connection, then repeat the same wiring for the other seven.

I put QA at the far right and QH at the far left. That gives us the same order as a written binary number, with the least significant bit on the right. Here are the connections, starting from the right:

  1. QA, pin 15 → LED 1, far right

  2. QB, pin 1 → LED 2

  3. QC, pin 2 → LED 3

  4. QD, pin 3 → LED 4

  5. QE, pin 4 → LED 5

  6. QF, pin 5 → LED 6

  7. QG, pin 6 → LED 7

  8. QH, pin 7 → LED 8, far left

I leave pin 9 (QH′) open. It’s the serial output you could use to feed a second shift register.

Before powering up, I double-check where each jumper lands and make sure adjacent resistor leads aren’t touching. When you first turn on the circuit, some LEDs may be on. The clear-and-latch sequence below gives you a known starting point.


7. Step-by-Step Procedure for Loading 0000 0010

The clear sequence starts at 29:51. The binary loading demo starts at 31:15.

We’ll enter all eight bits from left to right, just as I do in the video. The order is 0, 0, 0, 0, 0, 0, 1, 0.

Step 1 — Set the starting positions.
Put S1 and S2 at A. Leave the DATA button released.

Step 2 — Clear the shift register and turn off the LEDs.
Press and hold CLEAR. While you’re holding it, flip S2 from A to B. All eight LEDs should go dark. Release CLEAR and move S2 back to A. Leave S2 at A while you load the bits.

Step 3 — Shift in the first six zeros.
Keep DATA released. Move S1 A → B → A six times. Count each trip from A to B as one bit. You’ve now clocked in the six leading zeros.

Step 4 — Shift in the one.
Press and hold DATA. Move S1 A → B → A once, then release DATA. The 1 is now in the first position inside the shift register, the position that will feed QA when you latch it.

Step 5 — Shift in the final zero.
With DATA released, move S1 A → B → A once more. The new 0 goes into the first position and pushes the 1 into the second position, which will feed QB. The LEDs are still showing the zeros you latched in Step 2.

Step 6 — Latch the number and check the LEDs.
Flip S2 from A to B. Only QB, the second LED from the right, should light. The row now displays 0000 0010. Return S2 to A when you’re ready for the next latch.


How to Load Any Eight-Bit Number

Write your eight bits down first. Start with the leftmost bit and work toward the right. For each bit, set DATA, then pulse S1 once:

  • For a 0, leave DATA released and move S1 A → B → A.

  • For a 1, hold DATA, move S1 A → B → A, then release DATA when you’re ready to change it.

After all eight bits are in, move S2 from A to B to display the new byte. The LEDs hold the previous pattern while you load the new one. That gives you time to enter the bits one at a time and then display all eight together.


In the Next Part

I’ll pull up the schematic and the Texas Instruments datasheet. We’ll follow the DATA input through the shift register and see what happens inside the chip each time we flip S1 or S2.

Thanks for watching and building along with me!



LAB NOTES:

Step-by-Step Procedure for Loading 0000 0010The clear sequence starts at 29:51.
The binary loading demo starts at 31:15.
We’ll enter all eight bits from left to right, just as I do in the video. The order is 0, 0, 0, 0, 0, 0, 1, 0.

Step 1 — Set the starting positions.
Put S1 and S2 at A. Leave the DATA button released.

Step 2 — Clear the shift register and turn off the LEDs.
Press and hold CLEAR. While you’re holding it, flip S2 from A to B. All eight LEDs should go dark. Release CLEAR and move S2 back to A. Leave S2 at A while you load the bits.

Step 3 — Shift in the first six zeros.
Keep DATA released. Move S1 A → B → A six times. Count each trip from A to B as one bit. You’ve now clocked in the six leading zeros.

Step 4 — Shift in the one.
Press and hold DATA. Move S1 A → B → A once, then release DATA. The 1 is now in the first position inside the shift register, the position that will feed QA when you latch it.

Step 5 — Shift in the final zero.
With DATA released, move S1 A → B → A once more. The new 0 goes into the first position and pushes the 1 into the second position, which will feed QB. The LEDs are still showing the zeros you latched in Step 2.

Step 6 — Latch the number and check the LEDs.
Flip S2 from A to B. Only QB, the second LED from the right, should light. The row now displays 0000 0010. Return S2 to A when you’re ready for the next latch.


COMPONENTS AND TOOLS
Affiliate disclosure:
As an Amazon Associate I earn from qualifying purchases. If you buy through my Amazon affiliate links, I may earn a commission at no additional cost to you. Thanks for supporting Build Circuits With Rich!

Components and Equipment — Amazon Affiliate Links
SN7400N quad 2-input NAND gate IC
https://link.amazon/B032rpPJM
SPDT slide switch https://link.amazon/B09guna18
Two 10 kΩ pull-up resistors
https://link.amazon/B03XFnNUj
2.2 kΩ resistor for unused inputs
https://link.amazon/B03XFnNUj
1 kΩ LED current-limiting resistor
https://link.amazon/B03XFnNUj
LED
https://link.amazon/B04790A2d
0.1 µF ceramic bypass capacitor
https://link.amazon/B00l9i6kJ
Breadboard and jumper wires
https://link.amazon/B0gQDnGBQ
Regulated 5 V DC power supply
https://link.amazon/B06BdDrfX
DSO138 oscilloscope
https://link.amazon/B0baLTxQj


Want more electronics lessons?

For more beginner-friendly electronics lessons, circuit walkthroughs, and hands-on breadboard builds, visit:

https://buildcircuitswithrich.com

Pinterest


Prefer video?
Watch full lessons on the Build Circuits With Rich YouTube Channel.

Back To: Videos