🔌 H-Bridge Circuits Explained: How Electronics Reverse the Direction of DC Motors

🔌 H-Bridge Circuits Explained: How Electronics Reverse the Direction of DC Motors

A small robot reaches a wall, pauses, and backs away. An electric car window rises, then lowers at the press of another switch. A conveyor changes direction to clear a jam. In each case, the motor does not need a different power supply to reverse—it needs the supply connected differently.

That simple requirement creates a surprisingly important circuit problem. A DC motor spins one way when current flows through its windings in one direction, and the opposite way when that current reverses.

An H-bridge is the electronic switch arrangement that makes this possible. It is used in hobby projects, industrial equipment, automotive systems, battery-powered tools, and many embedded designs.

Understanding an H-bridge means understanding more than motor direction. It also introduces switching devices, inductive loads, power loss, safe control logic, braking, and the practical gap between a circuit diagram and a reliable physical design.

🧭 The Basic Job of an H-Bridge

An H-bridge is a circuit that can apply either polarity of a DC supply across a load. Although it can drive certain other loads, its best-known use is reversing a brushed DC motor.

It has four controlled switches arranged around the motor. By closing one diagonal pair, current passes through the motor in one direction. By closing the other diagonal pair, current passes through it in the opposite direction.

The name comes from the usual schematic shape: two vertical switching legs with the motor connecting them across the middle, resembling the letter H.

⚙️ Why Reversing Current Reverses a Motor

A brushed DC motor contains windings and a magnetic field. Current in the armature windings produces magnetic forces that create torque, or turning force, on the rotor.

If the magnetic field from the permanent magnets stays fixed, reversing armature current reverses the electromagnetic torque. The rotor therefore accelerates toward the opposite direction.

This applies specifically to the common permanent-magnet brushed DC motor. Other motor types, such as brushless DC motors, induction motors, and stepper motors, require different drive methods even though direction control remains a central goal.

🔋 Why One Switch Cannot Reverse a Motor

A single transistor or relay can turn a motor on and off, usually by connecting one motor terminal to ground. That arrangement is called a low-side switch.

However, it does not interchange the motor terminals. The positive terminal remains positive and the negative terminal remains negative, so the motor can only turn in its original direction.

To reverse direction, both motor leads must be controllable. An H-bridge provides exactly that: each lead can be connected, under controlled conditions, to either the positive supply rail or ground.

🏗️ The Four-Switch Structure

Label the switches Q1 through Q4. Q1 is the upper-left switch, Q2 the lower-left, Q3 the upper-right, and Q4 the lower-right. The motor sits between the two middle nodes.

The upper switches are called high-side switches because they connect toward the positive supply. The lower switches are low-side switches because they connect toward ground.

Each vertical pair is a half-bridge. Two half-bridges sharing one load form the full H-bridge. This structure is common because it offers direction control and several useful stopping modes.

➡️ Forward Rotation Current Path

For one chosen direction, Q1 and Q4 turn on while Q2 and Q3 remain off. Current flows from the positive supply, through Q1, through the motor, through Q4, and back to ground.

The actual label “forward” is a design choice. A motor’s direction depends on its wiring and mechanical orientation, so firmware should be tested against the finished mechanism rather than assumed from a diagram.

Changing the motor leads physically would swap what the system calls forward and reverse, but an H-bridge lets software make that choice electronically.

⬅️ Reverse Rotation Current Path

To reverse rotation, Q2 and Q3 turn on while Q1 and Q4 turn off. Current now enters the opposite motor terminal and exits through the other terminal.

The supply voltage has not changed polarity. The bridge has changed which supply rail each motor terminal sees. This is the key idea behind electronic direction reversal.

In both directions, the switches should have low resistance when on. Otherwise, substantial voltage is lost in the bridge and becomes heat instead of useful motor power.

🚫 The Dangerous State: Shoot-Through

The most serious H-bridge control error is turning on both switches in the same vertical leg at once—for example, Q1 and Q2. That creates a near-direct path from supply to ground without the motor limiting current.

This condition is called shoot-through or cross-conduction. Current can rise extremely quickly, damaging transistors, traces, connectors, batteries, or power supplies.

