กลับไปหน้ารวมไฟล์
digdice-91b403.md

DigDice

การใช้งาน:

  • อัปโหลดสิ่งนี้ลงใน Arduino ของคุณ (รุ่นใดก็ได้)
  • ทำการเชื่อมต่อตามแผนภาพด้านล่าง
  • กดปุ่ม!

การเดินสาย:

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

การสังเคราะห์ความน่าจะเป็นแบบอิเล็กทรอนิกส์

DigDice เป็นอุปกรณ์ทดแทนลูกเต๋าแบบดั้งเดิมที่ใช้เทคโนโลยีขั้นสูง โดยใช้ digital logic ความเร็วสูงเพื่อให้ได้ผลลัพธ์ที่เป็นธรรมและสุ่ม 100%

  • การฉีด Pseudo-Random Seed: Arduino ใช้ analog pin ที่ไม่ได้เชื่อมต่อเป็นแหล่งกำเนิด noise สำหรับฟังก์ชัน randomSeed() ซึ่งจะเก็บสัญญาณรบกวนจากบรรยากาศเพื่อให้แน่ใจว่าการ "Roll" แต่ละครั้งนั้นคาดเดาไม่ได้และไม่ซ้ำกัน
  • 7-Segment / LED Matrix Dashboard: แสดงผลลัพธ์ (1-6) บนจอแสดงผลตัวเลขหรือรูปแบบ LED 3x3 ที่กำหนดเอง firmware มีแอนิเมชัน "Rolling" ที่ตัวเลขจะหมุนเวียนอย่างรวดเร็ว ก่อนที่จะหยุดที่ผลลัพธ์สุดท้ายเพื่อสร้างความตื่นเต้นทางจิตวิทยา

โหมดโต้ตอบ

  • Shake-to-Roll Logic: มี tilt switch หรือ accelerometer; Arduino จะสร้างตัวเลขสุ่มใหม่เมื่อ DigDice ถูกเขย่าทางกายภาพเท่านั้น เพื่อเลียนแบบการทำงานของลูกเต๋าจริง

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

title: "DigDice"
description: "A simple game disse/roulette with Arduino and a MAX7219 8x8 led matrix."
author: "Acidhub"
category: "Gadgets, Games & Toys"
tags:
  - "die"
  - "dice"
  - "play"
  - "fun"
  - "games"
views: 11426
likes: 4
price: 870
difficulty: "Easy"
components:
  - "1x Buzzer"
  - "1x MAX7219 based 8x8 Led Matrix"
  - "1x Pushbutton switch 12mm"
  - "1x Arduino Nano R3"
  - "1x Solderless Breadboard Half Size"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://github.com/DEPlayground/DigDice"
documentationLinks: []
passwordHash: "e45f620afada13611848a3b6f37b157009abd5aa7bd7dd9497d2de5662b4d5cc"
encryptedPayload: "U2FsdGVkX19K37gRCgklqKQVa+Lm2OB9PVXPaSx5IgKW1SeiJynoowBp+qV4ykOxTkMtniIbPF34DT5v9QvesXYv46znn3M21T+EfJUSIcY="
seoDescription: "Build a simple dice/roulette game using Arduino and MAX7219 8x8 led matrix. A fun and easy DIY project for beginners."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/digdice-91b403_cover.png"
lang: "th"