กลับไปหน้ารวมไฟล์
pong-game-en.md

Arcade Revival: Arduino 2-Player Pong

The Pong Game is one of the most iconic video games in history. This project lets you recreate that classic experience on your desk using an Arduino and a high-resolution OLED display.

stock_counter_lcd_setup_1772706693516.png

How It's Played

  1. The Paddles: Two players each have a 10k potentiometer (knob) that controls the vertical movement of their paddle on the screen.
  2. The Ball: The Arduino calculates the ball's X and Y position, bouncing it off walls and paddles.
  3. The Score: If a player misses the ball, the other player scores a point, which is displayed at the top of the screen.

Hardware List

  • Arduino Uno/Nano: The game engine.
  • 0.96" I2C OLED (128x64): For retro black-and-white graphics.
  • 10k Potentiometers (x2): For precise paddle control.
  • Piezo Buzzer: For "beep" sounds when the ball hits a paddle or when a point is scored.

arduino_memory_game_piezo_macro_1772681197420.png

Coding the Physics

Writing a game like Pong teaches you about collision detection and basic game loops (Update -> Draw -> Repeat). You'll learn how to handle multiple inputs simultaneously and how to manage fast-moving graphics on an Arduino, ensuring the game remains smooth and fun to play.

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

title: "Retro 2-Player Pong Game"
description: "Bring back the arcade! Build a 2-player version of the classic Pong game using an Arduino, an OLED screen, and two potentiometers for the paddles."
category: "Games & Toys"
difficulty: "Intermediate"