If you are confused about connecting motor driver, then here is explanation
Look at the datasheet of L298. Place a 3ohm, 5W resistor in between pins 1 and 15. output pins connect to motor. Input pins to microcontroller. Enable pin to PWM of microcontroller, if you want to control speed or else place it logic high.
Vs - Supply Voltage from your battery ( 12V ) . Stepper motor can take voltages more than rated voltage. but current should within limit. So for 3.2V max current is 2.8 A . If calculate for 12V then it is 0.75A.
Vss- Logic supply voltage ( +5V)
If you run microcontroller on +5V , it would draw few milliamps. It is well within limit of 7805 regulator which is 1A. Use that regulator. So that you could run on single power supply.