Microcontroller › 8051 › Interface 8051 to a 12V dc motor › HERE THE FULL DETAIL OF THE
HERE THE FULL DETAIL OF THE 12V DC INTERFACING WITH THE HELP OF THE L293D IC
..L293D Dual H-Bridge Motor Driver
L293D is a dual H–Bridge motor driver, So with one IC we can interface two DC motors which can be controlled in bothclockwise and counter clockwise direction and if you have motor with fix direction of motion the you can make use of all thefour I/Os to connect up to four DC motors. L293D has output current of 600mA and peak output current of 1.2A perchannel. Moreover for protection of circuit from back EMF ouput diodes are included within the IC. The output supply (VCC2)has a wide range from 4.5V to 36V, which has made L293D a best choice for DC motor driver.
A simple schematic for interfacing a DC motor using L293D is shown below.
As you can see in the circuit, three pins are needed for interfacing a DC motor (A, B, Enable). If you want the o/p to beenabled completely then you can connect Enable to VCC and only 2 pins needed from controller to make the motor work.
As per the truth mentioned in the image above its fairly simple to program the microcontroller. Its also clear from the truthtable of BJT circuit and L293D the programming will be same for both of them, just keeping in mind the allowed combinationsof A and B. We will discuss about programming in C as well as assembly for running motor with the help of a microcontroller.