How to control two 12 V motors with the dual MAX 14870 Motor Drive Shield for Arduino?
I had attached the screenshot for this

This picture tells you about the Arduino Connection with the with the SHIELD.


EN (Enable Pin) is used to enable and disable the motor drivers. As it is inverted SET this PIN HIGH will Disable the Motors and vice versa.
DIR pinS is used direction of rotation. It highly depends upon your connection, setting this PIN HIGH LOW will make the motor rotation from CLOCKWISE &amp; ANTI CLOCKWISE or vice versa depends upon your hardware connection.
PWM pins are used to control the rotation speed of the MOTOR. Driving PWM signal on this pin will adjust your rotational speed. MAX PWM frequency suggested is 50Hz.
Fault is the INPUT PIN to Arduino with ACTIVE LOW signal indicating some kind of fault is there.