Friday, November 23, 2012

L293D Motor Driver IC

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.

Two DC motors can be driven simultaneously using the L293D; 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.
Digital pins 1 and 9 are used to enable/disable the motors; setting these pins to HIGH value will enable the motors.

Below is the pin diagram for the L293D :-



Below sketch can be used to build up a simple motor circuit





From the above diagram,
a. Pins 1, 9 are set to HIGH so that enable both motors.
b. Arduino digital pins D6, D7 will be used to set pins 2, 7 which drive Motor 1
c. Arduino digital pins D3, D4 will be used to set pins 10, 15 which drive Motor 2

The above diagram is built using Fritzing software; go to Tools->Fritzing to download it.

1 comment: