This shows you the differences between two versions of the page.
pm:prj2023:avaduva:buzzwiregame [2023/05/07 14:45] vpipirigeanu [Bibliografy/Resources] |
pm:prj2023:avaduva:buzzwiregame [2023/05/29 13:31] (current) vpipirigeanu [Download] |
||
---|---|---|---|
Line 14: | Line 14: | ||
</note> | </note> | ||
==== Block Schema ==== | ==== Block Schema ==== | ||
- | {{:pm:prj2023:avaduva:pipirigeanu_valentina5.png?700|}} | + | {{:pm:prj2023:avaduva:pipirigeanu_valentina5.png?500|}} |
====== Hardware Design ====== | ====== Hardware Design ====== | ||
Line 29: | Line 29: | ||
{{:pm:prj2023:avaduva:pipirigeanu_valentina4.png?700|}} | {{:pm:prj2023:avaduva:pipirigeanu_valentina4.png?700|}} | ||
===== Software Design ===== | ===== Software Design ===== | ||
+ | |||
+ | Mediu de dezvoltare: Arduino IDE, TinkerCAD | ||
+ | |||
+ | The **LiquidCrystal_I2C** library is included, which allows the Arduino to communicate with the LCD display using the I2C protocol. | ||
+ | |||
+ | The route's beginning (start) is linked to **pin 8**, while the route's finish/diode (end) is attached to **pin 9**.The wire with which the route is traveled is connected to GND. The buzzer is connected to pin 13. | ||
+ | |||
+ | The variable "contacts" is used to keep track of the number of contacts between the wire and the route. | ||
+ | |||
+ | Pins 8 (start) and 9 (end) are both in the HIGH state at the start. When both pins go LOW, it implies that the wire has come into contact with the wire's path. The number of contacts is recorded in this scenario, and a sound is played. The current round's number of touches is always displayed on the LCD and in the Serial Monitor. | ||
+ | |||
+ | If the wire touches the route 10 times during a round, the game is over and the round is lost. The buzzer emits a sound, and the message "GAME OVER" is shown on the LCD and in the Serial Monitor. | ||
+ | |||
+ | If pin 9 (end) goes to the LOW state while pin 8 (start) stays HIGH, the wire has come into contact with the bottom of the diode and the round is over. A separate sound is played, and the phrase "You Win The Game" is shown on the LCD and in the Serial Monitor. | ||
+ | |||
===== Obtained Results ===== | ===== Obtained Results ===== | ||
- | ===== Conclusions ===== | + | Video: https://youtube.com/shorts/OG6t8L-XShc |
+ | {{:pm:prj2023:avaduva:buzzwire1.jpeg?700|}} | ||
+ | {{:pm:prj2023:avaduva:buzzwire2.jpeg?700|}} | ||
+ | {{:pm:prj2023:avaduva:buzzwire3.jpeg?700|}} | ||
+ | |||
+ | ===== Conclusions ===== | ||
+ | <note>This was a project that taught me a lot about hardware and software while producing a good outcome.</note> | ||
===== Download ===== | ===== Download ===== | ||
+ | **CODE: {{:pm:prj2023:avaduva:buzzwire.rar|}}** | ||
+ | |||
+ | <html><a class="media mediafile mf_buzzwiregame" href="?do=export_pdf">Export to PDF</a></html> | ||
===== Journal ===== | ===== Journal ===== | ||
+ | * 27.04.2023- Alegerea proiectului | ||
+ | * 5.05.2023-Documentatie initiala | ||
+ | * 18.05.2023-Hardware | ||
+ | * 25.05.2023 - Software | ||
+ | * 28.05.2023-Documentatie finala | ||
===== Bibliografy/Resources ===== | ===== Bibliografy/Resources ===== | ||
- | <html><a class="media mediafile mf_buzzwiregame" href="?do=export_pdf">Export to PDF</a></html> | + | * https://circuitdigest.com/microcontroller-proejcts/arduino-buzz-wire-game |
+ | |||
+ | * https://projecthub.arduino.cc/behrooz66/buzz-wire-with-score-counter-0f5833 |