H-Bridge Motor Driver: How It Works, Truth Table and Design

By editor 7 min read
H-bridge diagrams showing forward and reverse switch states

An H-bridge is a four-switch circuit that can apply a DC supply across a load in either polarity, so a DC motor can run forward or in reverse. Closing S1 and S4 drives current one way; closing S2 and S3 reverses it. Opening all four lets the motor coast, and closing both high-side or both low-side switches brakes it. Both switches in one leg must never be on together: that shorts the supply, known as shoot-through. PWM on the switches sets the speed.

4
switches
S1+S4 / S2+S3
forward / reverse
QG/ΔV
bootstrap C minimum
2 × I²R
conduction loss

How an H-Bridge Works

H-bridge forward and reverse switch statesTwo H-bridge diagrams. Left: switches S1 (left high side) and S4 (right low side) closed, so current flows left to right through the motor. Right: S2 (left low side) and S3 (right high side) closed, reversing the current. Closing both switches in one leg would short the supply.H-bridge: closing diagonal switch pairs reverses the motorS1 + S4 on: forward+V0 V (ground)S1S2S3S4Mmotor currentS2 + S3 on: reverse+V0 V (ground)S1S2S3S4Mmotor currentNever close S1 + S2 or S3 + S4 together: that shorts the supply (shoot-through)IndustrialBasicsindustrialbasics.com
Figure 1: Switch naming and states follow the Wikipedia H-bridge article (S1, S2 left leg; S3, S4 right leg).

The name comes from the schematic: four switches form the uprights of an H and the motor is the crossbar (Wikipedia). S1 and S3 are the high-side switches to +V; S2 and S4 are the low-side switches to ground. Each side, S1/S2 and S3/S4, is one leg or half bridge.

H-Bridge Truth Table

S1S2S3S4Result
1001Forward (motor turns one way)
0110Reverse
0000Coast (free run to a stop)
1010Brake (both terminals to +V)
0101Brake (both terminals to ground)
11XXShort circuit: shoot-through, left leg
XX11Short circuit: shoot-through, right leg
Switch states from Wikipedia (H-bridge, DC motor driver table); 1 = on, 0 = off, X = either.

Braking shorts the motor terminals together, through both high-side or both low-side switches. The motor’s back-EMF then drives current that quickly absorbs its kinetic energy. Coasting disconnects the motor so friction stops it. Some drivers brake at PWM off-time: the Microchip ATA6823 switches both high-side MOSFETs on when PWM is low.

Building an H-Bridge: Relays, BJTs and MOSFETs

  • Relays: a DPDT relay gives the same reversing function (see SPDT vs DPDT). Adding a transistor to carry current lets the relay switch only when no current flows, extending its life, and allows PWM.
  • P-channel high side, N-channel low side: simple gate drive, since the P-channel gate is pulled below +V to turn on. PNP/NPN BJT bridges work the same way.
  • N-channel on all four: most efficient, because N-channel MOSFETs have about one third the on-resistance of P-channel parts. The high-side gates must go above +V, using a bootstrap capacitor, a charge pump, isolated supplies or a gate drive transformer.
  • Integrated H-bridge ICs: single and dual packages for small motors; some include flyback diodes. Wikipedia calls the L293 series mostly obsolete, though hobbyists still use it.

Renesas’s HIP4081A shows a full N-channel gate driver: up to 80 V, switching over 250 kHz. A bootstrap supplies the high instantaneous turn-on current and an internal charge pump maintains the upper bias. At start-up both low-side outputs turn on for about 400 ns to charge the bootstrap capacitors, with the high-side outputs held off to prevent shoot-through.

H-Bridge Calculator

H-Bridge Calculator: Motor Voltage, Conduction Loss and Bootstrap Capacitor
IndustrialBasics calculator. Average motor voltage = duty × supply (sign-magnitude PWM, ideal switches). Conduction loss: two MOSFETs carry the motor current in series, each I²Rds(on); switching, diode and dead-time losses are extra, and Rds(on) rises when hot. Bootstrap: CBS ≥ QG / ΔV (Renesas AN9405, Eq. 1).

