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