Simon Says Game; Arduino
by Komalpreet in Craft > Digital Graphics
784 Views, 1 Favorites, 0 Comments
Simon Says Game; Arduino
I'm pretty sure all of us played Simon says when we were little, and personally I love the game! I never thought that the Simon says game can also be played using hardware! So that is the purpose of this instructable, I am going to be creating a Simon says game on tinkercad, you can use the app too if you don't have physical components! However, if you do have the physical components then use those!
Supplies
Before you get into the supplies, just a heads-up I have written a component called an LDC, you don't need this in your project however you can use it as it will make your game more interesting.
Supplies:
- Four 220 ohm resistors
- 4 push buttons
- A buzzer/piezo
- Arduino Uno
- 4 RGB LED'S
- Wires
- An LDC
Gather Everything!
You should have everything in front of you so you can build the project/game with ease.
TimeTo Connect
This connection is without the LDC, furthermore, we need to connect all the wires so that current can flow in the circuit and that the game will work. When this game starts you will hear a buzz from the buzzer/piezo and then the color will show up which is the first thing you have to copy. If you do the right steps, then you will hear a winning sound, and if you don't do the right steps, you will hear a losing sound. You want to make sure everything is in the right port, so here are a few important ports:
- the turquoise wire is connected from A0 and is going in the terminal 1b of the last push button
- the blue wire is connected from A1 and is going in the terminal 1b of the third push button
- the pink wire is connected from A2 and is going in the terminal 1b of the second push button
- the purple wire is connected from A3 and is going in the terminal 1b of the first push button
- All these are then connected to their individual RGB LED'S
Before and if you share this game makes sure you test it out too see if it's working.
Coding Time!
You need a code in order for your game to work, in this code you can change a few things in order to make things quicker, slow them down, or add something new. For example where it says delay(1000); randomSeed(analogRead(0)); you can change that to 2000 or a number greater, this will create more time before they light blinks which then starts the game.
YAY
We finished the game! Now you know what to do when you're bored!😊
Image citaton