Professional Documents
Culture Documents
A. System Information
In this project, the system is design for single player or
Abstract— For this assignment, we tried to apply the multiplayer. The player controls the paddle by toggle the
theory that we learned in Computer Architecture and Organisation in joystick. Another player will controls the paddle by using
this project. We tried to create pong game by using Altera DE2 board PS/2 port keyboard which is connected directly into DE2
as the main board and Arduino Uno as external board. This board. The paddle will move across the left or right side of the
assignment is required the students to understand about the screen. Players use the paddles to hit a ball back and forth.
connection between the hardware and study about the function of The goal is for the player to survive the game and not let ball
every parameters of the program code written to obtain the desired slip at the bottom of screen. Because of that this project work
result. by combination of hardware and software such as we using
DE2 as the main board, Arduino Uno as the I/O devices
I. INTRODUCTION joystick and VGA monitor, and apply the coding (VHDL
language) into the project as the output. The DE2 board used
Pong is one of the earliest arcade video games. Pong as the main board of the project and act as mini CPU to run
games using concept table tennis sports game featuring simple the game itself. The language used for this project is VHDL
two-dimensional graphics[1]. The player controls an in-game language. The monitor will connect to the DE2 board using
paddle by moving it vertically across the left or right side of VGA cable. The monitor will display the animation of the
game. The Arduino Uno will act as external board to connect
the screen. They can compete against another player with the joystick. For joystick part, the five female to female
controlling a second paddle on the opposing side. Players use wires will connect to the pins of the joystick module. Then,
the paddles to hit a ball back and forth. The goal is for each connect five male to male wires into the ends of the female
player to reach ten points before the opponent; points are wires and connect them to the Arduino. The figure 1 below
earned when one fails to return the ball to the other[2]. shows the system architecture of the project. At the end of this
This project focuses on build the pong games by using project, the joystick and PS/2 port keyboard will act as input
DE2 board as the main board and Arduino Uno as external to move the paddle left to right on the screen. The paddle will
board. The coding is in VHDL language. The project can be return the ball back and forth. The ball needs to move around
single or multiplayer games and use simple 2D graphics. the screen and bounce back when it touches an object (border
or paddle).
II. OBJECTIVE
The objectives of this project are:
• To build the Pong games by using DE2 as the main
board and Arduino Uno as the I/O devices
• To perform the hardware connection of the project.
• To apply the coding (VHDL language) into the
project
III. METHODOLOGY
Methodology part will discuss briefly about the system
methods used to build the Pong Games by using Altera DE2
board. This section will divide by three parts which is system
information, flowchart and system code.
wire video_clock;
// convert CLOCK_27 to required clock speed
pll108MHz pll(.inclk0(CLOCK_27), .c0(video_clock));
wire candraw;
wire start; // 1 = beginning of frame
wire ball_on;
VI. CONCLUSION
In this project, the objective to build pong games system by
using Altera DE2 board is achieved. However, the failure to
connect Altera DE2 board with Arduino Uno disturb the flow
of this project. Besides that, the theory learned in Computer
Architecture and Organisation course can be applied in this
project either to perform connection of hardware or writing
code for the pong game system.
REFERENCES
[1] Pong (March 16, 2018), Retrieved March 19 from
https://en.wikipedia.org/wiki/Pong
[2] Vigneshraja (August 16, 2014) “Pong Game Using FPGA Kit”,
Retrieved March 19, 2018 from http://www.instructables.com/id/Pong-
game-using-fpga-kit/
[3] Pong (2018) Github Inc, Retrieved April 13 from https://github.com/felix
mo/Pong
[4] Syntaxian (2018) “PC Mouse Made with Arduino and Jouystick”,
Retrieved April 29 from http://www.instructables.com/id/PC-Mouse-
Made-With-Arduino-Uno-and-Joystick/