An H bridge is the foundational topology for bidirectional DC motor control, allowing you to reverse polarity and modulate speed via PWM without mechanical switches. While integrated chips like the L298N or DRV8871 are convenient for quick prototypes, understanding the underlying h bridge circuit diagram is critical when you need to drive higher currents (10A+), optimize for thermal efficiency, or debug a blown MOSFET on a custom PCB. This guide breaks down the node topology, selects real-world discrete components for a 12V/5A build, and maps out the exact failure modes that destroy poorly designed bridges.

Anatomy of an H Bridge Circuit Diagram: Nodes and Topology

The classic H bridge consists of four switches (typically MOSFETs or BJTs) arranged in an 'H' pattern, with the load (motor) connected across the middle horizontal bar. To analyze or build one, you must define the four primary nodes:

  • Node V_BUS: The positive DC supply rail (e.g., 12V or 24V).
  • Node GND: The common ground reference for the power supply and logic.
  • Node OUT_A: The junction between the top-left and bottom-left switches, connected to Motor Terminal 1.
  • Node OUT_B: The junction between the top-right and bottom-right switches, connected to Motor Terminal 2.

Why This Topology Over the Alternatives?

Before solid-state electronics, engineers used DPDT (Double-Pole Double-Throw) relays to reverse motor polarity. Today, the solid-state H bridge dominates, but it is useful to understand exactly why we abandon relays and half-bridges for this specific application.

Topology Reversibility PWM Speed Control Switching Speed & Wear Best Use Case
H Bridge (4 Switches) Yes (Full 4-quadrant) Yes (High frequency) Solid-state, no mechanical wear Robotics, CNC, precise motor control
DPDT Relay Yes No (Contacts arc/bounce) Mechanical wear, slow (ms range) Simple winches, infrequent reversal
Half Bridge (2 Switches) No (Unidirectional) Yes Solid-state Unidirectional speed control, buck converters

The H bridge wins because it provides four-quadrant operation: forward drive, forward braking (regenerative), reverse drive, and reverse braking. A half-bridge cannot reverse the voltage across the load, and a relay cannot handle 20kHz PWM without rapid contact destruction.

Design Walkthrough: Picking Real Component Values

Let's design a discrete h bridge circuit diagram capable of driving a 12V brushed DC motor drawing up to 5A continuous current. We will avoid BJTs for the main power path because their saturation voltage ($V_{CE(sat)}$) causes excessive heat at 5A. Instead, we use MOSFETs.

Pro-Tip: When selecting MOSFETs for an H bridge, calculate conduction losses using $I^2R$. A MOSFET with an $R_{DS(on)}$ of 20mΩ at 5A dissipates only 0.5W ($5^2 \times 0.02$), which a standard TO-220 package can handle without a heatsink.

Component Selection

  • High-Side Switches (Q1, Q3): P-Channel MOSFETs. We choose the IRF4905 ($V_{DSS} = -55V$, $R_{DS(on)} \approx 20m\Omega$). P-FETs are used on the high side because they are easy to drive relative to V_BUS.
  • Low-Side Switches (Q2, Q4): N-Channel MOSFETs. We choose the IRFZ44N ($V_{DSS} = 55V$, $R_{DS(on)} \approx 17m\Omega$). N-FETs have lower on-resistance and are cheaper than equivalent P-FETs.
  • Gate Drivers (Q5, Q6): Microcontrollers (ESP32/Arduino) output 3.3V or 5V. This is not enough to fully turn off a P-FET connected to a 12V rail (the $V_{GS}$ would only be -5V, risking linear region heating). We use 2N2222 NPN BJTs to pull the P-FET gates down to GND.
  • Flyback Diodes (D1-D4): 1N5819 Schottky diodes. Schottkys have a low forward voltage drop (~0.6V) and near-zero reverse recovery time, crucial for clamping inductive kickback during PWM switching.
  • Resistors:
    • 10kΩ Pull-ups: From V_BUS to P-FET gates (ensures they stay off if logic floats).
    • 1kΩ Base Resistors: For the 2N2222 BJTs (limits base current to ~5mA from a 5V GPIO).
    • 100Ω Gate Resistors: In series with every MOSFET gate to dampen high-frequency ringing caused by parasitic trace inductance.

Behavior Matrix and Extreme Failure Modes

Understanding the logic states is only half the battle; knowing how the circuit fails when a component breaks is what separates a hobbyist from a design engineer. Below is the behavior matrix for the four switches, followed by the extreme failure modes.

State Q1 (High L) Q2 (Low L) Q3 (High R) Q4 (Low R) Motor Action
Forward ON OFF OFF ON Spins Forward (OUT_A = V_BUS, OUT_B = GND)
Reverse OFF ON ON OFF Spins Reverse (OUT_A = GND, OUT_B = V_BUS)
Brake (Low) OFF ON OFF ON Dynamic Braking (Terminals shorted to GND)
Coast OFF OFF OFF OFF Freewheeling (Motor coasts to a stop)

What Breaks at the Extremes?

1. Shoot-Through (Logic Error): If Q1 and Q2 are turned ON simultaneously, V_BUS is shorted directly to GND. This bypasses the motor entirely. The resulting current spike (often >50A) will instantly vaporize the MOSFET silicon and melt breadboard traces. Prevention: Implement 'dead-time' in software or use hardware logic gates (like a 74HC08 AND gate with an inverter) to physically prevent both gates from receiving a high signal.

2. Open Gate Resistor: If the 100Ω gate resistor on Q4 breaks (open circuit), the gate capacitance cannot charge or discharge. Q4 remains permanently OFF. The motor will spin forward normally, but when commanded to reverse, it will simply coast or brake weakly because the low-side return path is broken.

3. Shorted MOSFET (Drain-to-Source): If Q2 fails short due to a previous voltage spike, Node OUT_A is permanently tied to GND. If the microcontroller later commands a Forward state (turning Q1 ON), V_BUS is shorted to GND through Q1 and the shorted Q2, causing catastrophic failure of Q1 and the power supply.

Step-by-Step Breadboard Testing Protocol

Never wire the entire h bridge circuit diagram at once and apply power. A single misplaced jumper will result in a short circuit. Follow this staged verification process using a multimeter and a bench power supply with current limiting set to 500mA.

Safety Callout: Always de-energize the breadboard before moving jumper wires. Verify the power rails are dead with a multimeter before touching the circuit. Lithium batteries and unregulated bench supplies can deliver lethal or fire-starting currents if shorted.
  1. Build and Test the Low-Side Only: Insert Q2 and Q4 (N-FETs), their 100Ω gate resistors, and the 10kΩ pull-down resistors. Apply 12V to V_BUS. Use a jumper wire to manually pull the gate of Q2 to 5V. Measure the voltage at Node OUT_A; it should drop from 12V (floating) to near 0V. Repeat for Q4.
  2. Add the High-Side and Gate Drivers: Insert Q1, Q3 (P-FETs), the 2N2222 BJTs, and all base/pull-up resistors. Do not connect the motor yet. Connect a 1kΩ resistor and an LED from Node OUT_A to GND. Trigger the 2N2222 base for Q1 with 5V. The LED should illuminate, confirming the P-FET is passing V_BUS.
  3. Verify Cross-Conduction Protection: With the LED still connected to OUT_A, attempt to trigger both Q1 (High) and Q2 (Low) simultaneously. If your logic interlock is working, the LED should remain off or dim. If it flashes brightly and your bench supply trips its overcurrent protection, you have a shoot-through condition. Fix your logic before proceeding.
  4. Install Flyback Diodes: Place the four 1N5819 diodes across the Drain and Source of every MOSFET, with the cathode (stripe) pointing toward V_BUS and the anode toward GND. Verify orientation with a multimeter's diode mode.
  5. Connect the Load and Apply PWM: Connect the DC motor across OUT_A and OUT_B. Apply a 1kHz PWM signal to your logic inputs. Listen to the motor; a clean, quiet whine indicates proper switching. A harsh buzzing or clicking suggests insufficient gate drive voltage or excessive ringing.

H Bridge Circuit Diagram FAQ

Why does my H bridge circuit diagram require flyback diodes?

A DC motor is fundamentally an inductor. When current flows through an inductor and the switch (MOSFET) suddenly opens, the magnetic field collapses, inducing a massive reverse voltage spike ($V = -L \frac{di}{dt}$) to keep the current flowing. Without flyback diodes to provide a recirculation path back to V_BUS or GND, this spike will exceed the $V_{DSS}$ breakdown voltage of your MOSFETs, destroying them instantly. For deeper reading on inductive kickback, refer to the SparkFun motor control tutorial.

Can I use four N-channel MOSFETs in an H bridge circuit diagram?

Yes, and in high-power industrial designs (50A+), it is actually preferred because N-FETs have significantly lower $R_{DS(on)}$ and are cheaper than P-FETs. However, to turn on a high-side N-FET, its gate voltage must be roughly 10V higher than its source (which is sitting at V_BUS when the motor is running). This requires a 'bootstrap circuit' or a dedicated high-side gate driver IC like the IR2110, which uses a charge pump capacitor to generate the necessary $V_{GS}$ voltage above the supply rail.

How do I add PWM speed control to an H bridge circuit diagram?

The most efficient method is 'Sign-Magnitude' or 'Lock Anti-Phase' PWM, but the simplest for beginners is to apply the PWM signal to the active high-side switch while keeping the opposite low-side switch permanently ON. For example, to drive forward at 50% speed, apply a 50% duty cycle PWM to Q1, keep Q4 ON, and keep Q2 and Q3 OFF. During the PWM 'off' time, the motor's inductive current freewheels through Q4 and the flyback diode of Q2, maintaining smooth torque. See the Texas Instruments brushed DC motor driver overview for advanced modulation schemes.

What is shoot-through in an H bridge and how do I prevent it?

Shoot-through occurs when a high-side and low-side switch on the same leg (e.g., Q1 and Q2) are turned on simultaneously, creating a dead short across the power supply. It is prevented in software by inserting 'dead-time' (a few microseconds where both switches are OFF) during state transitions. In hardware, it is prevented by using logic gates or dedicated driver ICs with built-in cross-conduction prevention (anti-shoot-through logic) that physically block overlapping gate signals.