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

Step 4About our circuit.

About our circuit.
Our circuit includes an H-bridge made out of 4 SPST relays (single-pole single-throw) and 1 additional SPDT (single-pole double-throw) relay which will be used to switch between the 2-sets of 2 relays.

Okay.... so this is how it works...

Power from the battery is going to the 7805 voltage regulator where is converted to 5V. Power from the battery is also going to "Relay 1" and "Relay 2" where it goes to the motor (but we're getting ahead of ourselves).

The 5V power is both going to the coil of the SPDT relay and it is also passing through the the SPDT relay. So, when the switch is closed, 5V flows through the coil of the SPDT relay and 5V also is routed through the SPDT relay to the coils of "Relay 1" and "Relay 4" forcing them to close. This allows 9V to flow through "Relay 1" and "Relay 4" in a way in which the motor can spin in a clockwise direction.

In other words, when we close the switch connected to the coil on the SPDT relay, we are triggering the H-bridge to allow the motor to spin clockwise.

Therefore, if we want the motor to spin counter-clockwise all we would need to do is flick the switch in the opposite direction. This will change the path through which the electricity passes through the SPDT relay and in turn close "Relay 2" and "Relay 3" (and by extension open "Relay 1" and "Relay 4").
« Previous StepDownload PDFView All StepsNext Step »
4 comments
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.
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 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.

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!
2351
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!