{"id":2957,"date":"2022-01-07T06:39:40","date_gmt":"2022-01-07T14:39:40","guid":{"rendered":"https:\/\/www.donluc.com\/?p=2957"},"modified":"2022-01-07T06:39:40","modified_gmt":"2022-01-07T14:39:40","slug":"project-12-robotics-drv8835-dual-motor-driver-mk17","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=2957","title":{"rendered":"Project #12: Robotics &#8211; DRV8835 Dual Motor Driver &#8211; Mk17"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2957-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #Robotics #Arduino #ArduinoUNO #DCMotor #MotorDriver #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01a.png\" alt=\"DRV8835 Dual Motor Driver\" width=\"720\" height=\"580\" class=\"alignnone size-full wp-image-2959\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01a.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01a-300x242.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01b.png\" alt=\"DRV8835 Dual Motor Driver\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2960\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01b.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01b-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01c.png\" alt=\"DRV8835 Dual Motor Driver\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-2961\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01c.png 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2022\/01\/DL2201Mk01c-300x200.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>DRV8835 Dual Motor Driver Carrier<\/strong><\/p>\n<p>This tiny breakout board for TI\u2019s DRV8835 dual motor driver can deliver 1.2 A per channel continuously (1.5 A peak) to a pair of DC motors, and it supports two possible control interfaces for added flexibility of use: IN\/IN and PHASE\/ENABLE. With an operating voltage range from 0 V to 11 V and built-in protection against reverse-voltage, under-voltage, over-current, and over-temperature, this driver is a great solution for powering up to two small, low-voltage motors. The carrier board has the form factor of a 14-pin DIP package, which makes it easy to use with standard solderless breadboards and 0.1 inch perfboards.<\/p>\n<p><strong>Solarbotics RM2 (High-Power Motor for GM2\/3\/8\/9)<\/strong><\/p>\n<p>This high-power brushed DC motor fits in the GM2\/3\/8\/9 series of gear motors, offering approximately 3 times the speed, twice the torque and quadruple the power-draw. Retrofitting the gear motor is easy \u2013 just remove the motor retainer strap, transfer the pinion gear, and reinstall \u2013 that\u2019s it.<\/p>\n<p><strong>DL2201Mk01<\/strong><\/p>\n<p>1 x Arduino UNO<br \/>\n1 x DRV8835 Dual Motor Driver Carrier<br \/>\n2 x Solarbotics RM2<br \/>\n2 x Pololu Universal Aluminum Mounting Hub 3mm Shaft, #4-40 Holes<br \/>\n2 x Pololu Mini Plastic Gearmotor Bracket Pair &#8211; Wide<br \/>\n2 x Rotary Potentiometer &#8211; 10k Ohm<br \/>\n2 x Knob<br \/>\n1 x Half-Size Breadboard<br \/>\n1 x Adafruit Perma-Proto Quarter-Sized Breadboard<br \/>\n1 x SparkFun Cerberus USB Cable<\/p>\n<p><strong>Arduino UNO<\/strong><\/p>\n<p>M11 &#8211; Digital 2<br \/>\nM12 &#8211; Digital 3<br \/>\nM21 &#8211; Digital 4<br \/>\nM22 &#8211; Digital 5<br \/>\nPO0 &#8211; Analog A0<br \/>\nPO1 &#8211; Analog A1<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>DL2201Mk01p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/* ***** Don Luc Electronics \u00a9 *****\r\nSoftware Version Information\r\nProject #12: Robotics - DRV8835 Dual Motor Driver - Mk17\r\n01-01\r\nDL2201Mk01p.ino\r\n1 x Arduino UNO\r\n1 x DRV8835 Dual Motor Driver Carrier\r\n2 x Solarbotics RM2\r\n2 x Pololu Universal Aluminum Mounting Hub 3mm Shaft, #4-40 Holes\r\n2 x Pololu Mini Plastic Gearmotor Bracket Pair - Wide\r\n2 x Rotary Potentiometer - 10k Ohm\r\n2 x Knob\r\n1 x Half-Size Breadboard\r\n1 x Adafruit Perma-Proto Quarter-Sized Breadboard\r\n1 x SparkFun Cerberus USB Cable\r\n*\/\r\n\r\n\/\/ Include the library code:\r\n\r\n\/\/ Solarbotics RM2 -&gt; 1\r\n#define MOTOR1_IN1 2\r\n#define MOTOR1_IN2 3\r\n\/\/ Solarbotics RM2 -&gt; 2\r\n#define MOTOR2_IN1 4\r\n#define MOTOR2_IN2 5\r\n\r\n\/\/ Rotary Potentiometer -&gt; 1\r\nint s1 = A0;\r\n\/\/ Speed -&gt; 1\r\nint s1s = 0;\r\n\/\/ Rotary Potentiometer -&gt; 2\r\nint s2 = A1;\r\n\/\/ Speed -&gt; 2\r\nint s2s = 0;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;12-17p&quot;;\r\n\/\/ Unit ID information\r\nString uid = &quot;&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ RM2 Motor\r\n  isRM2Motor();\r\n\r\n}\r\n<\/pre>\n<p><strong>getRM2Motor.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ RM2 Motor\r\n\/\/ Setup RM2 Motor\r\nvoid isSetupRM2Motor() {\r\n\r\n  \/\/ Solarbotics RM2 -&gt; 1\r\n  pinMode(MOTOR1_IN1, OUTPUT);\r\n  pinMode(MOTOR1_IN2, OUTPUT);\r\n  \/\/ Solarbotics RM2 -&gt; 2\r\n  pinMode(MOTOR2_IN1, OUTPUT);\r\n  pinMode(MOTOR2_IN2, OUTPUT);\r\n  \r\n}\r\n\/\/ isRM2Motor\r\nvoid isRM2Motor() {\r\n\r\n  \/\/ Rotary Potentiometer -&gt; 1\r\n  s1s = analogRead( s1 );\r\n  s1s = map(s1s, 0, 1023, 0, 200);\r\n  \/\/ Rotary Potentiometer -&gt; 2\r\n  s2s = analogRead( s2 );  \r\n  s2s = map(s2s, 0, 1023, 0, 200);\r\n\r\n  \/\/ Solarbotics RM2 -&gt; 1 Forward\r\n  digitalWrite(MOTOR1_IN1, LOW);\r\n  analogWrite(MOTOR1_IN2, s1s);\r\n  delay(10);\r\n\r\n  \/\/ Solarbotics RM2 -&gt; 2 Backward\r\n  digitalWrite(MOTOR2_IN2, LOW);\r\n  analogWrite(MOTOR2_IN1, s2s);\r\n  delay(10);\r\n\r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup() {\r\n\r\n  \/\/ Solarbotics RM2 Motor\r\n  isSetupRM2Motor();\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Technology Experience<\/strong><\/p>\n<ul>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi,Espressif, etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Robotics<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Desktop Applications (Windows, OSX, Linux, Multi-OS, Multi-Tier, etc&#8230;)<\/li>\n<li>Mobile Applications (Android, iOS, Blackberry, Windows Mobile, Windows CE, etc&#8230;)<\/li>\n<li>Web Applications (LAMP, Scripting, Java, ASP, ASP.NET, RoR, Wakanda, etc&#8230;)<\/li>\n<li>Social Media Programming &#038; Integration (Facebook, Twitter, YouTube, Pinterest, etc&#8230;)<\/li>\n<li>Content Management Systems (WordPress, Drupal, Joomla, Moodle, etc&#8230;)<\/li>\n<li>Bulletin Boards (phpBB, SMF, Vanilla, jobberBase, etc&#8230;)<\/li>\n<li>eCommerce (WooCommerce, OSCommerce, ZenCart, PayPal Shopping Cart, etc&#8230;)<\/li>\n<\/ul>\n<p><strong>Instructor and E-Mentor<\/strong><\/p>\n<ul>\n<li>IoT<\/li>\n<li>PIC Microcontrollers<\/li>\n<li>Arduino<\/li>\n<li>Raspberry Pi<\/li>\n<li>Espressif<\/li>\n<li>Robotics<\/li>\n<li>DOS, Windows, OSX, Linux, iOS, Android, Multi-OS<\/li>\n<li>Linux-Apache-PHP-MySQL<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>J. Luc Paquin \u2013 Curriculum Vitae &#8211; 2021 English &#038; Espa\u00f1ol<\/strong><br \/>\nhttps:\/\/www.jlpconsultants.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Web:<\/strong> https:\/\/www.jlpconsultants.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/channel\/UC5eRjrGn1CqkkGfZy0jxEdA<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #Robotics #Arduino #ArduinoUNO #DCMotor #MotorDriver #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; DRV8835 Dual Motor Driver Carrier This tiny breakout board for TI\u2019s DRV8835 dual motor driver can deliver 1.2 A per channel continuously (1.5 A peak) to a pair of DC motors, and it supports two possible control &#8230; <a title=\"Project #12: Robotics &#8211; DRV8835 Dual Motor Driver &#8211; Mk17\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=2957\" aria-label=\"Read more about Project #12: Robotics &#8211; DRV8835 Dual Motor Driver &#8211; Mk17\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,47,50,49,38,59,5,46,58,10],"tags":[86,6,102,4,200,199,19,85,24,103,9,27,95,33],"class_list":["post-2957","post","type-post","status-publish","format-standard","hentry","category-robotics-projerts","category-adafruit","category-arduino","category-consultant","category-digitalelectronics","category-fritzing","category-microcontrollers","category-pololu","category-arduino-programming","category-projects","tag-adafruit","tag-arduino","tag-components","tag-consultant","tag-dc-motor","tag-drv8835-dual-motor-driver","tag-electronics","tag-fritzing","tag-microcontroller","tag-pololu","tag-programming","tag-projects-2","tag-robotic","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2957"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions"}],"predecessor-version":[{"id":2962,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/2957\/revisions\/2962"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}