Memory Game

by 763319 in Circuits > Arduino

253 Views, 1 Favorites, 0 Comments

Memory Game

IMG_0959.jpg
IMG_0958.jpg
IMG_0957.jpg

My Name is Pelumi Ogunsanya in this intractable, I Will be showing you my final project and how to make it. I made a led memory game, how it works is that you will repeat the the light sequence the led presents there are five rounds and in each round the led will increase by one so for round 1, 1 led will light up and you will have to copy the one that lit up by pressing the button and in round 2 the led increases by 1 again so 2 led will light up in round two and it will keep going until 5 rounds, if you win the buzzer will play a sound of victory and if you lose it will play a losing sound.

Materials

IMG_0964.jpg

The martials need for this project are..

1. Led x4

2. Resistors x8 (330 Ohms 10K Ohms)

3. Buzzer x1

4. Buttons x4

5. Arduino UNO x1

6. Wires

7. Breadboard x1

Breadboards are not required to make this but it would help manage and keep all you components working well and keep them organized.

Wiring

IMG_0960.jpg
IMG_0959.jpg
Amazing Amur.png

1. Start with the smaller components I recommend starting with the things like the resistors and buttons, what I did first was the led and it made the wiring harder for me so I suggest doing the resistors first the moving onto the led and buttons.

2. The next thing you should do is start with the wiring, I suggest color-coding your wires it makes it easier to follow and maintain.

Code

IMG_0959.jpg

I tried to make the code as simple and easy to follow, all the information about the code is on the code itself just upload it to the Arduino and it should work if you want an explanation about the code and each part scroll trough the code.

Demonstration

Colour guessing game

This is the video of the project working, it was really fun to make.

Hop you enjoy it.