loading
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)



 

Step 1: 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 )
<p>how to fix this problem I couldn't find the wiring library anywhere.</p><p>Arduino: 1.6.5 (Windows 8.1), Board: &quot;Arduino/Genuino Uno&quot;</p><p>Using library Tone in folder: C:\Users\Youssef\Documents\Arduino\libraries\Tone (legacy)</p><p>-IC:\Users\Youssef\Documents\Arduino\libraries\Tone -IC:\Users\Youssef\Documents\Arduino\libraries\Tone\utility C:\Users\Youssef\Documents\Arduino\libraries\Tone\Tone.cpp -o C:\Users\Youssef\AppData\Local\Temp\build9214209217883788605.tmp\Tone\Tone.cpp.o </p><p>C:\Users\Youssef\Documents\Arduino\libraries\Tone\Tone.cpp:26:20: fatal error: wiring.h: No such file or directory<br> #include &lt;wiring.h&gt;<br> ^<br>compilation terminated.<br>Error compiling.</p>
<p>it usually happened because the tone library is not compatible with your arduino IDE, I'm back using Arduino 1.0.4 to make it work. Maybe you can search/googling the tone library that already modified and compatible with your IDE version.</p><p>Regards</p>
<p>I installed the 1.0.4 ide and it didn't work again </p>
<p>Someone has created it based on my project and it's working, maybe you can check his instructables <a href="http://www.instructables.com/id/ER18X9IIBGCF50S/"> http://www.instructables.com/id/ER18X9IIBGCF50S/</a></p>
<p>Very fun! I make some improvements like a score board using a 16x2 lcd. And a hot swap cables using a speaker stereo connector. Good project!</p>
<p>Hei, Can you share the counter code?</p>
<p>WOW, that's awesome!!</p><p>Keep up the good work :)</p>
<p>WOW, that's awesome!!</p><p>Keep up the good work :)</p>
<p>Do you think its possible to build this on a larger scale? I would like to build something you can kick a ball at. </p>
<p>yes of course it possible, I guess you can do anything with arduino or any micro controller. </p>
<p>Great instructable... But I was not able to get it working. The game would function as normal except for the buttons. When I pressed a button to answer it would light up a random led and it would think that was the led you pressed. </p>
<p>are you sure the pin connections and the code already matched? </p><p>I guess it's not so hard to wiring it up, you can try it first on the project board and test it. Someone has created it based on my project and it's working, maybe you can check his instructables <a href="http://www.instructables.com/id/ER18X9IIBGCF50S/"> http://www.instructables.com/id/ER18X9IIBGCF50S/</a></p><p>best regards.</p>
<p>Thank you I'll try that</p>
<p>It's not working , i have sound but leds arent turning on . Maybe its because i am using arduino nano ?</p>
<p>I'm sorry, but I never use arduino nano, so I don't know the difference between nano and arduino uno's pins. you can check the data sheet/schematic for arduino nano, maybe the voltage for drive the leds isn't enough. Other case, are you sure the wiring already set up properly?</p>
<p>For a beginner this is a great project and code.<br>As you asked for advice, I noticed some coding issues and hard to follow sections. The biggest issue was that if someone changed pin assignments for their own setup, the buttons and LEDs would not work. So I created an improved version here: </p><p>http://www.instructables.com/id/ER18X9IIBGCF50S/</p><p>I hope you and others, who have had problems with differing hardware, find it very helpful.</p>
<p>Thanks for that, that would be really helpful for other and also for me :)</p>
<p>My son and I made this, great fun and still being played with !</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/yJwFUmILxAY" width="500"></iframe></p>
<p>Awesome!! </p><p>Keep up the good work :)</p>
<p>It really works!!!</p>
<p>Wow, that's awesome. congratulations :)</p>
<p>Here is new coding for this project, using tone library, which works with the latest IDE; and has several improvements and fixes.</p><p><a href="http://www.instructables.com/id/ER18X9IIBGCF50S/" rel="nofollow">http://www.instructables.com/id/ER18X9IIBGCF50S/</a></p>
<p>Hello,</p><p>So I have this together and working fine,</p><p>But when the sequence is entered to quickly it results in a wrong answer even though the serial moniter registers that the sequeance was entered correctly. Is there a way to fix this, I tried playing with the delays but to no avail. I'm just still just learning and would like to be able to get this operating with the quick button taps that help to make it really feel like classic SIMON</p>
<p>Good observation. I apparently did not truly play that much with it. This differently reduces the fun. I found that there was a delay(250) being used to allow time for the button to be released. This barred new inputs during that time. I replaced it with a new function call to wait_BtnRelease(), in my project (see link above).</p><p>You may also be interested in another version of this game referred to as Simon_Sings. Check out: <a href="http://www.instructables.com/id/Fast-Easy-Simon/" rel="nofollow">http://www.instructables.com/id/Fast-Easy-Simon/</a></p>
<p>Hi! the link is broken somehow. Can you correct it please? Thanks!</p>
<p>The link was to an un-published instructable. I now see that even with the link, others can't get to it. So I have made it public by 'publishing' it. </p><p><a href="http://www.instructables.com/id/Improved-Simon-Says-Code/" rel="nofollow">http://www.instructables.com/id/Improved-Simon-Say...</a></p>
<p>I've tried to this but the LED's are not working, after uploading the program, only the speaker is working,,need help thanks</p>
<p>Hello... i got some problem with your coding.. its would not works and my led not light up.. would your help me....</p>
<p>I made this today, but with modifications for using LED Tactile switches which light up as you press them. </p><p>However, I did have some issues getting the code to work. The file does not compile with the tone library. However as the tone functionality is now available within the latest version of Arduino (1.0.6), I modified your code to make use of this. It does however require the user to pick up the pitches.h file as used in the toneKeyboard example</p>
<p>hello DonaldJ1... can i ask for the coding of the tone that your modified... i got the same problem...</p>
<p>Sorry for my late reply, I've been hiatus for awhile from this web for some reason. </p><p>That was awesome work, you did a good job. </p><p>Yeah, I think the tone library already update, so it doesn't compatible with my version anymore. Can you share the link, the modified code or the steps to make it works with the latest version Arduino IDE? it would be very helpful for the other who have the same problem, since I don't have so much time now to do it :(</p><p>But anyway, keep up the good work ;)</p>
<p>Saludos. Quisiera saber si podr&iacute;a ayudarme con este problema. <br>Estoy usando Arduino Nano.<br>He seguido todos los pasos, uno por uno, pero al momento de la verdad solo funciona el sonido. No se prende ni un solo LED y los botones no funcionan. &iquest;Existe alg&uacute;n problema con usar Arduino Nano y no UNO?<br>----------------------------------------------------<br>Greetings. I wonder if you could help me with this problem.</p><p>I'm using Arduino Nano.</p><p>I followed all the steps, one by one, but the moment of truth only sound works. It does not turn a single LED and buttons does not work. Is there a problem with using Arduino Nano and not Arduino UNO?</p>
In the code, change boolean to int and it works! Nice!
<p>I do not speak English, so I'm sorry for the mistakes .</p>
<p>I did otherwise and it worked. <br>I will provide the schema and the code I used. <br> <br>source: <a href="https://learn.sparkfun.com/" rel="nofollow"> https://learn.sparkfun.com/</a></p><p>Download link: https://mega.nz/#!7p1xQbZI!SZdeipBP7YiEeAO4abhK4Q-cLkzrvVz9QwAJ0Rgo27k</p>
<p>faziefazie I tried to upload your code and got this error(s) </p><p>This report would have more information with<br> &quot;Show verbose output during compilation&quot;<br> enabled in File &gt; Preferences.<br>Arduino: 1.0.6 (Windows NT (unknown)), Board: &quot;Arduino Uno&quot;<br> In member function 'void Tone::begin(uint8_t)':<br>121: error: 'bitWrite' was not declared in this scope<br> error: 'digitalPinToPort' was not declared in this scope<br> error: 'portOutputRegister' was not declared in this scope<br> error: 'digitalPinToBitMask' was not declared in this scope<br> In member function 'void Tone::play(uint16_t, uint32_t)':<br>198: error: 'OUTPUT' was not declared in this scope<br> error: 'pinMode' was not declared in this scope<br>294: error: 'bitWrite' was not declared in this scope<br> In member function 'void Tone::stop()':<br>:361: error: 'digitalWrite' was not declared in this scope</p><p>please help.</p>
<p>hey, nice project.</p><p>i am following your instructions step by step.</p><p>code loaded fine, but when i switch it on, i have no LEDs turning on. but the opening tune works fine, just dont see any lights or hear the sound of the first led light going on?</p><p>Any help?</p><p>What are the jump wires at the top for? (running along + and -)</p>
<p>Yeah, I had the same problem. It turns out that two arrays of type boolean (boolean button and boolean ledpin) need to be changed to type int instead of boolean.</p><p>So just changing those two boolean to int solved the problem. </p><p>Apparently in an older compiler, type boolean was interpreted as integer, and now it is properly interpreted as binary. The array is stuffed with integers, so calling it a boolean made it truncate them to just 1 or 0, and lost it's mind... </p>
<p>Maybe you put the wrong pin of LED, if you take a look at the picture of my breadboard on <strong>step 2</strong> , the cathode (-) was connected with the 4th pin of push button, the anode (+) connected to resistor.</p><p>the jump wires? you mean the black wire? it's connect to the ground (on arduino) and also ground from power/ battery.</p>
<p>Yeah, I had the same problem. It turns out that two arrays of type boolean (boolean button and boolean ledpin) need to be changed to type int instead of boolean.</p><p>So just changing those two boolean to int solved the problem. </p><p>Apparently in an older compiler, type boolean was interpreted as integer, and now it is properly interpreted as binary. The array is stuffed with integers, so calling it a boolean made it truncate them to just 1 or 0, and lost it's mind... </p>
<p>I have found some people saying that it doesn't work on the lastest version of IDE, so is that true? And how to fix it?</p>
<p>yes, the tone library that I shared was an old version, but if you scroll down this comment section, you can ask DonaldJ1, he modified the code and it's working. Maybe he can help you with the code and how to install the latest tone library.</p>
<p>codes pleaseeee :D</p>
<p>I already share the code on step 3.</p>
<p>Hey Good Proyect<br>I have a little problem, in Arduino 1.0.6 Work very well, but in Arduino 1.6.0 and 1.6.1, there is not working</p>
<p>Do you mean the code or the library tone that doesn't work?</p>
<p>in Arduino 1.6.0 and 1.6.1, there is not working<br>:(</p><p>any help to make it work ???</p>
<p>Do you mean the code or the library tone that doesn't work?</p>

About This Instructable

69,245 views

152 favorites

License:

Bio: Bachelor of Wireless Telecommunication Engineering | Software QA - Junior Engineer at Oberthur Technologies | A Rhesus(+) | Aries | Photography | Computer Geek | Chiliphobia | Art&Design More »
More by faziefazie: Multifunction Box Automation Camera Surveillance Controller System Sky on the Wall (Mood Lighting-IR remote)
Add instructable to: