- “Maker Faire Rome – The European edition” returns to the Gazometro OstiensePosted 7 hours ago
- Single-chip saturation meterPosted 4 weeks ago
- Raspberry Pi Relay BoardPosted 2 months ago
- PCB CAD, A SELECTION GUIDEPosted 3 months ago
- Automatic dispenser for catsPosted 3 months ago
- Do you have a mask? RASPBERRY Pi SEES ITPosted 3 months ago
- RFID based Attendance system using Arduino and External EEPROMPosted 4 months ago
- ESP32 Neopixel Status Indicator and Sensor PCB Shield with Wi-Fi ManagerPosted 4 months ago
- Remote control power functions usbPosted 4 months ago
- ESP32-CAM with Telegram: Take Photos Control Outputs Sensor Readings and Motion NotificationsPosted 4 months 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.