Dead Time, Shoot-Through and Gate Drive

Real transistors do not switch instantly. Jason Sachs explains that most of the turn-on and turn-off time is spent crossing the Miller plateau, where drain voltage swings while gate voltage stays flat. Dead time must be long enough that the outgoing transistor finishes turning off before the incoming one begins to conduct. Otherwise significant shoot-through current flows. Gate drivers set it with resistors: the HIP4081A uses its HDEL and LDEL pins.

Renesas also warns against overdriving the gate. Above about 10 V gate-source, most power MOSFETs gain little further drop in on-resistance. Overcharging the gate delays turn-off, adds losses and can itself cause shoot-through. About 12 V is optimum for that driver’s bias supplies.

Design tip: Bootstrap drivers need the low-side switch to turn on regularly to recharge the capacitor, so 100% duty on the high side is limited unless the driver has a charge pump. Check the gate driver datasheet for maximum duty and minimum off-time.

Common Uses of H-Bridges

  • Reversible DC brushed motors in robots, actuators and automotive systems
  • Bipolar stepper motors, which almost always use two H-bridges
  • Voice-coil motors and class-D audio amplifiers
  • Single-phase inverters, including UPS inverters (see types of UPS)
  • Push-pull and isolated DC-DC converters driving a transformer primary

Adding a third leg makes a three-phase inverter, the core of every AC motor drive (see VFD vs soft starter). For coil suppression on relay-based reversing circuits, see relay snubber diodes.

Safety note: Motor drivers can deliver very high fault currents. Fuse the supply, test new boards with a current-limited bench supply, and keep fingers clear of motors that can start under software control.

Frequently Asked Questions

What is an H-bridge?

A circuit of four switches arranged like the letter H, with the load as the crossbar. Closing one diagonal pair applies the supply one way across the load; closing the other pair reverses it, so a DC motor can run forward or backward (Wikipedia).

How does an H-bridge control motor direction?

With S1 and S4 closed, current flows one way through the motor; with S2 and S3 closed, it flows the other way. Opening all four lets the motor coast; closing both high-side or both low-side switches brakes it.

What is shoot-through in an H-bridge?

Turning on both switches in one leg (S1 and S2, or S3 and S4) at the same time, which shorts the supply. Even brief overlap during switching causes current spikes and heating, which is why drivers insert dead time.

What is dead time?

A short delay, set on the gate driver (for example by resistors on the HIP4081A HDEL and LDEL pins), between turning off one switch in a leg and turning on the other. It must cover the turn-off of the first transistor, including its Miller plateau, before the second starts conducting.

Why use N-channel MOSFETs on the high side?

N-channel MOSFETs typically have about a third of the on-resistance of comparable P-channel parts, but their gates must be driven above the supply rail, which needs a bootstrap circuit, charge pump, isolated supply or gate drive transformer (Wikipedia).

How do you size a bootstrap capacitor?

The charge drawn equals the gate charge: CBS ≥ QG / ΔV, where ΔV is the allowed droop. Renesas notes that a capacitor about 10 times the gate-source capacitance keeps the droop under 10%.

What is the difference between a half bridge and an H-bridge?

A half bridge uses two switches on one side of the load and acts as a toggle switch, but cannot reverse the load voltage. An H-bridge (full bridge) has two legs and can. Three legs make a three-phase inverter.

Do I need flyback diodes?

Inductive loads need a path for current when switches open. MOSFET body diodes usually serve, but some ICs and BJT bridges need external diodes; Renesas notes flyback diodes must be placed around inductive loads.

Can a relay act as an H-bridge?

Yes. A DPDT relay can reverse a motor like an H-bridge, and a transistor can be added to switch current and allow PWM while the relay sets direction. Semiconductors win on size, speed and wear (Wikipedia).

Is the L293 still a good H-bridge?

It is still common in hobby projects, but Wikipedia describes the L293 series as technically mostly obsolete; modern MOSFET drivers have much lower losses.

Sources and Further Reading

About the author

editor

Leave a Comment