Now It Plays the Tetris Theme Song!

Now it plays the Tetris theme song while you’re playing! An ATtiny85 is used to store the notes matrix and it listens to the ATmega328p on two pins to either play/stop the music or just pause it. I used the Arduino-Tiny core instead of the one from MIT HLT for the ATtiny85 since it supports the Tone() function in the Arduino library. It was actually quite hard to fit all the frequency values and duration values in a mere 512 bytes of RAM on the tiny85.

Here is a few more components that I’m considering to add to this Tetris game in the future:

-A 3-axis accelerometer (MMA8452Q) to provide another form of input;

-A LED bar graph, or just a couple LEDs, that could reflect the game progress/score.

-A separate small 8*8 or two 5*7 single colour LED matrices to display the next Tetris piece, and to allow the player to store the current piece.

2013-09-23 23.19.47

 

The Code:

ATmega328p: https://github.com/jl452/super-saiyan/tree/master/LED_Matrix_8x16_Tetris

ATtiny85: https://github.com/jl452/super-saiyan/tree/master/Tetris_Music

About these ads

5 thoughts on “Now It Plays the Tetris Theme Song!

  1. Pingback: Breadboard Tetris is Wire Artwork

  2. Pingback: rndm(mod) » Breadboard Tetris is Wire Artwork

  3. Pingback: Breadboard Tetris is Wire Artwork — Blog of MPRosa

  4. Pingback: Playing Tetris on a breadboard with Atmel | Bits & Pieces from the Embedded Design World

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s