How does an H-Bridge work? (2024)

Direct current (DC) motors are used in all kinds of applications nowadays, from toys to robotics, but have you ever wondered how the speed and direction of the DC motor are controlled? For that, let’s suppose you have a DC motor and a battery. Now, to make the motor spin, you connect the battery's terminals to the DC motor, and the motor spins in a certain direction; reverse the polarity, and the motor spins in the other direction.

How does an H-Bridge work? (1)

Now, what if we wanted to rotate the DC motor in different directions and at different speeds without having to manually swap the terminal wires? This is where the ‘H’ bridge circuit comes into action. This circuit switches the polarity of the voltage applied to the motor terminals as per the inputs we provide.

How does an H-Bridge work? (2)

To understand the H bridge circuit, first, we need to understand the basic construction of this circuit. It has two branches with a total of four switches (S1, S2, S3, and S4), with each branch having two switches in series, and both branches are in a parallel connection. Motor terminals A & B are connected to the midpoints of the branches, with switches on either side of the terminal. The terminals of the motor act as a bridge between the branches and look like an ‘H’, hence the name of the circuit. Switches have only two digital states, ‘0’ and ‘1’, but the four switches together can give us many different combinations for the ‘H’ bridge circuit operation.

Below is a list of the different input combinations for our H-bridge circuit. ‘1’ represents that the switch is ON, and ‘0’ represents that the switch is OFF.

How does an H-Bridge work? (3)

From all the combinations mentioned above, let’s first focus on the inputs which are used to spin the motor in different directions.

case i :

How does an H-Bridge work? (4)

To rotate the motor, we need to establish a current flow through it. The direction of current flow determines the direction in which the motor rotates. So when switches S1 & S4 are closed, terminal A gets connected to VCC and terminal B to GND. This creates a potential difference on the two terminals of the motor, current starts to flow, and our motor rotates in the clockwise direction.

case ii

How does an H-Bridge work? (5)

Now, what if we want to rotate the DC motor in the opposite direction? All we need to do is toggle specific switches such that the polarity on the motor terminals gets reversed. This can be achieved by closing switches S2 and S3, as shown in Figure 4. As the motor terminals experience opposite voltage polarity compared to case i, the motor starts to rotate in an anti-clockwise direction. Notice that we can now control the motor direction just by changing switches' positions without modifying the wire connections to the motor.

But wait, why consider these many cases if we just want to control the direction of the motor? Well, the remaining cases are very important when designing a control system for the DC motor, i.e. for position, velocity, torque, etc., which are some very important properties for an automatic system’s tuning and performance. Let’s now move on to other cases important for controlling such properties of a motor.

case iii, iv, v, vi, vii

For these input conditions, at least one of the motor terminals lacks a connection to either VCC or GND, which means there is no path for current to flow, and no magnetic field is induced in the motor. In this case, the motor is in a state called “coasting”; that is, it rotates freely in the direction it’s rotating and comes to rest eventually due to friction or remains steady if it is not rotating. An even simpler explanation for "coasting" would be: cutting off the power to the motor so that it comes to rest automatically in some time due to the resistances that oppose the motor’s motion.

Now we know that coasting ultimately brings the motor to rest, but that still takes a few seconds. What if we want our motor to stop rotating immediately, in less than a second? This is where the next cases are used.

case viii, ix

How does an H-Bridge work? (6)
How does an H-Bridge work? (7)

The above conditions are used for the instantaneous braking of the running motor. It is referred to as “power braking”. Applying the same potential to both the terminals of the motor, it is forced to maintain a potential difference of 0V across its ends, causing short circuit damping to slow down the running motor.

case x, xi

How does an H-Bridge work? (8)
How does an H-Bridge work? (9)

The previously discussed cases were all about the motion of the motor, but cases x and xi can be dangerous for the system. These conditions close the switches in series, causing a short circuit between VCC and GND, which is never a good idea. Hence, these cases should be avoided.

Now that we know about all the conditions of the “H” bridge, we can move forward to controlling the speed of the motor. Suppose we have a DC motor with an operating voltage of 12V, and if we apply a 12V potential difference across its terminals, the motor will spin at its maximum speed. If we change the potential difference to 6V, the motor will spin at half its maximum speed. So we know that to change the speed of the motor, we just need to vary the applied voltage across its terminals. We can achieve this in our H-bridge circuit if we replace the regular switches with electronic switches that can control the output voltage. For instance, if we take MOSFETs as switches, we can control the output voltage by applying a PWM signal to the gate of the MOSFETs, which a microcontroller will generate. Hence, by applying PWM signals of different duty cycles, the output voltages of the MOSFETs can be changed, and we can control the speed of the motor along with the directions.

