This is an old revision of the document!
My project is a copy of the popular game “Snake” displayed on an 8×8 Module LED Matrix using an Arduino UNO R3 board.
My inspiration came from my childhood when I was an avid fan of this and often played it trying to get a higher and higher score.
My aim is to try and recreate the game so that anyone can share in the fun of this old-school classic.
My project uses an Arduino UNO R3 board as its base, as well as an 8×8 Module LED Matrix to display the game itself as well as the score, a Module Joystick to control the Snake's movements during the game and a buzzer that makes noises whenever you pick up a fruit or lose.
The code was developed using the Arduino IDE, and the LedControl.h library was used for the LED matrix.
The main functions that were used were:
generateFood()
calculateSnake()
fixEdge()
void handleGameStates()
In summary, my Arduino Uno Snake game project is a fun and educational demonstration of how programming and hardware can come together to create an engaging gaming experience. It has been an exciting journey that has taught me valuable skills and sparked my curiosity about microcontrollers.
Code for the game : snake_game.txt
Snake game sounds mp3
Arduino_datasheet: https://docs.arduino.cc/static/32b4941b81a2c6a5308e0e9bd348d0e6/A000066-datasheet.pdf