{"id":4019,"date":"2023-03-25T09:54:01","date_gmt":"2023-03-25T04:24:01","guid":{"rendered":"https:\/\/learntube.ai\/blog\/?p=4019"},"modified":"2023-03-25T09:54:04","modified_gmt":"2023-03-25T04:24:04","slug":"how-to-control-dc-motors-with-arduino","status":"publish","type":"post","link":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/","title":{"rendered":"How To Control DC Motors With Arduino."},"content":{"rendered":"\n<p>DC motors are widely used in a variety of projects and applications, from robotics to home automation. The Arduino microcontroller is a popular platform for controlling DC motors due to its ease of use and versatility. In this blog, we will discuss how to control DC motors with Arduino.<\/p>\n\n\n\n<p>Firstly, let&#8217;s discuss the components required for controlling DC motors with Arduino. The list of components is as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino board<\/li>\n\n\n\n<li>Breadboard<\/li>\n\n\n\n<li>DC motor(s)<\/li>\n\n\n\n<li>L293D motor driver IC<\/li>\n\n\n\n<li>Jumper wires<\/li>\n\n\n\n<li>Power supply (battery or external adapter)<\/li>\n<\/ul>\n\n\n\n<p>The L293D motor driver IC is a popular choice for controlling DC motors with Arduino. It is a dual H-bridge IC that can drive two DC motors or one stepper motor. The H-bridge configuration allows the direction of the motor to be controlled by the Arduino.<\/p>\n\n\n\n<p><strong>The L293D motor driver IC has the following pin configuration:<\/strong><\/p>\n\n\n\n<p>Pin 1: Enable 1 (EN1)<\/p>\n\n\n\n<p>Pin 2: Input 1 (IN1)<\/p>\n\n\n\n<p>Pin 3: Output 1 (OUT1)<\/p>\n\n\n\n<p>Pin 4: Ground (GND)<\/p>\n\n\n\n<p>Pin 5: Ground (GND)<\/p>\n\n\n\n<p>Pin 6: Output 2 (OUT2)<\/p>\n\n\n\n<p>Pin 7: Input 2 (IN2)<\/p>\n\n\n\n<p>Pin 8: Enable 2 (EN2)<\/p>\n\n\n\n<p>Pin 9: Motor A output (MOTOR A)<\/p>\n\n\n\n<p>Pin 10: Motor A output (MOTOR A)<\/p>\n\n\n\n<p>Pin 11: Motor B output (MOTOR B)<\/p>\n\n\n\n<p>Pin 12: Motor B output (MOTOR B)<\/p>\n\n\n\n<p>Pin 13: Ground (GND)<\/p>\n\n\n\n<p>Pin 14: Supply voltage (Vs)<\/p>\n\n\n\n<p>Pin 15: Input voltage (Vss)<\/p>\n\n\n\n<p>To control a DC motor with Arduino using the L293D motor driver IC, follow these steps:<\/p>\n\n\n\n<p><strong>Step 1: Connect the motor driver IC to the Arduino<\/strong><\/p>\n\n\n\n<p>Connect pin 1 (EN1) of the L293D IC to pin 9 (PWM) of the Arduino, pin 2 (IN1) to pin 8 of the Arduino, pin 3 (OUT1) to the positive terminal of the DC motor, pin 4 (GND) to GND of the Arduino, pin 5 (GND) to GND of the power supply, pin 6 (OUT2) to the negative terminal of the DC motor, pin 7 (IN2) to pin 7 of the Arduino, pin 8 (EN2) to pin 10 (PWM) of the Arduino, pin 9 (MOTOR A) to the positive terminal of the DC motor, pin 10 (MOTOR A) to the negative terminal of the DC motor, pin 11 (MOTOR B) to the positive terminal of the DC motor, pin 12 (MOTOR B) to the negative terminal of the DC motor, pin 13 (GND) to GND of the power supply, pin 14 (Vs) to the positive terminal of the power supply, and pin 15 (Vss) to 5V of the Arduino.<\/p>\n\n\n\n<p><strong>Step 2 (continued): Write the Arduino code<\/strong><\/p>\n\n\n\n<p>The code above sets up the three required pins as outputs and then sets the direction of the motor to forward by setting one input pin high and the other input pin low. The analogWrite() function is used to vary the speed of the motor, with a value of 255 providing maximum speed.<\/p>\n\n\n\n<p>Here is an example code to rotate the DC motor in the opposite direction:<\/p>\n\n\n\n<p>int enA = 9;<\/p>\n\n\n\n<p>int in1 = 8;<\/p>\n\n\n\n<p>int in2 = 7;<\/p>\n\n\n\n<p>void setup() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;pinMode(enA, OUTPUT);<\/p>\n\n\n\n<p>&nbsp;&nbsp;pinMode(in1, OUTPUT);<\/p>\n\n\n\n<p>&nbsp;&nbsp;pinMode(in2, OUTPUT);<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>void loop() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;digitalWrite(in1, LOW);<\/p>\n\n\n\n<p>&nbsp;&nbsp;digitalWrite(in2, HIGH);<\/p>\n\n\n\n<p>&nbsp;&nbsp;analogWrite(enA, 255);<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>This code sets the direction of the motor to reverse by setting the opposite input pin high and the other input pin low.<\/p>\n\n\n\n<p><strong>Step 3: Upload the code to the Arduino<\/strong><\/p>\n\n\n\n<p>After writing the code, connect the Arduino to your computer using a USB cable, and upload the code to the Arduino using the Arduino IDE.<\/p>\n\n\n\n<p><strong>Step 4: Connect the power supply<\/strong><\/p>\n\n\n\n<p>Connect the power supply (battery or external adapter) to the breadboard and connect the positive and negative terminals to the appropriate pins on the motor driver IC.<\/p>\n\n\n\n<p><strong>Step 5: Test the DC motor<\/strong><\/p>\n\n\n\n<p>After connecting everything, power on the Arduino and the motor should start rotating in the desired direction. You can vary the speed of the motor by changing the value passed to the analogWrite() function.<\/p>\n\n\n\n<p><strong>Additional Points To Keep In Mind:<\/strong><\/p>\n\n\n\n<p><strong>Always use a motor driver: <\/strong>A motor driver like the L293D IC is necessary to protect the Arduino from the high current and voltage required to drive a DC motor. Without a motor driver, the Arduino may be damaged.<\/p>\n\n\n\n<p><strong>Choose the correct power supply:<\/strong> Make sure to choose a power supply that can provide the correct voltage and current for your DC motor. Using a power supply that is too weak can result in the motor not spinning or spinning slowly, while using a power supply that is too strong can damage the motor.<\/p>\n\n\n\n<p><strong>Use PWM for speed control: <\/strong>The analogWrite() function in Arduino uses pulse width modulation (PWM) to vary the speed of the motor. By adjusting the duty cycle of the PWM signal, the speed of the motor can be controlled.<\/p>\n\n\n\n<p><strong>Reverse the motor direction: <\/strong>To reverse the direction of the motor, simply change the input pins that are set high and low in the Arduino code.<\/p>\n\n\n\n<p><strong>Add additional features: <\/strong>Depending on your project, you may want to add additional features like limit switches, encoders, or sensors to provide feedback to the Arduino and enable more advanced control of the motor.<\/p>\n\n\n\n<p><strong>Conclusion:&nbsp;<\/strong><\/p>\n\n\n\n<p>Controlling DC motors with Arduino is a simple and effective way to control the direction and speed of a motor in a variety of applications. By following the steps outlined above and writing the appropriate code, you can easily integrate DC motors into your Arduino projects.<\/p>\n\n\n\n<p>If you&#8217;re looking to enhance your understanding of <a href=\"https:\/\/learntube.ai\/hardware-and-network-security-courses\/arduino-course\">Arduino<\/a>, LearnTube offers an array of online courses to suit your needs. LearnTube provides a comprehensive learning experience through its dedicated learning app and WhatsApp bot. Whether you&#8217;re a beginner or an experienced learner, our platform offers a wide range of courses to cater to your needs. Browse our extensive selection of courses on our <a href=\"https:\/\/learntube.ai\/\">website<\/a> to gain valuable insights.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DC motors are widely used in a variety of projects and applications, from robotics to home automation. The Arduino microcontroller is a popular platform for controlling DC motors due to its ease of use and versatility. In this blog, we will discuss how to control DC motors with Arduino. Firstly, let&#8217;s discuss the components required [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4020,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[279],"tags":[280],"class_list":{"0":"post-4019","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-arduino-hardware-and-network-security","8":"tag-arduino"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Control DC Motors With Arduino. - Learn Tube<\/title>\n<meta name=\"description\" content=\"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we&#039;ll show you how to get your motors running!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Control DC Motors With Arduino. - Learn Tube\" \/>\n<meta property=\"og:description\" content=\"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we&#039;ll show you how to get your motors running!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Tube\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CareerNinjaIndia\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-25T04:24:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-25T04:24:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"665\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Team LearnTube\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team LearnTube\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\"},\"author\":{\"name\":\"Team LearnTube\",\"@id\":\"https:\/\/learntube.ai\/blog\/#\/schema\/person\/0f4e519a2115e9be9c8083e7a41a4e07\"},\"headline\":\"How To Control DC Motors With Arduino.\",\"datePublished\":\"2023-03-25T04:24:01+00:00\",\"dateModified\":\"2023-03-25T04:24:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\"},\"wordCount\":934,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/learntube.ai\/blog\/#organization\"},\"keywords\":[\"Arduino\"],\"articleSection\":[\"Arduino\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\",\"url\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\",\"name\":\"How To Control DC Motors With Arduino. - Learn Tube\",\"isPartOf\":{\"@id\":\"https:\/\/learntube.ai\/blog\/#website\"},\"datePublished\":\"2023-03-25T04:24:01+00:00\",\"dateModified\":\"2023-03-25T04:24:04+00:00\",\"description\":\"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we'll show you how to get your motors running!\",\"breadcrumb\":{\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learntube.ai\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Control DC Motors With Arduino.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learntube.ai\/blog\/#website\",\"url\":\"https:\/\/learntube.ai\/blog\/\",\"name\":\"LearnTube\",\"description\":\"10000+ Free Courses with Free Certification and doubt solving -\",\"publisher\":{\"@id\":\"https:\/\/learntube.ai\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learntube.ai\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learntube.ai\/blog\/#organization\",\"name\":\"LearnTube\",\"url\":\"https:\/\/learntube.ai\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learntube.ai\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2022\/04\/1645302407Colourpng.png\",\"contentUrl\":\"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2022\/04\/1645302407Colourpng.png\",\"width\":3000,\"height\":742,\"caption\":\"LearnTube\"},\"image\":{\"@id\":\"https:\/\/learntube.ai\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/CareerNinjaIndia\/\",\"https:\/\/www.instagram.com\/careerninjaindia\/\",\"https:\/\/www.linkedin.com\/company\/careerninja\/\",\"https:\/\/www.youtube.com\/c\/CareerNinja\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/learntube.ai\/blog\/#\/schema\/person\/0f4e519a2115e9be9c8083e7a41a4e07\",\"name\":\"Team LearnTube\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learntube.ai\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2f280aa676ba5daf1e7407bffa25f05d95bb67811711176adde8cf8440982486?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2f280aa676ba5daf1e7407bffa25f05d95bb67811711176adde8cf8440982486?s=96&d=mm&r=g\",\"caption\":\"Team LearnTube\"},\"sameAs\":[\"https:\/\/learntube.ai\/blog\"],\"url\":\"https:\/\/learntube.ai\/blog\/author\/team-learntube\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Control DC Motors With Arduino. - Learn Tube","description":"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we'll show you how to get your motors running!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/","og_locale":"en_US","og_type":"article","og_title":"How To Control DC Motors With Arduino. - Learn Tube","og_description":"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we'll show you how to get your motors running!","og_url":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/","og_site_name":"Learn Tube","article_publisher":"https:\/\/www.facebook.com\/CareerNinjaIndia\/","article_published_time":"2023-03-25T04:24:01+00:00","article_modified_time":"2023-03-25T04:24:04+00:00","og_image":[{"width":1000,"height":665,"url":"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg","type":"image\/jpeg"}],"author":"Team LearnTube","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team LearnTube","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#article","isPartOf":{"@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/"},"author":{"name":"Team LearnTube","@id":"https:\/\/learntube.ai\/blog\/#\/schema\/person\/0f4e519a2115e9be9c8083e7a41a4e07"},"headline":"How To Control DC Motors With Arduino.","datePublished":"2023-03-25T04:24:01+00:00","dateModified":"2023-03-25T04:24:04+00:00","mainEntityOfPage":{"@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/"},"wordCount":934,"commentCount":0,"publisher":{"@id":"https:\/\/learntube.ai\/blog\/#organization"},"keywords":["Arduino"],"articleSection":["Arduino"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/","url":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/","name":"How To Control DC Motors With Arduino. - Learn Tube","isPartOf":{"@id":"https:\/\/learntube.ai\/blog\/#website"},"datePublished":"2023-03-25T04:24:01+00:00","dateModified":"2023-03-25T04:24:04+00:00","description":"Learn how to control DC motors with Arduino in our step-by-step guide. From wiring to programming, we'll show you how to get your motors running!","breadcrumb":{"@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learntube.ai\/blog\/hardware-and-network-security\/arduino-hardware-and-network-security\/how-to-control-dc-motors-with-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learntube.ai\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Control DC Motors With Arduino."}]},{"@type":"WebSite","@id":"https:\/\/learntube.ai\/blog\/#website","url":"https:\/\/learntube.ai\/blog\/","name":"LearnTube","description":"10000+ Free Courses with Free Certification and doubt solving -","publisher":{"@id":"https:\/\/learntube.ai\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learntube.ai\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/learntube.ai\/blog\/#organization","name":"LearnTube","url":"https:\/\/learntube.ai\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learntube.ai\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2022\/04\/1645302407Colourpng.png","contentUrl":"https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2022\/04\/1645302407Colourpng.png","width":3000,"height":742,"caption":"LearnTube"},"image":{"@id":"https:\/\/learntube.ai\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CareerNinjaIndia\/","https:\/\/www.instagram.com\/careerninjaindia\/","https:\/\/www.linkedin.com\/company\/careerninja\/","https:\/\/www.youtube.com\/c\/CareerNinja"]},{"@type":"Person","@id":"https:\/\/learntube.ai\/blog\/#\/schema\/person\/0f4e519a2115e9be9c8083e7a41a4e07","name":"Team LearnTube","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learntube.ai\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2f280aa676ba5daf1e7407bffa25f05d95bb67811711176adde8cf8440982486?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2f280aa676ba5daf1e7407bffa25f05d95bb67811711176adde8cf8440982486?s=96&d=mm&r=g","caption":"Team LearnTube"},"sameAs":["https:\/\/learntube.ai\/blog"],"url":"https:\/\/learntube.ai\/blog\/author\/team-learntube\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",1000,665,false],"thumbnail":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-150x150.jpg",150,150,true],"medium":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-300x200.jpg",300,200,true],"medium_large":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-768x511.jpg",696,463,true],"large":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",696,463,false],"1536x1536":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",1000,665,false],"2048x2048":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",1000,665,false],"td_218x150":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-218x150.jpg",218,150,true],"td_324x400":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-324x400.jpg",324,400,true],"td_485x360":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-485x360.jpg",485,360,true],"td_696x0":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-696x463.jpg",696,463,true],"td_1068x0":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",1000,665,false],"td_1920x0":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white.jpg",1000,665,false],"td_324x235":["https:\/\/learntube.ai\/blog\/wp-content\/uploads\/2023\/03\/spare-part-engine-water-pump-isolated-white-324x235.jpg",324,235,true]},"uagb_author_info":{"display_name":"Team LearnTube","author_link":"https:\/\/learntube.ai\/blog\/author\/team-learntube\/"},"uagb_comment_info":2,"uagb_excerpt":"DC motors are widely used in a variety of projects and applications, from robotics to home automation. The Arduino microcontroller is a popular platform for controlling DC motors due to its ease of use and versatility. In this blog, we will discuss how to control DC motors with Arduino. Firstly, let&#8217;s discuss the components required&hellip;","_links":{"self":[{"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/posts\/4019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/comments?post=4019"}],"version-history":[{"count":1,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/posts\/4019\/revisions"}],"predecessor-version":[{"id":4021,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/posts\/4019\/revisions\/4021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/media\/4020"}],"wp:attachment":[{"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/media?parent=4019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/categories?post=4019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learntube.ai\/blog\/wp-json\/wp\/v2\/tags?post=4019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}