{"id":26182,"date":"2018-12-03T12:41:45","date_gmt":"2018-12-03T20:41:45","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=26182"},"modified":"2025-06-03T06:46:16","modified_gmt":"2025-06-03T13:46:16","slug":"balanced-xlr-cables-explained","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/balanced-xlr-cables-explained\/","title":{"rendered":"Balanced (XLR) Cables Explained"},"content":{"rendered":"<p>An XLR cable is what is commonly used with microphones and are also referred to as &#8220;balanced&#8221; cables. For years I have ignored a nagging question in my head:Why are there 3 pins on an XLR cable? I figured two could be explained as a signal transmitter and a ground, but what is that other pin doing there? And XLR seems to suggest a ground, left, and right signal like as if it was outputting a stereo signal, but a single microphone is a mono signal. Surely, there must be a reason for this third pin. Well, I looked it up and was fascinated by what I learned and wanted to share it with you!<\/p>\n<p>First, we need to cover a little bit of wave theory to make sure we are all on the same page. The following examples are chosen for a reason that will hopefully become clear when we get back to the XLR discussion. I will use <a href=\"https:\/\/www.desmos.com\/calculator\">Desmos online graphing calculator<\/a> to generate graphic examples. Say you have a basic cosine wave given by the equation y = cos(x) and looks like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26184\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_19_28-Window.png\" alt=\"\" width=\"832\" height=\"245\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_19_28-Window.png 832w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_19_28-Window-600x177.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_19_28-Window-768x226.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_19_28-Window-800x236.png 800w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>Second, say you have another basic cosine wave with a 180 degree phase shift (which would equivalently be a negative sine wave) given by the equation y=cos(x+\u03c0)\u00a0and looks like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-26185\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_24_13-Window.png\" alt=\"\" width=\"862\" height=\"221\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_24_13-Window.png 1003w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_24_13-Window-600x154.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_24_13-Window-768x197.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_24_13-Window-800x205.png 800w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/p>\n<p>Now, if you were to add these two waves together, the resulting wave is the addition of every infinitesimal point along the curve. For example, the the value of the first wave at x=0 is 1 and the value of the second wave at x=0 is -1, so if these wave are added together, the resulting value at x=o is 1+(-1) which equals 0.\u00a0 In fact, every point along these curves are equal and opposite in value so adding these two waves by the equation\u00a0y=cos(x+\u03c0)+cos(x) will result in zero for all values of x:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26186\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window.png\" alt=\"\" width=\"1276\" height=\"155\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window.png 1276w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window-600x73.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window-768x93.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window-1024x124.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_30_35-Window-800x97.png 800w\" sizes=\"auto, (max-width: 1276px) 100vw, 1276px\" \/><\/p>\n<p>These two signals would also be referred to as being &#8220;completely out of phase&#8221;, which just means that when these two waves are added together, the result is a flat line. If these were originally sound waves (all sound waves are dynamic, not flat lines) then adding them together would result in silence. This is a very important issue to address when recording a sound with multiple microphones, commonly referred to as &#8220;phase issues&#8221; &#8211; more on that later.<\/p>\n<p>Okay, one more example then back to the XLR cable mystery. Let&#8217;s say you have a noise signal, high frequency and low magnitude, given by the equation y=0.1cos(10\u03c0x) that looks something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26187\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_39_01-Window.png\" alt=\"\" width=\"769\" height=\"332\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_39_01-Window.png 769w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_39_01-Window-600x259.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_39_01-Window-768x332.png 768w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<p>If you were to add the noise signal to our first wave, such as y=cos(x) + 0.1cos(10\u03c0x), we would see something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-26188\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_42_09-Window.png\" alt=\"\" width=\"754\" height=\"315\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_42_09-Window.png 991w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_42_09-Window-600x251.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_42_09-Window-768x321.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-11_42_09-Window-800x334.png 800w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><\/p>\n<p>Which is a good example of a distorted signal that has picked up some noise (environmental electrical or magnetic noise is everywhere).\u00a0 When using a microphone, the mic pics up not only the sound waves going to it, but also noise that would distort the signal like this previous example. Ready for the fun part? This is where the three pins of an XLR come into play.<\/p>\n<p>Of course, one pin is a ground reference. However, the other two pins are there to compensate for inevitable noise in the raw signal. This is the magical part. One pin sends the signal as is, and the other pin sends the signal with opposite polarity by referencing its voltage opposite to ground from that of the other pin which can be illustrated as a 180 degrees out of phase, just like the first two wave examples in this post. The thing is, that both pins will pick up the same noise but that noise will not be out of phase between the two pins, so it would be like adding the noise wave example to the first two example waves like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26192\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window.png\" alt=\"\" width=\"1117\" height=\"249\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window.png 1117w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window-600x134.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window-768x171.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window-1024x228.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_03_12-Window-800x178.png 800w\" sizes=\"auto, (max-width: 1117px) 100vw, 1117px\" \/><\/p>\n<p>The red curve is the original signal and the green curve is the opposite polarity signal (in this case, equivalent to a 180 degree phase shift &#8211; the addition of pi is the radian equivalent to a 180 degree phase shift) to This is what the L and R pin would essentially look like coming out of the microphone. Now, the clever trick is that when both signals reach the input to whatever the mic cable is going to (amplifier, mixing board, etc.), <strong>one of the signals are inverted and added to the other signal<\/strong>. The inversion basically switches the polarity of one signal so that they are referencing ground equivalently (which, again for this case, can be illustrated as a 180 degree phase shift). This inversion puts both signals completely in phase but renders the noise that was common to both signals completely out of phase, so when they get added together, the noise is removed from the signal!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26190\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window.png\" alt=\"\" width=\"1516\" height=\"432\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window.png 1516w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window-600x171.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window-768x219.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window-1024x292.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window-800x228.png 800w\" sizes=\"auto, (max-width: 1516px) 100vw, 1516px\" \/><\/p>\n<p>The minus signs on the green wave take care of the inversion, which you can see now lines up perfectly in phase with the red wave. However, note that the noise that each signal picked up is now completely out of phase. When the two waves are added together (the blue wave), the noise is removed! Notice that the blue wave is smooth without the noise distortion. I don&#8217;t about you, but I thought that was some clever stuff!<\/p>\n<p>I hope this was informative and clear to understand. Please comment if anything needs more clarification or if you have any other questions or input regarding the theory behind this. There are other mathematical approaches to this concept.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-26182 jlk' data-task='like' data-post_id='26182' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-26182 lc'>+16<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-26182 jlk' data-task='unlike' data-post_id='26182' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-26182 unlc'>-2<\/span><\/a><\/div><\/div> <div class='status-26182 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Ian delves into the science of sound, and how XLR cables get clever with waveforms to reduce noise!<\/p>\n","protected":false},"author":49,"featured_media":26190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4322,1563],"tags":[1736,452],"ppma_author":[4459],"class_list":["post-26182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-accessories","category-guide","tag-analog-discovery-2","tag-waveforms"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/2018-11-30-12_01_07-Window.png","jetpack_sharing_enabled":true,"authors":[{"term_id":4459,"user_id":49,"is_guest":0,"slug":"ian","display_name":"Ian Etheridge","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/04e89e2073e59253a0b117ef28da1c647ca307c1e5f7bf024c1c3e8289c2e026?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26182","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\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=26182"}],"version-history":[{"count":2,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26182\/revisions"}],"predecessor-version":[{"id":31631,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26182\/revisions\/31631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/26190"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=26182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=26182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=26182"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=26182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}