Back to projects

8x8 LED Matrix Snake

Snake on an 8x8 LED matrix with analog joystick control, developed as a school and personal project.

Overview

Context
I wanted to build a classic game with real analog input and a display I had to drive myself.
Action
A MAX7219 driver runs the 8x8 LED matrix. The Arduino reads the joystick's two analog voltages and turns them into a direction, and the snake's body is stored as a list of positions that grows as it eats.
Result
A playable Snake game controlled by an analog joystick.
Learning
An Arduino Uno has very little memory, so how the snake is stored matters.

What I did

  • Built an 8x8 LED matrix Snake game, mapping joystick voltage inputs to direction vectors with a dynamic array

Parts

  • Arduino Uno
  • 8x8 LED matrix
  • MAX7219 driver
  • Analog joystick