Parts
L293D motor driver: pinout, wiring, the voltage it loses and how hot it gets
By Bulan Sarkar
The L293D is a 16-pin chip with four half-H drivers and the flyback diodes built in. Two drivers make one H-bridge, so one chip runs two DC motors forward and back, or one bipolar stepper. Pin 16 (VCC1) takes 5 V for the logic, pin 8 (VCC2) takes the motor supply, up to 36 V, and pins 4, 5, 12 and 13 are ground. Each channel is rated 600 mA continuous.
At 0.6 A the bridge loses about 2.6 V of the motor supply, and that voltage turns into heat in the chip. This page works through a 9 V motor circuit, shows how hot one and two motors make it, what happens when a motor stalls, and how to wire the enable pin for speed control. Every number comes from Texas Instruments' L293D datasheet (SLRS008D).
Datasheet: Texas Instruments L293x Quadruple Half-H Drivers (SLRS008D) (PDF)Ask Datasheet Guru about the L293D
Pinout by package
Top view, notch up: pin 1 (1,2EN) is top left, pin 16 (VCC1) top right.
Pins 4, 5, 12 and 13 are all ground and also carry the heat out of the die; TI says to tie them to a ground plane with several vias.
Source: Texas Instruments L293x Quadruple Half-H Drivers (SLRS008D), p. 3 (Section 5, NE package 16-pin PDIP top view, and the pin functions table); Texas Instruments L293x Quadruple Half-H Drivers (SLRS008D), p. 1 (Device information: L293DNE, PDIP (16), 19.80 mm × 6.35 mm)
Which one do you have?
The part on Indian and US hobby boards is almost always TI's L293DNE, a 16-pin plastic DIP. The plain L293 (no D) has the same pins and more current, 1 A per channel, but no clamp diodes inside, so a motor on it needs external diodes. Read the full number on the body before you trust a board listing.
The four ground pins in the middle of each row are not spare. TI calls them the heat sink as well as ground and asks for a copper ground plane under them with several vias. On a breadboard they still carry the heat out of the chip, so connect all four.
How it works: two half-bridges make one H-bridge
Each driver copies its input to its output: A high makes Y high (switched to VCC2), A low makes Y low (switched to ground). The pair enable, 1,2EN on pin 1, has to be high for drivers 1 and 2 to drive at all; when it is low both outputs float. Put a motor between 1Y and 2Y and the two inputs choose the direction.
The outputs are bipolar: a Darlington pair pulls low and a similar stage pulls high. That is why each side drops more than a volt even at modest current, unlike a MOSFET bridge. The clamp diodes from each output to VCC2 and to ground catch the motor's kick when a transistor turns off; the flyback diode lesson explains why that kick appears.
Absolute maximum and recommended ratings
The logic side wants 4.5 to 7 V on VCC1. The motor side takes anything from VCC1 up to 36 V on VCC2. Each channel may carry 600 mA continuously and 1.2 A for no more than 100 µs, and the die must stay under 150 °C. TI rates the part for 0 to 70 °C of air around it.
| Parameter | L293DNEDIP-16 |
|---|---|
| Logic supply, recommended VCC1 | 4.5 to 7 V |
| Motor supply, recommended VCC2 | VCC1 to 36 V |
| Either supply, absolute maximum VCC1, VCC2 | 36 V |
| Input voltage, absolute maximum VI | 7 V |
| Output current, continuous IO | ±600 mA per channel |
| Output current, peak IOnon-repetitive, t ≤ 100 µs | ±1.2 A |
| Junction temperature, maximum TJ | 150 °C |
| Thermal resistance, PDIP-16 RθJAJESD 51-7 board | 36.4 °C/W |
| Operating ambient TA | 0 to 70 °C |
The 1.2 A peak is not a starting-current allowance. 100 µs is far shorter than the time a motor takes to spin up, so a motor whose starting current is above 600 mA overloads the chip on every start.
Input levels, output drops and speed
| Parameter | L293DNEDIP-16 |
|---|---|
| Input high, min VIH | 2.3 V |
| Input low, max VIL | 1.5 V |
| Output high VOHIOH = −0.6 A | VCC2 − 1.4 V typ, VCC2 − 1.8 V min |
| Output low VOLIOL = 0.6 A | 1.2 V typ, 1.8 V max |
| Clamp diode drop VOKH, VOKLIOK = 0.6 A | 1.3 V typ |
| Logic supply current ICC1no load, outputs high | 13 mA typ, 22 mA max |
| Motor supply current ICC2no load, outputs high | 14 mA typ, 24 mA max |
| Input to output delay, rising tPLHL293DNE, 24 V, 30 pF | 800 ns typ |
| Input to output delay, falling tPHLL293DNE, 24 V, 30 pF | 400 ns typ |
An input counts as high above 2.3 V and low below 1.5 V, whatever VCC1 is. So a 3.3 V ESP32 or Raspberry Pi Pico can drive the A and EN pins directly. VCC1 still needs 4.5 V or more, so take pin 16 from the board's 5 V pin, not its 3.3 V pin.
At 0.6 A the high side sits 1.4 V below VCC2 (up to 1.8 V) and the low side 1.2 V above ground (up to 1.8 V). The motor loses both: 2.6 V typical, 3.6 V worst case. On a 5 V supply that leaves a 5 V motor with barely half its voltage.
Worked example: one gear motor on 9 V
A 5 V microcontroller board drives 1A, 2A and 1,2EN. VCC1 comes from the board's 5 V pin and VCC2 from a 9 V adapter or six AA cells, with the grounds joined. The motor is a small gear motor that draws 0.5 A when loaded and has a 4 Ω winding, the kind sold for two-wheel robot cars.
1. Voltage at the motor. 9 − 1.4 − 1.2 = 6.4 V typical, and 9 − 1.8 − 1.8 = 5.4 V with the worst-case drops. The datasheet writes those drops at 0.6 A, a little above our 0.5 A, so the real figures sit slightly better.
2. Heat from the bridge. 0.5 A × 2.6 V = 1.3 W, or 1.8 W worst case.
3. Heat from the chip itself. With no load the logic supply draws 13 mA and the motor supply 14 mA (outputs high), so 5 V × 0.013 A + 9 V × 0.014 A = 0.19 W, up to 0.33 W.
4. Temperature. In total 1.5 W typical. At 36.4 °C/W the die runs 54 °C above the air: 79 °C (175 °F) in a 25 °C room. With worst-case drops in a 40 °C room (a summer afternoon in much of India, or a closed box) it reaches 117 °C (243 °F). Both are under 150 °C.
5. Direction and speed. 1A high and 2A low runs it one way; swap them to reverse. A PWM signal on 1,2EN sets the speed while 1A and 2A hold the direction.
Worked example in numbers
- Voltage at the motor
- 6.4 V
- Lost in the bridge
- 2.6 V
- Chip heat, one motor
- 1.5 W
- Die, 25 °C room
- 79 °C
Two motors on one chip: how hot it gets
A robot car puts both motors on one L293D. Each bridge adds its own 1.3 W, so the chip makes 2.8 W typical and the die sits 102 °C above the air: 127 °C (260 °F) in a 25 °C room, 142 °C (287 °F) at 40 °C. With worst-case drops it would need 3.9 W, which puts the die past 150 °C even in a cool room.
The 36.4 °C/W figure comes from a JEDEC test board with copper planes. A chip in a breadboard or on a thin single-sided board runs hotter than these numbers. TI's function table notes a thermal shutdown: past its limit the outputs float and the motors coast, then come back as it cools. A robot that stops and starts by itself on a warm day may be doing exactly that.
Stall and start current
A running motor draws less than its winding resistance alone would allow, because it generates a back voltage. Stalled, or in the first moments of a start, only the winding limits the current: 6.4 V / 4 Ω = 1.6 A, well past the 600 mA rating and the 1.2 A peak. The ngspice check in Figure 2 confirms it.
With that motor, a supply of 5 V keeps even a stall inside 600 mA. At 9 V you rely on the motor never jamming and on short starts. Measure your motor's winding resistance with a meter before choosing the supply: VCC2 − 2.6 V divided by that resistance is the stall current.
Speed control with PWM on the enable pin
Hold 1A and 2A for the direction and feed a PWM signal to 1,2EN. TI gives the L293DNE a typical 800 ns delay to switch on and 400 ns to switch off, plus 300 ns edges, so each output pulse comes out about 400 ns shorter than the input pulse. At 20 kHz that is 0.8 % of the period, small enough to ignore. At 20 kHz the motor is also out of the audible range; an Arduino UNO's default analogWrite frequency is lower and you hear it as a whine. The duty cycle and PWM lesson covers the basics.
Tips and checks
- Join the motor supply ground and the microcontroller ground. Without it the inputs have no reference and the motor twitches or does nothing.
- Put 100 µF and 100 nF across VCC2 right at the chip; motor current arrives in pulses and a long supply lead cannot deliver them.
- Never take VCC2 from a USB port or an Arduino's 5 V pin for real motors. Motor starts pull the logic supply down and reset the board.
- Tie unused inputs and the unused enable to ground, not open.
- For more than about 0.5 A per motor, or a 3 V to 6 V supply, a MOSFET bridge loses far less voltage; the motor driver ICs lesson compares the types.
Substitutes
The L293 is the only part this datasheet lets us compare like for like. It is the same chip without the diodes, rated 1 A per channel.
| Part | Pins | Verdict |
|---|---|---|
| L293 (L293NE) | same pins | Same pins and logic, and more current (1 A per channel), but no clamp diodes inside: a motor needs eight fast external diodes. Not a drop-in for an L293D board that relies on the built-in ones.Texas Instruments L293x Quadruple Half-H Drivers (SLRS008D), p. 4; Texas Instruments L293x Quadruple Half-H Drivers (SLRS008D), p. 7 |
Bench check: is it working?
- With no motor, power VCC1 at 5 V and VCC2 at 9 V, enable high, both inputs low. The supply currents should be tens of milliamps at most: TI allows 22 mA on VCC1 and 24 mA on VCC2 with the outputs high.
- Set 1A high. 1Y (pin 3) should read a little over a volt below VCC2 (TI gives VCC2 − 1.4 V at 0.6 A, and less drop with no load); set 1A low and 1Y reads close to 0 V.
- Pull the enable low. 1Y and 2Y should float (a meter reads whatever the leads pick up).
- Fit the motor, run it and measure across 1Y and 2Y. On a 9 V supply at about half an amp expect roughly 6.5 V; much less means the supply sags or the motor draws too much.
What we'd do
Use the L293D for small gear motors up to about 0.5 A, one or two per chip, from a 6 V to 12 V motor supply. Add 2.6 V to the motor's rated voltage when you pick VCC2, take VCC1 from the board's 5 V pin, join the grounds, solder the chip to plenty of copper on all four ground pins and put PWM on the enable pins. Check the motor's stall current before you trust it to a robot. For bigger motors or low supply voltages, move to a MOSFET driver.
Questions people ask
What is the pinout of the L293D?
Pin 1: enable for drivers 1 and 2. Pins 2 and 7: inputs 1A and 2A. Pins 3 and 6: outputs 1Y and 2Y (motor 1). Pins 4, 5, 12, 13: ground. Pin 8: VCC2, motor supply. Pin 9: enable for drivers 3 and 4. Pins 10 and 15: inputs 3A and 4A. Pins 11 and 14: outputs 3Y and 4Y (motor 2). Pin 16: VCC1, 5 V logic.
How much current can the L293D handle?
600 mA per channel continuously and 1.2 A for at most 100 µs. Heat usually sets a lower limit: two motors at 0.5 A each already put the die around 127 °C in a 25 °C room.
Why does my motor run slower on the L293D?
The bridge loses about 2.6 V at 0.6 A (1.4 V on the high side, 1.2 V on the low side, typical). A motor on 9 V sees about 6.4 V. Raise the motor supply or use a MOSFET driver.
Can an ESP32 or a 3.3 V board drive the L293D?
Yes, on the inputs: TI counts anything above 2.3 V as high. Pin 16 (VCC1) still needs 4.5 V or more, so power it from 5 V.
What is the difference between the L293 and the L293D?
The L293D has the clamp diodes inside and is rated 600 mA per channel. The L293 has no diodes and is rated 1 A. Pins are the same.
Buying the L293D
Outside India it is stocked by the large distributors as the L293DNE; in India most component shops sell the DIP and ready-made L293D motor shields. Check the marking: some boards sold as L293D carry an L293 or a different driver. Our guide to buying electronic components in India compares ten online sellers and covers how to spot fakes.
One email a month from the bench
New circuits, lessons, part guides and calculators, on the first Sunday of each month.
Used in these lessons
Lessons that go deeper
Datasheets this page was checked against
- Texas Instruments, L293x Quadruple Half-H Drivers (SLRS008D) (SLRS008D, September 1986, revised January 2016)
Makers revise datasheets. If the copy you download has a newer revision and a number here disagrees with it, the datasheet wins, and we would like to hear about it.