A correct controller treats the two switches in each leg as mutually exclusive. This rule matters during ordinary operation, startup, shutdown, resets, and fault conditions.

⏳ Dead Time Prevents Switching Overlap

Real transistors do not turn off instantly. A switch commanded off may continue conducting briefly while stored charge is removed and gate voltages settle.

For that reason, drivers often add dead time: a short deliberate interval in which both devices in one leg are off before the other device turns on. The required interval depends on the transistors, driver, voltage, temperature, and layout.

Too little dead time risks shoot-through. Excessive dead time can reduce efficiency and distort PWM operation, so dedicated motor-driver ICs often manage it internally.

🧱 What the Truth Table Looks Like

A truth table makes bridge control easier to reason about. The states below assume Q1 is upper-left, Q2 lower-left, Q3 upper-right, and Q4 lower-right.

Q1 Q2 Q3 Q4 Motor result
On Off Off On Drive in one direction
Off On On Off Drive in the opposite direction
Off Off Off Off Coast
Off On Off On Brake to ground in many designs
On Off On Off Brake to supply in many designs

The last two rows require care. Their exact electrical behavior depends on the motor driver and supply conditions, but both motor terminals are forced to the same potential, which resists continued rotation.

🛑 Coasting Is Not the Same as Braking

With all four switches off, the motor terminals are effectively disconnected. The rotor continues moving because of inertia and slows through friction, windage, and mechanical load. This is called coasting.

Dynamic braking connects both motor terminals together, either near ground or near the positive rail. A spinning motor acts as a generator; the resulting current creates torque opposing motion.

Braking can stop a mechanism faster, but it also produces current and heat. It should not be selected merely because it sounds more decisive; the mechanical system and driver must tolerate it.

🌊 A Motor Is an Inductive Load

Motor windings are inductors, meaning they resist sudden changes in current. When a switch opens, the winding current cannot instantly fall to zero.

If no safe path exists, the motor voltage can rise sharply as the circuit attempts to keep current flowing. This transient can exceed a transistor’s voltage rating and cause failure.

Inductance is why motor switching needs deliberate current paths rather than ordinary on-off logic. It is also why an H-bridge must be evaluated as a power circuit, not just four digital outputs.

🛡️ Flyback Paths and Body Diodes

Discrete transistor bridges commonly include flyback diodes, also called freewheel diodes, to provide a route for inductive current when switches change state. These diodes clamp voltage to a safer range.

MOSFETs contain intrinsic body diodes, which can sometimes serve part of this function. However, their behavior, losses, and reverse-recovery characteristics may not suit every motor, switching speed, or current level.

Many integrated H-bridge drivers include internal recirculation paths and protection logic. The datasheet still matters: it specifies which braking and decay modes are supported and under what conditions.

🔌 Bipolar Transistors Versus MOSFETs

Older and simpler bridges may use bipolar junction transistors, or BJTs. A BJT can be useful in some low-cost circuits, but it requires base current and has a voltage drop when conducting.

Modern motor bridges commonly use MOSFETs. A properly driven MOSFET behaves roughly like a small resistance when on, so its conduction loss follows the relationship P = I²R.

MOSFETs are not automatically better in every implementation. Gate-drive complexity, voltage ratings, switching loss, package thermal limits, and circuit layout all influence the final design.

⬆️ Why High-Side Gate Drive Is Harder

An N-channel MOSFET is usually preferred for low loss, especially on the low side where its source is near ground. Driving it fully on is straightforward because the gate voltage is measured relative to that source.

On the high side, the source rises close to the motor supply when the MOSFET turns on. Its gate must rise above that source by enough voltage to maintain low resistance.

High-side driver circuits use approaches such as bootstrap capacitors or charge pumps. P-channel MOSFETs can simplify some high-side designs, but they usually have higher resistance for a comparable die size.

🎛️ PWM Controls Speed

Most H-bridges control speed with pulse-width modulation, or PWM. The bridge switches motor voltage on and off rapidly, while the ratio of on-time to total cycle time is the duty cycle.

A higher duty cycle generally delivers more average voltage and current to the motor, producing more available torque under a given load. It is not a perfect speed command because load, friction, supply voltage, and motor characteristics also matter.

