Arduino - Simple Simon Says Game
by faziefazie in Circuits > Arduino
128281 Views, 189 Favorites, 0 Comments
Arduino - Simple Simon Says Game
In this instructable, I will show you how to make a simple Simon Says Game using an Arduino. it's not just simple but we can get a psychological benefit. I have a bad memory to remember something fast or a new things. So this project really suitable for someone like me. hahaha
We're gonna using some basic electronics built on top of an Arduino. When the project is finished you will have a working simple circuit that fun to play.
This is the video of my Arduino - Simple Simon Says Game
(change the quality for a better view)
We're gonna using some basic electronics built on top of an Arduino. When the project is finished you will have a working simple circuit that fun to play.
This is the video of my Arduino - Simple Simon Says Game
(change the quality for a better view)
Parts and Tools
Here is all you will need:
(1) Arduino UNO R3
(4) LEDs (Red, Green, Blue, Yellow)
(4) Push Button (small)
(1) PCB Matriks / Perfboard
(1) Speaker 8 ohm (0,5 watt)
(4) 100 / 330 ohm resistors
(1) 9V battery
(1) 9V battery box with on-off switch
(4) Spacer 0,5 cm
(1) Project enclosure (I'm using "Kitchen Ware" box)
- Breadboard
- Shrink tubing
- Jumper wire
- Rainbow wire (optional)
- Male header extended
- Blackhousing / female 1x1 header (optional)
Tools:
- Soldering iron
- Solder
- Hot glue
- Mini drill
- Pliers
- Cutter
- Helping hands (if you don't have it, you can build it from my helping hands instructable )
(1) Arduino UNO R3
(4) LEDs (Red, Green, Blue, Yellow)
(4) Push Button (small)
(1) PCB Matriks / Perfboard
(1) Speaker 8 ohm (0,5 watt)
(4) 100 / 330 ohm resistors
(1) 9V battery
(1) 9V battery box with on-off switch
(4) Spacer 0,5 cm
(1) Project enclosure (I'm using "Kitchen Ware" box)
- Breadboard
- Shrink tubing
- Jumper wire
- Rainbow wire (optional)
- Male header extended
- Blackhousing / female 1x1 header (optional)
Tools:
- Soldering iron
- Solder
- Hot glue
- Mini drill
- Pliers
- Cutter
- Helping hands (if you don't have it, you can build it from my helping hands instructable )
Making the Circuit on Breadboard
Let's build it on breadboard first. First, lets put the components on a breadboard so we could see how it worked and how to fit it onto the perfboard. The circuit diagram was made with Fritzing.
Step 1
Put the buttons on breadboard. We're gonna tie one lead of the buttons directly to ground. The other lead will be wired to the Arduino's Digital pins 2, 3, 4, and 5.
Step 2
Put the LEDs above the buttons. Plug the LEDs in with the switches so the Cathode is on the same strip as the side of the button that is tied to ground. And arrange it so the Anode plugs in off to the side of the button.
Step 3
Add 330 Ohm resistor and put it inline with the Anode to the top section of the breadboard. Now we can connect a wire from the resistor to the Arduino.
Test everything out and make sure that you're circuit is going to work before you start soldering.
Step 1
Put the buttons on breadboard. We're gonna tie one lead of the buttons directly to ground. The other lead will be wired to the Arduino's Digital pins 2, 3, 4, and 5.
Step 2
Put the LEDs above the buttons. Plug the LEDs in with the switches so the Cathode is on the same strip as the side of the button that is tied to ground. And arrange it so the Anode plugs in off to the side of the button.
Step 3
Add 330 Ohm resistor and put it inline with the Anode to the top section of the breadboard. Now we can connect a wire from the resistor to the Arduino.
Test everything out and make sure that you're circuit is going to work before you start soldering.
Write the Code
The sketch was originally made by Robert Spann back in 2009. I just a beginner of Arduino so I got the sketch from mpilchfamily's instructables . To give the game sound it using the Tone.h Library. You will get an error if you dont install the Tone library, downlod the tone.zip and put it in the adruino library folder. A file of the sketch and Tone Library is also attached.
You can go to How to Install a Library to learn it.
You can go to How to Install a Library to learn it.
Move to Perfboard
Step 1
Cut the perfboard about 7 cm x 5,5 cm.
Step 2
Arrange the component, I usually place all components in before starting to solder. But if you want to do soldering one by one, you can mark on the perfboard which legs of your component will be placed.
Step 3
Arrange the push buttons. (see image 1)
Step 4
Put LED, the cathode connect to the push button, the anode connect to the resistor. I'm using 330 Ohm resistor, because I want my LED no so bright. For the resistor, I put it backward on purposed for efficiency with the enclosure. (see image 2 and 3)
Cut the perfboard about 7 cm x 5,5 cm.
Step 2
Arrange the component, I usually place all components in before starting to solder. But if you want to do soldering one by one, you can mark on the perfboard which legs of your component will be placed.
Step 3
Arrange the push buttons. (see image 1)
Step 4
Put LED, the cathode connect to the push button, the anode connect to the resistor. I'm using 330 Ohm resistor, because I want my LED no so bright. For the resistor, I put it backward on purposed for efficiency with the enclosure. (see image 2 and 3)
Complete the Circuit on Perfboard
Step 1
Add a jumper wire for connect the push button with LED (cathode). (See image 1)
Step 2
Using a rainbow cable to connect the circuit with the Arduino. (we're gonna make 2 packets cable, each packet consist of 4 cables)
- We need 4 cables, and 4 male header
- Strip the end of the cable, about 0,5 cm (see image 2)
- Put the wire / bend it around the male header (see image 3)
- Solder it together (see image 3)
- Make 2 packet of these. (see image 4)
Step 3
Solder the first packet cable with resistor. And solder the second packet cable with the push button. (See image 4)
Step 4
Add a ground leads, I made it from a quite long wire. and put the wire for connect to the ground of Arduino. (see image 5)
Step 5
Check the components once again before soldering.
Add a jumper wire for connect the push button with LED (cathode). (See image 1)
Step 2
Using a rainbow cable to connect the circuit with the Arduino. (we're gonna make 2 packets cable, each packet consist of 4 cables)
- We need 4 cables, and 4 male header
- Strip the end of the cable, about 0,5 cm (see image 2)
- Put the wire / bend it around the male header (see image 3)
- Solder it together (see image 3)
- Make 2 packet of these. (see image 4)
Step 3
Solder the first packet cable with resistor. And solder the second packet cable with the push button. (See image 4)
Step 4
Add a ground leads, I made it from a quite long wire. and put the wire for connect to the ground of Arduino. (see image 5)
Step 5
Check the components once again before soldering.
The Enclosure
Step 1
Drawing the pattern on "Kitchen Ware" Box with marker for placing the spacer for Arduino. It's really helps for drilling. (See image 1 and 2)
Step 2
Be careful when you drilling the "Kitchen Ware" Box, because it made of plastic. It easy to melt if the drill get hot, but it's okay you can tidy it up by using a small cutter knife.
Step 3
Put the Arduino to fit with the box, and draw a pattern for jack power and USB socket. (see image 3)
Step 4
Drawing the pattern on the top of the box with marker for placing the push buttons and LEDs. It's really helps for drilling. (See image 4)
Step 5
Don't forget to make a hole for the speaker. I put my speaker on the other side of the box.
Step 6
There will be some scratch and some little cracks on the box, you can covering it with the colour paper or paint it.
Drawing the pattern on "Kitchen Ware" Box with marker for placing the spacer for Arduino. It's really helps for drilling. (See image 1 and 2)
Step 2
Be careful when you drilling the "Kitchen Ware" Box, because it made of plastic. It easy to melt if the drill get hot, but it's okay you can tidy it up by using a small cutter knife.
Step 3
Put the Arduino to fit with the box, and draw a pattern for jack power and USB socket. (see image 3)
Step 4
Drawing the pattern on the top of the box with marker for placing the push buttons and LEDs. It's really helps for drilling. (See image 4)
Step 5
Don't forget to make a hole for the speaker. I put my speaker on the other side of the box.
Step 6
There will be some scratch and some little cracks on the box, you can covering it with the colour paper or paint it.
Put the Circuit Into Enclosure
Step 1
Put an Arduino into the enclosure. And put the Speaker on the other side. I attached the speaker with Transparent Tape instead of using hot glue. The Positive leads connect to Pin 12 of Arduino, and the negative leads connect to the ground of Arduino. (see image 1)
Step 2
I attached the perfboard with 'Foam Double Sided Tape' instead of using hot glue, just in case I want to modify the circuit later. But if you want to make the circuit steady and permanent I recommend for using some hot glue. (see image 2)
Step 3
- Connect the "ground wire" directly to ground of Arduino.
- The second packet cable (from push buttons), will connect to the Arduino's Digital pins 2, 3, 4, and 5.
- The first packet cable (from LEDs & resistors) will be using Digital pins 8, 9, 10, and 11.
So make sure the buttons and LED are lined up as follows:
* Button on pin 2 with LED on pin 8
* Button on pin 3 with LED on pin 9
* Button on pin 4 with LED on pin 10
* Button on pin 5 with LED on pin 11
Step 4
We are done!!
Put an Arduino into the enclosure. And put the Speaker on the other side. I attached the speaker with Transparent Tape instead of using hot glue. The Positive leads connect to Pin 12 of Arduino, and the negative leads connect to the ground of Arduino. (see image 1)
Step 2
I attached the perfboard with 'Foam Double Sided Tape' instead of using hot glue, just in case I want to modify the circuit later. But if you want to make the circuit steady and permanent I recommend for using some hot glue. (see image 2)
Step 3
- Connect the "ground wire" directly to ground of Arduino.
- The second packet cable (from push buttons), will connect to the Arduino's Digital pins 2, 3, 4, and 5.
- The first packet cable (from LEDs & resistors) will be using Digital pins 8, 9, 10, and 11.
So make sure the buttons and LED are lined up as follows:
* Button on pin 2 with LED on pin 8
* Button on pin 3 with LED on pin 9
* Button on pin 4 with LED on pin 10
* Button on pin 5 with LED on pin 11
Step 4
We are done!!
Finish !!
You can let the box being transparent or you can paint it, but for me I covered it with Batik pattern for looking better and because Batik is a National Culture and Identity of Indonesia :)
Don't forget to give me a feed back or advice because I'm just a beginner.
Have fun :D
Greetings from Indonesia!!
Don't forget to give me a feed back or advice because I'm just a beginner.
Have fun :D
Greetings from Indonesia!!