MCU Interfaces

L293D Dual H-Bridge DC Motor Driver

Complete dual bidirectional DC motor driver schematic using the Texas Instruments L293D quadruple half-H driver IC with independent PWM speed and direction control.

Logic Supply Voltage (VCC1)
4.5V to 7.0V DC (Nominal 5.0V TTL/CMOS Compatible)
Components
8
Formulas
4
Gotchas
4
Open in Web CAD
Verified source

Schematic workbench

L293D Dual H-Bridge DC Motor DriverExported from CircuitBase1,2EN11A22A73,4EN93A104A151Y32Y63Y114Y14VCC116VCC28GND4GND5GND12GND13U1L293DMM112V DC MotorMM212V DC MotorC1100nF+C2100µFC3100nFC4100nFC5100nFEN1IN1IN2EN2IN3IN4+5V+12VGNDGNDGNDGND

Circuit overview

Logic Supply Voltage (VCC1)
4.5V to 7.0V DC (Nominal 5.0V TTL/CMOS Compatible)
Components
8
Formulas
4
Gotchas
4

Click any component in the schematic above to inspect its electrical ratings, function, and connections.

Circuit overview

The L293D dual H-bridge DC motor driver schematic provides independent bidirectional speed and directional control for two DC brush motors or one 4-wire bipolar stepper motor. Operating with dual power rails, it separates low-noise 5V microcontroller logic (VCC1) from higher-voltage 4.5V to 36V inductive motor supplies (VCC2). Each full H-bridge consists of two push-pull driver channels with internal high-speed clamp diodes (flyback diodes) integrated on-chip to suppress inductive voltage kickback during pulse-width modulation (PWM) switching and sudden reversals. The monolithic driver integrates thermal shutdown and internal cross-conduction shoot-through protection, while external ceramic snubbers (C4, C5) placed directly across the motor terminals attenuate high-frequency brush commutation arcing and RF interference.

Key Technical Specifications

Logic Supply Voltage (VCC1)4.5V to 7.0V DC (Nominal 5.0V TTL/CMOS Compatible)
Motor Supply Voltage (VCC2)4.5V to 36.0V DC (Independent High-Current Rail)
Continuous Output Current (per channel)600 mA continuous / 1.2 A peak non-repetitive surge (<100 µs)
Internal Clamping Flyback DiodesIntegrated on-chip (600 mA continuous, 1.2 A peak surge rating)
Total Saturation Voltage DropTyp. 2.6V (High-side Darlington 1.4V + Low-side NPN 1.2V at 600mA)
Thermal Resistance (Junction-to-Ambient)67°C/W (DIP-16 with heatsink pins 4, 5, 12, 13 soldered to PCB ground pour)
Maximum Operating Junction Temperature+150°C (Internal thermal shutdown triggers typically at +165°C)
Recommended PWM Modulation Frequency1 kHz to 10 kHz (Acoustic and switching efficiency optimized)

Theory of Operation & Working Principle

01

Dual H-Bridge Output Stage Topology and Bipolar Darlington Conduction

Each half-H driver channel inside U1 employs an NPN Darlington pull-up transistor pair and an NPN common-emitter pull-down transistor. When driving a motor terminal HIGH, output current flows from the motor supply VCC2 through the upper Darlington pair into the load. Due to the two series base-emitter and collector-emitter junctions in the Darlington configuration, the high-side saturation voltage drop ranges between 1.2V and 1.8V. Simultaneously, the low-side pull-down transistor sinks the motor current from the opposite terminal to ground, incurring a low-side saturation drop of 1.0V to 1.5V. Consequently, the effective voltage delivered to the motor terminals is reduced by the cumulative two-transistor saturation loss:

FORMULA & CALCULATION
VM = VCC2 - VCE(sat,high) - VCE(sat,low) ≈ VCC2 - 2.6V
02

Directional Logic Matrix and Bidirectional Commutation

Motor 1 is connected differentially between output pins 1Y (Pin 3) and 2Y (Pin 6). Directional rotation is dictated by complementary TTL logic levels on inputs 1A (Pin 2) and 2A (Pin 7) while enable pin 1,2EN (Pin 1) is asserted HIGH: - Forward Rotation: Setting 1A = HIGH and 2A = LOW drives 1Y HIGH (~VCC2 - 1.4V) and 2Y LOW (~1.2V), establishing forward current flow from Pin 3 through Motor 1 to Pin 6. - Reverse Rotation: Setting 1A = LOW and 2A = HIGH drives 1Y LOW and 2Y HIGH, reversing terminal polarity and reversing motor rotation. - Active Dynamic Braking: Setting both inputs to identical logic levels (1A = HIGH, 2A = HIGH or 1A = LOW, 2A = LOW) clamps both motor terminals to the same potential, dissipating motor back-EMF into low-impedance paths and rapidly braking rotor rotation.

03

Pulse-Width Modulation (PWM) Speed Control and Freewheel Coasting

Continuous motor torque and rotational velocity regulation is achieved by injecting a pulse-width modulated (PWM) digital waveform into enable pin 1,2EN (for Motor 1) or 3,4EN (for Motor 2) at typical frequencies of 1 kHz to 10 kHz. When the enable pin transitions to logic LOW, both half-H push-pull output stages enter a high-impedance (Hi-Z) tri-state mode, effectively disconnecting the motor from both VCC2 and ground. The motor coasts freely while circulating armature currents decay through internal clamp diodes. The effective average terminal voltage scales proportionally with duty cycle:

FORMULA & CALCULATION
Vavg = D × (VCC2 - 2.6V) = (ton) / (T) × (VCC2 - 2.6V)
04

Internal Clamping Diodes and Inductive Kickback Suppression

Direct-current permanent-magnet motors represent complex inductive loads described by winding inductance L and back-electromotive force constant Ke. When driver transistors switch abruptly from ON to OFF, the collapsing magnetic field inside the motor windings induces an instantaneous inductive flyback spike (\(V = -L \cdot \frac{di}{dt}\)). In the L293D, integrated internal clamping diodes bridge each output channel to both VCC2 and GND: - If an output spikes above VCC2, the high-side diode forward-biases, clamping the terminal to \(V_{CC2} + V_F\) (typically VCC2 + 1.2V). - If an output swings below ground, the low-side diode forward-biases, clamping the terminal to \(-V_F\) (typically -1.2V). This recirculation prevents bipolar collector-base avalanche breakdown. Parallel ceramic capacitors C4 and C5 (100nF) located directly across the motor terminals provide a localized low-impedance bypass for high-frequency brush commutation noise.

05

Dual Power Rails, Cross-Conduction Protection, and Decoupling Strategy

To isolate sensitive microcontroller digital logic from violent motor switching transients, U1 features separated power inputs: VCC1 (Pin 16) powers internal TTL input comparators, logic buffers, and thermal sensors, decoupled by ceramic capacitor C1 (100nF). VCC2 (Pin 8) supplies exclusively the high-current output stages, decoupled by parallel bulk electrolytic capacitor C2 (100µF, absorbing surge currents and ripple) and high-frequency ceramic capacitor C3 (100nF, shunting fast dI/dt edge harmonics). Internal cross-conduction interlocking prevents top and bottom transistors in the same half-H column from conducting simultaneously, eliminating catastrophic shoot-through current spikes during logic switching transitions.

Design Equations & Calculations

Effective Motor Terminal Voltage

VM = VCC2 − (VCE(sat,H) + VCE(sat,L)) = VCC2 − Vdrop

Calculates the real differential voltage delivered across the motor terminals after accounting for the high-side Darlington and low-side NPN transistor saturation drops.

SymbolParameterTypical value
VMEffective motor differential terminal voltage9.4V
VCC2Motor power supply voltage12.0V
VdropTotal driver saturation voltage drop (high-side + low-side)2.6V

Total Driver Power Dissipation

Ptotal = (Vdrop · Iload1 + Vdrop · Iload2) + (VCC1 · ICC1) + (VCC2 · ICC2)

Calculates internal electrical power converted into heat inside the L293D package, dominated by the conduction losses in the active H-bridge output transistors.

SymbolParameterTypical value
PtotalTotal package internal thermal dissipation2.85W
VdropTotal bridge saturation drop2.6V
Iload1Continuous operating current of Motor 10.5A
Iload2Continuous operating current of Motor 20.5A
VCC1Logic supply rail voltage5.0V
ICC1Total quiescent logic supply current0.040A
VCC2Motor power supply voltage12.0V
ICC2Output stage quiescent drive current0.004A

Junction Temperature Rise

TJ = TA + (Ptotal · Rθ JA)

Predicts the silicon die operating temperature based on total package power dissipation, ambient temperature, and PCB ground plane thermal heatsinking resistance.

SymbolParameterTypical value
TJCalculated silicon junction temperature115.0°C
TAAmbient operating temperature25.0°C
PtotalTotal package power dissipation1.35W
Rθ JAThermal resistance junction-to-ambient with PCB heatsink pour67.0°C/W

PWM Average Motor Voltage

Vavg = D · VM = tonT · (VCC2 − Vdrop)

Determines the mean DC voltage delivered to the motor armature as a function of the PWM duty cycle D applied to the channel enable pin.

SymbolParameterTypical value
VavgEffective average DC motor voltage4.7V
DPWM duty cycle ratio (0.0 to 1.0)0.50ratio
VMFull conduction motor terminal voltage9.4V
VCC2Motor supply rail voltage12.0V
VdropTotal saturation voltage drop across H-bridge2.6V

Bill of Materials (BOM)

Every part needed to build this circuit. Select a reference designator to inspect it on the schematic.

RefDesComponentValue / ratingPackageRole in circuitReference
Quadruple Half-H Driver IC with Internal Clamp Diodes

Texas Instruments L293DNE; 600mA/channel continuous, 1.2A peak, 4.5V-36V motor supply with internal clamp diodes.

