H Bridge Matrix
Description
An H-bridge
circuit typically provides motor control in robotic designs. Low voltage, low amperage control signals (TTL) are used to control motors. The H-Bridge can interpret these signals into a Motor Go Forward, Motor Go Backward, Motor Stop commands. Often speed can be implemented using PWM (Pulse-width modulation
) through a H-Bridge. H-Bridges are extremely important in robotics. It is like the connection between the brains and the muscle of a robot. The brains being a computer or micro-Processor, and the muscles being a motor. This Matrix (when it is somewhat completed) should help you step through the process of selecting an appropriate H-Bridge design for your application.
Terms
- Ampere
- (symbol A) the unit of measure for electrical current - BJT
- a common often inexpensive transistor - Ground - the negative part of a battery :)
- Inductance - The magnetic field that is generated when a current is passed through an inductor, typically a wire coil. Important, because a motor which is spinning is also a generator. The current generated from this can (and has) put many H-bridges in Magic Smoke mode.
- Load - the work a motor is doing
- No-load - is the speed and current drawn by a motor when there is no external load
- Stalled - is the current and torque of a motor when so much load is put on the shaft, the motor does not turn
- Rated - maximum load conditions which the motor can be operated continuously
- Magic Smoke - (slang) the smoke released from your circuit, which previously made it work. When a circuit becomes overloaded and components burn, they make magic smoke.
- MOSFET
- a silicon switch which is capable of switching a considerable amount of current, typically more than BJTs. Due to the fact that MOSFETs conduct less when heated, they can be ganged together to provide massive current capability. BJTs in contrast conduct more when they get hot, and will destroy themselves in similar conditions. - Ohm - a unit of measure for electrical resitance
- Ohm's law
- a helpful formula for figuring out how much work your circuit can do, before going into "Magic Smoke" mode. I = V/R. Current = Voltage / Resistance - Shoot Through - a term describing when some of the switches in an h-bridge do not open or close at the appropriate time. Shoot through shorts the power and can lead to circuit destruction. It is a good thing to avoid when possible. Some h-bridges are designed to prevent shoot through, other designs leave it to control circuitry.
- Short - a term describing power from a circuit going directly to ground without resistance. Another good thing to avoid. It can destroy batteries, circuits, and the wire or trace which was shorted.
- VCC
, VDD
, V+, VS+, PWR, + Positive supply voltage - VEE
, VSS
, V-, VS-, GND, - Negative supply voltage - Volt
- (symbol V) the unit of measure for electrical potential/pressure - Sign Magnitude - a method of using 2 inputs to an h-bridge, in which one input signals direction, and a PWM input gives the magnitude of drive.
- Locked Antiphase - input method where direction and magnitude are a single PWM input. At 50% duty the motor is stopped, lowering the duty percent would increase drive one direction, raising the duty cycle would increase in the opposite direction. Offers true 4 quadrant control of motors (CW driven, CW regenerating, CCW driven, CCW regenerating), but increases switching which increases heat.
How it works

How to select the appropriate H-Bridge design
Measure resistance of the coil of your motor Image:Motor resistance.jpgTo find the stall current of your motor use Ohm's Law V/R=I (Current = Voltage/Resistance). For example if you measure the resistance of a motors leads at 2.4 Ohms and your battery is 24 volts, your stall current will be : 24 volts / 2.4 Ohms = 10 Amps. So if your motor stalls, your circuit should be protected or capable of handling 10 amps.
BOA's Brilliant Hybrid H Bridge
| BOA's Brilliant Hybrid H Bridge | |
|---|---|
| Description | BaseOverApex's design of a great Hybrid H-bridge. The hybrid is a combination of relays and MOSFETs. The relays are for forward and reverse switching. The MOSFETS can accept a high frequency PWM for speed control. This design has been built (not just theory) and is currently powering one of BOA's great bots. Hopefully he will post a version of the PCB art - although it might be good to rework it so that the PIC is not part of the design, as others might be using different methods of control. |
| Original Author | BaseOverApex |
| Built By | BaseOverApex, |
| Max Current | 10 Amps |
| Max Voltage | 12 Volts |
| Build Time | 3 Days? |
| Pros | |
| Cons | Schematic is completely wrong at the moment - will fix |
| Max PWM Frequency | |
| Features | forward, reverse, pwm speed control, current overload protection, fuse |
| Parts List | |
| Schematic | ![]() |
| BreadBoard | Image:M Boa B.jpg |
| Gerber | Image:M Gerber.jpg |
BOA's Brilliant Hybrid H Bridge - Robologist Mod
| BOA's Brilliant Hybrid H Bridge - Robologist Mod | |
|---|---|
| Description | BaseOverApex's design of a great Hybrid H-bridge. The hybrid is a combination of relays and MOSFETs. The relays are for forward and reverse switching. The MOSFETS can accept a high frequency PWM for speed control. This design has been built (not just theory) and is currently powering one of BOA's great bots. Hopefully he will post a version of the PCB art - although it might be good to rework it so that the PIC is not part of the design, as others might be using different methods of control. |
| Original Author | BaseOverApex robologist |
| Built By | |
| Max Current | 15 Amps - limit by relay |
| Max Voltage | 12 Volts to 15 Volts |
| Build Time | 3 Days? |
| Pros | strong, low cost |
| Cons | not quicklyswitchable forward to reverse, limit by relay |
| Max PWM Frequency | |
| Features | reverse flyback diodes, MOSFET driver |
| Parts List | Desig Qty Part# Each Total Dist Description |
| Schematic | ![]() |
| BreadBoard | Image:M relayhp B.jpg |
| Gerber | Image:M relayhp gerber.jpg |
SINGLE CHIP N-CHANNEL FET BRIDGE
| SINGLE CHIP N-CHANNEL FET BRIDGE | |
|---|---|
| Description | Design which contains a very small amount of components for a very large capacity H-Bridge. |
| Original Author | GroG |
| Built By | |
| Max Current | 30 Amps |
| Max Voltage | 50 Volts |
| Build Time | 3 Days? |
| Pros | Very small number of components, includes a under current protection line, will not "shoot through" |
| Cons | Schematic is completely wrong at the moment - will fix |
| Max PWM Frequency | |
| Features | forward, reverse, pwm speed control, current overload protection |
| Parts List | |
| Schematic | ![]() |
| BreadBoard | Image:M FET B.jpg |
| Gerber | Image:M FET Gerber.jpg |
SIMPLE LOW POWER NPN PNP H-Bridge
| SIMPLE LOW POWER NPN PNP H-Bridge | |
|---|---|
| Description | Design which contains a very small amount of components for a very small capacity H-Bridge. The NPN transistors can be substituted with a variety of differently rated components. 2N2222 TIP120, etc. |
| Original Author | GroG |
| Built By | |
| Max Current | Dependent on the transistor used - 2n2222 can sink ~800 mA, a TIP 120 can drive 5 amps with proper heat sink |
| Max Voltage | 50 Volts |
| Build Time | |
| Pros | small, inexpensive |
| Cons | no protection of shoot through, will only drive small motors |
| Max PWM Frequency | |
| Features | forward, reverse, pwm speed control |
| Parts List | |
| Schematic | Image:Simple.jpg |
| BreadBoard | Image:M simple B.jpg |
| Gerber | Image:M simple Gerber.jpg |
SINGLE CHIP CONTOLLERS
| SINGLE CHIP CONTOLLERS | |
|---|---|
| Description | Design which contains a very small amount of components for a very small capacity H-Bridge. The NPN transistors can be substituted with a variety of differently rated components. 2N2222 TIP120, etc. |
| Original Author | Krumlink |
| Built By | Krumlink - It is being implemented in my revised AREV-RSPF232 |
| Max Current | 1.2 Amps per line |
| Max Voltage | 4.5 VDC to 40 volts (Forgot max but it is around 40 VDC) for motor lines / VCC2 |
| Build Time | |
| Pros | single chip, no external peripheral stuff needed, just hook up the motors, input and enable lines and you are good. |
| Cons | The SN754410 does not have build in clamp diodes, so you need to add them. The internal diodes are for ESD protection Pulldown resistors may be wanted to prevent the enable lines drifting high Low max voltage for motors but with internal diodes it drops the voltage to 3.1VDC anyways. |
| Max PWM Frequency | |
| Features | Simple to hook up, you do not need PWM and it is easy to throw together and use with LED's too |
| Parts List | SN754410 - optional pulldown resistors (1-10k usually) |
| Schematic | Image:Single.jpg |
| BreadBoard | Image:M single B.jpg |
| Gerber | |
Simple P-channel over N-channel h-bridge
| Simple P-channel over N-channel h-bridge | |
|---|---|
| Description | Basic low part count P over N h-bridge |
| Original Author | robologist |
| Built By | |
| Max Current | 80 Amps? |
| Max Voltage | 12-15 Volts limit by driver and configuration |
| Build Time | 2 hours? |
| Pros | Very few parts, cheap |
| Cons | No shoot through protections, uses 4 inputs, untested Could be improved by connecting upper and lower inputs, then adding an inverter attached between right and left sides for lock antiphase single input drive. Test shoot-through with uppers/lowers connected for feasibility. |
| Max PWM Frequency | |
| Features | forward, reverse, pwm speed control |
| Parts List | Desig Qty Part# Each Total Dist Description |
| Schematic | ![]() |
| BreadBoard | |
| Gerber | |








