/arduino-tetris

One-player Tetris game on Arduino, with 8*8 led matrix and infrared receiver

Primary LanguageC++

Game Tetris on Arduino

This project builds a one-player Tetris game on Arduino, where a 8*8 LED matrix is used as the monitor and an infrared sensor as the signal receiver.

The project realizes almost all the fundamental rules of the traditional Tetris game. The player can control the falling pieces to move left, move right or rotate. Thanks to infrared receiver, the controlling signal is quite sensitive even from a large distance.

tetris gif

Usage

  1. To begin, the following are needed:

    • Arduino IDE
    • Arduino board (I use Arduino Uno)
    • 8*8 LED matrix
    • Infrared receiver
    • Remote control
    • Eight 1kΩ resistors
    • IRremote library
  2. Complete the circuit.

    circuit
  3. Change the codes of controlling signal to the codes of your remote control.

  4. Upload the sketch to Arduino.