L293DPDIP-16Dual H-Bridge Inductive DriverQuadruple Half-H Driver IC with Internal Clamp Diodes pinout & datasheet
DC Brushed Motor 1

Standard 12V permanent magnet brushed DC motor, nominal load current <= 500mA.

12V DC MotorCustomActuator Motor Channel 1 & 2—
DC Brushed Motor 2

Standard 12V permanent magnet brushed DC motor, nominal load current <= 500mA.

12V DC MotorCustomActuator Motor Channel 3 & 4—
Ceramic Decoupling Capacitor

Murata GRM21BR71E104KA01L; 100nF 25V X7R ceramic, placed directly adjacent to U1 Pin 16.

100nF0805Logic Supply VCC1 Decoupling—
Aluminum Electrolytic Capacitor

Nichicon UVR1E101MDD; 100µF 25V radial electrolytic, absorbs motor inrush currents and switching ripple.

100µFRadialMotor Supply VCC2 Bulk Reservoir—
Ceramic Bypass Capacitor

Murata GRM21BR71H104KA01L; 100nF 50V X7R ceramic, shunts high dI/dt switching transients at U1 Pin 8.

100nF0805Motor Supply VCC2 High-Frequency Shunt—
Motor 1 Snubber Capacitor

Murata GRM21BR71H104KA01L; 100nF 50V X7R ceramic, soldered directly across Motor 1 terminals.

100nF0805Commutation Noise Suppression—
Motor 2 Snubber Capacitor

Murata GRM21BR71H104KA01L; 100nF 50V X7R ceramic, soldered directly across Motor 2 terminals.

100nF0805Commutation Noise Suppression—

Practical Applications & Target Domains

Differential two-wheel drive robotics and autonomous mobile platform navigation
Bidirectional DC motor actuators, linear screw drives, and pan-tilt servo mechanisms
4-wire bipolar stepper motor phase driving in 3D printers, CNC axis, and camera sliders
PWM speed regulation for 12V automotive cooling fans, micro-pumps, and solenoid valves

Critical Design Traps & Engineering Gotchas

Traps found in real builds, with the fix for each.

Warning

Significant Internal Darlington Saturation Voltage Loss

Applying a 12V motor supply (VCC2) only produces approximately 9.4V across the motor terminals under a 600mA load. Beginners frequently mistake this standard 2.6V Darlington drop for insufficient motor power supply capacity or defective motors.

Mitigation

Compensate motor supply voltage by sizing VCC2 equal to the required motor rated voltage plus 2.5V to 3.0V (e.g., supply 14.5V to 15V for a 12V rated motor), or upgrade to a modern low-RDS(on) DMOS/CMOS driver (such as DRV8833 or TB6612FNG) for ultra-low voltage loss.

Critical

Excessive Power Dissipation Requiring PCB Ground Pour Heat Sinking

Driving two DC motors at 500mA continuously from a 12V rail dissipates over 2.6W of thermal power inside U1. Without adequate copper heatsinking, internal thermal shutdown triggers within seconds, cutting motor torque intermittently.

Mitigation

Solder ground pins 4, 5, 12, and 13 directly to a wide, unbroken copper ground plane (minimum 10 cm² on double-sided 1 oz copper) or attach an external DIP-16 copper clip-on heatsink. Maintain total package power below 1.5W in free air at 25°C ambient.

Critical

Motor Stall Current Exceeding the 600mA Continuous Limit

Small DC motors specified at 200mA nominal no-load current can easily draw 1.5A to 3.0A when stalled under mechanical load or during abrupt full-speed reversal. Exceeding the 1.2A absolute peak limit blows the internal bond wires or Darlington junctions permanently.

Mitigation

Measure the stall current of the motor (V_motor / R_winding) before designing. If stall current exceeds 1.0A, implement software current limiting via PWM soft-start ramping, insert a series PTC resettable fuse (650mA hold), or use an external current-sense resistor.

Warning

Separate Logic (VCC1) and Motor (VCC2) Power Decoupling

Powering logic VCC1 and motor VCC2 from the same unregulated supply line without adequate filtering causes inductive switching noise to inject into microcontroller resets and brownout detectors.

Mitigation

Always power VCC1 from a clean, regulated 5V rail decoupled with a 100nF ceramic capacitor adjacent to Pin 16. Power VCC2 from a dedicated motor battery or bulk power rail buffered with a minimum 100µF electrolytic capacitor and a 100nF ceramic capacitor directly at Pin 8.

Primary sources

Help keep this page accurate

Built, simulated or reviewed this circuit? Confirm it, or report a part, value or connection that is wrong.

Opens a public form on GitHub with this page already filled in; a free GitHub account is needed. How reports and confirmations work

HTML snippet

<iframe src="https://circuitbase.tech/embed/schematic/l293d-dual-h-bridge-dc-motor-driver?theme=paper" width="100%" height="500" frameborder="0" loading="lazy" style="border: 1px solid #e5e7eb; border-radius: 6px; max-width: 100%;" title="L293D Dual H-Bridge DC Motor Driver — CircuitBase Interactive Schematic"></iframe>