{"id":2778,"date":"2023-03-06T14:01:24","date_gmt":"2023-03-06T14:01:24","guid":{"rendered":"http:\/\/funkboxing.com\/wordpress\/?p=2778"},"modified":"2023-03-06T14:01:27","modified_gmt":"2023-03-06T14:01:27","slug":"esp32copycat","status":"publish","type":"post","link":"http:\/\/funkboxing.com\/wordpress\/?p=2778","title":{"rendered":"ESP32CopyCat"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"2560\" height=\"1928\" src=\"http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062217153-scaled.jpg\" alt=\"\" class=\"wp-image-2779\" srcset=\"http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062217153-scaled.jpg 2560w, http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062217153-300x226.jpg 300w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"2560\" height=\"1928\" src=\"http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062232756-scaled.jpg\" alt=\"\" class=\"wp-image-2780\" srcset=\"http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062232756-scaled.jpg 2560w, http:\/\/funkboxing.com\/wordpress\/wp-content\/uploads\/2023\/03\/IMG_20230306_062232756-300x226.jpg 300w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n\n\n\n<p>I never improved my &#8216;ESPCreep&#8217; (https:\/\/github.com\/funkboxing\/espcreep) Servo Drive robot car, mostly because the 3d printing issues were tiresome, but I still wanted a simple drive platform and kept looking around. I found this pretty nice little &#8216;Quicker&#8217; package on Aliexpress (on the left). https:\/\/www.aliexpress.us\/item\/3256803512050979.html.<\/p>\n\n\n\n<p>After looking at it online for about a year I finally talked myself into ordering one. A month later it arrived and I didn&#8217;t trust whatever they flashed from the factory and had trouble getting the source code because it was on Baidu and in Chinese. From the one pdf I could access and some googling I found the code must have been derived from this: https:\/\/www.pilothobbies.com\/product\/scout32\/. So with that in hand I was able to flash a working control webserver. I was pretty happy with the purchase but after driving it around for about 5 minutes I started thinking about making my own.In the past I&#8217;d chosen 360deg servo drive because on paper it&#8217;s a great solution. One PWM line per motor controls both speed and direction. Problem is you&#8217;re limited to a servo&#8217;s power and package, which aren&#8217;t ideal. Also you have to find the &#8216;center\\stop&#8217; position on each servo and it&#8217;s never exactly zero. DC motors need a motor controller and that increases the part count.<\/p>\n\n\n\n<p>But seeing the &#8216;Quicker&#8217; car and code I saw it&#8217;s pretty easy to work with DRV8833 H-bridges. It&#8217;s only 2 PWM per motor and you get all the power and options of using DC motors. Also I happened to have a bunch of HW-627 DRV8833 modules I got for steppers so it wasn&#8217;t hard to start breadboarding it all up. Also had some boost-charge modules and some 18650 batteries and holders.<\/p>\n\n\n\n<p>So after breadboarding success I soldered\\glued the monstrosity on the right together. Though the wheels are literally made of garbage it moves around okay. After that I remembered Fritzing and OSH Park exist so I slapped together a PCB and sent off to have 3 made for $20, which includes expedited production.<br>Let&#8217;s just take a second to think about how awesome it is that things exist that let me write that last sentence, and that it only cost $20.<\/p>\n\n\n\n<p>So while I&#8217;m waiting for that to come in I&#8217;ve got some other notions about a &#8216;Modular Robotic Funhouse&#8217; that I need to play with. I&#8217;ll post more on that later. I&#8217;ll post the code later, right now it&#8217;s still just the Scout32 code with ArduinoOTA added for convenience.<\/p>\n\n\n\n<p>Here are the parts:<br>ESP32-Cam<br>HW-627 (DRV8833 Dual H-Bridge)<br>HW-775 (Boost-Charge)<br>18650 Battery holder and battery<br>(2) N20 Motors<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I never improved my &#8216;ESPCreep&#8217; (https:\/\/github.com\/funkboxing\/espcreep) Servo Drive robot car, mostly because the 3d printing issues were tiresome, but I still wanted a simple drive platform and kept looking around. I found this pretty nice little &#8216;Quicker&#8217; package on Aliexpress (on the left). https:\/\/www.aliexpress.us\/item\/3256803512050979.html. After looking at it online for about a year I finally <a href='http:\/\/funkboxing.com\/wordpress\/?p=2778' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2778"}],"collection":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2778"}],"version-history":[{"count":2,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2778\/revisions"}],"predecessor-version":[{"id":2782,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2778\/revisions\/2782"}],"wp:attachment":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2778"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}