Arduino 8x8 Matrix LED Game
by joe in Circuits > Microcontrollers
17712 Views, 16 Favorites, 0 Comments
Arduino 8x8 Matrix LED Game
![IMG_4742.JPG](/proxy/?url=https://content.instructables.com/F4T/XL4Q/GYGES99Y/F4TXL4QGYGES99Y.jpg&filename=IMG_4742.JPG)
For a class I am taking I had to make a game using an 8x8 LED Matrix. The game is based around dropping a "bomb" on a target scrolling across the bottom of the screen.
Each level the target moves faster and you are moved further away from the target. After 4 levels it ends.
Each level the target moves faster and you are moved further away from the target. After 4 levels it ends.
Parts
![IMG_4584.JPG](/proxy/?url=https://content.instructables.com/F3C/UCOK/GYGES9B2/F3CUCOKGYGES9B2.jpg&filename=IMG_4584.JPG)
The parts I used were:
1-Arduino Nano ATMEGA328.
1-Parallax 5 position switch.
1-8x8 LED Matrix
1-470Ω Resistor network
1-solderless breadboard
1-Arduino Nano ATMEGA328.
1-Parallax 5 position switch.
1-8x8 LED Matrix
1-470Ω Resistor network
1-solderless breadboard
Wire It Up
![matrx.jpg](/proxy/?url=https://content.instructables.com/F7Y/NR89/GYGF8S1P/F7YNR89GYGF8S1P.jpg&filename=matrx.jpg)
I plugged pins D0-D7 in to the resistor, and then to the positive pins of the matrix.
Pins D8-13, A0-A2 to the negative of the matrix.
The 5 Positions switch should be attached to pins A3-A6. The trick here is A6 cannot be made digital, you'll have to read it as analog. No biggie.
Pins D8-13, A0-A2 to the negative of the matrix.
The 5 Positions switch should be attached to pins A3-A6. The trick here is A6 cannot be made digital, you'll have to read it as analog. No biggie.
Load Code
![IMG_4582.jpg](/proxy/?url=https://content.instructables.com/FPU/T0UU/GYGES9CN/FPUT0UUGYGES9CN.jpg&filename=IMG_4582.jpg)
Load the code on the Arduino.
Downloads
Play the Game
Thanks for looking at the game.