74HC595 Shift Register
Serial-to-parallel output shift register.
Function8-bit serial-in, parallel-out shift register with latch
Supply voltage2 to 6 V
Inputs and outputs8 outputs, about 6 mA each comfortably (35 mA absolute max, 70 mA total)
SpeedClocks above 20 MHz at 5 V
Integrated CircuitsReviewedMPN SN74HC595NUsed in 13 projects
In short
What is the 74HC595 Shift Register and what is it used for?
Serial-to-parallel output shift register. Makers use it to control multiple indicator LEDs.
In the real world
Extending digital output control
How it works
Integrated circuits combine multiple circuit functions. Always check the exact package, supply rails, pinout and operating conditions.
Key specifications
| Integrated circuit spec | Value |
|---|---|
| Function | 8-bit serial-in, parallel-out shift register with latch |
| Supply voltage | 2 to 6 V |
| Inputs and outputs | 8 outputs, about 6 mA each comfortably (35 mA absolute max, 70 mA total) |
| Speed | Clocks above 20 MHz at 5 V |
| Package | DIP-16 or SOIC-16 |
| Watch out for | Total package current limit: do not drive 8 LEDs at 20 mA each |
Pinout
15, 1 to 7Outputs QA (15), QB to QH (1 to 7)
8GNDGround
9QH'Serial out, to the next chip's DS
10SRCLRClear, tie HIGH
11SRCLKShift clock
12RCLKLatch clock
13OEOutput enable, tie LOW
14SERSerial data in
16VCCSupply
How to use it
Adds 8 outputs using 3 pins; chain more chips for 16, 24 and so on. Put a 100 nF capacitor across pins 16 and 8.
const int DATA = 11, LATCH = 8, CLOCK = 12;
void setup() { pinMode(DATA, OUTPUT); pinMode(LATCH, OUTPUT); pinMode(CLOCK, OUTPUT); }
void loop() {
for (int i = 0; i < 8; i++) {
digitalWrite(LATCH, LOW);
shiftOut(DATA, CLOCK, MSBFIRST, 1 << i);
digitalWrite(LATCH, HIGH);
delay(150);
}
}Applications
LED bar graphs and matrices7-segment displaysExtra outputs for relays via drivers
Builds that use it
Guided build
Shift register LED bar
Guided build
Johnson counter light chaser
Guided build
Network and ribbon cable tester
Guided build
Tic-tac-toe against the Arduino
Guided build
Knight-rider LED chaser
Guided build
Pick to light bin tray
Guided build
Shift register fault hunt
Guided build
Daisy-chained shift register display
Showing 8 of 13
Alternatives
- CD4017 CounterSimpler counter, no microcontroller needed
Common questions
What is the 74HC595 Shift Register used for?
In products: extending digital output control. In maker projects: control multiple indicator LEDs.
How does the 74HC595 Shift Register work?
Integrated circuits combine multiple circuit functions. Always check the exact package, supply rails, pinout and operating conditions.
What voltage does the 74HC595 Shift Register need?
2 to 6 V.
What can I use instead of the 74HC595 Shift Register?
CD4017 Counter.
