Arduino 2 Player Game

11,057

200

28

Published

Introduction: Arduino 2 Player Game

About: I am always making electronic stuff. I like to do Arduino projects best. more projects coming soon!

In this project I`m going to show you how to make a two player pong game with a Nokia 5110 LCD that is controlled by an Arduino UNO. The game can easily be switched on single player to.

Step 1: Parts

Here is a list of parts that i used to make this project

  • Beadboard
  • Arduino UNO
  • Jumper wires (male to male)
  • 9v battery and battery clip
  • 2x Potentiometers (any type but 5k is recommended)
  • On/off switch
  • Nokia 5110 LCD buy on eBay

Step 2: Schematic

This is the schematic for my project, follow it and hopefully you will end up with a game that works.

Make sure the LCD is connected the right way, not upside down.

Step 3: Build It

Follow the schematic as you place the parts on your breadboard,

Step 4: Arduino Code

Download the code here : Arduino pong game.

Open the code and upload it to your Arduino UNO.

Step 5: Finish

Power up your Arduino and get somebody to play with you, if nobody wants to play than you can just switch over to single player ;)

My feature plans for this project is to solder it on a PCB and make a good looking enclosure for it.

THANKS FOR VIEWING!

check out my channel for more projects that you might like, and if you have any tips or questions for this project than please share them in the comments and I will reply as soon as possible.

2 People Made This Project!

Recommendations

  • Oil Contest

    Oil Contest
  • Creative Misuse Contest

    Creative Misuse Contest
  • Water Contest

    Water Contest

28 Discussions

Grate job.. I like it.. hope fully one day i will make it. Thanks for the post.

Mine is working, but for some reason my display is barely lit.

8 replies

That might be because of voltage or its a bad screen.
Good work :)

I'm using the 3.3V port on the Arduino, the pixels are barely lit and the screen is flashing, as if it's buzzing a bit.

Try the 5V port, I think it wil work than.

Than I honestly don't know what to do.

I just used a 220 ohm resistor connected to the 5V output and it works perfectly now!

I figured out that my LCD screen was a clone that looked similar but the pins on the back were all switched around. Its alive!!!

I made this and followed the instructions carefully but when I power it on, all it does is flash the lights on the screen and no pixels show up. Any idea what is causing this?

temp_-181830528.jpg

Awesome Project!! but can you explain what each part of the code does? I want to understand it. Thanks!!

1 reply

I did not make tis code and i dont understand this lcd code, sorry.
I want to change the code so that it prints the winner like: P2 winner.
But I dont know how.

Nice! I love this

This looks like a great project, but the "setup" step of the code just writes what appears to be your name on the LCD and the "loop" does nothing!

I might well make up a board for this for one of my kids' projects so if you do have the full code then please post it.

Thanks

Ugi

2 replies

Great - looks much better.

Thanks

Ugi

PS The GitHub page hosting the code is a couple of years old. There's no dishonour in using someone else's code (since it appears to be public domain) but if it's not your code you should credit the author.