กลับไปหน้ารวมไฟล์
simulation-of-8x8-matrix-display-arduino-android-app-26473f.md

ชื่อโปรเจกต์: จำลองการทำงาน 8X8 Matrix Display | Arduino & Android App

ในบทเรียน Arduino อันนี้ พี่จะพาน้องๆ ไปดูวิธีคุม 8×8 LED Matrix โดยใช้ Driver เบอร์เทพอย่าง MAX7219 คู่กับบอร์ด Arduino แถมงานนี้ไม่ได้มาเล่นๆ เพราะเราจะเชื่อมต่อ Proteus Simulation เข้ากับ Android App ด้วย หล่อเท่เลยงานนี้!

ไฟล์ Proteus, Arduino code, Bluetooth Library, และ MaxMatrix Library สำหรับ Arduino IDE

Android App

เจาะลึกด้านเทคนิคสไตล์รุ่นพี่

หลักการ Matrix Multiplexing

ถ้าจะให้น้องต่อ LED 64 ดวง (8x8) แยกกันทีละ Pins บอกเลยว่า Pins บนบอร์ดไม่พอใช้แน่นอน โปรเจกต์นี้เราเลยต้องใช้เทคนิค Multiplexing หรือใช้ Driver อย่าง MAX7219 มาช่วยทุ่นแรง

  • Scanning: ตัว Arduino จะทำการกวาด Row และ Column อย่างไว พอเราสั่งเปิด LED เฉพาะจุดด้วยความถี่สูงๆ ตาคนเราจะมองเห็นว่ามันสว่างนิ่งเป็นรูปภาพเอง (เขาเรียกว่า Persistence of Vision หรือภาพติดตานั่นแหละน้อง)
  • Communication Protocol: คำสั่งต่างๆ จะถูกส่งผ่าน Bluetooth module (HC-05) รับมาจาก Android App ที่เราเตรียมไว้

การทำงานร่วมกับ Android

ตัว Mobile App จะทำหน้าที่เป็นหน้าจอ Interface เท่ๆ ไว้คอยส่งข้อมูล Byte (ส่วนใหญ่เป็นชุดข้อมูล 64-bit หรือ 8 Bytes) ที่บอกสถานะของ LED แต่ละดวงมาให้ จากนั้น Arduino ก็จะรับมา Decode แล้ว Update ข้อมูลลง Display buffer แบบ Real-time จะวาดรูปสดๆ หรือสั่งเลื่อนข้อความผ่านสมาร์ทโฟนก็จัดไปวัยรุ่น!

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

title: "Simulation of 8X8 Matrix Display | Arduino & Android App"
description: "Simulation of 8X8 Dot Matrix Display using Arduino and Android App in Proteus"
author: "sumanskd"
category: ""
tags:
  - "embedded"
  - "communication"
  - "remote control"
views: 6904
likes: 0
price: 699
difficulty: "Intermediate"
components:
  - "1x HC-05 Bluetooth Module"
  - "1x MAX7219/MAX7221 LED Display Drivers"
  - "1x 8X8 dot matrix display"
  - "1x Arduino UNO"
tools: []
apps:
  - "1x DotMatrixController.apk"
downloadableFiles:
  - "https://projects.arduinocontent.cc/e0ae34ee-bc52-42dd-9d6b-d41509585097.ino"
documentationLinks: []
passwordHash: "661c5a467df81818376aaa0e406c678b63406cc6610d02bc1de2b53895a8ca5a"
encryptedPayload: "U2FsdGVkX1+8GZe9MaLUk0C5vDq/ARBxUDl8NW0mDsF84lWvk0hkHPASEaupbrTXI0ijUImzN32MsYv3xar31De5GQBhJfs5tGNTrs56cg4="
seoDescription: "Simulate an 8X8 Matrix Display with Arduino and Android App in Proteus. A complete guide for hardware simulation and control."
videoLinks:
  - "https://www.youtube.com/embed/pfmx1zp0ZB8"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/simulation-of-8x8-matrix-display-arduino-android-app-26473f_cover.jpg"
lang: "th"