Simon Game

by Toma Dana Georgiana 1221B

Introducere

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.

Descriere generală

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.

{{ :pm:prj2022:agmocanu:toma_dana_blocdiagram.png?nolink |

Scheme Diagram

Hardware Design

Components list:

  • Arduino Uno
  • breadboard
  • 6 LEDs
  • 5 pushbuttons
  • buzzer
  • 7 segment display
  • resistors
  • wires

Electric scheme:

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.

The finished code can be found in the download section.

Rezultate Obţinute

Concluzii

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.

Download

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

Bibliografie

pm/prj2022/agmocanu/simon_says_game.txt · Last modified: 2022/06/01 18:46 by dana_georgiana.toma
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