Arduino Input Recorder

312

3

0

Posted in TechnologyArduino

Introduction: 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 !

Cheers!

Step 1:

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Space Challenge

      Space Challenge
    • Science of Cooking

      Science of Cooking
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Hi, I'm trying to make this, but with two leds instead of a motor. I am having a lot of trouble and am getting errors with the included library like this "fatal error: DFPlayer_Mini_Mp3.h: No such file or directory" Would you mind helping walk me through how to make this work?

    Comments