This shows you the differences between two versions of the page.
pm:prj2022:agmocanu:simon_says_game [2022/05/11 20:09] dana_georgiana.toma created |
pm:prj2022:agmocanu:simon_says_game [2022/06/01 18:46] (current) dana_georgiana.toma |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Simon Says Game ====== | + | ====== Simon Game ====== |
+ | by Toma Dana Georgiana 1221B | ||
===== Introducere ===== | ===== Introducere ===== | ||
- | <note tip> | + | |
- | A memory game, each round the LEDs are lighting up in a random order and the player must reproduce that order by pressing the buttons corresponding to each LED. | + | In this memory game, the LEDs light up in a random order each round, and the player must recreate that order by pushing the buttons that correspond to each LED. |
- | </note> | + | |
===== Descriere generală ===== | ===== Descriere generală ===== | ||
- | <note tip> | + | When the start button is pressed, the game begins. The LEDs will turn on and off in a random order. The correct LED (green LED) will light up if the corresponding buttons are pressed in the same order. If not, the wrong LED (the red LED) will turn on. The current level will be displayed on the 7-segment display. |
- | The game starts when the start button is pressed. The LEDs will light up in random order. If the corresponding buttons are pressed in the same order the correct LED (green LED) will light up. If not, the wrong LED (red LED) will light up. The 7 segment display will show the current level. | + | |
- | {{ :pm:prj2022:agmocanu:toma_dana_blocdiagram.png?nolink |}} | + | {{ :pm:prj2022:agmocanu:toma_dana_blocdiagram.png |{{ :pm:prj2022:agmocanu:toma_dana_blocdiagram.png?nolink |}} |
- | </note> | + | |
- | ===== Hardware Design ===== | + | [[https://ocw.cs.pub.ro/courses/_media/pm/prj2022/agmocanu/toma_dana_blocdiagram.png?w=120&h=92&t=1652288453&tok=d58039|Scheme Diagram ]] |
- | <note tip> | + | ===== Hardware Design ===== |
+ | Components list: | ||
*Arduino Uno | *Arduino Uno | ||
*breadboard | *breadboard | ||
- | *LEDs | + | *6 LEDs |
+ | *5 pushbuttons | ||
*buzzer | *buzzer | ||
*7 segment display | *7 segment display | ||
- | *pushbuttonsresistors | + | *resistors |
*wires | *wires | ||
- | </note> | + | |
+ | Electric scheme: | ||
+ | |||
+ | {{:pm:prj2022:agmocanu:td_schemael1.jpg?direct&650|}} | ||
+ | |||
+ | {{:pm:prj2022:agmocanu:td_schemael2.jpg?direct&650|}} | ||
===== Software Design ===== | ===== Software Design ===== | ||
+ | A random sequence is established as the game begins. The LEDs are flashed in the order prescribed by the sequence at each level, and the player input is compared to the sequence. The level increases if the order is accurate; otherwise, the level is repeated. The current level is displayed on the 7-segment display. The LEDs are accompanied by a buzzer that plays distinct noises for each of them, as well as a winning and a losing sound. Each level increases the challenge by increasing the pace of the flashing LEDs and the number of LEDs that light up. | ||
- | <note tip> | + | The finished code can be found in the download section. |
- | </note> | ||
===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||
- | <note tip> | + | {{:pm:prj2022:agmocanu:td_circuit1.jpg?direct&400|}} |
- | </note> | + | {{:pm:prj2022:agmocanu:td_circuit2.jpg?direct&400|}} |
+ | {{:pm:prj2022:agmocanu:td_circuit3.jpg?direct&400|}} | ||
===== Concluzii ===== | ===== Concluzii ===== | ||
- | <note tip> | + | The game functions properly in its final form. I learned how to use Arduino software to make a simple project as well as how to connect the various components. |
- | </note> | ||
===== Download ===== | ===== Download ===== | ||
+ | [[https://github.com/danagtoma/Arduino-Project/commit/d39ce94b2c6516c7d9bcdcab64e22ce5fb48e0d3| Full Code]] | ||
- | <note tip> | ||
- | |||
- | </note> | ||
===== Jurnal ===== | ===== Jurnal ===== | ||
+ | * 5.05.2022 - Deciding the project team | ||
+ | *16.05.2002 - Acquiring the components | ||
+ | *20.05.2022 - Assembling the circuit and writing the Arduino code | ||
+ | *26.05.2022 - Finishing the documentation | ||
- | <note tip> | + | ===== Bibliografie ===== |
- | </note> | + | [[https://ocw.cs.pub.ro/courses/pm/lab/lab1-2022|Laboratorul 1]] |
- | ===== Bibliografie/Resurse ===== | + | [[https://create.arduino.cc/projecthub/aboda243/get-started-with-seven-segment-c73200| 7 Segment Display]] |
- | <note tip> | + | [[https://create.arduino.cc/projecthub/SURYATEJA/use-a-buzzer-module-piezo-speaker-using-arduino-uno-89df45|Buzzer]] |
- | </note> | ||
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||