3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to make an H-bridge

How to make an H-bridge
An H-bridge is a type of circuit that you can use to get a reversible DC motor to spin both clockwise and counterclockwise.

In other words, this circuit allows you to quickly reverse the direction a motor is spinning by using a switch or controller chip to change its direction.

I'm going to show you how to make the simplest and most reliable form of H-bridge that I know how to make. I must warn you that this is by no means the best H-bridge design and, in fact, it has a couple shortcoming which I will explain later.

Although, should you never have made an H-bridge before or simply need a circuit that can reverse the direction of a motor's spin, then this circuit is a quick and easy solution.


(You will notice the motor freaks out when I flip the switch. That is the motor changing directions!)

This H-Bridge was made with the love and support of Eyebeam
 
Remove these adsRemove these ads by Signing Up
 

Step 1Go get stuff.

Go get stuff.
«
  • H1A.jpg
  • H1B.jpg
Here's what you need to get:

4 - SPST 5VDC Reed Relays (Radioshack Model: 275-232 Catalog #: 275-232)
1 - SPDT 5VDC Reed Relay (Radioshack Model: 275-240 Catalog #: 275-240)
1 - package of 9V battery clips (Radioshack Model: 270-324 Catalog #: 270-324)
1 - 9V battery
1 - Toggle or slide switch (SPST)
1 - 7805 Voltage Regulator (Radioshack Model: 7805 Catalog #: 276-1770)
1 - PC Board (Radioshack Model: 276-150 Catalog #: 276-150)
1 - reversible DC motor

(You can find a reversible DC motor inside a broken Walkman or Discman. For those of you in NYC, you can get a motor and/or broken Walkman at Argo Electronics - 393 Canal Street)
« Previous StepDownload PDFView All StepsNext Step »
49 comments
1-40 of 49next »
Jan 2, 2012. 5:22 PMRobot Lover says:
If you have a DPDT relay, the other relays are non-essential for making a motor reverser circuit.
Sep 29, 2010. 2:41 AMARJOON says:
the relay is so expensive
Jul 13, 2010. 3:04 PMlaxhead94 says:
do you really need a 7805 in there?
Jan 28, 2010. 7:50 PMmilsorgen says:
I was just at Radio Shack and the relays alone for this project are going to set you back over 20 dollars.
Aug 29, 2009. 7:14 PMNu says:
The relays are being counted from right to left. The fist relay is the one farthest to the right, the second is the next one to the left and so-on. Thanks Nu
Jun 20, 2009. 10:50 AMthecookiemonster says:
you know you could just use a dpdt switch!!!!
Feb 10, 2009. 7:53 PMcolin55 says:
Simply flick the switch to reverse the motor and it creates a brake function.
Jun 11, 2009. 11:29 AMijabi says:
Hello colin:do you have any simple way to do h-bridge with mosfet(a Schematics by chance). thanks
Jun 11, 2009. 12:22 PMcolin55 says:
There are lots of circuits on the web using MOSFETS in an H-bridge arrangement. These are generally high power circuits and you need to do your own research as there are so many designs.
Jun 24, 2008. 7:50 PMPatented says:
There should be a simpler way to do an H-bridge than this one
Aug 20, 2008. 4:11 AMelginsteve says:
There is, a lot cheaper version too using four bi-polar transistors instead of relays.
Feb 27, 2009. 8:28 AMamando96 says:
can i just use transistors, and is the voltage regulator really that important? coz i cant get one :(
Apr 28, 2009. 6:19 PMdagenius says:
I dought that the 7805 is mportant. if you really feel the need to not burn out your motors, then order a few off of digi-key.
Apr 30, 2009. 12:24 PMamando96 says:
used continuous rotation servos, easier to work with lol
Apr 30, 2009. 1:38 PMdagenius says:
agree.
Sep 23, 2008. 5:05 AMNoodle93 says:
Or an IC.
May 25, 2008. 1:57 PMawkrin says:
there is a way of doing thing with a more complicated switch that's actually made by two separate switches and changes from one to another terminal, like a SPDT, but it's double: DPDT I mean:
Apr 28, 2009. 6:23 PMdagenius says:
colin55 has the same circuit.
May 25, 2008. 5:31 AMHydrotec says:
I want to as a ? Can anyone help me ? I want a automatic timing switch that will change polarity back and forth as well do PWM on and of to speed a motor and slow a motor!
Apr 28, 2009. 6:22 PMdagenius says:
use a 555 timer circuit, and maybe use one of those fancy digital potentiometers to change the speed. Another 555 circuit would also help for that, if you don't want to use a digi-pot. just make the circuit have a very short cycle, and by changeing that, you may also more reliably change the speed of the motor.
Jul 14, 2008. 2:24 PMthermoelectric says:
Try this ask ewilhelm if that circuit doesn't suit u
Dec 30, 2008. 2:34 PMcolin55 says:
There is a much-simpler way to reverse the motor using just one relay. Connect a double-pole double-throw relay as shown in the enclosed diagram. No other components are required! Just a switch to energise the relay for forward or de-energise the relay for reverse. Colin - TALKINGELECTRONICS.COM
Feb 10, 2009. 6:46 PMDeviantgeek says:
colin55: then you would not be able to brake
Apr 28, 2009. 6:17 PMdagenius says:
just add another switch from one of the wires that goes to the motor, and then no matter which way you turn the first switch, the motor will only spin if you have the second switch on.
Mar 14, 2009. 1:58 AMgodfreyandthandi says:
if you really need braking you can tie in a relay somewhere else to cut power.
Mar 9, 2009. 6:08 PMrip333 says:
use a center off DPDT
Feb 15, 2009. 5:26 PMraykholo says:
really cool idea -- definitely gonna try this couple of questions though -- total cost? can this be done with dpdt relays so u wont have to use as many? cost of an actual h bridge circuit and anything important on those? thanks rak
Feb 11, 2009. 4:53 AMcolin55 says:
Of course you can make the project with a double-pole double-throw switch and not use any relays at all. The only problem is the motor is constantly turning in one direction or the other. The alternative is to use two double-pole push switches or 4 switches as shown in the following diagram. You need to push both of the forward switches at the same time. By pushing the reverse switches very briefly you will get braking when travelling in the forward direction.
Dec 28, 2008. 2:50 AMcl0ney says:
you rock. thank you for teaching for free.
Jan 31, 2008. 5:45 AMPyroMonger says:
I made a MUCH simpler H bridge by sumply using 2 AA batteries a SPDT switch and Voila! Of course i used a motor too or there would be no point of making it. I found it right here on instructables too. The BeetleBot
May 25, 2008. 2:02 PMawkrin says:
I know that's like that: but that uses only one battery, while a DPDT it's even simpler and uses both batteries
Jul 3, 2008. 1:30 AMArtificial Intelligence says:
Hey awkrin.
I've posted a little instructable with it here.
Jul 3, 2008. 1:28 AMArtificial Intelligence says:
Nice, but if you just wanna control the motors direction with a switch, there is a much simpler and easier alternative.
Jun 1, 2008. 11:22 AMEvilSnoopy24 says:
when I had to make one, I gutted a nes controller, and used it to control a little car. but I used the up arrow for one switch and the down arrow for the other switch. anyways here's the diagram
Nov 18, 2007. 11:35 AMwi-fi astronomer says:
I did the same thing but with only 2 SPDT relays and a bipolar power supply. What you do is hook the motor to the common end of the relay's arm and the normally ON ends to one side of the supply. The normally OFF ends of the relays are hooked to the other side of the supply. When you activate ONE relay, the motor turns. Activate only the other, the motor reverses. Activate both, and the motor remains off. When I made this, you'll never imagine the use I made for it. I used the H-Bridge to control an old cordless drill with threaded rod chucked into it to open and close a window. A window with a remote!
Nov 19, 2007. 7:11 PMwi-fi astronomer says:
Yeah, that was a cool invention. Until I made it I never heard of a "window servo". It did have a few problems, the most notable was that the whole assembly would vibrate severely so you'd want to let go of the button every few seconds when using it. It sure worked, but you had to know how to use it.
Aug 20, 2007. 8:39 AMTerraPlop says:
Elegantly complex solution to a simple problem that can be solved with half the parts and at less cost.
Sep 25, 2007. 8:23 AMchavez00001 says:
true
Aug 20, 2007. 10:50 AMsupafupa says:
An H bridge gives you more control. You can interface with a microcontroller, using software to control the speed/direction. With a switch, the intelligence is left up to the operator.
1-40 of 49next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2354
Followers
200
Author:randofo(Randy Sarafan loves you!)
I am the Technology Editor here at Instructables. I am also the author of the books 'Simple Bots,' and '62 Projects to Make with a Dead Computer'. Subscribing to me = fun and excitement!