Introduction: Arduino 2 Player Game

Picture of Arduino 2 Player Game

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

Picture of 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

Picture of 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

Picture of 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

Picture of 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.

Comments

Tech Works (author)2016-02-02

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

ЛюбоА (author)2015-11-02

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

ibenkos (author)ЛюбоА2015-11-02

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

ЛюбоА (author)ibenkos2015-11-04

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.

ibenkos (author)ЛюбоА2015-11-04

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

ЛюбоА (author)ibenkos2015-11-04

The screen doesn't work then

ibenkos (author)ЛюбоА2015-11-04

Than I honestly don't know what to do.

ЛюбоА (author)ibenkos2015-11-06

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

ibenkos (author)ЛюбоА2015-11-07

Thats great! :)

ЛюбоА (author)ibenkos2015-11-05

Thank you nevertheless.

bkelley12 made it! (author)2015-10-21

Its alive!!

ibenkos (author)bkelley122015-10-21

Great to see that you got it working :)

bkelley12 (author)2015-10-21

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!!!

bkelley12 (author)2015-10-15

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?

MohamadK (author)2015-05-08

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

ibenkos (author)MohamadK2015-05-08

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.

sergalpe made it! (author)2015-04-01

Simple and Funny!!!

ibenkos (author)sergalpe2015-04-01

Yea I know :) good job!

Jason80 (author)2015-03-30

Nice! I love this

BruceE3 (author)2015-03-30

so great!

Ugifer (author)2015-03-30

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

ibenkos (author)Ugifer2015-03-30

sorry about this, I am fixing it now!

Ugifer (author)ibenkos2015-03-30

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.

DangerousTim (author)2015-03-30

Could you give the correct code please?

ibenkos (author)DangerousTim2015-03-30

the code is fixed now :)

ibenkos (author)2015-03-30

I will add the code for it as soon as posible, sorry

chr15sc (author)2015-03-30

Great idea for a game BUT I can only echo what others have said.. I cannot see code which operates the game and would appreciate it. The code here appears to be library not operating code. Chris

carlos66ba (author)2015-03-29

The code you posted clearly does not do what you say it does. There is no analog reading of the pots so it can't work.

This is very good work and I like it quite a bit. I'd love to make a wrist watch with a Nokia 5110 display and then be able to connect to the watch a small box with an Arduino Pro-Mini in it and the pots mounted in it as well and be able to play PONG for two on my watch. :-) Keep up the good work.

if you make an watch like that then it would have been an really big watch ;) and thanks :)

Raphango (author)2015-03-29

Great! =D

But it seems you've put just the display library, not the Arduino Code for the game...

ibenkos (author)Raphango2015-03-29

The code is there, you just have to copy it and paste it on your arduino software

About This Instructable

10,413views

196favorites

License:

Bio: I am always making electronic stuff. I like to do Arduino projects best. more projects coming soon!
More by ibenkos:433MHz 4Ch Remote ControllerWireless Robotic Control Hack a servo
Add instructable to: