I need code "tweaked" or re-written to record servo movements in real time using potentiometers. A button is pressed, a light turns on indicating recording has started. When the movements are being made by the pots, it is recorded in real time. When the routing is done, the button is pressed again and the light turns off. After the second button press, the servo movements are saved on a SD card and played back exactly the way it was recorded. This code has a servo start and end point that should be preserved. The servo movement recording will continue indefinitely until powered off. It will resume when the power is turned back on. To change and overwrite the code, the button press can start the cycle again. I included a "guide sketch" showing my setup and a code that can be expanded upon. You are welcome to make suggestions to change it to be more efficient. The information should be able to be stored in a SD card and played back on a similar setup with the code uploaded to the Arduino. Let me know if you have any questions or need more information. I have attached a YouTube video, this is exactly what I need from a coding standpoint but need to store a couple of minutes routine and play it back on an SD card on demand indefinity. I am using this for a prop I am making with my girls as a family STEM project. Thanks again.
YouTube Video: [login to view URL]