Pong game with 1 player due November 6, 2017


One of my favorite games when I was little on the computer was ping pong game that I played with my dad on our PC. So I created a seemingly simple ping pong game, where the paddle is controlled with a potentiometer that changes the y position of the paddle, based on potentiometer position.

How did I do it?

It seemed like a very basic game and connecting two potentiometer shouldn’t be that difficult, but in reality it took a while to figure it out, so I decided to start off with a one-player game. I initially used the simple ball bouncing program which was one of the first programs we programed on Processing. I also used previously used code for Processing to use potentiometer (input) values to do what I wanted it to do.

The Arduino code is rather short, because all the magic happens in Processing.


Arduino Code


Processing Code



Leave a Reply

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