กลับไปหน้ารวมไฟล์
arduino-running-man-game-in-2-minutes-with-touch-sensor-3e95aa.md

เกม Arduino Running Man ใน 2 นาที ด้วย TOUCH SENSOR

ดูวิดีโอสำหรับบทเรียนฉบับเต็ม..........

รายละเอียดทางเทคนิคเชิงลึก

ตรรกะเกมในการสร้างต้นแบบอย่างรวดเร็ว

โปรเจกต์นี้มุ่งเน้นไปที่การสร้างเกม "Infinite Runner" ความเร็วสูงแบบโต้ตอบ โดยใช้ อินเทอร์เฟซแบบสัมผัสที่กำหนดเอง

  • สถาปัตยกรรม Interrupt การสัมผัส: แทนที่จะใช้ปุ่มกดทางกายภาพ โปรเจกต์นี้ใช้ Capacitive Touch Sensor (TTP223) Arduino ใช้ประโยชน์จากพิน Interrupt ภายนอกเพื่อตรวจจับการสัมผัสด้วยความแม่นยำระดับไมโครวินาที ทำให้มั่นใจว่าการกระทำ "Jump" ของเกมตอบสนองได้อย่างสมบูรณ์แบบ
  • แอนิเมชันตัวอักษรบน LCD: ใช้ประโยชน์จากตัวอักษร LCD ที่กำหนดเอง (โดยใช้ lcd.createChar) เพื่อสร้างแอนิเมชัน "Running" 2 เฟรม และตัวอักษร "Obstacle" แบบคงที่ ทั้งหมดแสดงผลบนหน้าจอ 16x2 มาตรฐาน

ประสิทธิภาพของเกม

  • การปรับขนาดความเร็วแบบไดนามิก: โค้ดมีตัวแปรสำหรับ gameSpeed เมื่อคะแนนของผู้เล่นเพิ่มขึ้น ความล่าช้าระหว่างเฟรมจะลดลง ทำให้สิ่งกีดขวางเคลื่อนที่เร็วขึ้น และเพิ่มความยากแบบเรียลไทม์

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

title: "Arduino Running Man Game in 2 Minutes With TOUCH SENSOR"
description: "Arduino Running Man Game in 2 Minutes | Arduino game with touch sensor| Part 2"
author: "helloanimesh390"
category: "Gadgets, Games & Toys"
tags:
  - "wearables"
  - "smart appliances"
  - "toys"
  - "entertainment system"
  - "games"
views: 11828
likes: 6
price: 1120
difficulty: "Easy"
components:
  - "1x Alphanumeric LCD, 16 x 2"
  - "1x Arduino UNO"
  - "1x Breadboard (generic)"
  - "1x Touch sensor"
  - "1x Jumper wires (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/cdf23acf-4e14-42a3-b0fa-f032031e5935.ino"
documentationLinks: []
passwordHash: "27fe0c2e18dc3c8c176b4581083714c449f3d6d5371934387031c5fab6d58388"
encryptedPayload: "U2FsdGVkX18//Z4IQ8//RJoKJIis47PWKdlIGyJcGEUHQlxoxMqxV6snF54CageHKy2Nly+aBCP0P4/QeqEe6M94jjN4goVFaRUyPKYY4sE="
seoDescription: "Build an Arduino Running Man Game in 2 minutes using a TOUCH SENSOR. Easy step-by-step Arduino project for beginners."
videoLinks:
  - "https://www.youtube.com/embed/Nx3y3dqQT0Y"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-running-man-game-in-2-minutes-with-touch-sensor-3e95aa_cover.jpg"
lang: "th"