In this video, we are going to build an Arduino Game, the classic Pong game!  The Arduino Pong Game is a very easy Arduino Project to build, it won’t take you more than 15 minutes!

Arduino Pong Game – The Parts

Hey guys, I am Nick and welcome to educ8s.tv a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266 and other popular boards. In this video, we are going to build an Arduino powered Game. It is the classic Pong Game! I am now playing against the computer controlling the green paddle. Each time a player scores, the score is displayed on the screen. The first player to reach 8 points wins! It is a fun project to build and as you are going to find out, it won’t take you more than 10 minutes to build it. Let’s start!

The parts needed in order to build this project are the following:

——————–
WHERE TO BUY
——————–

Arduino Uno: https://educ8s.tv/part/ArduinoUno

Color OLED: http://educ8s.tv/part/ColorOLED

Small Breadboard: https://educ8s.tv/part/SmallBreadboard

Push Buttons: https://educ8s.tv/part/Buttons

Jumper Wires: https://educ8s.tv/part/JumperWires

Wires: https://educ8s.tv/part/Wires

Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!

[adsense]

Arduino Pong Game – The Code

——————–

LIBRARIES
——————–

? Adafruit GFX: https://github.com/adafruit/Adafruit-GFX-Library

? Color OLED library: https://github.com/adafruit/Adafruit-SSD1331-OLED-Driver-Library-for-Arduino

 

Let’s now take a quick look at the code. The code of this project is based on the code of a pong game for the monochrome OLED display. You can find the link for the original code in the description of the video below. I modified the code to work with the color OLED display, I added the splash screen, and the score, and the Game Over screen. The project needs two libraries in order to compile. We need the Adafruit GFX library and the library for the OLED display.

By adjusting the values of these variables you can change the difficulty of the game. You can set the ball speed, the paddle speed, the paddle height and the maximum score in order to make the game fit your taste. That’s it, upload the code to Arduino and have fun! As always you can find the code of the project and links for the libraries in the description of the video below.

——————–

CODE OF THE PROJECT
——————–

 

 

 

——————–

SUBSCRIBE ON YOUTUBE

——————–

Never miss a video: Subscribe to educ8s.tv[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]