กลับไปหน้ารวมไฟล์
how-to-connect-7-segment-display-2786fe.md

ประเภทของ 7 Segment Display

7-segment display แบบ LED มีสองประเภท ได้แก่ Common Cathode (CC) และ Common Anode (CA).

1.Common Cathode
ใน 7 segment display แบบ Common Cathode การเชื่อมต่อแคโทดทั้งหมดของ LED segment จะเชื่อมต่อเข้าด้วยกันกับ logic 0 หรือ ground เราใช้ logic 1 ผ่าน current limiting resistor เพื่อให้เกิด forward bias ที่ขั้ว anode ของแต่ละ segment ตั้งแต่ a ถึง g.

2.Common Anode

ในขณะที่ 7 segment display แบบ Common Anode การเชื่อมต่อ anode ทั้งหมดของ LED segment จะเชื่อมต่อเข้าด้วยกันกับ logic 1 เราใช้ logic 0 ผ่าน current limiting resistor ไปยังแคโทดของ segment เฉพาะแต่ละตัว ตั้งแต่ a ถึง g.

ขั้นตอนในการทำโปรเจกต์นี้:

1. รวบรวมส่วนประกอบต่างๆ เช่น Arduino Uno/ Nano, 7 segment display (Common Anode / Common Cathode), Breadboard, Jumper wires.

2. สำหรับการเชื่อมต่อแบบ Common Cathode:

ดูแผนภาพการเชื่อมต่อของ Common Cathode

3. สำหรับการเชื่อมต่อแบบ Common Anode:

ดูแผนภาพการเชื่อมต่อของ Common Anode

4. อัปโหลดโค้ดที่เกี่ยวข้อง.

คุณได้เรียนรู้วิธีการเชื่อมต่อ 7 segment display.

เยี่ยมชมเว็บไซต์ของฉันจากลิงก์ด้านล่างสำหรับโปรเจกต์เพิ่มเติม:

https://electronicsisfun08.blogspot.com/

รายละเอียดทางเทคนิคเพิ่มเติม

พื้นฐานการแสดงผลตัวเลข

คู่มือฉบับสมบูรณ์นี้ให้พิมพ์เขียวทางเทคนิคสำหรับการเชื่อมต่อ 7-segment display ทั้งแบบหลักเดียวและหลายหลักเข้ากับ Arduino.

  • การวิเคราะห์ Direct Drive เทียบกับ Multiplexing: อธิบายความแตกต่างระหว่างการกำหนดค่า "Common Anode" และ "Common Cathode" โปรเจกต์นี้แสดงให้เห็นถึงการใช้ current-limiting resistor (เช่น 220Ω) ในแต่ละ segment เพื่อป้องกัน LED เสียหาย.
  • เมทริกซ์การปรับ Pin ให้เหมาะสม: แสดงวิธีการใช้ 74HC595 Shift Register เพื่อควบคุม 7-segment display ทั้งหมดโดยใช้เพียง 3 data pin ซึ่งจำเป็นสำหรับโปรเจกต์ที่ต้องการ sensors อื่นๆ จำนวนมาก.

ศูนย์รวมซอฟต์แวร์

  • Bitmask Rendering Kernel: มีไลบรารีโค้ดที่แมปตัวเลข 0-9 ไปยัง 8-bit segment byte ทำให้ผู้ใช้สามารถแสดงจำนวนเต็มใดๆ ได้ด้วยการเรียกใช้ฟังก์ชันเพียงครั้งเดียว.

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

title: "How to connect 7 segment display"
description: "Connections of 7 segment using Arduino"
author: "mohammadsohail0008"
category: ""
tags:
  - "lights"
  - "communication"
  - "robots"
views: 2373
likes: 0
price: 870
difficulty: "Intermediate"
components:
  - "1x Jumper wires (generic)"
  - "1x 7 Segment LED Display, InfoVue"
  - "1x Arduino UNO"
  - "1x Arduino Nano R3"
  - "1x Breadboard (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/84f58500-743b-4d3f-af00-7c44433175c3.ino"
  - "https://projects.arduinocontent.cc/9814ec94-92c6-4466-ac51-dfa5daa559ba.ino"
  - "https://projects.arduinocontent.cc/84f58500-743b-4d3f-af00-7c44433175c3.ino"
  - "https://projects.arduinocontent.cc/9814ec94-92c6-4466-ac51-dfa5daa559ba.ino"
documentationLinks: []
passwordHash: "9e2fc49df87305db0e966282c5f96af964e8fc5ba19754f120e38afaf1f381d1"
encryptedPayload: "U2FsdGVkX18lwYeWz3Ibl9pelpG5EEucgAtb25SINJ3kKIAcSNYTg6aqEy2QZg0jAYBloUoJyuohbr3Hn/A9GNw2d5nrRxGwMYpBidX1auU="
seoDescription: "Learn how to connect 7 segment display using Arduino with easy circuit diagrams and step-by-step instructions."
videoLinks:
  - "https://www.youtube.com/embed/QGgsBdyQHpc"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/how-to-connect-7-segment-display-2786fe_cover.jpg"
lang: "th"