A DC motor reverses when the polarity at its terminals flips. Swap the two wires and it spins the other way. An H-bridge does that swap with four switches arranged around the motor so that it looks, on a schematic, like the letter H. Close one diagonal pair and current flows left to right; close the other and it flows right to left. Close the two switches on the same side, though, and the supply is shorted straight to ground through the bridge, with the motor bypassed entirely. A circuit simulation built for this post put a number on that mistake: about six times the motor’s own current, doing no work at all.
Four switches around a motor
The shape of the H
Picture two vertical legs, each with a high-side switch connected to the supply and a low-side switch connected to ground. The motor sits across the middle, joining the point between the two switches on the left leg to the point between the two on the right. That crossbar is the H.
Forward and reverse
Turning on the top-left and bottom-right switches puts the left terminal at the supply voltage and the right at ground, so current flows through the motor from left to right. Turning on the top-right and bottom-left switches instead reverses both, and the motor spins the other way. No wires move; only which pair of switches is closed.
The test circuit
To check the behavior, the bridge was modeled in ngspice with four switches of 0.18 ohms each, two in series for a total of 0.36 ohms, a 6-volt supply, and a motor approximated as 2 ohms of winding resistance plus 1 millihenry of inductance. Diodes across each switch stood in for the protection diodes real drivers include.

What the simulation showed
Forward
With the forward pair closed, the left motor terminal sat at 5.54 volts and the right at 0.46 volts, and the supply delivered 2.54 amps. That matches Ohm’s law for 6 volts across 2.36 ohms. About 0.9 volts of the 6 were lost in the two closed switches.
Reverse
Switching to the other pair flipped the terminals: the left side dropped to 0.46 volts and the right rose to 5.54. The supply current stayed 2.54 amps, but now it ran through the motor in the opposite direction.
The moment of switching
A motor winding is an inductor, and an inductor resists sudden changes in current. At the instant the switches changed, the simulation caught the left terminal dipping to -0.46 volts and the right one rising to 6.46 volts, just past the supply rails, while current briefly flowed back into the supply. The diodes caught that spike and steered it safely into the supply rails. Without them, the inductor’s voltage would keep climbing until something broke down to carry the current.
Shoot-through
The forbidden combination
In the last half-millisecond of the simulation, both switches on the left leg were closed at once. The supply current jumped to 16.2 amps, set only by the 0.36 ohms of the two switches in series, about 6.4 times the 2.54 amps the motor drew while running. None of that current passed through the motor. It went from the supply, through the left leg, and straight back to ground. That condition is called shoot-through.
Why it happens in real hardware
Nobody turns on both switches deliberately. The danger is the moment of changing direction. Transistors take a little time to turn off, so if one switch is told to turn off at the same moment its partner on the same leg is told to turn on, both can conduct together for a fraction of a microsecond. Repeated thousands of times a second under PWM, those brief overlaps heat the switches and can destroy them.
Dead time
The standard fix is a short pause, called dead time, with both switches on a leg turned off before either turns on. Integrated drivers handle it internally. Texas Instruments’ DRV8833 datasheet states that “The internal dead time in the DRV8833 prevents any risk of cross-conduction (shoot-through),” and adds that external dead-time circuitry “is not necessary.” For a bridge built from discrete transistors, the controlling code or gate driver has to provide it.

