{"id":4905,"date":"2026-07-01T09:42:28","date_gmt":"2026-07-01T16:42:28","guid":{"rendered":"https:\/\/www.donluc.com\/?p=4905"},"modified":"2026-07-01T09:42:28","modified_gmt":"2026-07-01T16:42:28","slug":"project-12-robotics-dc-motor-mk41","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=4905","title":{"rendered":"Project #12: Robotics \u2013 DC Motor \u2013 Mk41"},"content":{"rendered":"<div style=\"width: 1200px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4905-1\" width=\"1200\" height=\"675\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #DCMotor #Robotics #FireBeetle2ESP32E #ESP32 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04a.jpg\" alt=\"DC Motor\" width=\"720\" height=\"723\" class=\"alignnone size-full wp-image-4907\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04a.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04a-300x300.jpg 300w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04a-150x150.jpg 150w\" 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\/2026\/07\/DL2606Mk04b-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04b-1.jpg\" alt=\"DC Motor\" width=\"720\" height=\"404\" class=\"alignnone size-full wp-image-4909\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04b-1.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04b-1-300x168.jpg 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\/2026\/07\/DL2606Mk04c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04c.jpg\" alt=\"DC Motor\" width=\"720\" height=\"404\" class=\"alignnone size-full wp-image-4910\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk04c-300x168.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Gravity: 130 DC Motor Module<\/strong><\/p>\n<p>Gravity: 130 DC Motor Module combines a classic 130-size brushed motor with an onboard transistor control circuit, creating a compact actuator solution for rapid prototyping and embedded motion projects. The integrated switching stage allows direct digital control from popular development platforms such as Arduino without requiring a separate motor driver board. A standardized Gravity pin connector simplifies wiring and improves reliability during experimentation. This small DC motor unit supports PWM-based speed control, making the module suitable for robotics mechanisms, airflow experiments, and interactive hardware builds where quick installation and stable power switching are important.<\/p>\n<p><strong>DL2606Mk04<\/strong><\/p>\n<p>1 x Crowduino Uno &#8211; SD<br \/>\n1 x Crowtail &#8211; Base Shield<br \/>\n1 x Adafruit SSD1306<br \/>\n1 x Gravity: 130 DC Motor Module<br \/>\n1 x Crowtail- Button 2.0- Green<br \/>\n1 x USB Battery Pack<br \/>\n1 x USB Mini-B Cable<\/p>\n<p><strong>DL2606Mk04p<\/strong><\/p>\n<p><strong>DL2606Mk04p.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 \u2013 DC Motor \u2013 Mk41\r\n12-41\r\nDL2606Mk04p.ino\r\nDL2606k04\r\n1 x Crowduino Uno - SD\r\n1 x Crowtail - Base Shield\r\n1 x Adafruit SSD1306\r\n1 x Gravity: 130 DC Motor Module\r\n1 x Crowtail- Button 2.0- Green\r\n1 x USB Battery Pack\r\n1 x USB Mini-B Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ EEPROM Library to Read and Write EEPROM with Unique ID for Unit\r\n#include &quot;EEPROM.h&quot;\r\n\/\/ Wire\r\n#include &lt;Wire.h&gt;\r\n\/\/ Adafruit SSD1306\r\n#include &lt;Adafruit_SSD1306.h&gt;\r\n\r\n\/\/ Adafruit SSD1306\r\n#define SCREEN_WIDTH 128\r\n#define SCREEN_HEIGHT 64\r\n#define OLED_RESET -1\r\nAdafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &amp;Wire, OLED_RESET);\r\n\r\n\/\/ Motor drive pin 12\r\nint motorPin = 12;\r\n\/\/ Define motor speed\r\nint motorSpeed;\r\nString sOne = &quot;&quot;; \r\n\r\n\/\/ iButton\r\nint iButton = 11;\r\n\/\/ Button State\r\nint iButtonState = 0;\r\n\r\n\/\/ Software Version Information\r\n\/\/ EEPROM Unique ID Information\r\nString uid = &quot;&quot;;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;12-41&quot;;\r\n\r\nvoid loop() {\r\n  \r\n  \/\/ Read the input pin:\r\n  iButtonState = digitalRead(iButton);\r\n\r\n  if (iButtonState == HIGH) {\r\n      \r\n   \/\/ PWM speed control\r\n   motorSpeed = 255;\r\n   analogWrite(motorPin, motorSpeed);\r\n   sOne = &quot;HIGH&quot;;\r\n\r\n  }\r\n  else { \r\n   \r\n   \/\/ PWM speed control\r\n   motorSpeed = 0;\r\n   analogWrite(motorPin, motorSpeed);\r\n   sOne = &quot;LOW&quot;;\r\n\r\n  }\r\n\r\n  \/\/ isDisplay Motor\r\n  isDisplayMotor();\r\n\r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Adafruit SSD1306\r\n\/\/ isDisplayUID\r\nvoid isDisplayUID(){\r\n\r\n    \/\/ Intentar ambas direcciones\r\n  if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {\r\n    \/\/Serial.println(&quot;Error con 0x3C, probando 0x3D...&quot;);\r\n    if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3D)) {\r\n      \/\/Serial.println(&quot;Error OLED en ambas direcciones&quot;);\r\n      return;\r\n    }\r\n  }\r\n  \r\n  \/\/ Clear Display\r\n  display.clearDisplay();\r\n  display.setTextSize(1);\r\n  display.setTextColor(SSD1306_WHITE);\r\n  \/\/ Don Luc Electronics\r\n  display.setCursor(0,0);\r\n  display.println(&quot;Don Luc Electronics&quot;);\r\n  \/\/ Motor Drive\r\n  display.setCursor(0,10);\r\n  display.print(&quot;Motor Drive&quot;);\r\n \/\/ Version\r\n  display.setCursor(0,20);\r\n  display.print(&quot;Version&quot;);\r\n  display.setCursor(0,30);\r\n  display.print( sver );\r\n  \/\/ EEPROM\r\n  display.setCursor(0,40);\r\n  display.print(&quot;EEPROM&quot;);\r\n  display.setCursor(0,50);\r\n  display.print( uid );\r\n  \/\/ Display\r\n  display.display();\r\n\r\n}\r\n\/\/ isDisplay Motor\r\nvoid isDisplayMotor(){\r\n\r\n  \/\/ Clear Display\r\n  display.clearDisplay();\r\n  display.setTextSize(1);\r\n  display.setTextColor(SSD1306_WHITE);\r\n  \/\/ Don Luc Electronics\r\n  display.setCursor(0,0);\r\n  display.println(&quot;Don Luc Electronics&quot;);\r\n  \/\/ Motor Drive\r\n  display.setCursor(0,20);\r\n  display.print(&quot;Motor Drive&quot;);\r\n  \/\/ HIGH or LOW\r\n  display.setCursor(0,40);\r\n  display.print( sOne );\r\n  \/\/ Display\r\n  display.display();\r\n\r\n}\r\n<\/pre>\n<p><strong>getEEPROM.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ isUID EEPROM Unique ID\r\nvoid isUID()\r\n{\r\n  \r\n  \/\/ Is Unit ID\r\n  uid = &quot;&quot;;\r\n  for (int x = 0; x &lt; 7; x++)\r\n  {\r\n    uid = uid + char(EEPROM.read(x));\r\n  }\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 \r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ EEPROM Unique ID\r\n  isUID();\r\n\r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ iButton\r\n  pinMode(iButton, INPUT);\r\n\r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ DFRobot Display 320x480 - UID\r\n  \/\/ Don Luc Electronics\r\n  \/\/ Version\r\n  \/\/ EEPROM\r\n  isDisplayUID();\r\n\r\n  \/\/ Wait for the sensor to heat up for 20 seconds\r\n  delay( 5000 );\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>Consultant, R&#038;D, Electronics, IoT, Teacher and Instructor<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Automation<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank , Underwater and UAV Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial,  Marine and UAV<\/li>\n<li>Machine Learning<\/li>\n<li>Artificial Intelligence (AI)<\/li>\n<li>RTOS<\/li>\n<li>Sensors, eHealth Sensors, Biosensor, and Biometric<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Consulting<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2026<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/LucPaquinCVEng2026Mk01.pdf<br \/>\nhttps:\/\/www.donluc.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\/@thesass2063<br \/>\n<strong>DFRobot:<\/strong> https:\/\/learn.dfrobot.com\/user-10186.html<br \/>\n<strong>TikTok:<\/strong> https:\/\/www.tiktok.com\/@luc.paquin8<br \/>\n<strong>Hackster:<\/strong> https:\/\/www.hackster.io\/luc-paquin<br \/>\n<strong>LinkedIn:<\/strong> https:\/\/www.linkedin.com\/in\/jlucpaquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #DCMotor #Robotics #FireBeetle2ESP32E #ESP32 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Gravity: 130 DC Motor Module Gravity: 130 DC Motor Module combines a classic 130-size brushed motor with an onboard transistor control circuit, creating a compact actuator solution for rapid prototyping and embedded motion projects. The integrated &#8230; <a title=\"Project #12: Robotics \u2013 DC Motor \u2013 Mk41\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=4905\" aria-label=\"Read more about Project #12: Robotics \u2013 DC Motor \u2013 Mk41\">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,50,49,317,38,368,59,115,5,287,58,10],"tags":[6,92,102,4,200,320,87,369,19,85,24,9,27,95,34,108],"class_list":["post-4905","post","type-post","status-publish","format-standard","hentry","category-robotics-projerts","category-arduino","category-consultant","category-dfrobot","category-digitalelectronics","category-elecrow","category-fritzing","category-e-mentor","category-microcontrollers","category-program","category-arduino-programming","category-projects","tag-arduino","tag-battery","tag-components","tag-consultant","tag-dc-motor","tag-dfrobot","tag-display","tag-elecrow","tag-electronics","tag-fritzing","tag-microcontroller","tag-programming","tag-projects-2","tag-robotic","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4905","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=4905"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4905\/revisions"}],"predecessor-version":[{"id":4911,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4905\/revisions\/4911"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}