Yurii Shevchuk

Game with 8x8 LED matrix on Arduino

In this article I want to share a simple game I created on Arduino with 8x8 LED matrix created on a single breadboard. The main goal was to build a game console with all components located on a single breadboard.


  1. Breadboard
  2. Arduino UNO
  3. 8x8 LED matrix
  4. Driver MAX7219
  5. 4 Buttons
  6. Bunch of wires
  7. four 470 Ohm resistors
  8. one 10 kOhm resistor

Software requirements

You need to have:

  1. Arduino IDE
  2. LedControl library
  3. Game’s source code


I won’t explain it in details. I just will put a couple of photos that will show you how to set up the most important connections.

Arduino is on the backside of the breadboard.

Arduino is not attached to the back side of the breadboard. Wires are strained in this way just to simply hold Arduino in place.

Four buttons are connected to the Analog Input PINs from A0 to A3.

Three wires are connected to PINs 10, 11 and 12.

The most messy part is the one that connects MAX7219 driver to LED matrix.

The first matrix input goes into the hole near number 25 at the bottom of the photo.

It’s hard to understand something just by looking at this photo. In case if need some more information you can check this Tutorial. It has a scheme that helps you connect these components.

Useful resources

During the building process I found a few useful resources that helped me build this device.

  1. Tutorial that helps connect MAX7219 driver and LED matrix
  2. Online tool that helps create binary images and save them as an array of hex/binary values.

Source code

The main source code you can find at my GitHub repository. If you find a bug feel free to create an issue or pull request.