AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store
Control eight LEDs with a 74HC595
Intermediate 25 minutes

Shift a walking bit and alternating patterns into a 74HC595 using D11 data, D12 clock and D8 latch.

Shift a walking bit and alternating patterns into a 74HC595 using D11 data, D12 clock and D8 latch.

Use the Uno R3 Learning Kit. Build with power disconnected, check the labelled connections, then upload the supplied sketch. Drag or zoom the 3D model to inspect it from any angle.

Also needed

Use an additional full-size 830-contact breadboard so the eight LED bodies can be spaced apart without touching.

Explore all kit tutorials

View Markdown

Step 1 — Watch the complete build

Press Play for the narrated build. You can rotate and zoom the model while it plays, or follow the individual steps below.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Keep U S B disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around. Connect the Arduino’s five volt output to the positive rail. Connect Arduino ground to the ground rail. Add the 74HC595 shift register. Its Q1 lead goes into F2; the highlights show the remaining holes. Add the 100 nanofarads ceramic capacitor. Its 0 lead goes into H10; the highlights show the remaining holes. Connect the chip’s supply pin to the positive rail. Connect the chip’s MR pin to the positive rail. Connect the chip’s ground pin to the ground rail. Connect the chip's output enable pin to the ground rail. Connect the capacitor’s 0 pin to the chip’s supply pin. Connect the capacitor’s 1 pin to the chip’s ground pin. Connect Arduino digital pin 11 to the chip’s DS pin. Connect Arduino digital pin 12 to the chip’s SH_CP pin. Connect Arduino digital pin 8 to the chip’s ST_CP pin. Add the Red L E D · 5 millimetres. Its cathode lead goes into J12; the highlights show the remaining holes. Add the Yellow L E D · 5 millimetres. Its cathode lead goes into J15; the highlights show the remaining holes. Add the Green L E D · 5 millimetres. Its cathode lead goes into J18; the highlights show the remaining holes. Add the Blue L E D · 5 millimetres. Its cathode lead goes into J21; the highlights show the remaining holes. Add the Red L E D · 5 millimetres. Its cathode lead goes into J24; the highlights show the remaining holes. Add the Yellow L E D · 5 millimetres. Its cathode lead goes into J27; the highlights show the remaining holes. Add the Green L E D · 5 millimetres. Its cathode lead goes into J30; the highlights show the remaining holes. Add the Blue L E D · 5 millimetres. Its cathode lead goes into J33; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E13; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E16; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E19; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E22; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E25; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E28; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E31; the highlights show the remaining holes. Add the 1 kiloohm resistor. Its Pin 0 lead goes into E34; the highlights show the remaining holes. Connect the chip’s Q0 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q1 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q2 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q3 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q4 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q5 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q6 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Connect the chip’s Q7 pin to one end of the resistor. Connect the L E D’s cathode lead to the ground rail. Check all wiring. Connect the square U S B-B plug to the Uno and the U S B-A plug to your computer. Use Verify and Upload in the code editor below.

Step 2 — Understand the breadboard

Keep USB disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Keep U S B disconnected while you build. On this breadboard, each group of five holes shares a connection; the centre channel separates the two halves. You can drag the 3D view to look around.

Step 3 — Connect Uno 5V → T+ rail 15

Connect the Arduino’s five volt output to the positive rail.

ConnectTo
Uno 5VT+ rail 15
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the Arduino’s five volt output to the positive rail.

Step 4 — Connect Uno GND → T− rail 11

Connect Arduino ground to the ground rail.

ConnectTo
Uno GNDT− rail 11
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect Arduino ground to the ground rail.

Step 5 — Place 74HC595 shift register

Add the 74HC595 shift register. Its Q1 lead goes into F2; the highlights show the remaining holes.

Exact breadboard holes
  • shift · VCC → E2
  • shift · Q4 → F5
  • shift · Q5 → F6
  • shift · Q6 → F7
  • shift · Q7 → F8
  • shift · GND → F9
  • shift · Q7' → E9
  • shift · MR → E8
  • shift · SH_CP → E7
  • shift · ST_CP → E6
  • shift · OE → E5
  • shift · Q1 → F2
  • shift · Q2 → F3
  • shift · DS → E4
  • shift · Q0 → E3
  • shift · Q3 → F4
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 74HC595 shift register. Its Q1 lead goes into F2; the highlights show the remaining holes.

Step 6 — Place 100 nF ceramic capacitor

Add the 100 nF ceramic capacitor. Its 0 lead goes into H10; the highlights show the remaining holes.

Exact breadboard holes
  • bypass · 0 → H10
  • bypass · 1 → H11
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 100 nanofarads ceramic capacitor. Its 0 lead goes into H10; the highlights show the remaining holes.

Step 7 — Connect A2 → T+ rail 1

Connect the chip’s supply pin to the positive rail.

ConnectTo
A2T+ rail 1
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s supply pin to the positive rail.

