user-img

Mirko Pavleski

  • 26 Projects
  • 12 Followers
  • Jul 12,2024
+ Follow

DIY addictive Arduino 1D Pong game

This is an interesting one-dimensional compact version of the classic "Pong" game made with a minimal number of components, yet extremely addictive.

DIY addictive Arduino 1D Pong game
 
  • thumbnail-img
 

Hardware Components

  • Arduino Nano R3

    X 1
  • I2C 16x2 Arduino LCD Display Module

    X 1
  • Buzzer

    X 1
  • Pushbutton

    X 1
  • LED (generic)

    X 1
  • Resistor, 470 ohm

    X 1
  • Resistor 10k ohm

    X 1

Tools, APP Software Used etc.

  • Arduino IDE

    Arduino IDE

    Arduino
  • soldering kit

Story

 Pong is a table tennis–themed 2 dimensional graphics arcade video game manufactured by Atari and originally released on 1972. 

This time I will present you a simple way to make a 1D LED Pong game which is an interesting project that simulates a Pong game on a single-dimensional array of LEDs. This can be done using Arduino microcontroller board. The movement of the ball is simulated by the array of LEDs, and the paddles are the two buttons. The game is for 2 players, in which the "ball" travels down the length of the LED array, and will bounce back if the button is pressed when yellow LED is illuminated. 

The result is displayed on the LCD screen. The movement of the ball, the winning of a point as well as the victory are accompanied by appropriate sounds

  The device is very simple to make and consists of several components:

  - Arduino Nano microcontroller board

  - 16x2 LCD Display

  - 10 Leds

  - 12 resistors

  - two buttons

  - and Buzzer

  The game starts by moving the ball from player 1 to player 2, and if player 2 fails to press the button while the yellow LED is on, the red LED will light up and it's a point for player 1. Each game is started by the winner of the previous one. The speed of the ball is increases after every hit, making it more difficult to hit the ball in time. The match ends when one of the players wins 10 games, and at that moment the Leds that are on the winner's side will flash.

 - The starting speed of movement of the LEDs is set in the row:

const unsigned long initialMillisecondsPerLED = 400;

  The lower this number, the faster the movement speed

 - The degree of acceleration after each hit is adjusted in the rows:

 if (deltaMillisecondsPerLED > 50)

 {

 deltaMillisecondsPerLED -= 50;

and the higher this number is, the higher the acceleration.

 The game can be played by one or two players. In the case of two players, which is a natural option, it is preferable to use robust external arcade buttons. 

For this purpose I used these buttons that I made for the needs of one of my previous projects. They are large, and have a precise, and audible click.

   Finally a short conclusion. This is an interesting one-dimensional compact version of the classic "Pong" game made with a minimal number of components, yet extremely addictive, and can be played for hours before you get bored. The device is mounted in a suitable box made of PVC board and lined with self-adhesive wallpaper. For power, it is preferable to use a lithium battery for the sake of mobility

Code
Schematic and Layout

DIY addictive Arduino 1D Pong game

This is an interesting one-dimensional compact version of the classic "Pong" game made with a minimal number of components, yet extremely addictive.

1.2k
 
3
0
4

Copy your link and share it to your social circles. Then you'll Earn Commission on each sale.

  • Comments( 0 )
  • Like( 3 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.