{"id":1647,"date":"2015-12-12T16:34:18","date_gmt":"2015-12-12T20:04:18","guid":{"rendered":"http:\/\/blog.danjoannis.com\/?p=1647"},"modified":"2021-12-18T13:54:47","modified_gmt":"2021-12-18T17:24:47","slug":"steve-new-chassis-3d-printing-fresh-electronics","status":"publish","type":"post","link":"https:\/\/blog.danjoannis.com\/?p=1647","title":{"rendered":"STEVE &#8211; New chassis, 3D printing, fresh electronics!"},"content":{"rendered":"<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_133544.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1653 alignright\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_133544-225x300.jpg\" alt=\"IMG_20151122_133544\" width=\"186\" height=\"248\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_133544-225x300.jpg 225w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_133544-768x1024.jpg 768w\" sizes=\"auto, (max-width: 186px) 100vw, 186px\" \/><\/a>Plenty has happened since our last post, and most of it can be summarized with the following picture.<\/p>\n<p>Yup, lots of wires. New body, too. With my 3D printer back in service, cases were printed for the electronics, along with new wheels all around. These new wheels add around an inch of ground clearance, and better off-road traction.<\/p>\n<p>As well, the first shipment of new parts has arrived: a USB WiFi adapter, an ultrasonic range sensor, H-Bridge motor controller, 9-DOF IMU and a temperature probe.<\/p>\n<p>There are a lot of really cool developments in this post; let&#8217;s dive in.<\/p>\n<p><!--more--><\/p>\n<h2>Chassis<\/h2>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/31O0SVih3CL1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-1654 size-full\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/31O0SVih3CL1-e1448213297752.jpg\" alt=\"31O0SVih3CL[1]\" width=\"250\" height=\"163\"><\/a>By far the most obvious change is STEVE&#8217;s body. Before, a Porsche 944 served as the initial test platform. A visit to the thrift store scored a remote control Humvee, with 6-wheel drive.<\/p>\n<p>It was originally designed as a wall climber, so the first order of business was removing all the fans, duct-work and Styrofoam. The result was a skeleton ready to be re-purposed.<\/p>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/20151106_235827-e1448213618364.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1659 alignright\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/20151106_235827-e1448213618364-300x266.jpg\" alt=\"20151106_235827\" width=\"242\" height=\"215\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/20151106_235827-e1448213618364-300x266.jpg 300w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/20151106_235827-e1448213618364-1024x907.jpg 1024w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/a>The biggest difference between the Humvee and the Porsche is the drive train. The Porsche had front steering wheels, while the Humvee is driven like a tank. This forced major changes to the driving control code, since steering now involved slowing down one of the drive motors, rather than turning the front wheels.<\/p>\n<p>This is good news, though. It is much easier to design a robot that can turn in place, than one which must learn how to complete a 3-point turn. There is a small limitation to this platform, and it is obvious by looking at the product image &#8211; the tires are just not big enough. While perfectly comfortable driving along flat walls, these tiny wheels are useless on the ground.<\/p>\n<p>Is it 3D printer time?<\/p>\n<h2>3D Printing<\/h2>\n<p>Yes, yes it is.<a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Wheel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1664 alignright\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Wheel-261x300.png\" alt=\"Wheel\" width=\"261\" height=\"300\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Wheel-261x300.png 261w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Wheel.png 553w\" sizes=\"auto, (max-width: 261px) 100vw, 261px\" \/><\/a><\/p>\n<p>The stock wheels just won&#8217;t do, so with a bit of 3D modelling and a pair of calipers, new knobby tires were designed. These should be fairly good off-road, and they do reasonably well on floors.<\/p>\n<p>Four large ones and two smaller ones printed, and STEVE is almost 1.5&#8243; off the floor. Lots of clearance, though it required cutting some plastic from the toy&#8217;s shell to make it all fit.<\/p>\n<p>A few more hours of modelling and printing later, and a few more parts were made.<\/p>\n<ul>\n<li>Floor-pan for holding electronics<\/li>\n<li>Raspberry Pi enclosure<\/li>\n<li>Voltage regulator enclosure<\/li>\n<li>Arduino bumper<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_155406.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1673\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_155406-225x300.jpg\" alt=\"IMG_20151212_155406\" width=\"225\" height=\"300\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_155406-225x300.jpg 225w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_155406-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<h2>New Parts<\/h2>\n<p>Now that the WiFi adapter is here, the first thing to do was to cut the tether. STEVE is now wireless, and no longer needs Ethernet. Over WiFi I can transfer files, connect over SSH, and even flash the Arduino wireless using the Pi!<\/p>\n<p>The temperature probe doesn&#8217;t have any immediate application, so it hasn&#8217;t been installed yet. The ultrasonic range finder, however, is absolutely very cool and was tested post-haste.<\/p>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_104542.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1651 alignleft\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_104542-225x300.jpg\" alt=\"IMG_20151122_104542\" width=\"225\" height=\"300\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_104542-225x300.jpg 225w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_104542-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>To mount it to STEVE, I printed off a bracket from Thingiverse designed for the HC-SR04 Ultrasonic Range Finder. Some hot glue holds it in place.<\/p>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_121309.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1652\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_121309-300x225.jpg\" alt=\"IMG_20151122_121309\" width=\"300\" height=\"225\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_121309-300x225.jpg 300w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/11\/IMG_20151122_121309-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_163013.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1674 alignright\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_163013-225x300.jpg\" alt=\"IMG_20151212_163013\" width=\"225\" height=\"300\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_163013-225x300.jpg 225w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/IMG_20151212_163013-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a>All of the code running on the Arduino is written in AVR C. Unfortunately, a lot of libraries for the range finder are written in Arduino C++. It took a fair bit of digging and piecing together code fragments in order to make my own AVR library for the range finder. However, it works well and returns the distance in centimeters.<\/p>\n<p>The new motor controller was a drop in replacement, which allowed me to clean up the wiring a bit. It tends to get warm while doing nothing, unlike my original non-heatsinked controller, but I&#8217;ll see how the $4 part fares long-term.<\/p>\n<p>You might noticed I skipped over the coolest part &#8211; the 9 DOF Inertial Measurement Unit. This is because I haven&#8217;t been able to bring it up yet. The specs say it is 3-5V tolerant, though this is a clone of a unit that only supports 3.3V. My I2C libraries are likely not very good either, so I will need to do a bit more development before everyone is talking happily.<\/p>\n<h2>Software<\/h2>\n<p>All of these new toys are nothing without some software to tie it all together. A lot of new features and libraries were added to <em>steve_io<\/em>, the AVR component of STEVE. Now that the platform is no longer tethered, development of the Linux software which will function as STEVE&#8217;s brain can begin.<\/p>\n<p>Initially I was looking at Python because of how popular projects that use it are. However, I&#8217;m not feeling as comfortable as I&#8217;d like with it, and I&#8217;m thinking of writing <em>steve_linux<\/em> in C++. By the next update there should be plenty of development on this.<\/p>\n<p>With new development coming, some changes needed to be made for the development environment. STEVE will need access to the same files I&#8217;m using to develop on my PC. Dropbox is not ideally suited to this, and is not trivial to set up on the Pi. I decided to dust off my GitHub account, which also allows me to share all my code and files in the future.<\/p>\n<p>So far, GitHub is a manageable way to control code revisions and keep files synchronized between the Pi and my PC. I&#8217;ve gotten so used to Subversion, though, and am finding GitHub adds a few more steps to the workflow. We&#8217;ll see with time what I decide to go with.<\/p>\n<p><a href=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Steve-Built.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1671\" src=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Steve-Built-300x200.jpg\" alt=\"Steve Built\" width=\"300\" height=\"200\" srcset=\"https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Steve-Built-300x200.jpg 300w, https:\/\/blog.danjoannis.com\/wp-content\/uploads\/2015\/12\/Steve-Built.jpg 953w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<ul>\n<li>STEVE has a new body better suited for off-road traveling.<\/li>\n<li>New parts have arrived, and all but the IMU are installed and working.<\/li>\n<li>Development of the Linux software can now begin, and hopefully a web remote control interface will be built in the next few weeks.<\/li>\n<li>STEVE looks really cool.<\/li>\n<\/ul>\n<p>I&#8217;m really excited about all of this, more to come!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plenty has happened since our last post, and most of it can be summarized with the following picture. Yup, lots of wires. New body, too. With my 3D printer back in service, cases were printed for the electronics, along with new wheels all around. These new wheels add around an inch of ground clearance, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1652,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[296,4,285,9,314],"tags":[322,321,320,317,315,319,293],"class_list":["post-1647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d-printing","category-electronics","category-networking","category-software","category-steve","tag-c","tag-github","tag-imu","tag-raspberry-pi","tag-robot","tag-ultrasonic","tag-wifi"],"_links":{"self":[{"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/posts\/1647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1647"}],"version-history":[{"count":27,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/posts\/1647\/revisions"}],"predecessor-version":[{"id":1799,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/posts\/1647\/revisions\/1799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=\/wp\/v2\/media\/1652"}],"wp:attachment":[{"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.danjoannis.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}