A Snake game in Arduino UNO R4's LED matrix with a joystick controller
demo.mp4
Read the detailed technical article here: medium.com/@siphyshu/i-made-th...
- Arduino UNO R4 WIFI
- Dual-Axis joystick controller
- 5 connecting wires
Connect Arduino R4's 5V, GND, A0, A1, and D2 to the PS2 Joystick module's 5V, GND, URX, URY, and SW respectively.
![](https://private-user-images.githubusercontent.com/52672162/286389752-23e4b67c-cdf1-4ca2-9919-640c709266d0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxODY3MjEsIm5iZiI6MTcyNDE4NjQyMSwicGF0aCI6Ii81MjY3MjE2Mi8yODYzODk3NTItMjNlNGI2N2MtY2RmMS00Y2EyLTk5MTktNjQwYzcwOTI2NmQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDIwNDAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NjA2YzQ5NjAwMmQwNDIyOWQ2ZWYyY2I1NTFiYzczZmZmMjY5ZjY0N2YzMDExZmM0MWVlM2ZjMzEyMjFlODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vbqJfWYwI-wnUKBrcYdzR096cynP28cshaP1uZpVAC0)
These are my ideas for the project, PRs are welcomed if anybody wants to work on these.
- This can be modified for any arduino connected with an LED Matrix, that can be explored
- See how a blinking head on the snake looks. Does it provide clearer visuals of the snake's direction?
- Adding an infinite AI playing mode could be fun and can be used as a screensaver playing in the background