

The L293D is a dual H-bridge motor driver IC manufactured by Texas Instruments. It is designed to control the direction and speed of DC motors and stepper motors. The IC can drive two motors simultaneously, making it a versatile choice for robotics, automation, and motor control applications. With its ability to handle bidirectional current flow, the L293D is ideal for projects requiring precise motor control.








The L293D is a robust IC with the following key specifications:
| Parameter | Value |
|---|---|
| Manufacturer | Texas Instruments |
| Part Number | L293D |
| Operating Voltage Range | 4.5V to 36V |
| Output Current (per channel) | 600 mA (continuous) |
| Peak Output Current | 1.2 A (non-repetitive, per channel) |
| Logic Input Voltage Range | 0V to 7V |
| Power Dissipation | 5W (at 25°C) |
| Operating Temperature Range | -40°C to 150°C |
| Number of Channels | 2 (dual H-bridge) |
| Motor Types Supported | DC motors, stepper motors |
The L293D comes in a 16-pin DIP (Dual Inline Package). Below is the pinout and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Enable 1,2 | Enables H-bridge 1 (active HIGH). Connect to HIGH to enable motor 1. |
| 2 | Input 1 | Logic input for H-bridge 1. Controls the direction of motor 1. |
| 3 | Output 1 | Output for H-bridge 1. Connect to one terminal of motor 1. |
| 4 | GND | Ground (0V). Connect to the power supply ground. |
| 5 | GND | Ground (0V). Connect to the power supply ground. |
| 6 | Output 2 | Output for H-bridge 1. Connect to the other terminal of motor 1. |
| 7 | Input 2 | Logic input for H-bridge 1. Controls the direction of motor 1. |
| 8 | Vcc2 | Motor supply voltage (4.5V to 36V). Connect to the motor power supply. |
| 9 | Enable 3,4 | Enables H-bridge 2 (active HIGH). Connect to HIGH to enable motor 2. |
| 10 | Input 3 | Logic input for H-bridge 2. Controls the direction of motor 2. |
| 11 | Output 3 | Output for H-bridge 2. Connect to one terminal of motor 2. |
| 12 | GND | Ground (0V). Connect to the power supply ground. |
| 13 | GND | Ground (0V). Connect to the power supply ground. |
| 14 | Output 4 | Output for H-bridge 2. Connect to the other terminal of motor 2. |
| 15 | Input 4 | Logic input for H-bridge 2. Controls the direction of motor 2. |
| 16 | Vcc1 | Logic supply voltage (5V). Connect to the logic power supply. |
Power Connections:
Motor Connections:
Control Logic:
Direction Control:
Speed Control:
Below is an example of how to control a DC motor using the L293D and Arduino UNO:
// Define L293D pins connected to Arduino
const int enablePin = 9; // Enable pin for motor 1
const int input1 = 8; // Input 1 for motor 1
const int input2 = 7; // Input 2 for motor 1
void setup() {
// Set pin modes
pinMode(enablePin, OUTPUT);
pinMode(input1, OUTPUT);
pinMode(input2, OUTPUT);
// Initialize motor in stopped state
digitalWrite(enablePin, LOW);
digitalWrite(input1, LOW);
digitalWrite(input2, LOW);
}
void loop() {
// Rotate motor in one direction
digitalWrite(enablePin, HIGH); // Enable motor
digitalWrite(input1, HIGH); // Set direction
digitalWrite(input2, LOW);
delay(2000); // Run for 2 seconds
// Stop motor
digitalWrite(enablePin, LOW); // Disable motor
delay(1000); // Wait for 1 second
// Rotate motor in the opposite direction
digitalWrite(enablePin, HIGH); // Enable motor
digitalWrite(input1, LOW); // Set direction
digitalWrite(input2, HIGH);
delay(2000); // Run for 2 seconds
// Stop motor
digitalWrite(enablePin, LOW); // Disable motor
delay(1000); // Wait for 1 second
}
Motor Not Running:
Motor Running in the Wrong Direction:
IC Overheating:
PWM Not Controlling Speed:
Q: Can the L293D drive stepper motors?
A: Yes, the L293D can drive stepper motors by controlling the sequence of logic signals on the Input pins.
Q: What is the difference between Vcc1 and Vcc2?
A: Vcc1 powers the logic circuitry (5V), while Vcc2 powers the motors (4.5V to 36V).
Q: Can I use the L293D with a 3.3V microcontroller?
A: The L293D requires a minimum logic voltage of 4.5V, so it is not directly compatible with 3.3V logic. Use a level shifter or a 5V microcontroller.
Q: How many motors can the L293D control?
A: The L293D can control two DC motors or one stepper motor.