I have mine running automatically. I bought a power supply and then you need a control board that has the ability to reverse polarity. Something with two relays on it.. Then you program it to run the positive relay for so many seconds and then run the negative relay for so many seconds, and it will go back-and-forth on a loop… I am using it for a Halloween decoration where I need a door to open and close…this is the device I used
“5V - 24V Motor Forward/Reverse Controller Timing Delay Time Cycles Relay Motor Controller Board”
By Quinn Jeremiah