I want to rotate the motor for 3 sec and stop and then wait for ir signal and rotate for 3 sec in reverse and stop,but my motor rotates infinitely

Hi, @narenk
Welcome to the forum.

Can you also post a circuit diagram?

Thanks.. Tom.... :smiley: :+1: :coffee: :australia: