{"id":4921,"date":"2026-07-15T09:31:19","date_gmt":"2026-07-15T16:31:19","guid":{"rendered":"https:\/\/www.donluc.com\/?p=4921"},"modified":"2026-07-15T09:31:19","modified_gmt":"2026-07-15T16:31:19","slug":"project-12-robotics-potentiometer-mk42","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=4921","title":{"rendered":"Project #12: Robotics \u2013 Potentiometer \u2013 Mk42"},"content":{"rendered":"<div style=\"width: 1200px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4921-1\" width=\"1200\" height=\"675\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #Potentiometer #DCMotor #Robotics #ArduinoUNO #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\/DL2606Mk06a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06a.jpg\" alt=\"Potentiometer\" width=\"720\" height=\"768\" class=\"alignnone size-full wp-image-4923\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06a.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06a-281x300.jpg 281w\" 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\/DL2606Mk06b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06b.jpg\" alt=\"Potentiometer\" width=\"720\" height=\"404\" class=\"alignnone size-full wp-image-4924\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06b-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\/DL2606Mk06c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06c.jpg\" alt=\"\\Potentiometer\" width=\"720\" height=\"404\" class=\"alignnone size-full wp-image-4925\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2026\/07\/DL2606Mk06c-300x168.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Gravity: Analog Rotation Potentiometer Sensor<\/strong><\/p>\n<p>It is based on multi-turn precision potentiometer. It can rotate up to 10 laps. If the sensor input 5V voltage power, then the 5000mV will be divided into 3600 portions ( 10  laps ), when you adjust the rotation of the 3 degrees and then the voltage will have 2mV change, so you can accurately achieve the effect of voltage with small changes. and it is easy to be connected to Arduino with our sensor expansion board. <\/p>\n<p><strong>DL2606Mk06<\/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: Analog Rotation Potentiometer Sensor<br \/>\n1 x Gravity: 130 DC Motor Module<br \/>\n1 x USB Battery Pack<br \/>\n1 x USB Mini-B Cable<\/p>\n<p><strong>DL2606Mk06p<\/strong><\/p>\n<p><strong>DL2606Mk06p.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 Potentiometer \u2013 Mk42\r\n12-42\r\nDL2606Mk06p.ino\r\nDL2606k06\r\n1 x Crowduino Uno - SD\r\n1 x Crowtail - Base Shield\r\n1 x Adafruit SSD1306\r\n1 x Gravity: Analog Rotation Potentiometer Sensor\r\n1 x Gravity: 130 DC Motor Module\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\n\r\n\/\/ iPot\r\nint iPot = A0;\r\n\/\/ Pot State\r\nint iPotState = 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-42&quot;;\r\n\r\nvoid loop() {\r\n  \r\n  \/\/ Read the analog in value:\r\n  iPotState = analogRead(iPot);\r\n\r\n  \/\/ Map it to the range of the analog out\r\n  motorSpeed = map(iPotState, 0, 1023, 0, 255);\r\n\r\n  \/\/ PWM speed control\r\n  analogWrite(motorPin, motorSpeed);\r\n \r\n  \/\/ isDisplay Potentiometer\r\n  isDisplayPotentiometer();\r\n\r\n  \/\/ Delay\r\n  delay( 20 );\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;Potentiometer&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 Potentiometer\r\nvoid isDisplayPotentiometer(){\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;Potentiometer&quot;);\r\n  \/\/ HIGH or LOW\r\n  display.setCursor(0,40);\r\n  display.print( motorSpeed );\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  \/\/ 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 #Potentiometer #DCMotor #Robotics #ArduinoUNO #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Gravity: Analog Rotation Potentiometer Sensor It is based on multi-turn precision potentiometer. It can rotate up to 10 laps. If the sensor input 5V voltage power, then the 5000mV will be divided into 3600 portions ( &#8230; <a title=\"Project #12: Robotics \u2013 Potentiometer \u2013 Mk42\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=4921\" aria-label=\"Read more about Project #12: Robotics \u2013 Potentiometer \u2013 Mk42\">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,397,50,49,317,38,59,115,5,287],"tags":[6,92,102,4,320,87,19,85,24,431,9,27,95,33,34,108],"class_list":["post-4921","post","type-post","status-publish","format-standard","hentry","category-robotics-projerts","category-arduino-digitalelectronics","category-arduino","category-consultant","category-dfrobot","category-digitalelectronics","category-fritzing","category-e-mentor","category-microcontrollers","category-program","tag-arduino","tag-battery","tag-components","tag-consultant","tag-dfrobot","tag-display","tag-electronics","tag-fritzing","tag-microcontroller","tag-potentiometer","tag-programming","tag-projects-2","tag-robotic","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4921","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=4921"}],"version-history":[{"count":2,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4921\/revisions"}],"predecessor-version":[{"id":4927,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4921\/revisions\/4927"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}