{"id":3760,"date":"2014-12-09T10:27:30","date_gmt":"2014-12-09T18:27:30","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=3760"},"modified":"2025-06-03T06:47:04","modified_gmt":"2025-06-03T13:47:04","slug":"what-is-an-h-bridge","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/what-is-an-h-bridge\/","title":{"rendered":"How an H-Bridge Works: Circuit Operation Explained"},"content":{"rendered":"<p>One of the most exciting things you can do with electronics besides blinking LEDs is make things move. What&#8217;s the most common way to make things move? Motors. If you&#8217;ve done much with motor control, you&#8217;ve probably heard of H-bridges. But what exactly is an H-bridge?<\/p>\n<p>&nbsp;<\/p>\n<p>As it turns out, an H-bridge is a super simple circuit in theory:<\/p>\n<figure id=\"attachment_3764\" aria-describedby=\"caption-attachment-3764\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3764\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge.png\" alt=\"The circuitry behind a simple H-Bridge.\" width=\"600\" height=\"312\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge.png 383w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-225x116.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-3764\" class=\"wp-caption-text\">The circuitry behind a simple H-Bridge.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>An H-bridge is built of four switches that control the flow of current to a load. In the image above, the load is the M connecting the two sets of switches. Using one current source, you can drive current in two directions by closing two switches.<\/p>\n<p>&nbsp;<\/p>\n<p>If Switch 1 and 4 are closed, then the current will flow from the left to right on this image:<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_3762\" aria-describedby=\"caption-attachment-3762\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-forward.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3762\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-forward.png\" alt=\"The H-bridge configured to have switch 1 and switch 4 closed.\" width=\"600\" height=\"399\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-forward.png 341w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-forward-225x149.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-3762\" class=\"wp-caption-text\">The H-bridge configured to have switch 1 and switch 4 closed.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>If you close switch 1 and switch 4, the current will flow from the source, through switch 1, and then through the load, then through switch 4, and then back to the load.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_3761\" aria-describedby=\"caption-attachment-3761\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-reverse.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3761\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-reverse.png\" alt=\"An H-bridge circuit with S2 and S3 closed. \" width=\"600\" height=\"386\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-reverse.png 354w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-reverse-225x144.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-3761\" class=\"wp-caption-text\">An H-bridge circuit with S2 and S3 closed.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>In the image above, the circuit has Switch 2 and switch 3 closed. This will cause the current to flow from the source, through switch 3, and then through the load, then through switch 2, then back to the load.<\/p>\n<p>&nbsp;<\/p>\n<p>One thing you have to be very cautious about when working with H-bridges is to not create a short circuit. If you create a short circuit, that&#8217;s a sure way to burn out your H-bridge. I may have burned out my very first H-bridge at Digilent. Good thing I learned that lesson for all of you!<\/p>\n<p>&nbsp;<\/p>\n<p>If you drive current and close two switches in series, for example, switch 3 and 4 in the image below, you will cause a short and burn out the H-bridge. As they say, don&#8217;t burn bridges!<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_3766\" aria-describedby=\"caption-attachment-3766\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-burnt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3766\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-burnt.png\" alt=\"This was an H-bridge.\" width=\"600\" height=\"468\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-burnt.png 381w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge-burnt-225x175.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-3766\" class=\"wp-caption-text\">This was an H-bridge.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>So an H-bridge is just a way to control current direction with switches, but why is this useful?<\/p>\n<p>&nbsp;<\/p>\n<p>The most typical application of an H-bridge circuit is motor control. Be warned, if you drive the motor and change direction at the same time, you will burn out the H-bridge circuit. Just remember where there&#8217;s direction and current, there&#8217;s H-bridges burnt.<\/p>\n<p>&nbsp;<\/p>\n<p>Digilent offers 3 Peripheral Modules (<a href=\"https:\/\/digilent.com\/shop\/boards-and-components\/system-board-expansion-modules\/pmods\/\">Pmods<\/a>)\u00a0with H-bridge circuits for motor control. These include the <a href=\"https:\/\/digilent.com\/shop\/pmod-hb5-h-bridge-driver-with-feedback-inputs\/\">Pmod HB5<\/a>\u00a0for controlling 1 DC motor connected with a 6 pin connector, the <a href=\"https:\/\/digilent.com\/shop\/pmod-hb3-h-bridge-driver-with-feedback-inputs\/\">Pmod HB3<\/a>\u00a0for controlling 1 DC motor connected by screw terminals, and the <a href=\"https:\/\/digilent.com\/shop\/pmod-dhb1-dual-h-bridge\/\">Pmod DHB1<\/a> for controlling 2 DC motors or 1 stepper motor.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_2832\" aria-describedby=\"caption-attachment-2832\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodHB5-top-400.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2832\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodHB5-top-400.jpg\" alt=\"Digilent's PmodHB5 that can drive a DC motor via an H-Bridge.\" width=\"600\" height=\"300\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodHB5-top-400.jpg 400w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodHB5-top-400-225x112.jpg 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-2832\" class=\"wp-caption-text\">Digilent&#8217;s PmodHB5 that can drive a DC motor via an H-Bridge.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-3760 jlk' data-task='like' data-post_id='3760' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-3760 lc'>+9<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-3760 jlk' data-task='unlike' data-post_id='3760' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-3760 unlc'>-4<\/span><\/a><\/div><\/div> <div class='status-3760 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>One of the most exciting things you can do with electronics besides blinking LEDs, is make things move. What&#8217;s the most common way to make things move? Motors. If you&#8217;ve done much with motor control, you&#8217;ve probably heard of H-bridges. But what exactly is an H-bridge?<\/p>\n","protected":false},"author":18,"featured_media":3764,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,1563],"tags":[],"ppma_author":[4466],"class_list":["post-3760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules","category-guide"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/12\/H-bridge.png","authors":[{"term_id":4466,"user_id":18,"is_guest":0,"slug":"kaitlyn","display_name":"Kaitlyn Franz","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/3f16f6159d3666c6fd05a4b73a18c286?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Franz","last_name_2":"","first_name":"Kaitlyn","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/3760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=3760"}],"version-history":[{"count":5,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/3760\/revisions"}],"predecessor-version":[{"id":31634,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/3760\/revisions\/31634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/3764"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=3760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=3760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=3760"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=3760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}