PWM can be applied to one switch, one bridge leg, or through a driver’s dedicated enable input. The chosen method affects current recirculation, switching losses, electromagnetic interference, and braking behavior.

📈 Torque, Current, and Stall Conditions

For a permanent-magnet brushed DC motor, torque is approximately proportional to armature current. When the shaft is heavily loaded, the motor slows, back electromotive force decreases, and current rises.

At stall, the rotor is not moving and produces essentially no back EMF. Current is then limited mainly by winding resistance and the driver path, making stall current far higher than normal running current.

Size the H-bridge for credible stall and transient conditions, not only the motor’s no-load current. A mechanism may briefly stall at an end stop, during startup, or when debris blocks it.

🔥 Calculating and Managing Heat

Bridge heating comes from several sources: MOSFET conduction loss, switching loss, diode conduction, driver quiescent current, and sometimes linear-regulator loss inside a module.

For a MOSFET carrying current, estimate conduction loss with P = I² × RDS(on), using resistance at the expected temperature. Resistance increases as a MOSFET warms, so room-temperature headline values can be misleading.

Thermal performance depends on package, copper area, airflow, board layers, and duty cycle. A component that survives a brief bench test may overheat during continuous operation in an enclosure.

⚡ Supply Decoupling Handles Current Pulses

Motors draw pulsed current, particularly under PWM. Long wires and battery leads have inductance, so the supply voltage at the bridge can dip or spike during switching.

Place a bulk capacitor close to the bridge power pins to support rapid current demand, and add small ceramic capacitors for high-frequency decoupling. The appropriate capacitor type and value depend on the driver, motor, wiring, and operating conditions.

Keep motor power wiring separate from sensitive sensor and logic returns where practical. A noisy power path can reset a microcontroller or corrupt analog measurements even when the motor driver itself appears functional.

📡 EMI Comes From Fast Current Changes

PWM edges, brushed commutation, and long motor wires generate electromagnetic interference, or EMI. The faster the voltage and current transitions, the more readily the system can radiate or conduct noise.

Useful mitigation methods include short high-current loops, twisted motor leads, local capacitors, appropriate grounding, and suppression capacitors at brushed motors where suitable. Reducing edge speed can help, although it may increase switching loss.

EMI is a system-level issue. A bridge that performs well on a short bench cable may behave differently when installed beside radios, sensors, or long harnesses.

🧠 Logic Inputs Need Defined States

An H-bridge input must not float. A floating input can respond unpredictably to electrical noise, particularly while a microcontroller starts, resets, or has its pins configured as inputs.

Use pull-up or pull-down resistors, either external or built into the driver when appropriate, to establish a safe default state. The default should normally be motor off or another state justified by the safety requirements.

Also check logic-level compatibility. A driver expecting a higher logic threshold may not reliably recognize a low-voltage microcontroller’s output as a valid high signal.

🔄 Reversing While Moving Requires a Plan

Commanding instant reverse while a motor is spinning creates large current because the motor’s back EMF initially opposes the newly applied voltage. The drivetrain also experiences a sudden torque reversal.

For a light hobby mechanism this may be acceptable within driver limits. For a heavier system, a safer sequence is often reduce PWM, coast or brake briefly if appropriate, confirm speed has fallen, then apply the opposite direction with a ramp.

Feedback from an encoder or current sensor makes this process more controlled. Without feedback, fixed delays are only approximations because load and battery voltage vary.

🧰 Integrated H-Bridge Driver ICs

Integrated motor-driver ICs place the switches, gate drive, and often protection features into one package. They reduce component count and eliminate many difficult discrete high-side-drive details.

Features vary widely. A driver may provide current limiting, overtemperature shutdown, undervoltage lockout, fault reporting, sleep control, PWM inputs, and selectable decay or braking modes.

Integration is convenient, not magic. Check continuous current, peak-current duration, voltage range, thermal dissipation, logic levels, required capacitors, and whether the advertised current assumes an ideal thermal test board.

🧩 Discrete Bridges Offer Flexibility

A discrete H-bridge uses separate transistors, drivers, diodes, resistors, and support components. It can be tailored for unusual voltages, high current, low loss, or specialized control strategies.

