I have a 12v motor that spins at 400 rpms I need it to change directions befor it can make one revelution and then go back and fourth. Many times. Any ideas. Thanks Anthony