This project implements the classic game of Tetris using a Neopixel LED strip and an Arduino UNO. The player interacts with the game using five push buttons, controlling the movement and rotation of falling tetrominoes within a 10x10 matrix. The game features random spawning and locations for tetrominoes, with LED colors changing after each move. Additionally, the OLED display provides real-time feedback on the player's score, including the current score and high score. The game also includes a visually appealing LED effect to indicate game over.
- 10 X 10 LED Matrix.
- Controls via 5 Push Buttons.
- Left shift
- Right Shift
- Down
- Rotate
- Reset
- Displaying Score on OLED Display.
- High Score (H)
- Current Score (S)
- Six Different Shapes
- I-shape
- S-shape
- Z-shape
- L-shape
- Square-shape
- T-shape
- Random spawning of shapes.
- Random location of spawning of shapes.
- Game over LED effect.
- Change in LED colors after each move.
- Hardware: two Arduino UNOs, noepixel LED strip (109 LEDs), OLED Display, 5V supply (eg. SMPS)
- Software: Arduino IDE
- Additional Requirements: 3D-printer, five Push tactile buttons, Acrylic fiber sheet, bread board or PCB, Sub-board/Cardboard.
- Tetris Body (Optional)
- Via using any 3D printing technique print the modles box1 and box2.
- The box1 is used to keep the 10 X 10 LED matrix, whereas, box2 is used to keep Arduino UNOs, wires and OLED Display.
- If you want you can use Sunboard or Cardboard to make the subsection for the LED Matrix and cover it with an translucent acrylic sheet.
- 10 X 10 LED Matrix
- Flashing the Code
- NOTE: While flashing the code it is recommended to remove/un-plug all the wires/connections of devices attached (LED, another Arduino, OLED Display) to prevent any damage.
- Flash the code Game.ino in one Arduino UNO and lets number it as 01. This code controls LED Matrix and buttons.
- Flash the code Display.ino in other Arduino UNO and lets number it as 02. This code controls OLED Display.
- Wire Connections
- Power Supply Connection
- If you have a 5V power supply like SMPS (Recommended): Connect the live wire to to 5V pin and ground wire to GND pin of any Arduino UNO.
- If you have a power supply 9V: Use power jack of any one Arduino UNO.
Coming Soon