One of the electronics DIY kit jolliFactory came up with is the Bi-color LED Matrix Driver Module Kit. This module is designed to be chain-able so that you may daisy-chain the modules together to the number of modules you need to suit your project.

The following are some of the projects built using this Bi-color LED Matrix Driver module:

It is amazing to browse through instructables and find projects which may interest and inspire you to embark on the project or ignite new ideas for your project.

Tetris is a tile-matching puzzle video game released in 1984 and it was the hugely successful handheld version for the Game Boy launched in 1989 that established the game as one of the most popular ever.

Just for FUN, we thought we could build a simple Tetris game by daisy-chaining two of the Bi-color LED Matrix Driver modules together driven by an Arduino micro-controller simply by adapting similar projects found at instructables. We searched through the instructables here but did not manage to find any similar Tetris project to work on.

We expand our search to other online sites and managed to find some information which we adapted to build a simple Arduino based Bi-color LED Matrix Tetris game here.

To build this project, basic electronics knowledge with electronics component soldering skill and some knowledge on using the Arduino are required.

You may view the following YouTube video to see what we are building.

Step 1: Building the Bi-color LED Matrix Driver Module

We will be building a two LED Matrix tall Tetris game here driven by an Arduino Nano for this project. We will need two of the Bi-color (Red/Green) LED Matrix Driver Module Kits from jolliFactory. Each of these modules uses two MAX7219 Display Driver ICs to drive a Bi-color LED Matrix. These ICs are excellent because they take a lot of work off the micro-controller and simplify the wiring and logic design.

You can find this Bi-color LED Matrix Driver Module kit from here.

This kit comes with all through-hole components and someone with basic soldering skill should be able to assemble it without much difficulty.

See the following YouTube video on how to assemble the LED Matrix Driver Module Kit:

<p>what parts of the code should i delete if i have no speaker connected?</p>
<p>There is no need to delete any part of the code even if no speaker is connected.</p><p>If you really would like to clean up the code so as not to use the speaker, then delete the following two routines in the code and any calls to these routines;</p><p>1. void TriggerSound()</p><p>2. void playTone() </p><p>and find the following in the Arduino sketch and delete them;</p><p>/* ============================= Audio ============================= */<br>int speakerOut = 9;<br><br>#define mC 1911<br>#define mC1 1804<br>#define mD 1703<br>#define mEb 1607<br>#define mE 1517<br>#define mF 1432<br>#define mF1 1352<br>#define mG 1276<br>#define mAb 1204<br>#define mA 1136<br>#define mBb 1073<br>#define mB 1012<br>#define mc 955<br>#define mc1 902<br>#define md 851<br>#define meb 803<br>#define me 758<br>#define mf 716<br>#define mf1 676<br>#define mg 638<br>#define mab 602<br>#define ma 568<br>#define mbb 536<br>#define mb 506<br><br>#define mp 0 //pause<br><br><br>// MELODY and TIMING =======================================<br>// melody[] is an array of notes, accompanied by beats[],<br>// which sets each note's relative length (higher #, longer note)<br>int melody[] = {mg};<br><br>// note durations: 4 = quarter note, 8 = eighth note, etc.:<br>int beats[] = {8};<br><br>//int MAX_COUNT = sizeof(melody) / 2; // Melody length, for looping.<br>int MAX_COUNT = sizeof(melody) / sizeof(int); // Melody length, for looping.<br><br>// Set overall tempo<br>long tempo = 20000;<br>// Set length of pause between notes<br>int pause = 1000;<br>// Loop variable to increase Rest length<br>int rest_count = 100; //&lt;-BLETCHEROUS HACK; See NOTES<br><br>// Initialize core variables<br>int tone_ = 0;<br>int beat = 0;<br>long duration = 0;</p>
<p>Can someone please explain to me how to do this with 4 single colored max7219 modules? Or how to modify this code... I would really appreciate that.</p>
<p>you suck</p>
It works fine but no Sound!
<p><em>Just to check - </em></p><p><em>Did you connect the speaker to digital pin 9? </em></p><p><em>What type of speaker are you using? <br></em></p>
Yes i did. It is 8Ohm Minispeaker. The Speaker sounds for Test on the Pins to Led-Driver. But on Pin9 is nothing to hear.
<p>I verified the wiring circuit to be working with my sketch provided here. I am not sure what is wrong with your circuit.</p><p>Which Arduino board are you using and did you modify the sketch downloaded here? Did you connect the 100 ohms resistor between pin 9 and the speaker? </p>
Yes, the 100R Resistor is used. I dont modified the Programm and i use an Arduino Nano Board. The Sound is the only Thing missing.
<p>For your connection, are you <em>using our bare interface PCB board at <a href="https://www.tindie.com/products/Nick64/jf-interface-board-1-bare-pcb-board-with-headers/" rel="nofollow">https://www.tindie.com/products/Nick64/jf-interface-board-1-bare-pcb-board-with-headers/ </a></em></p><p><em>If you are wiring it yourself, you may have to check your connections again.</em></p><p><em>If you are familiar with Arduino programming, you may change the sketch to output the sound through pin 8 instead and connect your speaker to D8.</em><br><em></em></p><p><em><a href="https://www.tindie.com/products/Nick64/jf-interface-board-1-bare-pcb-board-with-headers/" rel="nofollow"><br></a></em></p>
I have two led matrix module with just one MAX7219 and just one color. Is it possible to build it with this instructions?
<p>It is not possible to drive 2 single color 8x8 LED Matrix with just one MAX7219 IC. You need one MAX7219 IC for each single color LED Matrix. So you need 4 of these MAX7219 ICs to drive 2 Bi-color 8x8 LED Matrices for this Tetris project.</p><p>You may purchase the LED Matrix DIY kit from https://www.tindie.com/products/Nick64/60mm-x-60mm-bi-color-led-matrix-driver-module-diy-kit/ with generic MAX7219 ICs included.</p>
<p>awesome idea and coding.<br>almost done building it but i have a little bit problem here, Ihave 4 max 7219 ics.<br>can you give me schematic of display driver to make one myself?</p>
<p>Sorry. Just found out I missed your request.</p><p>Though not exactly a schematic of the display driver, the block diagram in the link below should help you to make one yourself provided you have the right Bi-color LED Matrix:</p><p>http://jollifactory.blogspot.sg/2013/08/bi-color-led-matrix-driver-module-diy.html</p>
<p>This instructable was uploaded on 5 Jun 2014 and I found it was mentioned in an article at atmelcorporation's site 'Celebrating Tetris with Arduino

'. I am surprised to learn that Tetris was programmed by Alexey Pajitnov and the game was released on June 6, 1984 which coincidentally is exactly 30 years ago if I had uploaded it one day later. You may visit </p><p>http://atmelcorporation.wordpress.com/2014/06/06/celebrating-tetris-with-arduino%E2%80%A8%E2%80%A8/ to read the article.</p>
<p>So clean looking! That is an awesome platform.</p>
Nice 'ible! It seems like something I could play for an hour straight and be okay with it because I built it XD.

About This Instructable




More by jollifactory:Large 8x8 LED Matrix DisplayJolliCube - an 8x8x8 LED Cube (SPI)Arduino based Bi-color LED Matrix Game of Life
Add instructable to: