กลับไปหน้ารวมไฟล์
74hc595-serial-to-parallel-shift-register-1a2b53-en.md

This project was inspired byPaul McWhorter.This project uses the 74HC595 microchip to control several LEDs at one time.

Understanding the 74HC595 Shift Register

The 74HC595 is an 8-bit serial-in, parallel-out shift register. It is a highly useful component when you need to control more outputs than your microcontroller has pins. For example, instead of using 8 separate digital pins on an Arduino to control 8 LEDs, you can use just 3 pins (Data, Clock, and Latch) to send a byte to the 74HC595, which then translates that into 8 individual on/off signals.

Hardware Components Breakdown

  • 74HC595 Integrated Circuit: This is the heart of the project. It receives serial data bit-by-bit from the Arduino and stores them until instructed to release them as a parallel output.
  • Arduino UNO: Acts as the controller, sending the serial signals to the shift register.
  • LEDs: Used as output indicators to visualize the shifting process.
  • Jumper Wires: Necessary for making connections between the Arduino, breadboard, and the IC.

Working Logic and Serial to Parallel Conversion

  1. Serial Data In (DS): Bits are sent from the Arduino into this pin.
  2. Shift Register Clock (SH_CP): Whenever this pin receives a pulse, the bits already in the register shift over by one position to make room for the new bit coming from the DS pin.
  3. Storage Register Clock / Latch (ST_CP): This pin is held LOW while bits are being shifted in. Once all 8 bits (one byte) are loaded, you pull this pin HIGH to "latch" the data and show the result on the output pins (Q0 to Q7).

By repeating this process rapidly, you can create various patterns, such as a "chaser" effect, where it looks like a single light is moving down the line.

Wiring and Setup

  • Connect VCC (Pin 16) to 5V and GND (Pin 8) to ground.
  • Pin 10 (MR) should be connected to VCC to prevent master reset.
  • Pin 13 (OE) should be connected to GND to enable outputs.
  • Data pins are typically connected to Arduino Digital pins (e.g., 4, 5, and 6), and the 8 output pins (Q0-Q7) are connected to the long legs (anodes) of your 8 LEDs via resistors.

ข้อมูล Frontmatter ดั้งเดิม

title: "74HC595 Serial to Parallel Shift Register"
description: "This project does a serial to paralell shift using LEDs"
author: "ryanrhinoy"
category: ""
tags:
  - "lights"
views: 777
likes: 0
price: 870
difficulty: "Easy"
components:
  - "1x 10 Pc. Jumper Wire Kit, 5 cm Long"
  - "1x 74HC595"
  - "1x 5 mm LED: Red"
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/ebe564dd-614a-43a4-a88a-49c4caf57a5b.ino"
  - "https://projects.arduinocontent.cc/ebe564dd-614a-43a4-a88a-49c4caf57a5b.ino"
documentationLinks: []
passwordHash: "32fdc8619d8a19c610e72d6079e5d3ad8a90a3c299e636cbe17a7007ad8bb4a3"
encryptedPayload: "U2FsdGVkX1/kJ10+vn+VjZTJq+MPVwKcFNUcn6aJIvULFW3G8Lzd6LRTSOy+Y3bJrdfynfUA/SrnOCIPrWpOr8fVFDFcxqCvvWgSxfwnrHk="
seoDescription: "Learn how to use the 74HC595 Serial to Parallel Shift Register with LEDs in this easy Arduino tutorial."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/74hc595-serial-to-parallel-shift-register-1a2b53_cover.jpg"
lang: "en"