Proto-Tetris Machine

Hi! This is a rework of an old Arduino project. Basically it's a set of pieces that works as a stand for a protoboard…
7
20
0
313
updated February 6, 2023

Description

PDF

Hi!

This is a rework of an old Arduino project.

Basically it's a set of pieces that works as a stand for a protoboard and some components that i've used to made a Tetris Machine.

In the pictures im using my DIY Controller but you can build your own using a PS2-like joystick and 3 buttons

Included the .ino file. It uses the Fastled, LedControl and Adafruit_TicoServo libraries (downloadable from the library manager of the IDE)

Component list:

  • Arduino Uno/Nano
  • Servo (a cheap SG90 it's ok)
  • Two 8x8 RGB Matrix (using cheap chinese matrix found in ebay)
  • Display MAX7219
  • PS2-like joystick
  • 3 switch buttons

PINOUT for the Arduino:

*Joystick

  • AX --> A0
  • AY --> A1

*Buttons

  • Rotate CW -->D3
  • Rotate CCW -->D4
  • Start -->D5

*RGBMatrix --> D8 *Servo-->D9 *Display Max7219

  • Data -->D10
  • CS -->D11
  • CLK -->D12

Important Tip: Don't feed the RGB Matrix trough the Arduino, the two matrix together can consume more than 1Amp and you the Arduino can't manage such high currents.

There's two versions for the Matrix diffusor in one or two pieces. If you can manage filament changes i recommend print the 'matrix_cover_with_diffusor.stl' and change from white to a dark color fillament when starting to print the grid. The white panel has a 0.6mm thickness. You can also print the white panel and the grid separated then stick them with glue or tape but works better when printed in one piece.

See below for some useful pics and more instructions/tips.

See in action (an earlier prototype) in this video: https://youtu.be/qHTFjGCErSI

Enjoy this nice weekend projet and have fun!!

Components / Electronics

Components used

8x8 RGB Matrix (x2)

SG90 Servo

MAX7219 display

Joystick + buttons

Arduino NANO

Protoboard power adapter

Building instructions / tips

Two RGB Matrix

Connect the two matrix

Use grid + diffusor over the matrix, use tape for fix the matrix

grid+diffusor

Printing grid+diffusor in one piece...changing filament

Display and front panel

Insert the display in front panel

Put the cover

Insert the servo into dial, you may need a bit of sanding

Insert the dial in top part

Replace the Servo Stick with the 'next' piece. When the game is over (pieces falling down) it must be pointing at 90º (vertical)

Feed the matrix (ant other components) from the power source, NOT trough the arduino

Feeding the NANO board

Put some order in this mess!!!

Adjusting Servo in INO file

Typical values for SG90 Servos. If your servo doesn't point properly to the pieces, change this.

Category: Electronics

Tags



Model origin

The author marked this model as their own original creation. Imported from Thingiverse.

License