How to Switch dc motor direction automatically?

I am using a 12v dc electric motor with stall current of 5.56 amps.

I want to run motor CW for approx. 1 second, dwell for 2 seconds, then run motor CCW for approx. 1 second, and again dwell for 2 seconds.

I want to repeat this process 100,000 times (Im testing the motor).

Ideally, I would like this apparatus to plug into a wall outlet, but if it must be run off a car battery I can do that too. I would also like the ability to adjust the run and dwell times.

Please advise which motor controller would be my best choice for this application.

Thanks,

Jeff

can you suggest 1? I’d prefer built in microcontroller if I can program it for the steps i mentioned.

5.5amps max, 12v DC.

1 motor is all I need to control.

Thanks for helping, I did look through that product page but still unsure which would be suitable. I also do want to plug this into wall outlet, so if you have a suggestion for an inverter to work with it I would appreciate it.

jeff

You need a DC Motor Controller. If you don’t want a separate microcontroller to send the commands, you can choose one with a small onboard microcontroller. Choose the controller which can provide more than the required current at the correct voltage. You can program the controller to count 100,000 cycles.

There are quite a few options including:
Pololu 18v15, 5.5-40V, 15A Motor Controller
Pololu 24v12, 5.5-40V, 12A Motor Controller
Pololu 24v23 5.5-40V, 23A Motor Controller
Pololu TReX 13A 6-16V Dual Motor Controller
… and others.

To be able to plug it into the wall, you’ll need a cable and a power supply such as:
Lynxmotion WH-02 Wiring Harness with Wall Pack Connector
12vdc 10 Amp Power Adapter