Arduino Simon

An Arduino version of the classic Simon game

Once complete this game will play a sequence of random lights with accompanying tones. The player must input the correct sequence to move to the next level, which will add one more light/tone. A winning sequence is played for a correct sequence 20 long. If the wrong button is pressed then a low tone is played and the correct light is flashed twice.

Lights:

Red LED from D1 with 2k2 to GND Blue LED from D2 with 2k2 to GND Yellow LED from D3 with 560R to GND Green LED from D4 with 2k2 to GND

Different resistros may be needed to get the brightness right and balanced between the four LEDs.

Sound:

A piezo buzzer from D5 to GND

Buttons:

4x PCB push buttons from GND to D9-12

By cpswan
Created on January 22, 2012, 18:50

Category: Digital

Difficulty: kids

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: game, simon, led, buzzer, buttons

Images

Files

Fritzing Files

Code Files

Links

Comments

  1. urosepsis # Feb. 27, 2012, 12:23 a.m.

    Thank you, just as addictive as I remember.
  2. omartxo # March 16, 2012, 5:42 p.m.

    I tried it and it works perfectly, but I wonder how is it possible without resistors for the buttons, also in 'real' photos you are using them, cheers!
  3. superray_arise # May 9, 2012, 5:57 p.m.

    hi there, just wondering if the code supplied is complete? i have tried to compile it in my Arduino IDE and no success. Are you able to double check it please and make sure it is all there, regards
  4. superray_arise # May 9, 2012, 6:07 p.m.

    sorry, never mind. I re-installed arduino and it all worked well. CHEERS
  5. Vinston1909 # Feb. 11, 2013, 4:47 a.m.

    This project is very cool,I modify it by connecting a white LED.My was done on a proto shield and I change the duration from 1000L to 1500L.
  6. Vinston1909 # Feb. 11, 2013, 4:51 a.m.

    This project is very cool,I modify it by connecting a white LED.My was done on a proto shield and I change the duration from 1000L to 1500L.I did not add any resistors for the button or the LEDs but it work very well!

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam