- How to Adjust X and Y Axis Scale in Arduino Serial Plotter (No Extra Software Needed)Posted 3 months ago
- Elettronici Entusiasti: Inspiring Makers at Maker Faire Rome 2024Posted 3 months ago
- makeITcircular 2024 content launched – Part of Maker Faire Rome 2024Posted 5 months ago
- Application For Maker Faire Rome 2024: Deadline June 20thPosted 7 months ago
- Building a 3D Digital Clock with ArduinoPosted 12 months ago
- Creating a controller for Minecraft with realistic body movements using ArduinoPosted 12 months ago
- Snowflake with ArduinoPosted 1 year ago
- Holographic Christmas TreePosted 1 year ago
- Segstick: Build Your Own Self-Balancing Vehicle in Just 2 Days with ArduinoPosted 1 year ago
- ZSWatch: An Open-Source Smartwatch Project Based on the Zephyr Operating SystemPosted 1 year ago
Arduino Snake LED game
In this project we will see how to recreate the Snake game on a matrix of LEDs. After loading, the game will automatically start with the snake in the lower left corner. An apple will randomly spawn and you can start moving the snake with a joystick.
We have an 8 x 12 matrix of LEDs with ws2811 chips powered by an external 5v power supply. This game works with matrix of any size with minor code changes. We use an Arduino (in this case Mega) to control the lights in the matrix. The circuit diagram is shown below.
The joystick is an analog stick that requires only 3 inputs for the Arduino: 2 analog inputs to read the x and y direction and a digital input to know if the analog stick is pressed. All wiring and power supply are hidden inside the table.