One Button Simon

From XPUB & Lens-Based wiki

To start, the idea is to record a sequence of button presses (and releases) and have the arduino play back the pattern on the speaker.


Create a program to time how long the user presses a push button.

Step 1

Starting code / circuit:

Make sure your pushbutton circuit is working.

Step 2

The following pieces will be useful.

Print out a message (to the compute, use the Arduino Serial Monitor):


Get the current time(in milliseconds):

s = millis();



Write code to translate the presses from the user to a fixed pattern