{"id":27205,"date":"2019-10-21T08:13:43","date_gmt":"2019-10-21T15:13:43","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=27205"},"modified":"2020-12-21T11:19:27","modified_gmt":"2020-12-21T19:19:27","slug":"scope-noise-due-to-ground-issues-part-one","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/scope-noise-due-to-ground-issues-part-one\/","title":{"rendered":"An Examination of Oscilloscope Noise Due to Ground Issues"},"content":{"rendered":"\n<p>Ground potential differences can wreak havoc on precise oscilloscope measurements, especially with single-ended scopes- where you will always have an offset error in your readings.<\/p>\n\n\n\n<p>To illustrate the problem, we will start from a very simple measurement and work our way into more complex, realistic scenarios, intentionally making things erroneous by pushing what would happen.<\/p>\n\n\n\n<p>The scenario used includes a PC providing 5 volts from a USB hub. We will measure that 5v using a single-ended scope (like a common desk scope). For simplicity and illustration, we will use an ideal 5v source so all distortions we see on the simulated scope traces will be from external factors.<\/p>\n\n\n\n<p>Envision plugging the Tek scope into a 120v wall outlet, and our PC into a different wall outlet upstream from the Tek, but on the same 120v branch circuit. For simplicity, we will use 120v RMS DC instead of 120v RMS AC as our wall outlet power. We don\u2019t want to model rectifiers in the Tek or PC; but the effect on the scope traces using DC instead of AC will be similar; similar enough that it will make clear what is going on.<\/p>\n\n\n\n<p>We will pick currents and wire sizes that are realistic, but intentionally in a direction to best illustrate measurement distortions. For our simulations, we will say the PC draws a nominal current of 3As and the oscilloscope draws a nominal current of 1A. These are modeled as current sources in the simulation.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"478\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/k1.png\" alt=\"\" class=\"wp-image-27206\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/k1.png 689w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/k1-600x416.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/k1-135x93.png 135w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/figure>\n\n\n\n<p>Our simulated oscilloscope is at the OSC (probe) in the schematics. And as expected, the measured value on our oscilloscope is a nice steady 5v.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"88\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/2.png\" alt=\"\" class=\"wp-image-27207\"\/><\/figure>\n\n\n\n<p>But this really isn\u2019t reality. In reality there is some resistance in our probe wires. Typically probe wires are small; let\u2019s assume 24 AWG and a probe length of 3 feet.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"304\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/3.png\" alt=\"\" class=\"wp-image-27208\"\/><\/figure>\n\n\n\n<p>Given standard wire gauge resistances, we will have a resistance of about 77m\u03a9s. (3*25.67\/1000 ~ 77m\u03a9).<\/p>\n\n\n\n<p>Let\u2019s redraw our circuit including the 77m\u03a9 probe wire resistance.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"490\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/4.png\" alt=\"\" class=\"wp-image-27209\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/4.png 769w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/4-600x382.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/4-768x489.png 768w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n\n\n\n<p>And again we get a nice steady 5v measurement on our oscilloscope.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"523\" height=\"91\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/5.png\" alt=\"\" class=\"wp-image-27210\"\/><\/figure>\n\n\n\n<p>But this isn\u2019t reality. In reality there is some resistance in our power cord that plugs the PC and the oscilloscope into the wall. We will assume the power cords are 18 AWG and are 6 feet long for both. Using our chart, the power cords will present about 38m\u03a9s of resistance (6*6.385\/1000 = ~38m\u03a9).<\/p>\n\n\n\n<p>Let\u2019s redraw our circuit including the 38m\u03a9 power cord resistance.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"469\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/6.png\" alt=\"\" class=\"wp-image-27212\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/6.png 755w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/6-600x373.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/6-348x215.png 348w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/figure>\n\n\n\n<p>But now we see a 40mV offset error in our oscilloscope measurement.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"114\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/7.png\" alt=\"\" class=\"wp-image-27213\"\/><\/figure>\n\n\n\n<p>If we look at the Probe ground current, we see that there is 500mA (1\/2amp) of current going through our little tiny 24 AWG probe ground wire. There is almost no current going through the positive probe wire.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"458\" height=\"239\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/8.png\" alt=\"\" class=\"wp-image-27214\"\/><\/figure>\n\n\n\n<p>What is happening, the oscilloscope and the PC have different internal ground potentials because of the IR drop in their respective power cords. We can see there is a 38.25mV different (our 0.5a * 77m\u03a9 = ~38mV)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"214\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/9.png\" alt=\"\" class=\"wp-image-27215\"\/><\/figure>\n\n\n\n<p>But again, this isn\u2019t reality. In reality, there is some resistance in the wall branch circuit between the PC and the oscilloscope. Now a 15 amp wall branch circuit will typically use 14 AWG wire. Let\u2019s assume that our PC is upwind of our oscilloscope by 10 feet between 2 wall outlets. Given our chart, that would yield a wall resistance of about 25m\u03a9 (10*2.525\/1000 = ~25m\u03a9).<em>S<\/em><\/p>\n\n\n\n<p>To continue, let\u2019s update our schematic to include the 25m\u03a9 wall resistance between our instruments.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"486\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image.png\" alt=\"\" class=\"wp-image-27222\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image.png 752w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-600x388.png 600w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/figure>\n\n\n\n<p>We now measure 5.07v on the oscilloscope, a 70mV offset error. Our 24 AWG Probe ground wire is passing 848mA, and the difference between the PC and oscilloscope internal grounds is now 65mV.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"504\" height=\"454\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-6.png\" alt=\"\" class=\"wp-image-27228\"\/><\/figure>\n\n\n\n<p>But this still really isn\u2019t reality. In reality, there is probably something else plugged into our wall branch circuit besides just the PC and oscilloscope. Our wall circuit can provide 15 amps from the branch circuit breaker. Our PC takes 3A, or oscilloscope takes 1A, let\u2019s add something big upstream on the branch circuit, say a 7A appliance.<\/p>\n\n\n\n<p>Let\u2019s add that to our circuit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"469\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-3.png\" alt=\"\" class=\"wp-image-27225\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-3.png 846w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-3-600x333.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-3-768x426.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<p>Now we measure 5.14mV on our oscilloscope, an offset error of 140mV! Our 24 AWG probe ground wire is passing 1.83 amps! That probe ground wire might be getting warm!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"546\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-2.png\" alt=\"\" class=\"wp-image-27224\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-2.png 632w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-2-600x518.png 600w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<p>But this really isn\u2019t reality. In reality there is probably some switching noise going on in the PC and oscilloscope. Let\u2019s simulate that with a 500mA 100kHz square wave on the PC, and 250mA 500kHz triangle wave on the oscilloscope.<\/p>\n\n\n\n<p>Let\u2019s add that to our circuit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"513\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-4.png\" alt=\"\" class=\"wp-image-27226\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-4.png 847w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-4-600x363.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-4-768x465.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>We see a 34.6mV ripple on our oscilloscope measurement!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"582\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-10.png\" alt=\"\" class=\"wp-image-27232\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-10.png 661w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-10-600x528.png 600w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>But let\u2019s not stop just yet! Let\u2019s add upstream on our wall branch circuit a noisy appliance. Now typically it would probably be at 60Hz, but that is going to be hard to show, so we are going to put a 3A 200kHz sine wave appliance on the circuit. We picked 200kHz so we can easily see the effects on our simulated oscilloscope trace. In reality, it probably would be a much lower frequency appliance, but the effect would still be there.<\/p>\n\n\n\n<p>For fun, let\u2019s add that to our wall branch circuit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"448\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-5.png\" alt=\"\" class=\"wp-image-27227\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-5.png 909w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-5-600x296.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-5-768x379.png 768w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/figure>\n\n\n\n<p>Now we have nearly 100mV of ripple measured on the oscilloscope and a really ugly looking waveform!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"824\" height=\"572\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9.png\" alt=\"\" class=\"wp-image-27231\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9.png 824w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9-600x417.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9-768x533.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9-135x93.png 135w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-9-800x555.png 800w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<p>So here we are, using our nice expensive Tektronix\u2019s oscilloscope, attempting to measure a nice steady 5v source from our PC; and what do we see? We see a&nbsp;messy signal offset by 140mV!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"546\" height=\"174\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-1.png\" alt=\"\" class=\"wp-image-27223\"\/><\/figure>\n\n\n\n<p>Our nice 5v output doesn\u2019t look so nice anymore, but it really isn\u2019t real, it is a scope measurement distortion due to differentiating ground references.<\/p>\n\n\n\n<p>Now let\u2019s take a look at what we have on my desk; a real world condition. Let\u2019s measure my PC USB ground against our Tektronix\u2019s ground (ground to ground) with my Agilent DMM (which has an isolated ground). We see a 95mV of ground differential between the PC and the Tek. This is due to the IR drop in the power cords and in the wiring in the wall, the branch circuit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"174\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-7.png\" alt=\"\" class=\"wp-image-27229\"\/><\/figure>\n\n\n\n<p>But, beware; even though this shows 95mV of difference, as soon as I hook up the probe ground wire, the grounds will equalize via the probe\u2019s ground wire and the difference will be greatly reduced. But, there will be an IR drop across the probe ground wire and that is what will show up as an offset error on the scope trace. For example, when we hook up the probe ground to my PC, my offset error drops to 5.5mV; and in reality, we typically see anywhere from 5-15mV of offset error on my Tek. <\/p>\n\n\n\n<p>Using a differential probe (ground to ground), we can see hundreds of mVs of noise (probably switching noise). This will all show up as additional noise on any scope trace.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"381\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-8.png\" alt=\"\" class=\"wp-image-27230\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-8.png 633w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/image-8-600x361.png 600w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/figure>\n\n\n\n<p>So how do we fix this? How do we see what is really there?<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Ideally, if we could get the scope and the unit under test to have the same ground potential, and without switching noise, our single-ended scope would work just fine.<ul><li>One thing we can do is couple the grounds of the scope and the unit under test with a very heavy gauge wire; reducing, but not illuminating, the ground differences.<\/li><\/ul><\/li><li>Use a scope with an isolated ground.<ul><li>This will allow the scope to float to the same ground potential as the unit under test.<ul><li>There will still be some capacitive coupling that can allow interference to affect the signal measurement, but usually this is minimal.<\/li><\/ul><\/li><li>The <a href=\"https:\/\/digilent.com\/shop\/openscope-mz-open-source-all-in-one-instrumentation\/\">OpenScope <\/a>and <a href=\"https:\/\/digilent.com\/shop\/openlogger-high-resolution-portable-data-logger\/\">OpenLogger <\/a>can have isolated grounds by powering them off of a battery and using WiFi to talk to them. This completely isolates the scope from any external interference.<\/li><\/ul><\/li><li>Use a differential probe<ul><li>This allows one probe to trace the unit under test\u2019s ground, while the other probe measures the signal relative to that ground.<\/li><li>But differential probes are expensive. If I need one, I have to borrow it.<\/li><\/ul><\/li><li>Use averaging on the scope to remove noise, and know what the nominal offset error is.<ul><li>This is what I do most of the time.<\/li><\/ul><\/li><li>Sometimes, you just don\u2019t know what is real, and what is interference. Judgment and discussions with others are the best that can be done.<\/li><\/ul>\n\n\n<p><!--EndFragment--><\/p>\n<p><\/p>\n\n\n<p>This blog post is courtesy of<a href=\"https:\/\/www.linkedin.com\/in\/keith-vogel-53500885\"> Keith Vogel. <\/a><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-27205 jlk' data-task='like' data-post_id='27205' 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-27205 lc'>+10<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-27205 jlk' data-task='unlike' data-post_id='27205' 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-27205 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-27205 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>A discussion of how ground potential differences can (and will) effect oscilloscope measurements.<\/p>\n","protected":false},"author":50,"featured_media":27214,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4327,4312,4267],"tags":[],"ppma_author":[4502],"class_list":["post-27205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-usb-scopes-analyzers-generators","category-featured"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2019\/06\/8.png","authors":[{"term_id":4502,"user_id":50,"is_guest":0,"slug":"davidh","display_name":"David Horn","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/44030532fc8d2bc9aa1d05f87c27d6f9?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Horn","last_name_2":"","first_name":"David","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/27205","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\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=27205"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/27205\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/27214"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=27205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=27205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=27205"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=27205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}