AdvancedTopic 84 of 104Electronics & Embedded

H-bridge motor drivers

Four switches reverse motor direction and control speed.

In depth

Four switches drive a motor in both directions: diagonal pairs conduct for forward/reverse. PWM on the low or high side controls speed; brake and coast modes; dead-time prevents shoot-through. Integrated drivers include current sensing and protection.

Key points

  • Flyback via body diodes
  • Bootstrap gate drive
  • Stall current
Example

An L298N or DRV8871 module drives a small robot motor.

Why it matters

An H-bridge reverses a motor and controls its speed from one supply, which is the standard way to drive DC motors in robots and vehicles.

Where this is used

  • Driving a robot wheel forward and backward from a microcontroller.
  • Reversing a small DC motor in a toy car.
  • Controlling a bidirectional actuator in a camera gimbal.

Frequently asked questions

What is H-bridge motor drivers?

Four switches reverse motor direction and control speed.

Why is it important to understand H-bridge motor drivers?

An H-bridge reverses a motor and controls its speed from one supply, which is the standard way to drive DC motors in robots and vehicles.

How does an H-bridge reverse a motor?

Diagonal pairs of switches are turned on, so current flows through the motor in the opposite direction.

Why must the two switches on one side never close together?

Doing so shorts the supply through the bridge and can destroy the switches, so dead time is inserted in the control signals.

How is H-bridge motor drivers used in practice?

Typical applications include driving a robot wheel forward and backward from a microcontroller, reversing a small DC motor in a toy car and controlling a bidirectional actuator in a camera gimbal.

What should I learn before H-bridge motor drivers?

Study "Actuators" first (topic 83 of 104 in Electronics & Embedded). It covers the groundwork this topic builds on.

What are the key points of H-bridge motor drivers?

Flyback via body diodes. Bootstrap gate drive. Stall current.

Can you give an example of H-bridge motor drivers?

An L298N or DRV8871 module drives a small robot motor.

What comes after H-bridge motor drivers?

The next topic is "Wireless protocols", which builds directly on this one.

How difficult is H-bridge motor drivers?

It is classed as Advanced in Electronics & Embedded (topic 84 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Electronics & Embedded.

Learning path

Want to practise? Open the interactive course for quick checks, quizzes, simulations and progress tracking.

Related topics