Memory Game

by Gurneel in Circuits > Arduino

205 Views, 0 Favorites, 0 Comments

Memory Game

20220617_135554.jpg

Hi my name is Gurneel. I mad ethis game for my grade 10 corse, Computer Technology. I deicied to make this game baceuse it seemed like a fun and easy design to make. And I wasnt wrong. The wriing is very simple, and the code I provide below.

Supplies

20220616_124518.jpg

Materials:


1x Arduino Uno

1x Breadboard

4x Push Button

1x Green LED

1x Red LED

1x Green LED

1x Blue LED

4x 330O Resistor

Many wires

LEDS

20220617_132412.jpg

The frist step would to set the LEDs up. You would want to Put the 4 LEDS 4 to 5 spaces apart. You want to put the negative leg in the negative line, and the positive into on hole next to the negative and power rail.

Push Buttons

0.jpg
20220617_132327.jpg

Push buttons you want to put half way thorugh the bread board, in the middle. You wan tot make sure that they arnt connected to any LED. You want to attach 4 of them, one for each LED.You also want to connect

Resistors

0.jpg
0.jpg

For eahc resistor you want to plugone end connected to an LED. and the other can be connected to any free space. The other end of the resistor we will connect to the arduino later.You want to do this for each LED.

Wirering

0.jpg
0.jpg

This is the final step for the components. This step is fairly easy.What you want to do is attach the push buttons to negative. Each push button should be connected. Now you want to get your arduino. Firstly you want to connect the breadboard to negitive. Now you want to connect plug 2 and 3, to the first resistor and switch(2 to the switch and 3 to the resistor). Now 5 and 6 to the second resistor and switch(5 to the resistor and 6 to the switch). Arduino plug 9 and 10 go to 3rd switch and resisotr(9 to the switch and 10 to the resistor). Finally the last switch and resistor go to 12 and 13(12 to the switch and 13 to the resistor).

Code

Screenshot 2022-06-16 122751.png

This is only a small amont of my code, donwload the file below for the full file. Now when you run your code everything should be working fine.

Downloads