Memory Game!

by 709541 in Circuits > Arduino

209 Views, 1 Favorites, 0 Comments

Memory Game!

Screenshot 2023-01-24 at 10.27.06 PM.png

Hello there and welcome! In this project it's all about testing your memory!

This version of the Memory Game challenges you and works like this:

It has an LED sequence that goes off and you have to memorize that sequence. Once you memorize the sequence you will have opportunity to push the push buttons in order the LEDs lit up.

If you get it right it will add one point to the 7 segment display and it will continue to do that till you get all of them right.

A Piezo's buzzer plays a tune while you play the game

Supplies

  • Arduino Uno
  • 4 LEDs (Red,Blue,Yellow and White)
  • 12 resistors
  • 7 segment display
  • Piezo's buzzer
  • Breadboard
  • 4 Push buttons

Parts Required

Screenshot 2023-01-25 at 9.57.29 AM.png
Screenshot 2023-01-25 at 9.55.44 AM.png
Screenshot 2023-01-25 at 9.55.36 AM.png
Screenshot 2023-01-25 at 9.55.32 AM.png
Screenshot 2023-01-25 at 9.55.29 AM.png
Screenshot 2023-01-25 at 9.55.26 AM.png
Screenshot 2023-01-25 at 9.55.21 AM.png
Screenshot 2023-01-25 at 9.55.17 AM.png

Supplies needed :

  • Arduino Uno
  • 4 LEDs (Red,Blue,Yellow and White)
  • 12 resistors
  • 7 segment display
  • Piezo's buzzer
  • Breadboard
  • 4 Push buttons
  • Different coloured wires

Step 2 Wiring

Screenshot 2023-01-24 at 10.48.54 PM.png
Screenshot 2023-01-24 at 10.50.48 PM.png
Screenshot 2023-01-24 at 10.51.17 PM.png
Screenshot 2023-01-24 at 11.01.07 PM.png

Here is a picture of how the wiring is supposed to look

Some of the pushbuttons and led wires were put into analog pins (A0-A5) and the rest put in (6,5 and 4)

The 7 segment display wires go into pins 13,12,11,10,9,8,7

Make sure the wiring is neat, making it neat and organized can help you locate problems easier and fix wires

Upload All the Coded Code

Screenshot 2023-01-24 at 10.52.39 PM.png

This game consists of 4 different coloured LEDs, 4 pushbuttons, a 7-segment display and a piezo's buzzer.

How it works is that the code generates a order that the guest has to remember and input using the buttons provided.

The game will start straight away. While the sequence is playing on the LEDs a tune will play on the side from the piezo's buzzer. This just makes the game more interesting and more fun! Incase if you forget how the sequence goes clicking any one of the buttons can play the sequence again for you.

There are about 5 rounds to be played and getting up to the number 9 on the 7 segment display means you got them all right and you win! Enjoy!

Downbelow is the code I made feel free to download to try or use it!

Downloads

How My Memory Game It Works!

I had made a video demonstrating my memory game but unfortunately it was more than 25 MB so here is a link to my video :)

https://docs.google.com/document/d/1nEsUvnWFr-0CDfVN57KFr5wT-Z5udjrjdN0f3-m3LWc/edit