We hope now you can understand why H-bridge circuits are extremely popular among electronics hobbyists. Their simplicity makes them a good choice for anyone starting with practical electronics. To make things even simpler, we can pair up the switches of our H-bridge motor driver with a microcontroller and can easily control the operation with digital signals.

  • Motor (1)
  • H-Bridge
How does an H-Bridge work? (2024)

FAQs

How does an H-Bridge work? ›

In an H-bridge, there are multiple ways to control the flow of current through a brushed DC motor. A brushed DC motor can spin in a reverse or in a forward direction. Once the current is flowing in forward or reverse direction, the direction of the current is maintained by the inductance of the motor.

How does the H-bridge circuit work? ›

How H-Bridges Work. An H-Bridge is a circuit that allows voltages to be applied across a load in either direction. Electric current flows from the source to ground, and many components need to be oriented according to the direction of current to work as expected.

What is the H-bridge for dummies? ›

The basic work principle of the H-bridge is very simple: if Q1 and Q4 are turned on, the left cable of the motor will be connected to the power supply, and the right to the ground. The current flows through the motor (so to say) in the forward direction, and the engine shaft starts rotating.

What is the point of an H-bridge? ›

H-bridge drivers are a long established means for enabling bidirectional motor driving. By using one, rotation of the motor can be driven, and the polarity of the supply to the motor can be swapped in order to change the direction of rotation. It can also take care of braking, when this is required.

How does an AH bridge inverter work? ›

An H-bridge is built of four switches that control the flow of current to a load. In the image above, the load is the M connecting the two sets of switches. Using one current source, you can drive current in two directions by closing two switches.

How does the bridge system work? ›

A bridge is a network device that connects multiple subnetworks to create a single network. It provides interconnection with other computer networks that use the same protocol. Through a bridge, multiple LANs can be connected to form a larger and extended LAN.

How does a bridge circuit work? ›

A bridge circuit is an arrangement of four resistors or impedances that form a closed loop, typically used to detect the balance point (zero voltage difference) between two legs of the loop. Often employed for measuring unknown component values, they're key to a wide variety of applications.

What are the disadvantages of H-bridge? ›

The main disadvantage of the half-bridge transformer switching power supply is that the power utilization rate is relatively low. Therefore, the half-bridge transformer switching power supply is not suitable for occasions with low working voltage.

How to connect H-bridge? ›

First we need to hook up a resistor to each transistor's base. Next we'll connect each set of resistors to a common point in preparation to connect a switch. Then we'll add the two switches which also connect to the positive bus. These switches will activate one half of the H-Bridge at a time.

How do you brake with H-bridge? ›

'brake' Using an H-bridge, you can stop the DC motor at a certain position by applying a 0101 or 1010 signal to the 4 terminals. You can also stop it at a certain position by driving it forward then backward at very high frequency which make the 'juggling' unnoticed and the motor looks like stationary.

Does H-bridge control motor speed? ›

An H-bridge can be a useful circuit for DC motor control, as it controls the direction and speed of a motor by selectively turning a series of these switches on and off.

Why do H-bridges need diodes? ›

By using the PWM signal, we are essentially switching the motor on and off at a certain rate to control the speed. The diodes represented in the H-Bridge are called “fly back diodes.” These diodes provide a path for the current to dissipate when the motor switches from on to off.

What is the principle of H-bridge? ›

An H-bridge is an electronic circuit that switches the polarity of a voltage applied to a load. These circuits are often used in robotics and other applications to allow DC motors to run forwards or backwards.

Can H-bridge convert DC to AC? ›

One typical use of H-bridge circuits is to convert DC to AC in power supply applications. The control strategy of the H-bridge's two parallel legs with two switches determines how it is used.

What is the voltage of the H-bridge? ›

The logic circuit is generally designed to operate at 3.3 V or 2.5 V logic levels, but H-bridges operate at the higher voltages (5, 12, or 24 V, or the like) needed for motor driving.

How does H-bridge control motor speed? ›

An H-bridge can be a useful circuit for DC motor control, as it controls the direction and speed of a motor by selectively turning a series of these switches on and off.

What voltage does an H-bridge output? ›

PWM — The H-Bridge block output is a controlled voltage that depends on the input signal at the PWM port. If the input signal has a value greater than the Enable threshold voltage parameter value, the H-Bridge block output is on and has a value equal to the value of the Output voltage amplitude parameter.

How do you calculate current in H-bridge? ›

The current for any particular load can be calculated using OHM's LAW I = V/R where V is the output voltage (OUT1 -> OUT2) volts from the bridge and R is the load resistance in ohms.

Top Articles
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5624

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.