Introduction: Computer Engineering Final Simon Says Game
My Idea:
My project is the Simon Says Game. In this game there are four LED’s and four buttons. Music will play from the buzzer while the LED’s light up matching the music. Then the game will start. A LED will light up and you have to click the button matching the led that lit up. If you get it right the LED’s will flash and music will play from the buzzer and if you get it wrong less will flash and different music will play from the buzzer. The Game will automatically restart when you lose.
Research:
I got the idea from aninstructable about the "Arduino - Simple Simon Says Game" made by faziefazie. In the instructable he makes a Simon says game similar to mine except he uses RGB LED's whereas I just used different color LED's because I wouldn’t have had enough pins for all for RGB LED's. I got my code from a different instructable called "Arduino Simon Says" made by mpilchfamily. He also made a Simon says game except he used an older version of the Arduino.
Step 1: Getting All the Materials Needed
For my simon says game these are the materials you will need.
- arduino
- breadboard
- 4 different color LED's ( if you dont have 4 different colours you can use 2 of the same, I used 2 green LED's.)
- 4 buttons
- 4, 360 ohm resistors
- buzzer
- wires
Step 2: Building the Game
Step 1: To start the build you will need to put your 4 LEDS on the bread board in a line with a good amount of space in between them.
Step 2: Next you will want to put your 4 buttons right underneath each LED.
Step 3: Connect a black wire from the short leg of the LED's to ground. Do the same for the buttons, connect a wire from the buttons to ground.
Step 4: Connect the 360 ohm resistors from the long leg of the LED to the right of the LED on the breadboard.
Step 5: Connect wires from the resistors to the Arduino and from the buttons to the Arduino. The pins should be in this order.
- First LED to pin 8 with the button to pin 2
- Second LED to pin 9 with button to pin 3
- Third LED to pin 10 with button to pin 4
- Fourth LED to pin 11 with button to pin 5
Step 6: Lastly you connect your buzzer with small leg connecting to ground and the big leg connecting to pin 12.
Step 3: The Sketch
I got the code from "Arduino Simon Says" made by mpilchfamily. For the sketch you need to download the Tone library to make the buzzer work. On the sketch to make sure it works you need to switch the ledpin and button from Boolean to int. The Sketch file is at the bottom for you to download a long with the Tone library.