{"id":892,"date":"2011-12-28T01:38:47","date_gmt":"2011-12-27T14:38:47","guid":{"rendered":"http:\/\/www.madox.net\/blog\/?p=892"},"modified":"2011-12-28T01:38:47","modified_gmt":"2011-12-27T14:38:47","slug":"its-a-runaway-succ-failure","status":"publish","type":"post","link":"http:\/\/www.madox.net\/blog\/2011\/12\/28\/its-a-runaway-succ-failure\/","title":{"rendered":"It&#8217;s a runaway succ&#8230;. failure"},"content":{"rendered":"<p>Another failure! \u00a0Though all signs pointed to it working&#8230;<\/p>\n<p>So I got a freebie <a href=\"http:\/\/www.odd.org.nz\/oddbot.html\">OddBot<\/a>\u00a0sent to me a couple of weeks ago, it basically is a derivative of my <a href=\"http:\/\/www.madox.net\/blog\/?p=803\" target=\"_blank\">Mecanum Rover<\/a>\u00a0and Olaf was kind enough to sent it with almost everything attached less the <a href=\"http:\/\/www.chumby.com\/\">Chumby<\/a>. \u00a0Since I&#8217;ve been on a <a href=\"http:\/\/www.ti.com\/tool\/msp-exp430g2\" target=\"_blank\">TI Launchpad<\/a> buying spree, I thought I&#8217;ll tack one on in place of the Chumby to drive it.<\/p>\n<p>So far this post reads like a gigantic spam with all those links&#8230;no enlargement links coming up, I promise&#8230;just one short video of it not working and running away on me.<\/p>\n<p><!--more--><\/p>\n<p>So I figured, how hard can it be? \u00a0I procrastinated soldering 2 header pins onto the Launchpad&#8217;s TP1 and TP3 tie points for power but after doing that everything was almost recycling :-<\/p>\n<p>Code &#8211; Copied from Madox Kart prototype code and original Rover code&#8230;took around 15-30 minutes to copy\/paste and tidy up some comments.<br \/>\nCarrier for Launchpad + Battery + \u00a0Breadboard &#8211; Almost a direct copy of the Madox Kart prototype again&#8230; 15minutes to tweak and 1+ hour to print. \u00a0[Ok 3+ hours, 1+ hour on 0.4mm layers but 3+ hours on 0.2mm layers which I&#8217;m a sucker for].<\/p>\n<p>Everything seemed &#8216;too easy&#8217; so far, even the <a href=\"https:\/\/plus.google.com\/u\/0\/114506261366431391535\/posts\/TBH5mJvHfGw\" target=\"_blank\">code compiled first time which I didn&#8217;t believe<\/a>. \u00a0Then the problems started mounting&#8230;<\/p>\n<p>Problem 1 &#8211; Cheap mini-USB cables from eBay failed to connect to the Launchpad properly. \u00a0Cable 1 was a complete no go (marked for butchering into a power cable), cable 2 worked only if the connector was held at a particular angle. \u00a0I programmed the Launchpad while keeping my hand steady holding the cable. \u00a0Cheap eBay USB cables, you disappoint me yet again.<\/p>\n<p>Problem 2 &#8211; Connected everything up onto the breadboard and all, no blinky lights on the Launchpad!!! \u00a0Head scratch for a total of ~30 seconds. \u00a0It turns out it is the age old problem of &#8216;slightly too fat&#8217; AA cells. \u00a0The AA cells are just a bit too wide for the battery holder and because of such, the friction between batteries was stronger than the spring and the + terminal wasn&#8217;t making contact. \u00a0Don&#8217;t know whether to blame this on the battery holder or the batteries&#8230;<\/p>\n<p>Problem 3 &#8211; Continuous rotation servos were not zero&#8217;ed, and they were a pain to do so, the slightest adjustment movement will have it spinning the other way. \u00a02 minutes later the zero&#8217;ing seems to have been gone, probably due to temperature drift (heating up) &#8211; PITA.<\/p>\n<p>Problem 4 &#8211; My favorite &#8211; it didn&#8217;t work. \u00a0Initially because I didn&#8217;t pair the Wii Nunchuk (Duh! moment) and then probably down to the hackity software code \ud83d\ude42 \u00a0The movement matrices seemed wrong and the servo control was very odd, need to debug that later. \u00a0<strong>Highlight &#8211; IT RAN AWAY ON ME. \u00a0<\/strong>Best illustrated in video form :-<\/p>\n<p style=\"text-align: center;\"><object width=\"315\" height=\"560\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/K8imeBZHoCM?version=3&amp;hl=en_US\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed width=\"315\" height=\"560\" type=\"application\/x-shockwave-flash\" src=\"http:\/\/www.youtube.com\/v\/K8imeBZHoCM?version=3&amp;hl=en_US\" allowFullScreen=\"true\" allowscriptaccess=\"always\" allowfullscreen=\"true\" \/><\/object><\/p>\n<p>Problem 4.5 &#8211; The wheels haven&#8217;t been treated with Plasti-Dip or any other grippy surface, so its still very slippery&#8230;<\/p>\n<p>I&#8217;ll upload the code etc when I get around to fixing it&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another failure! \u00a0Though all signs pointed to it working&#8230; So I got a freebie OddBot\u00a0sent to me a couple of weeks ago, it basically is a derivative of my Mecanum Rover\u00a0and Olaf was kind enough to sent it with almost everything attached less the Chumby. \u00a0Since I&#8217;ve been on a TI Launchpad buying spree, I &hellip; <a href=\"http:\/\/www.madox.net\/blog\/2011\/12\/28\/its-a-runaway-succ-failure\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;It&#8217;s a runaway succ&#8230;. failure&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-892","post","type-post","status-publish","format-standard","hentry","category-engineering"],"_links":{"self":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":11,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":904,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/892\/revisions\/904"}],"wp:attachment":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}