Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Semiconductors & ICs
  4. ›74HC595 Shift Register
Step 15 of 17 in Displays and lightsPart of a learning path.
Next

How-to · Intermediate · 3 min read

74HC595 Shift Register

More Outputs from Three Pins

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerPinout and wiringArduino code: show a pattern on 8 LEDsChaining several chipsCurrent limits and bigger loadsTry itCommon mistakesFAQsParts and next steps
Short answer

The 74HC595 turns three microcontroller pins (data, clock and latch) into eight outputs, and you can chain more chips to get 16, 24 or more outputs from the same three pins. Send a byte with shiftOut, then pulse the latch so all outputs update at once. It is ideal for LED bars, 7-segment digits and relay boards, but each pin should supply only a few milliamps and the chip about 70 mA in total.

Key specs at a glance

Outputs
8 per chip (QA to QH); Q7' / QH' to chain
Control pins
DS (data), SHCP (clock), STCP (latch); optional OE and MR
Supply
2 to 6 V (works at 3.3 V and 5 V)
Output current
About 6 mA per pin recommended; 70 mA total
Speed
Tens of MHz; far faster than shiftOut needs
Input expander
Use a 74HC165 to read 8 inputs
01

Pinout and wiring

74HC595 pinNameConnect to
15, 1 to 7QA (Q0), QB to QH (Q1 to Q7)Outputs (LEDs through resistors)
14DS / SERArduino D11 (data)
11SHCP / SRCLKArduino D12 (clock)
12STCP / RCLKArduino D8 (latch)
13OE (active LOW)GND (or a PWM pin for brightness)
10MR / SRCLR (active LOW)VCC
16VCC5 V or 3.3 V, with a 100 nF capacitor to GND
8GNDGND
9QH' / Q7'DS of the next chip when chaining
15, 1 to 7
Name:
QA (Q0), QB to QH (Q1 to Q7)
Connect to:
Outputs (LEDs through resistors)
14
Name:
DS / SER
Connect to:
Arduino D11 (data)
11
Name:
SHCP / SRCLK
Connect to:
Arduino D12 (clock)
12
Name:
STCP / RCLK
Connect to:
Arduino D8 (latch)
13
Name:
OE (active LOW)
Connect to:
GND (or a PWM pin for brightness)
10
Name:
MR / SRCLR (active LOW)
Connect to:
VCC
16
Name:
VCC
Connect to:
5 V or 3.3 V, with a 100 nF capacitor to GND
8
Name:
GND
Connect to:
GND
9
Name:
QH' / Q7'
Connect to:
DS of the next chip when chaining
02

Arduino code: show a pattern on 8 LEDs

Shift a byte into a 74HC595 · Arduino C++Verify & upload in Electrolark
const int DATA = 11, CLOCK = 12, LATCH = 8;

void write595(byte value) {
  digitalWrite(LATCH, LOW);
  shiftOut(DATA, CLOCK, MSBFIRST, value);
  digitalWrite(LATCH, HIGH);       // outputs change together here
}

void setup() {
  pinMode(DATA, OUTPUT); pinMode(CLOCK, OUTPUT); pinMode(LATCH, OUTPUT);
}

void loop() {
  for (int i = 0; i < 8; i++) {    // running light
    write595(1 << i);
    delay(120);
  }
}

// Two chained chips: send the far chip's byte first, then the near one,
// all between one LOW and one HIGH on the latch.
03

Chaining several chips

Connect QH' (pin 9) of the first chip to DS (pin 14) of the next, and share the clock and latch lines between all chips. Send one byte per chip in a row before pulsing the latch; the first byte you send ends up in the last chip. Long chains work fine, but add a 100 nF capacitor at each chip and keep clock wires short.

04

Current limits and bigger loads

Each output can drive one LED at about 5 mA (use 680 Ω to 1 kΩ at 5 V), and the whole chip should stay under about 70 mA. For brighter LEDs, relays or motors, let the 595 drive transistors or a ULN2003; the TPIC6B595 is a power version with open-drain outputs for 150 mA per pin. For multiplexed 7-segment displays, a dedicated driver such as the TM1637 or MAX7219 is simpler.

