Run and control motor in Both Direction by robotics - L293D Motor Driver
What is L293D Motor Driver ?
- L293D is called a dual H-bridge motor driver integrated circuit (IC).
- Motor drivers act as current amplifiers then 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. It contains two DC motors can be driven simultaneously, both in forward and reverse direction is its common mode of operation
![L293D Motor Driver](https://wikitechy.com/final-year-project/dotnet/run-and-control-motor-in-both-direction-by-robotics/img/run-and-control-motor-in-both-direction-by-robotics-images/l293d-motor-driver.png)
L293D Motor Driver
- The input logic at pins 2 & 7 and 10 & 15 can be controlled by motor operations of two motors.
- The corresponding motor will be stopped by Input logic 00 or 11. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively.
- Enable pins 1 and 9 must be high for motors to start operating. When an enable input is high, the associated driver gets enabled.
- Finally, the outputs become active and work in phase with their input and when the enable input is low, that driver is disabled, and their outputs are off and in the high-impedance state.
![L293D pin diagram](https://wikitechy.com/final-year-project/dotnet/run-and-control-motor-in-both-direction-by-robotics/img/run-and-control-motor-in-both-direction-by-robotics-images/l293d-pin-diagram.png)
L293D pin diagram
Pin Description:
Pin No | Function | Name |
---|---|---|
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 |
4 | Ground (0V) | Ground |
5 | Ground (0V) | Ground |
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 |
12 | Ground (0V) | Ground |
13 | Ground (0V) | Ground |
14 | Output 2 for Motor 1 | Output 4 |
15 | Input2 for Motor 1 | Input 4 |
16 | Supply voltage; 5V (up to 36V) | Vcc 1 |