กลับไปหน้ารวมไฟล์
seven-segment-display-with-a-74hc595-shift-register-2592a3.md

About the project

This is a project that I decided to try out. It uses a 74HC595 shift register to control a 7-segment display. It needs three digital pins and 5V and Ground pins from the Arduino. I tried this project because I was running out of digital pins on my Arduino Uno.


🛠️ เจาะลึกเบื้องหลังการทำงาน (Deep Dive / Technical Analysis)

If you connect a single 7-segment display to an Arduino, you use 7 digital pins. If you want to connect two displays, you need 14 pins! You quickly run out of room. The 74HC595 Shift Register is the magical IC that solves this problem.

Serial to Parallel Conversion

The Shift Register acts as an expander:

  1. The Data Line: The Arduino sends a string of 8 bits (e.g., 11001100 representing the LED pattern) through a single wire (Serial Data).
  2. The Clock Line: A second wire acts as a metronome, telling the chip when the next bit is arriving.
  3. The Latch Line: Once all 8 bits are inside the chip, the Arduino sends a "Latch" signal. The chip takes those 8 bits and instantly pushes them out to its 8 physical output pins (Parallel).

By doing this, you control 8 outputs using only 3 Arduino pins!

Components

  • Arduino Uno/Nano.
  • 74HC595 Shift Register IC.
  • Common Anode/Cathode 7-Segment Display.
  • Current Limiting Resistors (x8).

Daisy Chaining

The best part about Shift Registers is that they can be "daisy-chained." The overflow of the first chip connects to the input of the second. This means you can control two displays (16 LEDs), or three displays (24 LEDs), and it still only uses the exact same 3 pins on your Arduino. It is a mandatory concept for building large LED cubes or scoreboards.

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

title: "Seven-segment display with a 74HC595 shift register"
description: "Learn how to control a 1-digit seven segment display with a shift register!"
author: "ratack0"
category: ""
tags:
  - "shiftregister"
views: 21871
likes: 1
price: 299
difficulty: "Intermediate"
components:
  - "1x 74HC595 shift register"
  - "1x 7 Segment LED Display, InfoVue"
  - "20x Jumper wires (generic)"
  - "1x Arduino UNO"
  - "2x Resistor 220 ohm"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Arduino Web Editor"
downloadableFiles: []
documentationLinks: []
passwordHash: "770c57928ef31de28688ae972318b57667bc2f8195f20401735442820aa4f1a8"
encryptedPayload: "U2FsdGVkX1/FxTHeQ3YpD6GavqQ+6Mv8CeUmhJqRWuoH5cJeHmTbSWalXFySFd0p2DLlrALecCx4RXURqBOPuGx1CA6nAD3HgUyuNox6Bz0="
seoDescription: "Learn how to control a 1-digit Seven-segment display using a 74HC595 shift register and Arduino in this easy tutorial."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/seven-segment-display-with-a-74hc595-shift-register-2592a3_cover.jpg"
lang: "en"