hey guys, im not able to drive a single motor with l293d
i am using 4 AA batteries connected in series to drive a motor. motor runs when it is directly connected to battery.
so from above figure i connected :-
pin 1 to arduino pin 11
pin 2 to arduino pin 7
pin 7 to arduino pin 2
shorted both grounds pins 4 and 5, connected AA battery -ve to ground, arduino ground also to ground of l39d
connected aa battery +ve to 8
connected motor to the 2 terminals 3 and 6
and im using this simple code just to check if its working
int a = 11;
int b = 7;
int c = 2;
but it does not work, what mistake am i doing?