{"id":19689,"date":"2017-04-05T10:05:41","date_gmt":"2017-04-05T17:05:41","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=19689"},"modified":"2021-06-11T10:05:59","modified_gmt":"2021-06-11T17:05:59","slug":"beginner-level-circuit-debugging-techniques","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/beginner-level-circuit-debugging-techniques\/","title":{"rendered":"Beginner Level Circuit Debugging Techniques"},"content":{"rendered":"<p>&#8220;Are you sure the Pmod is wired properly?&#8221;<\/p>\n<p>That&#8217;s the question my fellow <a href=\"https:\/\/digilent.com\/shop\/labview-home-bundle\/\">LabVIEW<\/a> intern asked me when we were racing to troubleshoot our sumo robots before NI week.<\/p>\n<p>&#8220;Yes I am sure!&#8221;<\/p>\n<p>That was my immediate response, which made it extra embarrassing when<b>\u00a0<\/b>the\u00a0problem ended up being stray Pmod wire the whole time. It was such a stupid mistake.\u00a0And I was, of course, blaming everything from the board manufacturer to disturbance from the WiFi signal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-15776 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/13833437_10208533621370875_598605813_o-450x600.jpg\" alt=\"\" width=\"450\" height=\"600\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/13833437_10208533621370875_598605813_o-450x600.jpg 450w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/13833437_10208533621370875_598605813_o-768x1024.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/13833437_10208533621370875_598605813_o-800x1067.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/07\/13833437_10208533621370875_598605813_o.jpg 1000w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>These types of situations are common when you spend a lot of time working with electronics. That&#8217;s why it is important to have a good strategy for approaching these problems when they occur. Everyone will have a slightly different process but in this post, I will give you a few tips to that will hopefully help you avoid some of my mistakes.<\/p>\n<h3><strong>Stick to the Conventions<\/strong><\/h3>\n<p>If something has been around for some time, then there is a reason why it has been there. So stick to\u00a0color\u00a0conventions while wiring up things (Red for power, Black\/Brown for ground and Yellow\/Blue for signals). This might take some effort but it\u2019s totally worth the time you spent. It will also make it easy for other people to help you. Below you can see a picture of a circuit made by on of my coworkers Brandon Marcum. He doesn&#8217;t follow this convention perfectly but when you have worked with analog circuits as long as him you will get to the point where you can create your own standard.<\/p>\n<figure id=\"attachment_16119\" aria-describedby=\"caption-attachment-16119\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16119 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/F17Y8FOIPQMB5CK.MEDIUM-600x338.jpg\" alt=\"\" width=\"600\" height=\"338\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/F17Y8FOIPQMB5CK.MEDIUM-600x338.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/F17Y8FOIPQMB5CK.MEDIUM.jpg 620w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption id=\"caption-attachment-16119\" class=\"wp-caption-text\"><cite>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Brandon Marcum&#8217;s laser tripwire circuit.<\/cite><\/figcaption><\/figure>\n<h3>\u00a0<strong>No Guess Work!<\/strong><\/h3>\n<p>If you plan on building a circuit it&#8217;s important that you spend some time planning first. At times when you are designing your own circuit, you may come across a situation to decide on the resistance or capacitance of a network. Now you may be inclined to choose some value higher than the required to be safe, but it&#8217;s never a good idea to guess the component values. If you aren&#8217;t already using a circuit diagram or schematic I would highly recommend drawing one before you start. Once you have a schematic you should be able to do some simple math to figure out exactly what components to use.<\/p>\n<h3><strong>Divide and Conquer<\/strong><\/h3>\n<p>There&#8217;s nothing worse than finishing a large and complicated circuit just to find out that it doesn&#8217;t work at all.\u00a0When I build my circuit I try my best to build it in a way that allows me to test it as I go.\u00a0The key to a successful debug lies in identifying the faulty region as soon as possible so to isolate blocks of circuits and test them separately. This will help you pinpoint the problem.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-15945 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-600x450.jpg\" alt=\"\" width=\"600\" height=\"450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-768x576.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-800x600.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234-1200x900-cropped.jpg 1200w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3><strong>Use the Scope!<\/strong><\/h3>\n<p>Sometime you\u2019ll have to see what is actually going on down there as it is not always possible to analyze circuits from your mind.\u00a0Most times, a DSO could save you a lot of time by telling us exactly what is happening in your circuit. Additionally, the\u00a0<a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a>\u00a0acts as a great way to analyze circuits, especially with the Logic Analyzer in\u00a0<a href=\"https:\/\/digilent.com\/shop\/waveforms-2015-download-only\/\">WaveForms\u00a0<\/a>2015. If your still not sure which tool to use, check out a\u00a0<a href=\"https:\/\/digilent.com\/blog\/when-is-a-multimeter-not-enough\/\">comparison guide<\/a>\u00a0regarding digital multimeters and the Analog Discovery 2 as debugging tools. \u00a0If your circuit isn\u2019t working and you have the\u00a0<a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">AD2\u00a0<\/a>in your pocket, there\u2019s nothing to fear!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-15038 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/square_wave-449x600.jpg\" alt=\"\" width=\"449\" height=\"600\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/square_wave-449x600.jpg 449w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/square_wave-768x1027.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/square_wave-766x1024.jpg 766w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/06\/square_wave-800x1070.jpg 800w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Thank you for reading my blog post, If you want to read more about tips and tricks for circuit debugging check out this <a href=\"http:\/\/embedjournal.com\/circuit-debugging-tips-tricks-techniques\/\">link<\/a>. If you are interested in learning more about the\u00a0<a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a>, take\u00a0a look at either the\u00a0<a href=\"https:\/\/digilent.com\/reference\/analog_discovery_2\/refmanual\">reference page<\/a>\u00a0or the\u00a0<a href=\"https:\/\/www.youtube.com\/playlist?list=PLSTiCUiN_BoLtf_bWtNzhb3VUP-KDvv91\">Analog Discovery 2 Quick Start videos<\/a>. Please comment below with any questions or comments you may have.<\/p>\n<div class=\"page\" title=\"Page 2\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<div class=\"ssba ssba-wrap\">\n<div><a class=\"ssba_facebook_share\" href=\"http:\/\/www.facebook.com\/sharer.php?u=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Facebook\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/facebook.png\" alt=\"Share on Facebook\" \/><\/a><a class=\"ssba_twitter_share\" href=\"http:\/\/twitter.com\/share?url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/&amp;text=The+Basics+of+Breadboards+\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Twitter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/twitter.png\" alt=\"Tweet about this on Twitter\" \/><\/a><a class=\"ssba_google_share\" href=\"https:\/\/plus.google.com\/share?url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Google+\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/google.png\" alt=\"Share on Google+\" \/><\/a><a class=\"ssba_pinterest_share\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Pinterest\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/pinterest.png\" alt=\"Pin on Pinterest\" \/><\/a><a class=\"ssba_reddit_share\" href=\"http:\/\/reddit.com\/submit?url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/&amp;title=The%20Basics%20of%20Breadboards\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Reddit\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/reddit.png\" alt=\"Share on Reddit\" \/><\/a><a class=\"ssba_tumblr_share\" href=\"http:\/\/www.tumblr.com\/share\/link?url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"tumblr\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/tumblr.png\" alt=\"Share on Tumblr\" \/><\/a><a class=\"ssba_linkedin_share ssba_share_link\" href=\"http:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"LinkedIn\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/linkedin.png\" alt=\"Share on LinkedIn\" \/><\/a><a class=\"ssba_stumbleupon_share ssba_share_link\" href=\"http:\/\/www.stumbleupon.com\/submit?url=https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/&amp;title=The%20Basics%20of%20Breadboards\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"StumbleUpon\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/stumbleupon.png\" alt=\"Share on StumbleUpon\" \/><\/a><a class=\"ssba_email_share\" href=\"mailto:?subject=The%20Basics%20of%20Breadboards&amp;body=%20https:\/\/digilent.com\/blog\/the-basics-of-breadboards\/\"><img decoding=\"async\" class=\"ssba ssba-img no-display appear\" title=\"Email\" src=\"https:\/\/digilent.com\/blog\/wp-content\/plugins\/simple-share-buttons-adder\/buttons\/somacro\/email.png\" alt=\"Email this to someone\" \/><\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-19689 jlk' data-task='like' data-post_id='19689' data-nonce='3c15ebf169' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-19689 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-19689 jlk' data-task='unlike' data-post_id='19689' data-nonce='3c15ebf169' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-19689 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-19689 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Learn beginning circuit debugging with Austin!<\/p>\n","protected":false},"author":42,"featured_media":15945,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4325,1563],"tags":[1736],"ppma_author":[4493],"class_list":["post-19689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debug-validation-test","category-guide","tag-analog-discovery-2"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/08\/20160802_105234.jpg","authors":[{"term_id":4493,"user_id":42,"is_guest":0,"slug":"astanton","display_name":"Austin Stanton","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/056fddaefc60a1f99c226ea5757a8c41?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Stanton","last_name_2":"","first_name":"Austin","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/19689","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\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=19689"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/19689\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/15945"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=19689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=19689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=19689"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=19689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}