Ultrasonic Pong

by AndyB242 in Circuits > Arduino

1114 Views, 3 Favorites, 0 Comments

Ultrasonic Pong

CRT 4.jpg
CRT 5.jpg

Ultrasonic Pong is the mix of the classic arcade game, Pong, and ultrasonic sensors. The game Pong normally uses a classic joint stick controller while ultrasonic pong uses an ultrasonic sensor and keys on a keyboard to control movements.We created this game using processing and arduino to allow the sensor to communicate with the game.

Supplies:

Wires

Ultrasonic Sensor

Processing

Arduino

Breadboard

Foamcore

Download the Code

Download the code below for the game pong and customize the colors and ball speed of the game

Set Up Your Ultrasonic Sensor

Pong_Wiring.PNG
CRT 3.jpg

Using the breadboard, wires, ultrasonic sensor, and arduino follow the setup below.

Create Your Controller

CRT 1.jpg
CRT 2.jpg

Using foamcore create a rectangular box with one side open and also make a paddle for your hand.

Game Play

First player to get 10 points

Press the spacebar to reset the game

The left paddle is controlled using the sensor (raise and lower your hand)

The right paddle is controlled using I K