Step 8 — Connect A8 → T+ rail 6

Connect the chip’s MR pin to the positive rail.

ConnectTo
A8T+ rail 6
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s MR pin to the positive rail.

Step 9 — Connect J9 → T− rail 6

Connect the chip’s ground pin to the ground rail.

ConnectTo
J9T− rail 6
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s ground pin to the ground rail.

Step 10 — Connect A5 → T− rail 3

Connect the chip’s OE pin to the ground rail.

ConnectTo
A5T− rail 3
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip's output enable pin to the ground rail.

Step 11 — Connect J10 → B2

Connect the capacitor’s 0 pin to the chip’s supply pin.

ConnectTo
J10B2
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the capacitor’s 0 pin to the chip’s supply pin.

Step 12 — Connect J11 → I9

Connect the capacitor’s 1 pin to the chip’s ground pin.

ConnectTo
J11I9
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the capacitor’s 1 pin to the chip’s ground pin.

Step 13 — Connect Uno D11 PWM/MOSI → A4

Connect Arduino digital pin 11 to the chip’s DS pin.

ConnectTo
Uno D11 PWM/MOSIA4
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect Arduino digital pin 11 to the chip’s DS pin.

Step 14 — Connect Uno D12/MISO → A7

Connect Arduino digital pin 12 to the chip’s SH_CP pin.

ConnectTo
Uno D12/MISOA7
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect Arduino digital pin 12 to the chip’s SH_CP pin.

Step 15 — Connect Uno D8 → A6

Connect Arduino digital pin 8 to the chip’s ST_CP pin.

ConnectTo
Uno D8A6
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect Arduino digital pin 8 to the chip’s ST_CP pin.

Step 16 — Place Red LED · 5 mm

Add the Red LED · 5 mm. Its cathode lead goes into J12; the highlights show the remaining holes.

Exact breadboard holes
  • led0 · cathode → J12
  • led0 · anode → J13
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Red L E D · 5 millimetres. Its cathode lead goes into J12; the highlights show the remaining holes.

Step 17 — Place Yellow LED · 5 mm

Add the Yellow LED · 5 mm. Its cathode lead goes into J15; the highlights show the remaining holes.

Exact breadboard holes
  • led1 · cathode → J15
  • led1 · anode → J16
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Yellow L E D · 5 millimetres. Its cathode lead goes into J15; the highlights show the remaining holes.

Step 18 — Place Green LED · 5 mm

Add the Green LED · 5 mm. Its cathode lead goes into J18; the highlights show the remaining holes.

Exact breadboard holes
  • led2 · cathode → J18
  • led2 · anode → J19
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Green L E D · 5 millimetres. Its cathode lead goes into J18; the highlights show the remaining holes.

Step 19 — Place Blue LED · 5 mm

Add the Blue LED · 5 mm. Its cathode lead goes into J21; the highlights show the remaining holes.

Exact breadboard holes
  • led3 · cathode → J21
  • led3 · anode → J22
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Blue L E D · 5 millimetres. Its cathode lead goes into J21; the highlights show the remaining holes.

Step 20 — Place Red LED · 5 mm

Add the Red LED · 5 mm. Its cathode lead goes into J24; the highlights show the remaining holes.

Exact breadboard holes
  • led4 · cathode → J24
  • led4 · anode → J25
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Red L E D · 5 millimetres. Its cathode lead goes into J24; the highlights show the remaining holes.

Step 21 — Place Yellow LED · 5 mm

Add the Yellow LED · 5 mm. Its cathode lead goes into J27; the highlights show the remaining holes.

Exact breadboard holes
  • led5 · cathode → J27
  • led5 · anode → J28
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Yellow L E D · 5 millimetres. Its cathode lead goes into J27; the highlights show the remaining holes.

Step 22 — Place Green LED · 5 mm

Add the Green LED · 5 mm. Its cathode lead goes into J30; the highlights show the remaining holes.

Exact breadboard holes
  • led6 · cathode → J30
  • led6 · anode → J31
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Green L E D · 5 millimetres. Its cathode lead goes into J30; the highlights show the remaining holes.

Step 23 — Place Blue LED · 5 mm

Add the Blue LED · 5 mm. Its cathode lead goes into J33; the highlights show the remaining holes.

Exact breadboard holes
  • led7 · cathode → J33
  • led7 · anode → J34
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the Blue L E D · 5 millimetres. Its cathode lead goes into J33; the highlights show the remaining holes.

Step 24 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E13; the highlights show the remaining holes.

Exact breadboard holes
  • r0 · Pin 0 → E13
  • r0 · Pin 1 → G13
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E13; the highlights show the remaining holes.

Step 25 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E16; the highlights show the remaining holes.

Exact breadboard holes
  • r1 · Pin 0 → E16
  • r1 · Pin 1 → G16
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E16; the highlights show the remaining holes.

Step 26 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E19; the highlights show the remaining holes.