05

Try it: LED resistor calculator

Change the values and the diagram and results update as you type.

06

Common mistakes to avoid

  • !Leaving OE floating or HIGH, so outputs stay off.
  • !Leaving MR floating, so the register clears randomly.
  • !Driving LEDs at 20 mA each and overloading the chip.
  • !Forgetting the latch pulse, so nothing changes.
  • !No decoupling capacitor, causing flicker in long chains.
07

Frequently asked questions

What does a 74HC595 do?

It converts serial data from three pins into eight parallel outputs, and chips can be chained for more outputs.

How many 74HC595 chips can I chain?

As many as you like in principle; dozens are common. Each extra chip adds eight outputs and one more byte to send per update.

Does the 74HC595 work with ESP32 and 3.3 V?

Yes. Power it from 3.3 V. Output current is a little lower than at 5 V.

Can a 74HC595 drive a relay?

Not directly. Use the output to switch a transistor or a ULN2003 that drives the relay coil.

How do I read more inputs?

Use a 74HC165 parallel-in serial-out shift register, which is the input counterpart of the 74HC595.

Parts for this guide

  • 74HC Logic IC: 74HC00, 74HC02, 74HC04, 74HC08, 74HC32, 74HC86, 74HC138, 74HC595 (DIP)
    ₹12View
  • Through-Hole LED Pack (Pack of 10)
    ₹15View
  • Resistor Assortment Kit (30 Values)
    ₹33View
  • Solderless Breadboard
    ₹68View
Shop Logic ICs (74xx)

Calculators

LED resistor calculator

Terms in this guide

GPIOGeneral-purpose input/output: a microcontroller pin that your code can read or drive.Decoupling capacitorA small capacitor, usually 100 nF, placed next to an IC's power pins to supply short current bursts and block noise.MultiplexingDriving several displays or LEDs from a few pins by switching between them faster than the eye can see.Active-lowA signal that is 'on' when pulled to 0 V. Many relay modules switch on when their input is LOW.Open-drainAn output that can only pull a line low; a pull-up resistor makes it high. Used by I2C.

Projects that use it

Put this into practice: 367 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourLPG gas leak alarmView projectBeginner · 45 minutesFlame detector fire alarmView projectBeginner · 1 hourPIR intruder alarmView project
Browse all 367 projects

Keep learning

How-toBeginner7-Segment DisplaysA 7-segment display is seven LEDs (plus a decimal point) arranged as a figure 8.3 min read · Displays & LEDsComponent guideBeginnerLEDs ExplainedAn LED (light-emitting diode) lights when current flows from its longer leg (anode, +) to its shorter leg (cathode, -).3 min read · Displays & LEDsConcept explainerBeginnerLogic Gate ICsLogic gate ICs combine digital signals: AND, OR, NOT, NAND, NOR and XOR each give a HIGH or LOW output from their inputs.3 min read · Semiconductors & ICsComponent guideBeginnerULN2003 Darlington ArrayThe ULN2003 is a chip with seven Darlington transistor switches.3 min read · Semiconductors & ICs

Sources

  • Texas Instruments SN74HC595 datasheet
  • Nexperia 74HC595 datasheet
  • Arduino shiftOut reference

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerPinout and wiringArduino code: show a pattern on 8 LEDsChaining several chipsCurrent limits and bigger loadsTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹128

74HC Logic IC: 74HC00, 74HC02, 74HC04, 74HC08, 74HC32, 74HC86, 74HC138, 74HC595 (DIP) · Through-Hole LED Pack (Pack of 10) · Resistor Assortment Kit (30 Values) · Solderless Breadboard

Run itChange the inputs and watch the output
Q0 ON
Q1 OFF
Q2 OFF
Q3 OFF
Q4 OFF
Q5 OFF
Q6 OFF
Q7 OFF
0b00000001Byte

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question