{"id":127,"date":"2018-03-22T22:05:12","date_gmt":"2018-03-22T21:05:12","guid":{"rendered":"http:\/\/www.fabidouille.com\/?p=127"},"modified":"2018-03-22T22:08:57","modified_gmt":"2018-03-22T21:08:57","slug":"reviving-old-wire-guided-buggy","status":"publish","type":"post","link":"https:\/\/www.fabidouille.com\/?p=127","title":{"rendered":"Reviving old wire-guided buggy"},"content":{"rendered":"<p>Bonjour, un article un peu sp\u00e9cial, puisqu&rsquo;il s&rsquo;agit d&rsquo;un copie colle d&rsquo;un article (assez ancien) fait dans le cadre d&rsquo;un club maker dont je fais parti:<\/p>\n<p>Goal is to present a bit what we did, what we have, what we&rsquo;re aiming at in the short term..<\/p>\n<h1 id=\"aMakerBelAir-revivingoldwire-guidedbuggy-Ourfirstproject\">Our first project<\/h1>\n<p>One of the toy attracted us, this one:<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-137\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071-169x300.jpg 169w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071-768x1367.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071-575x1024.jpg 575w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1252071.jpg 1456w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><\/p>\n<p>Our goal was clear, reviving this buggy and making it autonomous using an arduino.<\/p>\n<p>First, after taking it apart, we tried to understand the original &#8211; simple &#8211; design:<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-139\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121-169x300.jpg 169w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121-768x1367.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121-575x1024.jpg 575w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259121.jpg 1456w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a> <a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-138\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081-169x300.jpg 169w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081-768x1367.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081-575x1024.jpg 575w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1259081.jpg 1456w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><\/p>\n<p>But also that many wires were corroded making the car useless in its current condition.<\/p>\n<p>Turned into this hand-made drawing schematics:<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1327081.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-140\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1327081-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1327081-300x169.jpg 300w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1327081-768x431.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170118_1327081-1024x575.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>First, we tried to control the 6V 250ma DC motor via the TTL voltage given by arduino outputs using the only transistor we had,at this time an IRF520N (<a class=\"external-link\" href=\"http:\/\/fr.farnell.com\/infineon\/irf520npbf\/transistor-mosfet-canal-n-boitier\/dp\/9103031\" rel=\"nofollow\">here<\/a>).<\/p>\n<p>Which we hooked to a 12V battery + DC motor:<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170125_1402381.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-141\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170125_1402381-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170125_1402381-300x169.jpg 300w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170125_1402381-768x431.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170125_1402381-1024x575.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>But we didn&rsquo;t get the results we expected,indeed motor was running very weakly, plus the transistor was getting very hot.<\/p>\n<p>After some thoughts, we concluded looking at <a class=\"external-link\" href=\"http:\/\/www.farnell.com\/datasheets\/136307.pdf\" rel=\"nofollow\">specs<\/a>\u00a0(page 3, characteristics graph on bottom left) that even if the graph is based on Vds = 50V, the Vgs we put is too low, as a consequence transistor is not \u00ab\u00a0fully\u00a0\u00bb in court circuit state (\u00ab\u00a0passant\u00a0\u00bb) =&gt; big internal resistance =&gt; big voltage. Also, current at this regime is low, thus low rpms. We needed 10V on the gate to have it working in its nominal regime, that&rsquo;s much more than TTL arduino levels (5V).<\/p>\n<p>So we ordered another transistor better suited for our low activation voltage.<\/p>\n<p>At some point, we wanted to control both front motor (for steering) and rear motor (to move forwards\/backwards).<\/p>\n<p>So we ordered a LS293 component, containing 2 H bridges, but only after one of us reinvented H bridge principle.<\/p>\n<p>We wanted to jump from breadboard prototyping to PCB soldering prototyping cards..<\/p>\n<p>As we lacked experience in PCB prototype board usage at this point, our first attempt was a bit laborious and not the cleanest imaginable (<a class=\"external-link\" href=\"http:\/\/www.instructables.com\/id\/How-to-Prototype-Without-Using-Printed-Circuit-Boa\/\" rel=\"nofollow\">from now on we&rsquo;ll avoid soldered tracks<\/a>):<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-142\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361-169x300.jpg\" alt=\"\" width=\"169\" height=\"300\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361-169x300.jpg 169w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361-768x1367.jpg 768w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361-575x1024.jpg 575w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170322_1326361.jpg 1456w\" sizes=\"auto, (max-width: 169px) 100vw, 169px\" \/><\/a><\/p>\n<p>But was functional!<\/p>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170518_1333441.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-144\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170518_1333441-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170518_1333441-225x300.jpg 225w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/IMG_20170518_1333441-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>&#8230; until the LS293 exploded..<\/p>\n<p>We were a bit too excited to test the whole thing, that we bypassed basic checks such as how much current motors were asking for, and LS293 temperature.<\/p>\n<p>It happened that an adhoc repair we did for the steering prevented the front motor from moving freely, and additional torque made the motor take more current than preliminary tests.<\/p>\n<p>=&gt; we went well beyond internal LS293 h-bridges max current specs<\/p>\n<p>Consequence:<\/p>\n<ul>\n<li>we modelised and 3d printed the broken part to have cleaner repair:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/upload.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-143\" src=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/upload-300x179.png\" alt=\"\" width=\"300\" height=\"179\" srcset=\"https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/upload-300x179.png 300w, https:\/\/www.fabidouille.com\/wp-content\/uploads\/2018\/03\/upload.png 688w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li>we realised our original schematics could be improved by enlarging ground plane, also used to dissipate heat<\/li>\n<li>maybe we should use a DC motor with max current usage within our LS293 specs\u00a0<img decoding=\"async\" class=\"emoticon emoticon-smile\" src=\"https:\/\/rndwww.nce.amadeus.net\/confluence\/s\/fr_FR\/5998\/b35c841f380357005e7608cc93741793c4035766.1\/_\/images\/icons\/emoticons\/smile.png\" alt=\"(sourire)\" data-emoticon-name=\"smile\" \/><\/li>\n<li>maybe we should use a servo\/step motor, much better suited for steering than original DC motor<\/li>\n<\/ul>\n<p>and here we are now, we&rsquo;ll be back with latest updates!<\/p>\n<h1 id=\"aMakerBelAir-revivingoldwire-guidedbuggy-Nextsteps\">Next steps<\/h1>\n<p>Once we have all basics working for our car, we want to plug one of the many sensors we have (ultrasonic, rgb, we have wide angle camera with RF transmission..), put basic AI (fitting in arduino&rsquo;s atmel cpu), then using advanced controller (possibly configured via openpilot) and more advanced stuff (remote control via reinforcement learning running on PC..).<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bonjour, un article un peu sp\u00e9cial, puisqu&rsquo;il s&rsquo;agit d&rsquo;un copie colle d&rsquo;un article (assez ancien) fait dans le cadre d&rsquo;un club maker dont je fais parti: Goal is to present a bit what we did, what we have, what we&rsquo;re aiming at in the short term.. Our first project One of the toy attracted us,&hellip;<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/www.fabidouille.com\/?p=127\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[4],"tags":[],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-arduino"],"_links":{"self":[{"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":5,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fabidouille.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}