
Using a Shift Register — SIK Circuit 14
안내
Parts & Introduction
Parts & Introduction
What if you need more outputs than the Arduino has pins? A shift register (74HC595) converts serial data into 8 parallel outputs — you send data on 3 pins and control 8 LEDs. You can chain multiple shift registers for even more outputs! This introduces SPI-style communication and bit manipulation.
Parts Needed
- 1x Arduino Uno + USB cable
- 1x Breadboard
- 1x 74HC595 Shift Register IC
- 8x LEDs (any color)
- 8x 330Ω Resistors
- 19x Jumper Wires
이 단계의 재료:
SparkFun Inventors Kit - V3.21 키트
Arduino Uno R31 개
Breadboard1 개
74HC595 Shift Register1 개
5mm LED8 개
330 Ohm Resistor8 개
Jumper Wires10 개필요한 도구:
Hardware Hookup
Hardware Hookup
Wiring Instructions
Place the 74HC595 chip so it bridges the center canyon. The notch indicates pin 1.
74HC595 Pin Connections
| Pin | Name | Connection |
|---|---|---|
| 1 (QB) | Output B | LED 2 positive |
| 2 (QC) | Output C | LED 3 positive |
| 3 (QD) | Output D | LED 4 positive |
| 4 (QE) | Output E | LED 5 positive |
| 5 (QF) | Output F | LED 6 positive |
| 6 (QG) | Output G | LED 7 positive |
| 7 (QH) | Output H | LED 8 positive |
| 8 (GND) | Ground | GND |
| 10 (SRCLR*) | Clear | 5V (active low, keep high) |
| 11 (SRCLK) | Clock | Arduino Pin 3 |
| 12 (RCLK) | Latch | Arduino Pin 4 |
| 13 (OE*) | Output Enable | GND (active low) |
| 14 (SER) | Data | Arduino Pin 2 |
| 15 (QA) | Output A | LED 1 positive |
| 16 (VCC) | Power | 5V |
Connect each LED's negative leg through a 330Ω resistor to GND.
이 단계의 재료:
74HC595 Shift Register1 개
5mm LED8 개
330 Ohm Resistor8 개
Breadboard1 개
Jumper Wires10 개Arduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
이 단계의 재료:
Arduino Uno R31 개필요한 도구:
Test & Experiment
Test & Experiment
What You Should See
The same LED patterns as Circuit 4 (chase, ping-pong, etc.) but using only 3 Arduino pins instead of 8! The shift register does the heavy lifting.
Troubleshooting
- Arduino power LED goes out: The chip is inserted backwards. Fix it quickly — no permanent damage if caught fast.
- Not working: With 19 wires, a crossed connection is likely. Double-check systematically.
Experiments to Try
- Uncomment
binaryCount()to see binary counting from 0-255 displayed on the LEDs. - Chain two 74HC595s together for 16 outputs from just 3 pins.
- Combine with a potentiometer to control the animation speed.
재료
7- ₩1,530
- 플레이스홀더
- 1 개플레이스홀더
- 플레이스홀더
You can swap these in
Can't get one of the materials? Swap it for an equivalent — these work just as well.
- Instead of Arduino Uno R3, try:
Prototyping Shield for Arduino Uno (3-Pack)
Arduino Uno R3 Board
Arduino Uno - Instead of 5mm LED Assortment Kit (300pcs, 5 Colors), try:
WS2812B NeoPixel LED Strip (1m, 60 LEDs)
Diffused LED - 10mm
RGB LED Strip 5050 (5m, Non-Addressable)
LilyPad Tri-Color LED
SMD LED 0603 - Strip of 25
LilyPad LED - 5 pcs - Instead of Resistor 330 Ohm 1/6 Watt PTH - 20 pack, try:
Resistor 10K Ohm 1/6th Watt PTH - 20 pack
AVR ISP Shield - PTH Kit - Instead of Breadboard, try:
Solder-able Breadboard
Recommended for this build
Products makers often use with builds like this one.
Resistor 10K Ohm 1/6th Watt PTH - 20 packFrequently used with this build's materials
Wire StripperUsed in similar builds
1/4W Resistor Kit (600pcs, 30 Values)Used together and in similar builds
Jumper Wire Kit (350pcs, M-M / M-F / F-F)Used together and in similar builds
USB CableUsed together and in similar builds
Push Button - 33mmFrequently used with this build's materials
Diode KitFrequently used with this build's materials
LED - RGB Diffused Common Cathode - 5mmFrequently used with this build's materialsRelated blueprints
Other builds that share materials, tools, or techniques with this one.






CC0 퍼블릭 도메인
이 블루프린트는 CC0로 공개되었습니다. 어떤 목적으로든 자유롭게 복사, 수정, 배포 및 사용할 수 있습니다.
제품 구매를 통해 메이커를 지원하세요. 판매자가 설정한 메이커 커미션 을 받거나, 이 블루프린트의 새로운 반복을 만들어 연결로 포함시킬 수 있습니다.