กลับไปหน้ารวมไฟล์
6x6x6-led-cube-with-processing-app-ef611a.md

Hello world!

ผมได้ค้นหาโปรเจกต์ LED cube ที่สามารถสร้างได้ แต่พวกมันล้วนมีฐานที่น่ารำคาญติดมาด้วย ผมจึงตัดสินใจออกแบบเอง:

### จากแนวคิด...

สิ่งแรกเลยคือมันควรควบคุมง่าย ผมจึงตัดสินใจสร้างระบบ XYZ แทนที่จะเป็นอะไรที่ซับซ้อนกว่า เพื่อให้สิ่งนี้ทำงานได้ ผมต้องใช้ AND-Gates บางตัว ผมเลือกพวกนี้เพราะเป็นตัวที่เร็วที่สุดที่หาได้ แต่คุณอาจใช้ AND-Gate ตัวไหนก็ได้

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

การทำ Multiplexing ด้วย Logic Gates

การควบคุม LED จำนวน 216 ดวง (6x6x6) ด้วย Arduino Micro เพียงตัวเดียว ต้องอาศัยการทำ multiplexing ที่มีประสิทธิภาพ

  • การแอดเดรสแบบ X-Y-Z: แทนที่จะใช้ shift registers แบบมาตรฐาน โปรเจกต์นี้ใช้ sn74f08n AND gates เพื่อจัดการการเลือกเมทริกซ์ ตรรกะนี้ช่วยให้สามารถสลับการทำงานด้วยความเร็วสูง โดยไม่มีความล่าช้าในการแพร่กระจายสัญญาณ (propagation delays) ที่มักพบใน ICs แบบ daisy-chained
  • การควบคุมเลเยอร์: คิวบ์ถูกแบ่งออกเป็น 6 เลเยอร์แนวนอน (แกน Z) และกริด LED ขนาด 36 ดวง (X-Y) ด้วยการเปิดใช้งานเลเยอร์ที่เฉพาะเจาะจงผ่าน transistor และการเลือกคอลัมน์ผ่าน AND gates ทำให้ Arduino วนรอบการทำงานผ่านทุกเลเยอร์อย่างรวดเร็วเพื่อสร้างภาพที่คงอยู่ (Persistence of Vision)

การจัดเตรียมและการโต้ตอบด้วย Processing

คิวบ์นี้จับคู่กับแอปพลิเคชัน Processing ซึ่งมีคุณสมบัติดังนี้:

  1. Live Preview: โมเดล 3 มิติบนหน้าจอ PC ที่ตรงกับสถานะของคิวบ์จริง
  2. Animation Editor: การควบคุมรูปแบบ LED แบบเฟรมต่อเฟรม
  3. Serial Communication: ข้อมูลจะถูกบรรจุลงใน byte arrays และส่งผ่าน COVID ไปยัง Arduino ซึ่งจะถอดรหัสและแสดงรูปแบบบนกริดจริงแบบเรียลไทม์

การประกอบฮาร์ดแวร์

คิวบ์นี้ถูกสร้างขึ้นโดยไม่มีฐานที่เทอะทะแบบดั้งเดิม โดยใช้ Custom PCB ที่ทำหน้าที่เป็นทั้งระนาบโครงสร้างสำหรับติดตั้งและศูนย์กลางการเดินสายไฟ การใช้สาย Ethernet (Cat6a) ช่วยให้มีสายแบบมีชีลด์ (shielded lines) ที่มีความหนาแน่นสูงสำหรับการเชื่อมต่อระยะไกลจากคอนโทรลเลอร์ไปยังระนาบ LED

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

title: "6x6x6 LED Cube with Processing App"
description: "A 6x6x6 LED cube capable producing any type of pattern, including live preview and animations."
author: "AdiOdi"
category: "Lights & LEDs"
tags:
  - "art"
  - "lights"
  - "art"
  - "entertainment system"
views: 16582
likes: 9
price: 2450
difficulty: "Intermediate"
components:
  - "1x Arduino Micro"
  - "1x Soldering iron (generic)"
  - "9x sn74f08n"
  - "1x Custom PCB"
  - "6x Resistor 100 ohm"
  - "1x Plier, Long Nose"
  - "1x Ethernet Cable, Cat6a"
  - "9x IC & Component Socket, 14 Contacts"
  - "216x 5 mm LED: Green"
  - "1x test socket 40 pins"
tools: []
apps:
  - "1x Processing"
downloadableFiles:
  - "https://create.arduino.cc/editor/AdiOdi/ca94e103-b8d7-4113-933c-b5c495b3ac9b"
  - "https://create.arduino.cc/editor/AdiOdi/9a64398c-ba52-4768-9b21-83aa6bab11bb"
  - "https://create.arduino.cc/editor/AdiOdi/ca94e103-b8d7-4113-933c-b5c495b3ac9b"
  - "https://create.arduino.cc/editor/AdiOdi/9a64398c-ba52-4768-9b21-83aa6bab11bb"
  - "https://create.arduino.cc/editor/AdiOdi/c092b953-120d-4583-b1b8-b0f053339fab"
documentationLinks: []
passwordHash: "e2717a224bd0d1028ee7797e4de4f8557de4f77a02ad51104d6a3cfd55b6252c"
encryptedPayload: "U2FsdGVkX19UA8+dyueqq8ZsL5bcfGVKZNzXKZwloQgzEAUJ3I9iwENqJLHsqocbrhwN3Tlh58GZtjZX3NUkVV0vKNcSoGIOFB0HTibEdTo="
seoDescription: "Build a 6x6x6 LED Cube with Processing App. Features live preview and custom animations for any pattern."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/6x6x6-led-cube-with-processing-app-ef611a_cover.jpg"
lang: "th"