{"id":841,"date":"2014-06-11T09:34:21","date_gmt":"2014-06-11T13:34:21","guid":{"rendered":"http:\/\/fll-freak.com\/blog\/?p=841"},"modified":"2025-04-21T00:54:35","modified_gmt":"2025-04-21T04:54:35","slug":"agoraphobic-robot","status":"publish","type":"post","link":"https:\/\/fll-freak.com\/blog\/?p=841","title":{"rendered":"Agoraphobic robot"},"content":{"rendered":"<p>I have been frustrated by a problem with my robot. Each time I would go outside to test, the robot&#8217;s processor would hang. I tried various tactics in getting to the bottom of the problem. The real bummer was that my log files would always be empty files. I had nothing to go on.<\/p>\n<p>Well over the last few days, I realized the empty log files were as a result of not commiting or syncing the data to the FAT. I was just writting and writting and only at the end of a run would I press the magic button to close the file. So I added a sync command every second to at least capture up to the last second before the crash.<\/p>\n<p>What I found in my new log files was troubling. It was logging thousands of invalid commands to my debug serial port. I had a phantom hacker!<\/p>\n<p>Well when I go outside to test, I disconnect the FTDI USB to logic level serial cable. When I did that, I left the processor&#8217;s RX line disconnected. Any noise on that line would look like a byte. That byte would then get logged to the SD card. But the SD SPI lines ran close to the RX line. In short order I would get a firestorm of bad bytes that would overwhelm the processor.<\/p>\n<p>Solution: A single 10K pullup resistor on the RX line keeps out the noise when the cable is disconnected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been frustrated by a problem with my robot. Each time I would go outside to test, the robot&#8217;s processor would hang. I tried various tactics in getting to the bottom of the problem. The real bummer was that &hellip; <a href=\"https:\/\/fll-freak.com\/blog\/?p=841\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,24],"tags":[],"class_list":["post-841","post","type-post","status-publish","format-standard","hentry","category-arm","category-avc"],"_links":{"self":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=841"}],"version-history":[{"count":1,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/841\/revisions"}],"predecessor-version":[{"id":842,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/841\/revisions\/842"}],"wp:attachment":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}