Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2021:avaduva:tetrisjr [2021/06/02 01:44]
sebastian.oancia
pm:prj2021:avaduva:tetrisjr [2021/06/02 12:20] (current)
sebastian.oancia [Download]
Line 15: Line 15:
  
 ===== Descriere generală ===== ===== Descriere generală =====
-=== Schema ​bloc: ===+ 
 +=== Schema ​Bloc ===
  
 {{:​pm:​prj2021:​avaduva:​diag.png|}} {{:​pm:​prj2021:​avaduva:​diag.png|}}
 +
 +=== Schema Electrica ===
 +  * 4x Max7219 8x8 Led Matrix
 +{{:​pm:​prj2021:​avaduva:​8x8ledmatrix.png?​500}}
 +  * Arduino + Led Matrix + IR sensor + Buzzer
 +{{:​pm:​prj2021:​avaduva:​arduinoirledbuzzer.png?​500|}}
 +  * Tetris ​
 +{{:​pm:​prj2021:​avaduva:​tetriseaglesch.png?​500|}}
 ===== Hardware Design ===== ===== Hardware Design =====
  
 === Lista piese: === === Lista piese: ===
-  * Arduino Uno +  * [[https://​cleste.ro/​arduino-uno-r3-atmega328p.html|Arduino Uno R3]] 
-  * Breadboard +  * [[https://​cleste.ro/​breadboard-400-puncte.html|Breadboard]] 
-  * Buzzer +  * [[https://​cleste.ro/​modul-buzzer-pasiv.html|Buzzer]] 
-  * Receptor IR +  * [[https://​cleste.ro/​kit-ir-telecomanda-receptor-cablu.html|Receptor IR Telecomanda]] 
-  * Telecomanda +  * [[https://​cleste.ro/​modul-4-x-matrice-led-max7219-8x8.html|Modul 4x Max7219 (8x8 Led Matrix)]]
-  * Modul 4x Max7219 (8x8 Led Matrix)+
  
 ===== Software Design ===== ===== Software Design =====
   * Mediu dezvoltare: Arduino IDE   * Mediu dezvoltare: Arduino IDE
-  * Librarii: ​MD_MAX72xx.h / MD_Parola.h+  * Librarii: ​LedControl.h & IRremote.h 
 +  * Codul de baza: Code-It-Yourself - Tetris 
 +  * Modificari aduse:  
 +    * Reprezentarea pieselor si a jocului propriu zis pe 3/4 8x8 Led Matrix 
 +    * Controlul pieselor cu ajutorul telecomandei 
 +    * Printarea scorului in Serial monitor 
 +  * Afisarea se face folosind o matrice no_dev x side x side: 
 +    * no_dev - numarul de device-uri (matrici) 
 +    * side - dimensiunea unei linii in matrice 
 +  * A fost nevoie de o matrice cu 3 dimensiuni, deoarece functiile de control al led-urilor folosesc pozitia pe o matrice 8x8, si matricea pe care va fi aprins led-ul 
 ===== Preview ===== ===== Preview =====
 [[https://​youtu.be/​BZ6pJsqJdes|Tetris 4x8x8 Led Matrix]] [[https://​youtu.be/​BZ6pJsqJdes|Tetris 4x8x8 Led Matrix]]
  
 +===== Rezultate obtinute =====
 +
 +=== Arduino ===
 +{{:​pm:​prj2021:​avaduva:​tetris_rezultat_7219.jpg?​nolink&​500|}}
 +=== IR Remote ===
 +{{:​pm:​prj2021:​avaduva:​irremote_tetris7219.jpg?​nolink&​300|}}
 +  * 1/3/4/5/7/8 - Select Default Mode
 +  * 2/6 - Select Garbage Mode
 +  * 9 - Clear Idle Screen - Default Mode
 +  * 0 - Print Matrix on Serial Monitor
 +  * * - Pause
 +  * # - Exit Game - Go to Idle Screen
 +  * ↑ - Rotate Piece
 +  * ← - Move Left
 +  * → - Move Right
 +  * ↓ - Move Down
 +  * OK - Start Game
 +=== Idle Menu ===
 +  * 5-8 - Displayed as X reversed
 +{{:​pm:​prj2021:​avaduva:​idlemenu-5.jpg?​nolink&​450|}}
 +  * 1-4 - Displayed as X
 +{{:​pm:​prj2021:​avaduva:​idlemenu-1.jpg?​nolink&​450|}}
 +
 +=== Game and Pieces ===
 +  * Pieces
 +{{:​pm:​prj2021:​avaduva:​pieces1_tetris.jpg?​nolink&​450|}}
 +{{:​pm:​prj2021:​avaduva:​pieces2-tetris.jpg?​nolink&​450|}}
 +  * Game
 +{{:​pm:​prj2021:​avaduva:​game_tetris7219.jpg?​nolink&​300|}}
 ===== Download ===== ===== Download =====
-{{:​pm:​prj2021:​avaduva:​tetrisjr.pdf|Tetris Jr.}}+  * [[https://​ocw.cs.pub.ro/​courses/​pm/​prj2021/​avaduva/​tetrisjr?​do=export_pdf|Tetris Jr. (do_export)]] 
 +  * {{:​pm:​prj2021:​avaduva:​tetris_jr_final.pdf|Tetris Jr. (pdf)}} 
 +  * {{:​pm:​prj2021:​avaduva:​tetris7219.zip|Tetris - Arduino Code}} 
 + 
 +===== Bibliografie/​Resurse ===== 
 +  * [[https://​www.youtube.com/​watch?​v=8OK8_tHeCIA| Code-It-Yourself - Tetris (video)]] 
 +  * [[https://​github.com/​OneLoneCoder/​videos/​blob/​master/​OneLoneCoder_Tetris.cpp| Code-It-Yourself - Tetris (code)]] 
 +  * [[https://​github.com/​wayoda/​LedControl| LedControl]] 
 +  * [[https://​github.com/​Arduino-IRremote/​Arduino-IRremote| IRremote]]
  
pm/prj2021/avaduva/tetrisjr.1622587474.txt.gz · Last modified: 2021/06/02 01:44 by sebastian.oancia
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0