
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- ¥164
- プレースホルダー
- 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で公開されています。許可を求めずに、自由にコピー、修正、配布、あらゆる目的で使用できます。
メイカーを応援するには、ブループリント経由で製品を購入してください。メイカーには メイカーコミッション がベンダーにより設定されています。または、このブループリントの新しいイテレーションを作成し、自分のブループリントにコネクションとして含めて収益を共有できます。