This shows you the differences between two versions of the page.
pm:prj2021:avaduva:tetrisjr [2021/06/02 02:04] 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 ===== | ||
Line 30: | Line 39: | ||
* Mediu dezvoltare: Arduino IDE | * Mediu dezvoltare: Arduino IDE | ||
* Librarii: LedControl.h & IRremote.h | * Librarii: LedControl.h & IRremote.h | ||
- | * Codul de baza: Code-It-Yourself | + | * Codul de baza: Code-It-Yourself - Tetris |
* Modificari aduse: | * Modificari aduse: | ||
* Reprezentarea pieselor si a jocului propriu zis pe 3/4 8x8 Led Matrix | * Reprezentarea pieselor si a jocului propriu zis pe 3/4 8x8 Led Matrix | ||
* Controlul pieselor cu ajutorul telecomandei | * Controlul pieselor cu ajutorul telecomandei | ||
* Printarea scorului in Serial monitor | * 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 ==== | + | ===== Bibliografie/Resurse ===== |
* [[https://www.youtube.com/watch?v=8OK8_tHeCIA| Code-It-Yourself - Tetris (video)]] | * [[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/OneLoneCoder/videos/blob/master/OneLoneCoder_Tetris.cpp| Code-It-Yourself - Tetris (code)]] |