L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-current control signal and provide a higher-current signal. This higher current signal is used to drive the motors.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors can be driven simultaneously, both in forward and reverse direction. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is disabled, and their outputs are off and in the high-impedance state
|1||Enable pin for Motor 1; active high||Enable 1,2|
|2||Input 1 for Motor 1||Input 1|
|3||Output 1 for Motor 1||Output 1|
|6||Output 2 for Motor 1||Output 2|
|7||Input 2 for Motor 1||Input 2|
|8||Supply voltage for Motors; 9-12V (up to 36V)||Vcc 2|
|9||Enable pin for Motor 2; active high||Enable 3,4|
|10||Input 1 for Motor 1||Input 3|
|11||Output 1 for Motor 1||Output 3|
|14||Output 2 for Motor 1||Output 4|
|15||Input2 for Motor 1||Input 4|
|16||Supply voltage; 5V (up to 36V)||Vcc 1|