The trade-off is engineering effort. Gate timing, protection, parasitic inductance, layout, and fault handling become the designer’s responsibility rather than hidden features of an IC.

Discrete design is valuable for learning and for demanding applications, but copying a four-transistor sketch without a proper gate driver and protection strategy is rarely a reliable route to a power-capable bridge.

🧪 A Safe First Test Procedure

Bring up a new motor bridge in stages. Start without the motor, verify logic states, and check that no same-leg switches can turn on together. Then use a current-limited supply if available.

  1. Confirm supply polarity, logic supply, and grounds.
  2. Measure input defaults during reset and power-up.
  3. Test each command state at low voltage.
  4. Connect a small motor or controlled load.
  5. Observe supply current, temperature, and voltage dips.
  6. Increase voltage and duty cycle gradually within ratings.

A fuse or current limit is not a substitute for correct design, but it can reduce damage while diagnosing wiring and firmware mistakes.

🔍 Troubleshooting a Motor That Will Not Reverse

If the motor runs only one way, first verify the command signals at the driver inputs. Then check whether both bridge legs actually change state and whether an enable, sleep, or fault pin is blocking operation.

A multimeter may show average voltage but miss PWM behavior. An oscilloscope is much more informative for viewing gate signals, bridge-node waveforms, dead time, supply ringing, and unexpected overlap.

  • Check for a missing common ground between controller and driver.
  • Inspect connectors and solder joints carrying motor current.
  • Verify that the power supply can provide startup current.
  • Look for thermal shutdown or undervoltage lockout.
  • Confirm that firmware does not reverse both input bits incorrectly.

⚠️ Common Design Mistakes

One frequent error is choosing a driver based on nominal motor current alone. Startup and stall current often determine whether the bridge survives.

Another is using thin wires, undersized connectors, or distant capacitors. These add resistance and inductance, causing voltage drop, heating, and switching spikes.

Designers also sometimes treat a motor module’s printed current rating as universally achievable. Continuous current depends strongly on cooling and PCB copper, so thermal testing in the actual enclosure remains necessary.

🚗 Regeneration and Where Energy Goes

When braking or when an external force drives the motor, the motor can generate electrical energy. Depending on the H-bridge state, that energy may circulate through the bridge, charge the supply, or be dissipated.

A battery can often absorb some returned energy, but a bench power supply may not. Its output voltage can rise or it may enter protection if energy flows back into it.

Systems with substantial inertia may need a controlled path for regenerated energy, such as a braking resistor or a supply designed to absorb it. This is an application-specific power-management question.

🦾 H-Bridges Beyond Simple DC Motors

The same bridge topology appears in solenoid control, thermoelectric modules, audio power stages, and power converters. In each case, the essential capability is controlled polarity reversal or bidirectional current.

A Peltier module, for example, can heat or cool depending on current direction. Unlike a motor, it has no inductive winding behavior as its dominant feature, but current limits and thermal design are still critical.

This broader use explains why H-bridge concepts are foundational in power electronics: they connect low-power control signals to reversible energy flow.

📐 Choosing a Bridge for a Real Project

Begin with the motor and mechanism rather than the driver module. Identify supply voltage, expected running current, credible stall current, duty cycle, direction changes, ambient temperature, wiring length, and whether braking is required.

Then compare those needs with the driver’s electrical and thermal limits. Leave engineering margin where operating conditions are uncertain, especially for stalled loads and high-temperature enclosures.

Also consider control requirements. A basic two-input bridge may be enough for a toy vehicle, while a position-controlled actuator may need current sensing, fault feedback, encoder support, and carefully managed acceleration.

✅ The Core Principle to Remember

An H-bridge reverses a DC motor by reversing the direction of current through it. It does this with two controlled half-bridges, not by changing the power supply itself.

Reliable designs go beyond the forward and reverse truth table. They prevent shoot-through, manage inductive current, account for stall current and heat, decouple the supply, limit noise, and choose sensible braking and reversal behavior.

Once those details are understood, an H-bridge becomes less like a mysterious motor module and more like a practical example of controlled bidirectional power flow.

Use an H-bridge to control current direction, but design it around real current, real switching behavior, and real mechanical loads. That mindset turns a motor-reversal circuit into a dependable motion-control system. 🔌⚙️🛠️