Electronics 113: Motor Drivers & H-Bridges Explained

Advanced Tutorial Views: 1100
All Tutorials

A clear, engineering-focused guide to driving DC motors, stepper motors, and actuators safely: why microcontroller pins are never enough, how H-bridges actually work, and how to choose the correct motor driver without smoke, resets, or mysterious failures.

Electronics 113: Motor Drivers & H-Bridges Explained

A clear, engineering-focused guide to driving DC motors, stepper motors, and actuators safely: why microcontroller pins are never enough, how H-bridges actually work, and how to choose the correct motor driver without smoke, resets, or mysterious failures.

Tutorial Beginner ? Intermediate Motors Motor Drivers H-Bridges
Core truth: Motors are power devices, not logic devices. Treat them like loads with inertia, inductance, and surge current β€” or they will punish your design.

1) Why motors need drivers

Motors draw far more current than a microcontroller pin can supply. They also generate electrical noise and voltage spikes.

Never: Drive a motor directly from an Arduino, ESP32, or Raspberry Pi GPIO pin.

2) Common motor types

Motor Type Control Complexity Typical Use
Brushed DC Low Robots, wheels, fans
Stepper Medium–High 3D printers, CNC
Servo Low (external driver) Position control

3) DC motor electrical behavior

A DC motor is an inductive load with a very high startup (stall) current.

Rule of thumb: Stall current is often 5–10Γ— the rated running current.

4) What is an H-bridge?

An H-bridge uses four switches to control motor direction. By changing which switches are on, current flows through the motor in either direction.

Name origin: The switch layout resembles the letter β€œH” with the motor as the crossbar.

5) Direction & speed control

  • Direction: Select which half of the H-bridge is active
  • Speed: Use PWM to control average motor voltage
  • Braking: Short motor terminals (dynamic braking)
Important: Incorrect switching can cause shoot-through (shorting the supply).

6) Motor driver architectures

Architecture Description Notes
BJT-based Older, inefficient High heat
MOSFET-based Modern standard High efficiency
Integrated IC All-in-one driver Easiest to use
Driver Type Pros Cons
L298N BJT H-bridge Cheap, common Very inefficient, hot
TB6612FNG MOSFET H-bridge Efficient, compact Lower current
BTS7960 High-power MOSFET High current Large, needs care
A4988 / DRV8825 Stepper driver Microstepping Setup critical

8) Current sensing & protection

Better drivers include:

  • Over-current shutdown
  • Thermal shutdown
  • Current limiting
Why this matters: Protects motors, drivers, and batteries during stalls or jams.

9) Power supply & grounding rules

  • Separate motor supply from logic where possible
  • Common ground is required for control signals
  • Use bulk capacitors near the driver
  • Keep motor wires short and twisted
Classic failure: Motor noise resets the MCU.

10) Thermal limits & heatsinking

Motor drivers dissipate power proportional to current and resistance.

Reality: β€œ2A motor driver” often means 2A with a heatsink and airflow β€” not on a breadboard.

11) Selection guide

  • Small robots: TB6612FNG
  • High current DC motors: BTS7960 or discrete MOSFETs
  • 3D printers: DRV8825 / TMC drivers
  • Learning projects: Avoid L298N if possible

12) Common mistakes & failures

  1. Undersized driver current rating
  2. No bulk capacitance
  3. Poor grounding
  4. Ignoring stall current
  5. Over-trusting marketing specs
Engineering mindset: Motor drivers are power electronics. Design them like power systems, not logic circuits.

Products that this may apply to