What Is an H-Bridge? (2024)

An H-bridge is a simple circuit that lets you control a DC motor to go backward or forward.

You normally use it with a microcontroller, such as an Arduino, to control motors.

When you can control two motors to go either forward or backward – you can build yourself a robot!

What Is an H-Bridge? (1)

H-Bridge concept

Here’s the concept of the H-bridge drawn out with switches:

What Is an H-Bridge? (2)

A DC motor spins either backward or forward, depending on how you connect the plus and the minus.

If you close switches 1 and 4, you have plus connected to the left side of the motor and minus to the other side. And the motor will start spinning in one direction.

If you instead close switches 2 and 3, you have plus connected to the right side and minus to the left side. And the motor spins in the opposite direction.

The H-Bridge circuit

You can build an H-bridge with four transistors.

What Is an H-Bridge? (5)

10 Simple Steps to Learn Electronics

Electronics is easy when you know what to focus on and what to ignore. Learn what "the basics" really is and how to learn it fast.

If you’re not sure how the transistor works, I recommend you read the article How Transistors Work first. From there you’ll learn that the transistor can work as a switch that you can open and close with the voltage on the base.

What Is an H-Bridge? (6)

Since the transistor can be a switch, you’ll be able to make the motor spin in either direction by turning on and off the four transistors in the circuit above.

Usually, you control the transistors from a microcontroller, such as Arduino.

What Transistors To Use?

The transistors you choose must:

  • Handle enough current
  • Use PNP (or pMOS) at the top
  • Have a low voltage drop between collector and emitter

Current

The most important thing is that all the transistors can handle enough current for the motor. Otherwise, it will burn out.

For example, if the motor draws 1 Ampere of current, you need transistors that can handle a minimum of 1 Ampere.

PNP (or pMOS) transistors at the top

Next, you see I have chosen PNP transistors on the top, and NPN transistors on the bottom.

What turns the transistor on or off is the voltage difference between the base and the emitter.

With PNP transistors at the top, you can use a higher voltage for VCC than you use for the base of the transistors.

For example, you can use 3.3V outputs from a microcontroller and 9V for Vcc.

That won’t work if you have NPNs at the top since the emitter will be 0.7V lower than the base. Because that turns into 3.3V – 0.7V = 2.6V at the positive side of the motor, no matter what VCC voltage you choose.

Low voltage drop between collector and emitter

While building a robot in Colombia, I tried to make this circuit using TIP120 and TIP127 transistors.

That did not work.

TIP12x transistors give a 2V drop from the emitter to collector.

In such a configuration, you’d end up with a loss of 4V over the transistors. I was trying to connect this to an Arduino, using its 5V supply, but failed because it was only 1V left for the motor!

Here’s a nice article/rant about the topic: Stop using antique parts!

Basically, it says that the TIP transistors are antiques that you shouldn’t use anymore because of this huge voltage drop.

Choose transistors with low voltage drop. For example BD135/BD136 or MOSFET transistors.

Protection diodes and PWM mode

A side-effect of how a motor works is that the motor will also generate electrical energy. When you disable the transistors to stop running the motor, this energy needs to be released in some way.

If you add diodes in the reverse direction for the transistors, you give a path for the current to take to release this energy. Without them, you risk that the voltage rises and damages your transistors.

What Is an H-Bridge? (7)

You can read more about this – and what to keep in mind if you want to use a PWM signal to control the speed of the motor, in this article.

The resistors going into each base are there to reduce the current to each transistor. Not sure how to calculate it? If you’re using a microcontroller to control them, start with 1k and adjust if that doesn’t work.

Questions or comments?

Have you built an H-bridge before? Or do you have questions about the H-bridge? Let me know in the comments field below:

More Transistors Tutorials

  • How Transistors Work
  • Transistor as a Switch
  • The Bipolar Junction Transistor (BJT)
  • The PNP Transistor
  • Insulated Gate Bipolar Transistor (IGBT)
  • MOSFET Gate Resistor
  • The Phototransistor
  • Transistor Circuit: Astable Multivibrator for Blinking
  • Transistor Circuit: H-Bridge for Motor Control

What Is an H-Bridge? (8)

10 Simple Steps to Learn Electronics

Electronics is easy when you know what to focus on and what to ignore. Learn what "the basics" really is and how to learn it fast.

What Is an H-Bridge? (2024)

References

Top Articles
The Best Instant Pot Chicken Thighs Recipe
Vegan Peanut Butter Fudge Recipe - Build Your Bite
Public Opinion Obituaries Chambersburg Pa
Toyota Campers For Sale Craigslist
Ofw Pinoy Channel Su
The Ivy Los Angeles Dress Code
Vanadium Conan Exiles
Cosentyx® 75 mg Injektionslösung in einer Fertigspritze - PatientenInfo-Service
Giovanna Ewbank Nua
Luciipurrrr_
Everything You Need to Know About Holly by Stephen King
Rainfall Map Oklahoma
Cbs Trade Value Chart Fantasy Football
Painting Jobs Craigslist
Der Megatrend Urbanisierung
Trivago Sf
Self-Service ATMs: Accessibility, Limits, & Features
Menus - Sea Level Oyster Bar - NBPT
Teekay Vop
How to Watch Every NFL Football Game on a Streaming Service
Stihl Dealer Albuquerque
Macu Heloc Rate
4Oxfun
Receptionist Position Near Me
Waters Funeral Home Vandalia Obituaries
Elanco Rebates.com 2022
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Mark Ronchetti Daughters
Craigslist Texas Killeen
Ancestors The Humankind Odyssey Wikia
Dtlr On 87Th Cottage Grove
Sun-Tattler from Hollywood, Florida
6143 N Fresno St
Chattanooga Booking Report
Audi Q3 | 2023 - 2024 | De Waal Autogroep
Tenant Vs. Occupant: Is There Really A Difference Between Them?
Back to the Future Part III | Rotten Tomatoes
Asian Grocery Williamsburg Va
To Give A Guarantee Promise Figgerits
Metra Schedule Ravinia To Chicago
Wilson Tattoo Shops
Sound Of Freedom Showtimes Near Lewisburg Cinema 8
Pain Out Maxx Kratom
Denise Monello Obituary
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Huntsville Body Rubs
Turok: Dinosaur Hunter
Blog Pch
53 Atms Near Me
Elvis Costello announces King Of America & Other Realms
Access One Ummc
Ok-Selection9999
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5859

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.