Brake versus coast
Two ways to stop
There’s more than one way to stop a motor. TI’s datasheet lists four input combinations for each bridge of the DRV8833:
| IN1 | IN2 | Outputs | Function |
|---|---|---|---|
| 0 | 0 | both off (Z) | Coast/fast decay |
| 0 | 1 | L, H | Reverse |
| 1 | 0 | H, L | Forward |
| 1 | 1 | L, L | Brake/slow decay |
Coasting
With both inputs low, every switch is off and the motor terminals float. The motor spins down on its own, slowed only by friction and the load.
Braking
With both inputs high, both low-side switches close, shorting the motor’s terminals together through ground. A spinning motor acts as a generator, and with its terminals shorted, the current it generates produces a torque opposing its own rotation, so it stops much faster. Shorting the two motor terminals is safe; shorting the supply through one leg is shoot-through. The difference is which two switches close.
Braking has limits
The braking current comes from the motor’s own spin and can be large. STMicroelectronics’ L298 datasheet, describing its “Fast motor stop” mode, warns that the brake function “requires that the Absolute Maximum Rating of 2 A must never be exceeded.”
Old and new driver chips
The L298
The L298 is the chip on many inexpensive red motor driver boards. ST describes it as “a high-voltage, high-current dual full-bridge driver designed to accept standard TTL logic levels,” rated for an “Operating supply voltage up to 46 V” and “Total dc current up to 4 A.” It’s built from bipolar transistors, and they don’t switch fully on the way modern MOSFETs do. The datasheet lists a typical saturation voltage of 1.35 volts for the source transistor and 1.2 volts for the sink transistor at 1 amp, and 2 volts and 1.7 volts at 2 amps.
The DRV8833
The DRV8833 uses MOSFETs. TI lists a combined on-resistance of “HS + LS 360 mΩ,” a supply range of 2.7 to 10.8 volts, and “1.5-A RMS, 2-A Peak per H-Bridge.” The simulation above used that 0.36-ohm total.
What the difference costs
Adding up the typical drops for a motor drawing 1 amp from a 6-volt supply shows why the choice matters:
| Driver | Voltage lost at 1 A | Voltage left for the motor | Heat in the driver |
|---|---|---|---|
| L298 (typical) | 2.55 V | 3.45 V | 2.55 W |
| DRV8833 | 0.36 V | 5.64 V | 0.36 W |
At low supply voltages, the older chip throws away more than 40% of a 6-volt supply as heat, and the motor gets correspondingly less to work with. On a 24-volt supply the same 2.55-volt drop is about a tenth of the total, which is where the L298’s 46-volt rating makes it a workable, forgiving part.
Driver boards
Both chips are commonly sold on small ready-made boards for Arduino-type projects:
- 2PCS L298N Motor Drive Controller Board Dual H Bridge DC Stepper Robot Stepper Motor Control and Drives Module: a two-pack of the common L298N boards. See it on Amazon (affiliate link)
- WWZMDiB 6Pcs DRV8833 DC Motor Driver Controller Board 1.5A Dual H Bridge: a six-pack of small DRV8833 boards for low-voltage motors. See it on Amazon (affiliate link)
As an Amazon Associate I earn from qualifying purchases. A commission may be earned if you buy through this link, at no extra cost to you.

Speed control with PWM
Switching fast instead of reducing voltage
An H-bridge sets direction, and the same switches can set speed. Instead of lowering the voltage, the controller turns the bridge on and off thousands of times a second with pulse-width modulation. The fraction of time the bridge is on, the duty cycle, sets the average voltage the motor sees. The motor’s inductance smooths the pulses into a fairly steady current, which is the same property that produced the voltage spike in the simulation.
Where the off-time current goes
During each off period, the motor’s current has to keep flowing somewhere. If the driver switches to coast, that current flows back through the protection diodes, and TI calls the mode fast decay. If it switches to brake, the current circulates through the two closed low-side switches, called slow decay. The DRV8833 datasheet notes that its own current limiting uses “fixed frequency PWM slow decay.”
Practical checklist
A working motor circuit needs a driver rated above the motor’s stall current, not just its running current; a supply able to deliver that current; diodes across the switches if the bridge is discrete; dead time between turning one switch off and its partner on; and a decoupling capacitor near the driver to handle the current pulses. Each of those protects against one of the failure modes above.
Sources
- DRV8833 Dual H-Bridge Motor Driver datasheet, Texas Instruments: https://www.ti.com/lit/ds/symlink/drv8833.pdf
- L298 Dual Full-Bridge Driver datasheet, STMicroelectronics: https://www.st.com/resource/en/datasheet/l298.pdf
