This post has a high current low voltage PWM control circuit
You will need to add a flywheel diode across the motor to prevent the back emf on switch off from causing problems.
Note this circuit needs 24V. The opto will not run on 12V so that may be a problem for you.