@ Tue, 2011-05-03 17:08
Thank you very much for
Thank you very much for these great information,well appreciated :)
@ Tue, 2010-08-17 22:49
I am walking in the big
I am walking in the big footsteps of the mighty CTC. I have accepted the challenge of building BOA's hybrid H-bridge motor driver.
Just like Chris I'm going to control it with a picaxe.
I will be asking questions in the near future.
@ Thu, 2008-12-04 18:16
one question: what is the
@ Thu, 2008-12-04 20:41
MOSFET drivers for PWM, fast switching
@ Thu, 2008-12-04 20:46
thank you very much, great
@ Thu, 2008-12-04 18:27
Robologist put that in. My
Robologist put that in. My understanding of it, is that the driver allows a larger amount of current to the MOSFET gate. I have a H-Bridge which currently is not using a driver, the gates are switched with TTL voltages, but I can imagine - that depending on your setup you might want to use one. I chose fewer components and have not run into any white smoke ..... (yet). :)
GroG
@ Sat, 2008-11-01 14:36
On to page 4...
I swear this is the thread that will not die... If it keeps going, I think we are just going to start talking about the weather and our kids and stuff sooner or later.
--I all ready finished the damn motor controller that started all this, for cryin' out loud!!
@ Sat, 2008-11-01 16:33
what page are you on, today?
@ Fri, 2008-10-31 20:10
@BOA
This confused me for a while as well but I think I got it. --On your relay board, the reverse happens after the PWM signal and is seperated. It is the same as switching the leads going to the motor. When you are using the set-up described above, it is an issue of High/low.
Here we go.
PWM 1
Out 2 Low
This is FWD and 75% of the PWM pulses are High therefore 3/4 power.
__________
PWM 1
Out 2 High
This is reverse but now sence 75% of the PWM pulses are still high, 75% of the time you have a High/High situation and only a 25% Low/High situation. Now instead of the motor being on 75% of the time (3/4 power), it is only on 25% of the time AND in reverse. To get your 75% power the other direction, you need the PWM to be Low 75% of the time --Thus, 25% high!
Woo Hoo! Chris explains to BOA!!!!!! --Had to happen sometime!!
@ Fri, 2008-10-31 23:03
I don't got it.
I've used my own circuit and it doesn't behave as described. I've also used the 298 and 293 and they don't behave as described either. If a switch is on for 75% of the time, it's on for 75% pf the time and it doesn't care what direction the electricity is going. Is this some bizzarre feature of PWM implementation in Picaxe?