T-tris: the Tetris - Clone - Project

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I build a newbie project,
which is a simple implementation of the best game ever made. (IMHO)

You find the schematic, source-code,
some pictures and a video here:

http://www.avrfreaks.net/index.p...

Note to the admin:
{
If the pictures and the video consume
too much space, send me a note,
and I'll delete them.
}

If you build something based on this project,
be sure to send me a copy (and maybe some pictures),
ok?

Have fun!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Awesome project.
If you are worried about space, you can load the AVI up to youtube, I am so charmed, you built this on the same CPU as I built this http://www.avrfreaks.net/index.p... beginner junk on. But I bet Tetris took more than a weekend to put together. The source is nice and small, good place for me (us all) to learn, thanks.

Conrad Braam - www.softcircuitry.blogspot.com - www.plcsimulator.org
Always start off poorly, that way when you finally figure it out, you can get a few surprise hits in.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, and ok, I admit it...
The coding and debugging took me one day (like 12 hours straight, thanks to my new coffee machine), but soldering the prototype took me like 20 hours in 3 days. I couldn't afford to buy high efficiency LED-matrixes in the USA, and as a private person, these are hard to get in Germany. Normal LED-matrixes are to dark for this application. And I've spend some time during boring classes figuring out how to implement the collision detection. But most of the stuff was done on a three-day-weekend.

I've just saw the video of your project, nice work!
It's especially good that you took some time to document what you've done, so it should be more useful to others. My next project will be better documented, i hope... ;-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your project has inspired me to try create a game myself, so I will be building a matrix too. I try to just take photos using my mobile-phone as I go along in the build.

It looks like discrete LEDs are the best way because the matrixes you can get are just out of my reach. Next time I see a bargain bag of 100 LEDs, I know what I need to do:-)

Conrad Braam - www.softcircuitry.blogspot.com - www.plcsimulator.org
Always start off poorly, that way when you finally figure it out, you can get a few surprise hits in.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
because the matrixes you can get are just out of my reach

2 euro, about £1.60 buys you this:

http://ledsee.com/index.php?page...

I recently bought ten - they are very good value.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, these 8*8 ones are avail. for £0.95 excl.
http://www.rapidonline.com/Elect.... It's a more compact version of same it seems.

[EDIT]
These are 38x38 mm hence smaller, so probably a better bet!

Conrad Braam - www.softcircuitry.blogspot.com - www.plcsimulator.org
Always start off poorly, that way when you finally figure it out, you can get a few surprise hits in.

Last Edited: Thu. Aug 14, 2008 - 02:24 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup I guess it depends on the size of the "game board" one wants to create. The ledsee ones are actually fairly big - about 60mmx60mm

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there a datasheet or device name available for the 60mmx60mm matrix? Forward voltage and f_current would be good to know. I guess V_f is approx. 4.2V and I_f = 10mA...
Since V_f is relatively high, do I have to use FETs to switch them (at Vcc = 5V)?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

4.2V is quite high a Vf, only white and blue LEDs have these high forward voltage drops.

Red/yellow/green LEDs vary between 1.4 and 2.6V.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

your right, but according to the "datasheet.jpg" on ledsee.com each dot has two LED in series.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Joined: Aug 08, 2006
hmmm AND you were able to upload your AVATAR. They must have fixed things.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.aplomb.nl/Niels_skn/Niels.html#Dot_Matrix_displays:Johannes, I host datasheets for Niels (the man behind Ledsee), and though it's in Dutch, the datasheets are not .... Have a look and see if it helps.

Nard

A GIF is worth a thousend words   She is called Rosa, lives at Mint17.3 https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the datasheet, Plons! :-)

These RGB-Moduls are really nice...

Do you have the Datasheet for the Red-Matrix at hand?
I can't find them at your link...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aansluitschema == connection diagram .... and you need the first one

- 8x8 dots, 6 cm bij 6 cm, common anode aansluitschema

and there are two PDF's: you have to check out yourself which is the best.

Nard

A GIF is worth a thousend words   She is called Rosa, lives at Mint17.3 https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice one. Ive made one with Tetris, snake and a game of life.
http://www.diamantic.com/project...