I am using the L298 IC to control a 12V 2A motor. If i connect the circuit as shown in the attached diagram, will it work ok? and what fly-back diodes do you suggest? (in the datasheet it say it must be 'fast recovery elements (trr 3 200 nsec) that must be chosen of a VF as low as possible').
Another question, if the enable pin is set to 0v when the h-bridge is not in use, will it consume less current?
Yes, should be ok. Notice the peak current is 25 A. 1 A average. The maximum current in the diode occures at 50% of the pwm so the current is about 1A and only 50% of the duty cycle. So the diode current is only about 1/2 A.
The picture shows it better than the words.
The datasheet for the L298 shows that with a motor current of 2A then the saturation voltage loss at the motor can be as high as 5.0V so with a 12V supply then the motor gets only 7V.
Will your motor produce enough power with a supply of only 7V?
The datasheet for the L298 shows that with a motor current of 2A then the saturation voltage loss at the motor can be as high as 5.0V so with a 12V supply then the motor gets only 7V.
Will your motor produce enough power with a supply of only 7V?
Pin 1 and pin 15 are pins that can have current-sensing resistors to ground. Your resistors are 0.5V/2A= 0.25 ohms.
Don't use the resistors if you don't want their voltage drop. Then connect pin 1 and pin 15 to ground.
The datasheet doesn't show it but the IC AND-gate logic may have a protection diode on the Enable input pin. If so, having the pin High when the supply voltage is Low could cause damaging current to flow through the diode.