{"id":114,"date":"2011-11-09T23:52:39","date_gmt":"2011-11-09T23:52:39","guid":{"rendered":"http:\/\/www.andrewwhyman.com\/blog\/?p=114"},"modified":"2011-11-09T23:52:39","modified_gmt":"2011-11-09T23:52:39","slug":"a-case-of-fault-finding","status":"publish","type":"post","link":"http:\/\/www.andrewwhyman.com\/blog\/electronics\/a-case-of-fault-finding\/","title":{"rendered":"A Case Of Fault Finding"},"content":{"rendered":"<div style=\"float: right; margin: 10px;\">\n<a href=\"http:\/\/www.andrewwhyman.com\/blog\/wp-content\/uploads\/2011\/11\/usb-logo-e1320882726409.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.andrewwhyman.com\/blog\/wp-content\/uploads\/2011\/11\/usb-logo-e1320882726409.jpg\" alt=\"usb-logo\" title=\"usb-logo\" width=\"150\" height=\"112\" class=\"aligncenter size-full wp-image-116\" \/><\/a>\n<\/div>\n<p>One of my current projects is building a 5v USB regulator for charging mobile phones. I&#8217;ll be using this when away camping so myself and friends can charge their phones whenever they like at full speed. My previous solution was a cheap cigarette socket version which only supplied 1A between two sockets. This custom version will provide 1A to each socket, of which I&#8217;ll have a total of 4.<\/p>\n<p>Now from the beginning I thought &#8220;this is going to be easy!&#8221;. After all it&#8217;s just a regulator, some capacitors and some resistors. I connected up a nice basic circuit with an LM7805 5v 1.5A regulator. It was solid as a rock on 5v and could easily supply 1A. 1A is more than enough to charge most phones, and my mains charger only outputs 0.7A. However, try as I might, I could not get the phone to accept a decent charge.<\/p>\n<p>It would start off at 0.5A, then fall to 0.1A and often drop off completely. I was getting really frustrated. I&#8217;d tried dozens of techniques I&#8217;d found on the web for connecting the data pins with different value resistors etc. None of them worked! I even tried another phone to no avail. I thought my circuit was to blame and I wanted to know what I was doing wrong. Subsequently I hacked open my genuine blackberry charger to see what on earth was going on inside. It turns out nothing special was going on inside.<\/p>\n<p>So I wasted a perfectly good blackberry charger for nothing (not that I ever used it but that&#8217;s not the point). By this point I&#8217;d spent over 8 hours trying to get this working and I even went to the trouble of posting on a forum and e-mailing a guy on youtube who I though may have the answer. He turned around and said he doesn&#8217;t answer personal project questions like that &#8211; fair comment. Being a knowledgeable guy he probably gets too many of them anyway. He told me to post on his forum so I did. It was at that point a friend of mine suggested something&#8230;<\/p>\n<p>It&#8217;s the most stupid thing ever, but he suggested trying another USB cable. So I did&#8230;<\/p>\n<p>Straight away I was getting 1.07A charge rate into the phone, rock solid. In 1 hour it was fully charged and didn&#8217;t flicker or fault once the whole time. I cursed like I have never cursed before because it was such a stupid thing not to check for in the first place.<\/p>\n<p>I haven&#8217;t looked into why the cable I was using wasn&#8217;t working properly but it would explain why I had so many issues using it to sync to the PC. I always thought it was the phones fault but it has to have been the cable. It all makes sense now.<\/p>\n<p>So what&#8217;s the moral of the story? Always check everything, even the stupid things like USB cables. You can&#8217;t easily diagnose a cable so just swap it out and rule it out as a possible cause. My guess is there is a small break in the cable causing intermittent problems, or there is a bad connection on one or more contacts. Without testing it I can&#8217;t be sure but suffice to say the cable is now deemed out of action.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my current projects is building a 5v USB regulator for charging mobile phones. I&#8217;ll be using this when away camping so myself and friends can charge their phones whenever they like at full speed. My previous solution was a cheap cigarette socket version which only supplied 1A between two sockets. This custom version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","footnotes":""},"categories":[14],"tags":[18,19],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-electronics","tag-broken-usb-cable","tag-fault-finding"],"_links":{"self":[{"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":5,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":120,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/120"}],"wp:attachment":[{"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.andrewwhyman.com\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}