Arduino Game Project: Pong Game using an Arduino Uno and Color OLED display (SSD1331). Easy tutorial



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

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:

Color OLED:

Small Breadboard:

Push Buttons:

Jumper Wires:

Wires:

PowerBank:

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!

——————–
LIBRARIES
——————–

📥 Adafruit GFX:

📥 Color OLED library:

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 FOR THE MONOCHROME OLED
——————–

——————–
CODE OF THE PROJECT
——————–
📥

——————–
Quiz of Knowledge Android Game
——————–

You can download my latest Android Game which is called Quiz of Knowledge here:

📥

——————–
MORE PROJECTS
——————–
Arduino Datalogger:
Arduino Weather Station Project:
Arduino Nokia 5110 LCD Display:
Arduino OLED display tutorial:
DIY Arduino:

——————–
ABOUT EDUC8S.TV
——————–
Educ8s.tv is a Youtube channel and website which is dedicated in developing high quality videos about DIY hardware and software projects. In this channel we develop projects with Arduino, Raspberry Pi, we build robots and simple electronic circuits. Check out our website as well for more information:

——————–
SUBSCRIBE ON YOUTUBE
——————–

Never miss a video:

Nguồn: https://hellameke.com/

Xem thêm bài viết khác: https://hellameke.com/game/


Article Categories:
Game

Comments

  • Do you have a scheme ?

    Taci Akar July 6, 2020 3:58 am Reply
  • I was able to build this, and it works great? Question, I would like to add a potentiometer feature where I can control the paddle with the potentiometer on top of the buttons. Is this possible? If so, how would the code look like?

    Chan The Man July 6, 2020 3:58 am Reply
  • Hello. Can I make it using single color Oled?

    PIYSocial July 6, 2020 3:58 am Reply
  • These guys making games to run on a monochrome displaying through composite video are turning the wheels backwards with the progress of technology. I enjoy making video games due to the coding challenge that it gives me, but if I were to make games using an Arduino, then I would choose an dedicated display in colour and measuring at least 3 inches. I feel that a system with industry standards would be a good platform for coders to write their retro games on. But it makes no sense to use a high-tech computer to generate something incredibly "down graded in black and white that was commonplace 30-years ago" People will laugh.

    Trent Jackson July 6, 2020 3:58 am Reply
  • Are you going to do a tutorial on installing Pong game on a STM32F103C8T6 board?

    William Hoover July 6, 2020 3:58 am Reply
  • Hey Nick you can do a pong game that you can play vs the computer

    ROBOTSTUDIO July 6, 2020 3:58 am Reply
  • Adafruit_GFX.h: No such file or directory..
    help me . i downloaded and extracted it

    Aaron Yap July 6, 2020 3:58 am Reply
  • nice

    sambhav jain July 6, 2020 3:58 am Reply
  • With this project we can change the script and make a tv

    Ms mirudush July 6, 2020 3:58 am Reply
  • i have a question, my oled screen has d0 and D1 instead of SDA and SCL, are they the same thing? which one would be SDA and which one would be SCL?

    Anon 24 July 6, 2020 3:58 am Reply
  • What i have to do if i have the 4 pin version oh the display?

    Samuele Baiano July 6, 2020 3:58 am Reply
  • can we use a Nano for this?

    Gundolph July 6, 2020 3:58 am Reply
  • Excelente.
    Saludos desde El Salvador.

    Msc. Ing. Wilber Calderón July 6, 2020 3:58 am Reply
  • What is that silver colored wire?

    Astha Shah July 6, 2020 3:58 am Reply
  • I am making a video on how to make this project and will mention you in video

    RoboCircuits July 6, 2020 3:58 am Reply
  • nice

    sebastian cipolat July 6, 2020 3:58 am Reply
  • Using pot to control your pad

    Yuwei Zhang July 6, 2020 3:58 am Reply
  • It's necessary to have a Color Oled? Because i want to recreate this project but i have a Oled 1.3 that is on black and white.

    Cristóbal July 6, 2020 3:58 am Reply
  • What about the program? When you order or buy the screen is it pre programmed?

    Debanator July 6, 2020 3:58 am Reply
  • I’m going to make this

    MoLLUMINATI July 6, 2020 3:58 am Reply
  • Very nice

    Kazu s July 6, 2020 3:58 am Reply
  • CAN WE PLAY THIS ON ARDIUNO MINI . PLEASE TELL.

    S.M. PAGOTE July 6, 2020 3:58 am Reply
  • can i ask if this project could be able to stand alone???

    LOKI Doggie July 6, 2020 3:58 am Reply
  • code is not working

    Anil Thapa July 6, 2020 3:58 am Reply
  • Working not color display???

    Calumm July 6, 2020 3:58 am Reply
  • Can you made a tutorial of this game for 2 players

    michiel dirks July 6, 2020 3:58 am Reply
  • Here is a video of mine in which I made the game using16×2 LCD
    https://m.youtube.com/watch?v=_Atww5RGn0I

    Vishank Singh July 6, 2020 3:58 am Reply
  • Good demonstration
    I made it and it worked awesome

    Vishank Singh July 6, 2020 3:58 am Reply
  • can someone help me at the moment i am trying to make the monchrome version of this but the wiring is not the same and he doesn't say where the oled screen pin go on the bread bored

    Pyrrhonota July 6, 2020 3:58 am Reply
  • learn english

    AgressivePizza 49 July 6, 2020 3:58 am Reply
  • is there a way to make it two player?

    Guy Burden July 6, 2020 3:58 am Reply
  • can you do it with joystick?

    FER 335 July 6, 2020 3:58 am Reply
  • can we use i2c oled with the same code?

    FragileSand July 6, 2020 3:58 am Reply
  • Nice video man, very clear explanation, compliments. Like your accent. Didn't know there is a color version of this display, is there also an I2C variant available?

    code beat July 6, 2020 3:58 am Reply
  • i hate his voice its you annoying

    Jafen July 6, 2020 3:58 am Reply
  • dear educ8tstv if you find a library for making sprites and animations with the oled or lcd, please make a tutorial! 😁😭😭

    Sean Ocansey July 6, 2020 3:58 am Reply

Leave a Comment

Your email address will not be published. Required fields are marked *