How to Build an H-bridge Circuit (2024)


How to Build an H-bridge Circuit (1)

An h-bridge is a chip that allows DC motors to be run versatile as they are meant to- with an H-bridge, we can make a DC motor go forward, go reverse, and stop.

This directional ability that H-bridges allow in DC motors can equate to forward-reverse movement, right-left movement, or up/down movement, depending on the use of the motor in the circuit.

Without an H bridge, we could only make use of the bidirectional capabilities of an H-bridge with either extensive software programming or having to manually switch the voltage polarity to the DC motor to make it change directions; this means we would have to physically swap out the voltage polarity to get the motor to change directions.

Obviously, an H-bridge IC makes this a lot simpler.

In this circuit, we will show how to connect an H-bridge to a DC motor so that we can have the motor exhibit bidirectional capability.

This is really what makes an H-bridge. It can make a DC motor go forward and then in reverse.

We'll go over now how we can easily connect this up.

Components

  • L293/SN754410 H-bridge Chip
  • DC Motor
  • 2 Pushbutton Switches
  • Toggle Switch
  • 2 10KΩ resistors
  • Power Source

The L293/SN754410 H-bridge chip is 16-pin chip that can be used to drive and control inductive loads such as relays, solenoids, DC motors, and bipolar stepper motors.

However, in this project, we will be using a DC motor with the L293.

The L293/SN754410 is a relatively inexpensive chip that can be obtained for a little over $1. One place that sells the L293 is Tayda Electronics- L293 Driver IC.

Before we build this circuit, you must understand the chip and all of its pin connections. You must always know pin connections when hooking up any chip.

Overall, the L293/SN754410 chips aren't very as complicated as they may seem. They both have identical pinouts.

The L293/SN754410 is capable of controlling 2 motors.

It is a 4-channel H-bridge, meaning it can connect 4 terminal wires from motors. Since each motor has 2 terminals, it can control 2 motors (2x2=4).

Pin 1 is the enable pin for terminals 1 and 2. It enables motor to turn on when it is connected to a power. And disables the motor from functioning when connected to ground.

Pin 2 is the motor logic pin for terminal 1. This is the voltage level which one of the motor terminals receive. The logic level will determine what action the motor will take. This is one of the two logic levels that determines the function of the motor connected.

Pin 3 is the pin where we connect one of the terminals of the motor to.

Pin 4 and Pin 5 both get grounded.

Pin 6 is where we connect the other motor terminal to. This completes the 2-terminal connections necessary for a motor to be hooked up to the H-bridge IC.

Pin 7 is the motor logic pin for terminal 2. This is the second voltage signal we feed to the motor to determine the action the motor will take.

Pin 8 is the pin which receives the voltage needed to power on the motor. It is the motor power pin. This is the pin where we place the positivevoltage of the power supply that will operate the DC motor. So if the motor is a 9V motor, then you will need to feed 9V into this pin. If the motor is a 12V motor, then you will need to feed 12V into this pin.

Pin 9 is the enable pin for terminals 3 and 4. It enables the motor to turn on when connected to power and disables the motor when connected to ground.

Pin 10 is the motor logic pin for terminal 3. This is one of the logic voltage signals that determines the action that the second motor will take.

Pin 11 is the pin where we connect one of the terminals of the second motor to.

Pin 12 and Pin 13 both get grounded.

Pin 14 is the pin where we connect the other terminal of the second motor to.

Pin 15 is the motor logic pin for terminal 4. It is the second voltage signal that we feed into the second motor to determine the action the motor will take.

Pin 16 is the pin which receives the voltage needed for power for the IC. It is the IC power pin. The IC needs just about 5V in order to operate. Therefore, we feed 5V into this pin.

These are all the pins of the motor. Once power is supplied to the IC and the motor and all the terminals of the motor are connected, then the pins which determine how the motor will operate are the logic levels that we feed into the motor.

The logic levels determine what action the motor will take.

A breakdown of logic levels and the resultant motor action are shown in the table below.

Enable LogicPin 1 LogicPin 2 Result
High Low High Forward
High High Low Reverse
High Low Low Stop
High High High Stop
Low Doesn'tmatter Doesn'tmatter Off

When the enable pin is high and the motor is fed a LOW voltage signal at the first terminal and a HIGH voltage signal at the second terminal, then it will spin forward. When the enable is high and the motor is fed a HIGH voltage signal at the first terminal and a LOW voltage signal at the second terminal, then it will spin in reverse. And with both logic levels at the same level (2 HIGHs or 2 LOWs), then the motor will stop spinning.

And this is how motor function will work.

H-bridge Circuit

The H bridge circuit we will build is shown below.

How to Build an H-bridge Circuit (3)

This above circuit built on a breadboard is shown below.

How to Build an H-bridge Circuit (4)

How this circuit works is based on the 3 switches.

First, turn the toggle switch to the ON position. This enables the motor to function. With this switch disabled, the motor will not do anything.

Now, there are 2 pushbuttons. The 2 pushbuttons are connected to the H-bridge IC using pull-down resistors. Without pressing down on them, they are normally LOW (connected to ground). Thus, when both pushbuttons aren't pressed, they're both at LOW logic levels. The motor does not move.

Now if we press down on the first pushbutton, which is connected to motor terminal 1, then the motor will spin in a forward direction. Once we releasethe pushbutton, then the motor will shut off.

Now if we press down on the second pushbutton, which is connected to motor terminal 2, then the motor will spin in a reverse direction. If we releasefrom the press, the motor will shut off.

Now if we press down on both pushbuttons simultaneously, then both will be at HIGH logic levels, and the motor will not spin.

And this is how an H-bridge circuit can allow for forward and reverse movement of a motor.

This circuit shows how an H-bridge would work if control by manual pressing is wanted.

To see the real-life circuit of it below, see the video below.

Related Resources

How to Build an H-bridge Circuit to Control 2 Motors

How to Build an H-bridge Circuit to Control 4 Motors

How to Build an H-bridge Circuit with an Arduino MicrocontrollerHow to Build an H-bridge Circuit with Transistors

HTML Comment Box is loading comments...

How to Build an H-bridge Circuit (2024)

FAQs

How to create an H-bridge circuit? ›

How to Make an H-bridge
  1. Step 1: Go Get Stuff. Here's what you need to get: ...
  2. Step 2: The Truth About H-bridges. ...
  3. Step 3: How It Works. ...
  4. Step 4: About Our Circuit. ...
  5. Step 5: Start Your Soldering! ...
  6. Step 6: Solder Some Wires. ...
  7. Step 7: Solder Some More Wires. ...
  8. Step 8: Solder Even More Wires.

What is the basic H-bridge circuit? ›

H-bridge is a circuit that, in theory, consists of four switches connected to some load (e.g. DC motor). Various configurations of these switches can allow us to control current flow in the circuit. Using the H-bridge, it is very simple to switch the polarity on the load.

Do H-bridges need diodes? ›

H-bridge circuit flyback diode implementation

Since there are multiple current pathways, there must be four diodes to provide a path for the induced voltage as shown in Figure 5. No matter the direction of the motor or the induced voltage, it always has a safe pathway to go through the power rail.

How to choose a MOSFET for an H-bridge? ›

Switching elements – MOSFETs. One of the key decision to make for an H-bridge is the selection of the switching elements. There are many factors to be considered, the most important ones are the operating current, the operating voltage and the switching frequency.

Is an H-bridge an inverter? ›

Operation as an inverter

A common use of the H-bridge is an inverter.

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 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 many transistors are in an H-bridge? ›

The H-bridge for single-phase motors uses four transistors to control the direction of the current flowing through the motor.

Is an H-bridge a rectifier? ›

For the topology, a single-phase H-bridge rectifier and ASHB converter are connected in a cascade arrangement to form an AC-DC-DC converter to drive the SRM.

What is the maximum voltage of H-bridge? ›

Two logic inputs control the H-bridge driver, which consists of four N-channel MOSFETs that drive motors bi-directionally with up to 10-A peak current. The device operates from a single power supply and supports a wide input supply range from 4.5 V to 38 V.

What is the difference between PWM and H-bridge? ›

The PWM will signal how fast the motor should turn and the H-bridge acts as a switch - turning the supply voltage on or off according to the PWM signal.

What is the supply 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 is a bridge circuit created? ›

A bridge circuit is a topology of electrical circuitry in which two circuit branches (usually in parallel with each other) are "bridged" by a third branch connected between the first two branches at some intermediate point along them.

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.

Which of the following is used to create H-bridge? ›

Which of the following is used to create H bridge? Explanation: The H bridge can be created by using several switches. This allows a DC motor to be switched on and reversed in the direction and the switching of DC motor can be done by using two outputs and four FETs.

Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 6441

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.