Exact breadboard holes
  • r2 · Pin 0 → E19
  • r2 · Pin 1 → G19
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E19; the highlights show the remaining holes.

Step 27 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E22; the highlights show the remaining holes.

Exact breadboard holes
  • r3 · Pin 0 → E22
  • r3 · Pin 1 → G22
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E22; the highlights show the remaining holes.

Step 28 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E25; the highlights show the remaining holes.

Exact breadboard holes
  • r4 · Pin 0 → E25
  • r4 · Pin 1 → G25
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E25; the highlights show the remaining holes.

Step 29 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E28; the highlights show the remaining holes.

Exact breadboard holes
  • r5 · Pin 0 → E28
  • r5 · Pin 1 → G28
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E28; the highlights show the remaining holes.

Step 30 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E31; the highlights show the remaining holes.

Exact breadboard holes
  • r6 · Pin 0 → E31
  • r6 · Pin 1 → G31
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E31; the highlights show the remaining holes.

Step 31 — Place 1 kΩ resistor

Add the 1 kΩ resistor. Its Pin 0 lead goes into E34; the highlights show the remaining holes.

Exact breadboard holes
  • r7 · Pin 0 → E34
  • r7 · Pin 1 → G34
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Add the 1 kiloohm resistor. Its Pin 0 lead goes into E34; the highlights show the remaining holes.

Step 32 — Connect A3 → A13

Connect the chip’s Q0 pin to one end of the resistor.

ConnectTo
A3A13
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q0 pin to one end of the resistor.

Step 33 — Connect I12 → T− rail 9

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I12T− rail 9
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 34 — Connect J2 → A16

Connect the chip’s Q1 pin to one end of the resistor.

ConnectTo
J2A16
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q1 pin to one end of the resistor.

Step 35 — Connect I15 → T− rail 12

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I15T− rail 12
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 36 — Connect J3 → A19

Connect the chip’s Q2 pin to one end of the resistor.

ConnectTo
J3A19
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q2 pin to one end of the resistor.

Step 37 — Connect I18 → T− rail 14

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I18T− rail 14
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 38 — Connect J4 → A22

Connect the chip’s Q3 pin to one end of the resistor.

ConnectTo
J4A22
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q3 pin to one end of the resistor.

Step 39 — Connect I21 → T− rail 16

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I21T− rail 16
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 40 — Connect J5 → A25

Connect the chip’s Q4 pin to one end of the resistor.

ConnectTo
J5A25
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q4 pin to one end of the resistor.

Step 41 — Connect I24 → T− rail 19

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I24T− rail 19
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 42 — Connect J6 → A28

Connect the chip’s Q5 pin to one end of the resistor.

ConnectTo
J6A28
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q5 pin to one end of the resistor.

Step 43 — Connect I27 → T− rail 21

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I27T− rail 21
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 44 — Connect J7 → A31

Connect the chip’s Q6 pin to one end of the resistor.

ConnectTo
J7A31
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q6 pin to one end of the resistor.

Step 45 — Connect I30 → T− rail 24

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I30T− rail 24
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 46 — Connect J8 → A34

Connect the chip’s Q7 pin to one end of the resistor.

ConnectTo
J8A34
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the chip’s Q7 pin to one end of the resistor.

Step 47 — Connect I33 → T− rail 26

Connect the LED’s cathode lead to the ground rail.

ConnectTo
I33T− rail 26
Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Connect the L E D’s cathode lead to the ground rail.

Step 48 — Place USB-A to USB-B cable · Uno

Check all wiring. Connect the square USB-B plug to the Uno and the USB-A plug to your computer. Use Verify and Upload in the code editor below.

Explore in 3D

Loading assembly…

0:00 / 0:00
Transcript

Check all wiring. Connect the square U S B-B plug to the Uno and the U S B-A plug to your computer. Use Verify and Upload in the code editor below.

Step 49 — Program your Uno

Choose Arduino Uno. Verify, pair the board and Upload this sketch. Keep USB connected. Shift a walking bit and alternating patterns into a 74HC595 using D11 data, D12 clock and D8 latch.

Control eight LEDs with a 74HC595Open in English ↗

Step 50 — Try it and troubleshoot

A single lit LED walks across the row, then alternating LEDs swap. One kilohm keeps the output currents modest even when several LEDs are lit.

If it does not work

Check the notch, power pins, MR high and OE low. Do not connect LEDs without their own resistors. The serial output Q7-prime is for a second chip, not one of these eight LEDs.

Parts List

Required Parts (2)

Uno R3 Learning kit
Uno R3 Learning kit

Use the components named in this tutorial. A computer and any additional power supply are not included.

x1

$64.70

In stock
830-Point Breadboard
830-Point Breadboard

Use this larger board in place of the kit’s 400-contact breadboard, to keep component bodies and jumper connections clear.

x1

$8.90

In stock

Project Summary

2 parts total

Required parts $73.60
Total (required) $73.60

Unavailable items will be skipped

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.