กลับไปหน้ารวมไฟล์
8bitcade-level-up-handheld-console.md

Consumer Manufacturing: The 8BitCADE Console

โครงการ Arduino ส่วนใหญ่มักจะอยู่บน breadboard ที่ไม่เป็นระเบียบไปตลอดกาล 8BitCADE Level UP จะเปลี่ยนผู้สร้างจากงาน hack ฮาร์ดแวร์ไปสู่การออกแบบผลิตภัณฑ์สำหรับผู้บริโภคที่แท้จริง มันสอนวิธีขจัดสาย jumper ออกไปทั้งหมดโดยใช้ Custom Printed Circuit Board (PCB) ซึ่งเลียนแบบเทคนิคทางวิศวกรรมที่ Nintendo หรือ Sony ใช้

1306_oled_retro_game_display_1772681532057.png

Designing the Custom PCB (Printed Circuit Board)

คุณไม่สามารถยัดบอร์ด Uno ลงในกระเป๋าของคุณได้

  1. โปรเจกต์นี้ต้องใช้ซอฟต์แวร์ Autodesk Eagle หรือ KiCad
  2. คุณออกแบบบอร์ด fiberglass ขนาดกะทัดรัด รูปทรงเหมือน Controller
  3. คุณกำหนดเส้นทาง copper traces ขนาดเล็กที่เชื่อมต่อชิป ATmega32U4 (Leonardo) โดยตรงเข้ากับ header ของ I2C OLED Screen, Piezo buzzer และเมทริกซ์ขนาดใหญ่ของ tactical push buttons ที่ขึ้นรูปเอง (D-Pad, A, B)
  4. คุณส่งไฟล์ Gerber ไปยังโรงงานผลิต PCB (เช่น JLCPCB) เพื่อให้บอร์ดสีดำด้านที่สวยงามนี้ได้รับการผลิตอย่างมืออาชีพ

Developing the Game Library

เนื่องจาก ATmega32U4 มีหน่วยความจำ flash ถึง 32KB คุณจึงสามารถเขียนเกมเล็กๆ ได้มากมาย

  • ด้วยการใช้ ecosystem ของเอนจิ้น <Arduboy.h> โค้ด C++ ได้รับการปรับแต่งเพื่อรองรับ frame-rate สูงสุดบน OLED matrix
  • if (arduboy.pressed(LEFT_BUTTON)) { playerX -= 1; }
  • ลูปการเรนเดอร์หน้าจอมีการบีบอัดอย่างมาก แทนที่จะวาด individual pixels ที่ซับซ้อน Arduino ใช้ binary manipulation เพื่อส่ง 8x8 bitmap sprite graphics ทั้งหมด (Asteroids, Space Invaders) ตรงไปยังหน้าจอผ่าน I2C bus ที่รวดเร็วสุดๆ!

Assembly List

  • Custom PCB Board ที่ผลิตแล้ว.
  • Surface Mount Components (การบัดกรีชิป ATmega32U4 ขนาดเล็กเข้ากับบอร์ดโดยตรง โดยไม่ใช้ Arduino module สำเร็จรูป!)
  • 0.96 inch SSD1306 OLED Display Module.
  • Tactile Push Buttons และ custom 3D printed caps.
  • 100mAh LiPo Battery และ TP4056 charge/protection circuit สำหรับเล่นเกมพกพาได้ 3 ชั่วโมง!

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

title: "8BitCADE Level UP - A Fun Handheld Gaming Console"
description: "Consumer product engineering! Learn PCB design and component integration by constructing a fully manufactured, pocket-sized retro gaming console sporting an OLED screen and custom silicone buttons."
category: "Games & Toys"
difficulty: "Advanced"