Intro: Arduino Input Recorder
Did you know you can record a sequence of pressed buttons with Arduino?
In order to do so, Arrays are needed in order to record the input LOW signals coming from the pushbuttons, along with the variable time.
The rutine can be done with PULLUP (it records high al the way until I lift the finger) or as SET/RESET (it records high until I press the stop button).
In this example, we are using four buttons and a motor. Two buttons set the direction of the motor. A 3rd button sets the stop of the motor (not needed if you are using the PULLUP configuration). The 4th button is used to stop recording and start replaying the whole sequence of pushes you've just created.
Once the Arduino is done replaying the whole sequence of Arrays, if record (4) button is pressed, it will repeat the entire sequence. else if stop button is pressed, it will restart to setup.
If you want to keep the project simple you can connect a couple of leds as output instead a motor,
Find attached the sketches for pullup and set/reset recording rutines.
I hope you like it. If it does, show me some love <3 !