loading

Learn how to make an awesome game of inexpensive memory using little.

The idea of this game is that you exercise your memory every round. When it starts, every color will flash, then one aleartória color will light and its respective tone will sound in Piezo. When it rings, you must click the appropriate button color that ignited. When you click, another color will light up, and thus you, click on the first color and then lit on Monday. Each new color, you must repeat from the beginning of mixing colors. When you click in the wrong color, all colors will light up and a thin sound will play in Piezo thus begins another move.

Step 1: What You'll Need

  • 1 Arduino Board
  • 1 Breadboard
  • 1 Piezo Speaker
  • 1 Green LED - 3mm
  • 1 Red LED - 3mm
  • 1 Yellow LED - 3mm
  • 1 Blue LED - 3mm
  • 4 Resistors - 1k Ω
  • 4 Push Buttons
  • Jumpers

Step 2: Mounting

For this game, I thought about leaving the wires as far as possible of buttons and LEDs.
I hid the wires that pass over the buttons using small metal jumpers that pass beneath the button.

Step 3: The Sketch

Each button has its own LEDs and digital input / output.
TrueRandom used the library to generate colors in random way. The Random command of own Arduino IDE has the same function, but each reset the arduino they always repeat themselves.

Step 4: Play!

Now you will be able to play and have fun with your friends and family.
Follow my other posts on my website FilipeBr.com.br

Thank you and sorry for spelling mistakes (I'm Brazilian)

<p>Hello, i have done the work on this project but i have not been able to get the header file that it needs. At the top it shows as follows:</p><p>( #include &lt;PCM.h&gt; )</p><p>Please may i have this file that needs to be included for the product to work.</p>
Very great project, can you draw the complete circuit diagram please, because I won't use a bread board.

About This Instructable

3,430views

14favorites

License:

More by FilipeBR:Arduino - Memory Game 
Add instructable to: