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.

H-Bridge on a Breadboard

H-Bridge on a Breadboard


The H-Bridge is a circuit which can drive a motor in forward and reverse. It can be a very simple circuit that requires only a handful of components to build. This Instructable demonstrates how to breadboard a basic H-Bridge. Upon completion you should be familiar with the basic operation of an H-Bridge and be ready to move on to more complicated versions that can support larger, more powerful motors.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Gathering the Parts

Gathering the Parts


Only a handful of parts are needed.

1) A bread board
2) A small DC motor capable of operating at ~7 volts
3) A 9-volt battery and battery snap
4) Four small signal NPN transistors. We're using the 2N2222A here. 2N3904 is another common part number and thousands of others will do.
5) Four 22k ohm resitors
6) Two push button switches
7) Jumpers or spare wire to hook everything up
« Previous StepDownload PDFView All StepsNext Step »
31 comments
May 3, 2012. 6:12 AMdeathsmileyinc says:
i have two questions.
1. i see the buttons share one pole, would it be possible to use a Single pole changeover switch to switch between directions and keep it going without pushing the buttons?

2. how significant is the resistance? i want to use this for a tape player and im afraid i have to do a lot more modding to give it enough power
May 6, 2012. 12:54 PMdeathsmileyinc says:
well, i found out you cant just make the motor spin backwards in a tape player. but thanks anyway
Feb 20, 2012. 10:39 AMTerr0rb0t says:
Could I make this circuit using just TIP-102:s (NPN) with a load of 0,4 A (motor) at 12V? or would I also need TIP-107(PNP)?
Thx.
Feb 21, 2012. 9:57 AMTerr0rb0t says:
Cool, Thx!
Feb 19, 2012. 12:36 AMDavid97 says:
imm I think I have one of those motors out of a printer.
Feb 13, 2012. 9:05 AMTerr0rb0t says:
Did I understand correctly that this circuit keeps the motor running only as long as long as one of the buttons is pushed, but when you release it, the motion stops? If so, what would be needed for a continuos motion? In other words, that the motor would keep running until the other button is pushed? Thxs.
Jan 15, 2012. 6:18 AMProBodger says:
great instructable, I first had some problems with only one button working however, this proved to be a dodgy transistor. It now works great, I made a copy of this on stripboard, really easy to do. Here are some photos:
Dec 20, 2011. 5:54 AMPranjal Joshi says:
this is totally awesome..!!
can i use it in my light following robot for forward and revers movement???
plz explain how it the bridge get activated for both movments..
in my robot circuit, current flows when light above certain limit is fall on LDR..
plz explain how and where do i connect this bridge in circuit??? if possible then show diagram..
Nov 10, 2011. 5:18 PMlkien says:
I have just gotten familiar with programming MCU, and I really want to make some hw to play with.
Great intruction, I will make one and post the result here after the midterm exams. :))
Jul 21, 2011. 5:58 PMmattadamsnet says:
I used your instructable to build 2 dual h bridges to drive 2 bipolar stepper motors, works very well. Thank You
Mar 26, 2011. 9:54 PMLeumasYrrep says:
Yah a use for all those NPN transistors I have pulled.
Nov 22, 2010. 6:14 AMeffixe says:
i did one with 4 2N2222 NPN

http://www.flickr.com/photos/effixe/5194395629/

thx for the tutorial.
Sep 24, 2010. 11:43 AMthe_burrito_master says:
ok I'm 99% sure this is the right way.


Sep 24, 2010. 11:46 AMthe_burrito_master says:
black = -
red = +
green = motor
blue = buttins/arduino/micro controller as well as a resistor.
Sep 22, 2010. 11:11 PMthe_burrito_master says:
This is great I'm gonna hook it up to my arduino, and use it to power my roller coaster

I made a 3d model of this circuit minimized to it's smallest possible state.

Red blocks connect to a motor

Blue blocks connect to an Arduino/AVR/or buttons.
Sep 24, 2010. 10:54 AMthe_burrito_master says:
yeah I will, I think i did but i haven't fully tested it yet. only one side seems to be working.
Sep 23, 2010. 9:08 PMthe_burrito_master says:
Oh noes i just made this and it didn't work i screwed up a tiny bit :P
May 14, 2010. 9:06 PMbenjgvps says:
 A few questions, I want to control a motor from an Arduino board, which would require me to replace the buttons for 2 more transistors, how would I end up hooking that up? I also lack 22K Ohm resistors, what would be the range that I could use without burning anything out? I have some really weird resistors laying around.
May 17, 2010. 7:21 AMbenjgvps says:
 Thanks, I'll look into it.
Apr 12, 2010. 12:58 PMjan.p says:
 Can you please post a circuit diagram of your breadboard?
Thank you!
Feb 19, 2010. 5:14 AMeshneto says:
I guess you should have used fly back diodes. The inductive load should be high there, specially if using PWM to control the motor speed.
Dec 12, 2009. 6:53 AMjamwaffles says:
Its a good instructable - im glad you can just use NPN for an H-Bridge :)

James
Sep 1, 2009. 12:06 PMadmin says:
This is a great Instructable, but you need to add a main image of the final project to the intro step. Please do that and leave me a message when you have so that we can publish your work. Thanks!

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!
41
Followers
5
Author:gzip