Home › Lessons › Transistors and thyristors › H-bridge motor driver

H-bridge motor driver

Transistors and thyristors · Intermediate · about 15 minutes · part of Zen’s Electronics Design Mastery

Four transistors around a motor form an “H”. Turning on one diagonal pair drives current through the motor one way; the other pair reverses it. Here each side is a complementary PNP-over-NPN half-bridge whose bases are tied together, so one logic input sets that side high or low.

H-bridge motor driver: the circuit on the simulator's bench

Open this lesson in the labFree, in your browser, no account needed.

How it works

IN1IN2bridgemotor
00both sides lowbrake (motor shorted)
01left low, right highreverse
10left high, right lowforward
11both sides highbrake

On each side the inverter drives both bases. A low base turns the PNP on and the NPN off, pulling that motor terminal to 5 V. A high base does the opposite. The bases are tied, so the two transistors on one side can never both be on, which avoids “shoot-through” (except briefly while switching).

Motor voltage ≈ ±(5 − 2 VCE(sat)) ≈ ±4.76 V, current ≈ 781.6 mA.

Try it on the bench

  1. Flip IN1 and IN2 on the DIP module: the motor runs forward, reverses, or brakes.
  2. PWM on one input and a steady level on the other gives speed and direction control: that is what an L298N or DRV8833 does.
  3. Change R1 to 4.7 kΩ: Q1 no longer saturates, the motor voltage drops and Q1 heats up.

Parts on the bench

In the course

Zen’s Electronics Design Mastery, module “Transistors”.

More on transistors and thyristors