Skip to content
A project ofgwark.dev

Texas Instruments / STMicroelectronics · Integrated circuit

L293D Motor Driver

Quad half-bridge with built-in flyback diodes: two DC motors bidirectionally, or one bipolar stepper. Old, inefficient and still the part in every starter kit.

Cheat sheet (SVG)
Logic level
4.5-7 V logic / ≤36 V motor
Package
PDIP-16 (PowerDIP with fused GND)

1.Pinout diagram

Highlight a signalhover to preview, click to keep

Pins 1-8

L293D

Pins 9-16

Pin detail

Hover a pin for its mappings and gotchas. Click to keep it here.

Logic level
4.5-7 V logic / ≤36 V motor
Package
PDIP-16 (PowerDIP with fused GND)

Fig. 1. L293D Motor Driver, PDIP-16 (PowerDIP with fused GND). Hover or tap a signal to light up every pin that carries it.

2.Caution

3.Driving one motor

What has to go around the chip before it will run.

VCCGNDL293DWire link between VCC1 (16) and VCCWire link100 nF between VCC1 (16) and GND100 nF100 uF between VCC2 (8) and GND100 uFWire link between EN1,2 (1) and VCCWire linkGND (4) to GNDGND (5) to GNDGND (12) to GNDGND (13) to GNDWire link between VM and VCC2 (8)Wire linkMotor between OUT1 (3) and OUT2 (6)MotorEN1,2 1OUT1 3GND 4GND 5OUT2 6VCC2 8VCC2 8GND 12GND 13VCC1 16VCC1 16VM
Fig. 2. Driving one motor, drawn from Table 1. Dashed parts are optional. Crossing wires are not connected.
Table 1. External parts, and why each one is there.
PartBetween
Wire linkVCC1 (16) to VCC
Wire linkVCC2 (8) to VM
100 nFVCC1 (16) to GND
100 uFVCC2 (8) to GND
MotorOUT1 (3) to OUT2 (6)
Wire linkoptionalEN1,2 (1) to VCC

The D suffix is the whole difference: the L293D has the clamp diodes on-die, the plain L293 does not and needs eight external ones. The output stage drops about 2.6 V in total (1.4 V on the high side, 1.2 V on the low side), so a 12 V motor on a 12 V rail sees closer to 9.4 V.

4.Full pin reference

Every pin, alias and mapping. This table is included when you print the page.

Table 2. Pin assignments.

Complete pin reference for L293D Motor Driver
PinNameFunctions

To fix a wrong pin, edit data/boards/l293d.json.

Edit this file on GitHubOpen an issue