{"id":27471,"date":"2019-11-28T17:51:42","date_gmt":"2019-11-28T09:51:42","guid":{"rendered":"\/blog\/?p=27471"},"modified":"2020-08-13T14:01:26","modified_gmt":"2020-08-13T06:01:26","slug":"getting-started-with-arduino-motors-dc-stepper-servo-motor","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/","title":{"rendered":"Getting Started with Arduino Motors &#8211; DC, Stepper, Servo Motor"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1030\" height=\"496\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-177-1030x496.png\" alt=\"\" class=\"wp-image-27487\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-1030x496.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-300x144.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-768x370.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png 1084w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/figure>\n\n\n\n<p>When using the Arduino, there are many projects and things that you can do with it and one of them includes driving a motor!  Today, through this tutorial, we will be focusing on the 3 basic motors that you can drive with the Arduino which are the DC motor, Servo motor, and Stepper motor. <\/p>\n\n\n\n<p>Today&#8217;s guide will cover: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Introduction to DC, Servo and Stepper Motor<\/li><li>When to use each motor? <\/li><li>Getting Started with Seeed&#8217;s Arduino Motor Pack<\/li><li>Arduino DC Motor Tutorial <\/li><li>Arduino Servo Motor Tutorial <\/li><li>Arduino Stepper Motor Tutorial<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to DC, Servo and Stepper Motor<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/130-DC-Motor-p-2023.html?utm_source=blog&amp;utm_medium=blog\">DC Motor<\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/1-1.png\" alt=\"\" width=\"-182\" height=\"-156\"\/><figcaption><a href=\"https:\/\/www.seeedstudio.com\/130-DC-Motor-p-2023.html?utm_source=blog&amp;utm_medium=blog\">130 DC Motor<\/a> <\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">What is the DC Motor?<\/h3>\n\n\n\n<p>DC Motor refers to a rotating electrical machine that can convert direct current electrical energy into mechanical energy. It is a motor that can convert electrical energy into mechanical energy in order to run. Correspondingly, the motor that uses AC power is an AC motor.<\/p>\n\n\n\n<p>DC Motor consists of:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Stator<\/li><li>Rotor<\/li><\/ul>\n\n\n\n<p>The static part of the DC\nmotor is called the stator, and its main function is to generate a magnetic\nfield. The part that rotates during operation is called the rotor, and its main\nfunction is to generate electromagnetic torque and induced electromotive force,\nusually also called the armature.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why can the DC motor rotate?<\/h3>\n\n\n\n<p>That&#8217;s because of the\nleft-hand rule. When the current flows through the rotor, the rotor generates\nforce in the magnetic field, which can rotate.When\ncurrent is passed through, the opposite polarity between the two magnetic\nfields inside the motor causes it to spin continuously in one direction until\nthe current stops.<\/p>\n\n\n\n<p>DC motors have no polarity (Unless marked\nwith + or -), which means you can reverse the direction of the motor by\nswapping the two wires.<\/p>\n\n\n\n<p>Basically, when a DC motor two leads\n(positive and negative) are connected directly to a power source, the motor\nwill rotate and in a direction. When the leads are switched, the motor will\nrotate in the opposite direction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advantages of DC motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Smooth speed regulation<\/li><\/ul>\n\n\n\n<p>When the load is unchanged,\nby changing the voltage across the DC motor, the speed can be easily adjusted\nin a wide range.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>High starting torque<\/li><\/ul>\n\n\n\n<p>With DC motors high starting torque, they\nare very suitable for driving heavy loads in starting conditions. An example of\nDC motors application would be in electric trains and cranes.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Do not have harmonics<\/li><\/ul>\n\n\n\n<p>Compared with other harmonic motors, DC\nmotors are more efficient, more energy-saving,\nand have a longer service life.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disadvantages of DC motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Not suitable for use in explosive or hazardous conditions, because\nthe brush may generate sparks, which may cause commutation failure.<\/li><li>Due to the existence of the commutator and brush gear, operation and\nmaintenance costs are increased.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/Grove-Servo.html?utm_source=blog&amp;utm_medium=blog\">Servo Motor <\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-80.png\" alt=\"\" width=\"299\" height=\"177\"\/><figcaption><a href=\"https:\/\/www.seeedstudio.com\/Grove-Servo.html?utm_source=blog&amp;utm_medium=blog\">Grove \u2013 Servo<\/a> <\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Servo Motor?<\/h2>\n\n\n\n<p>The Servo motor is a\nrotary actuator that allows for precise control of angular position which makes\nthem suitable for use in closed-loop systems where precise position control is\nneeded and is commonly used in electronics.<\/p>\n\n\n\n<p>Servo motors are part\nof a closed-loop system and they are a self-contained electrical device that\nrotates parts of a machine with high efficiency with great precision.<\/p>\n\n\n\n<p>Servo Motors are made up\nof:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Control Circuit<\/li><li>Small DC Motor<\/li><li>Potentiometer<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">The working principle of servo motor<\/h3>\n\n\n\n<p>They are attached by\ngears to the control wheel where when the motor rotates, the potentiometer\nresistance changes so the control circuit can precisely regulate how much\nmovement there is and in which direction.<\/p>\n\n\n\n<p>The motor is controlled\nwith an electric signal, either analog or digital, which determines the amount\nof movement which represents the final command position for the shaft.<\/p>\n\n\n\n<p>With its closed-loop\nmechanism, it incorporates positional feedback to control the rotational or\nlinear speed and position. A variety of angles are set upon, and there is a\nnotation for an angle of operation of 120 degrees.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advantages of Servo motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>High output power relative to motor size and weight<\/li><li>High efficiency<\/li><li>Can approach 90% at light loads<\/li><li>Feedback for controlling the speed and torque.<\/li><li>The encoder determines accuracy and resolution.<\/li><li>Encoder Utilization provides higher accuracy and resolution with closed-loop control.<\/li><li>High Torque to inertia ratio<\/li><li>Servo Motors can rapidly accelerate loads.<\/li><li>Resonance and vibration-free operation<\/li><li>High-speed operation is possible<\/li><li>Servo motors can achieve high speed at high torque values<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Disadvantages of Servo motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Requires tuning to stabilize the feedback loop.<\/li><li>Servo motors are unpredictable when something is broken<\/li><li>Thus, safety circuits are required.<\/li><li>Complex controller requires encoder and electronic support.<\/li><li>Servo Motor can be damaged by sustained overload<\/li><li>Peak torque is limited to a 1% duty cycle<\/li><li>Cost can be higher than that of stepper motor<\/li><li>The requirement for feedback components can increase the overall system cost and installation cost which may be higher compared to stepper motors.<\/li><li>Gearboxes are often required to deliver power at higher speeds.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.seeedstudio.com\/Small-Size-and-High-Torque-Stepper-Motor-24BYJ48-p-1922.html\">Stepper Motor <\/a><\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-170.png\" alt=\"\" class=\"wp-image-27476\" width=\"255\" height=\"181\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-170.png 488w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-170-300x213.png 300w\" sizes=\"(max-width: 255px) 100vw, 255px\" \/><figcaption><a href=\"https:\/\/www.seeedstudio.com\/Small-Size-and-High-Torque-Stepper-Motor-24BYJ48-p-1922.html\">Small Size and High Torque Stepper Motor &#8211; 24BYJ48 <\/a><\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">What is the Stepper Motor?<\/h3>\n\n\n\n<p>Stepper motor is a motor that converts electrical pulse signals into corresponding angular displacement (linear displacement). Each time a pulse signal is an input, the rotor rotates by an angle (one step forward), and its output angular displacement (linear displacement) is proportional to the number of input pulses, and the speed is proportional to the pulse frequency.<\/p>\n\n\n\n<p>One digital pulse to a stepper motor drive or translator causes the motor to increment one precise angle of motion. When digital pulses increase in frequency, the step movement changes into the continuous rotation.<\/p>\n\n\n\n<p>One application of the stepper motor will\nbe in robots where if you want a robot arm or leg to move to an exact angle so\nit can grab something like a bottle, a stepper motor would be perfect! Compared\nto other motors, you cannot control the angle of the arm or leg but instead, it\nwill depend on the power of the motor and the amount of electric current\npassing through it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Features of stepper motors<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Every revolution of the stepper motor is divided into discrete\nangular movements and steps where the motor must be sent a separate pulse for\neach movement.<\/li><li>The stepper motor can only take one step at a time and each step is\nthe same.<\/li><li>With a computer-controlled stepping, you can easily achieve precise\npositioning and\/or speed control.<\/li><li>This feature makes stepper motors very suitable for precision motion\ncontrol applications<\/li><\/ul>\n\n\n\n<p>They consist of multiple coils that are\norganized in groups called \u201cphases\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advantages of Stepper motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Excellent low-speed torque<\/li><\/ul>\n\n\n\n<p>Stepper motors offer excellent low-speed torque. This allows the motor to drive many loads without having to utilize any additional gearing or gearbox mechanisms.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Safer<\/li><\/ul>\n\n\n\n<p>Compared to Servo motors, if the stepper\nmotor breaks, it will stop automatically<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Longer life<\/li><\/ul>\n\n\n\n<p>Many moving parts of the stepper motor are\nfrictionless. With this, stepper motors are considered to have a longer life as\nthe bearings of the stepper motor will be the only part suffering from wear and\ntear.<\/p>\n\n\n\n<p>They are also very reliable as there are no\ncontact brushes in the motor.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Lower cost compared to Servo Motors<\/li><\/ul>\n\n\n\n<p>Stepper motors are used in an open-loop\nsystem that does not require positional or torque feedback which makes it\nsimpler and less costly to control.<\/p>\n\n\n\n<p>They are also easier to set up and use. Compared to servo motors, they are better suited for low acceleration and high holding applications.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Disadvantages of Stepper motor<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Low Efficiency<\/li><\/ul>\n\n\n\n<p>Unlike DC motors, stepper motor current\nconsumption is independent of load. They draw substantial power regardless of\nload.<\/p>\n\n\n\n<p>When stepper motors are idle, they draw the\nmost current which causes them to run hot.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>No feedback<\/li><\/ul>\n\n\n\n<p>Compared to servo motors, stepper motors\nhave no integral feedback for the position.<\/p>\n\n\n\n<p>Even though you can achieve precision\nthrough running open loop, limit switches or \u2018home\u2019 detectors are normally\nrequired for safety and\/or to establish a reference position.<\/p>\n\n\n\n<p>Without feedback, you cannot indicate\npotential missed steps.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Torque drops rapidly with speed \/ Limited High-Speed Torque<\/li><\/ul>\n\n\n\n<p>Stepper motors have less torque at high\nspeeds than low speeds.<\/p>\n\n\n\n<p>Even though some stepper motors are\noptimized for better high-speed performance, they have to be paired with an\nappropriate driver to achieve that performance.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>It is difficult to run to a higher speed<\/li><\/ul>\n\n\n\n<p>When the load is\nexceeded, synchronization will be broken, and vibration and noise will be\nemitted when working at high speed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to use each motor? <\/h2>\n\n\n\n<p>When using different motors in your Arduino projects, you must pick the most suitable motor that meets your needs. Each motor has its own uses, advantages, and disadvantages which we are going to cover. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DC Motor <\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Application of DC motor<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>DC motors are used widely in many places. Some of them are your vacuum cleaner, hairdryer, elevators, electric windows in cars, etc.<\/li><li>DC motors are still used commonly due to its high starting torque (Able to deal with high resistive torques and absorb sudden rises in load effortlessly), simplicity, and also efficiency compared to other motors.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Servo Motor <\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Application of Servo motor<\/h4>\n\n\n\n<p>Fields that require high\nprecision, such as machine tools, packaging equipment, textile equipment, laser\nprocessing equipment, robots, automated production lines, and other equipment\nthat require relatively high process precision.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Stepper Motors<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Application of Stepper motor<\/h4>\n\n\n\n<p>Basically, it can be used\nin situations involving positioning, such as ATM machines, inkjet printers,\nplotters, spraying equipment, medical instruments and equipment, precision\ninstruments, industrial control systems, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started with <a href=\"https:\/\/www.seeedstudio.com\/Motor-Pack-for-Arduino-p-4000.html\">Seeed&#8217;s Arduino Motor Pack<\/a><\/h2>\n\n\n\n<p>Before we move on to the tutorials, you will need the motors! Here at Seeed, we offer our very own <a href=\"https:\/\/www.seeedstudio.com\/Motor-Pack-for-Arduino-p-4000.html\">Arduino Motor Pack<\/a>! <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-171.png\" alt=\"\" class=\"wp-image-27481\" width=\"488\" height=\"276\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-171.png 547w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-171-300x170.png 300w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>This pack is a perfect kit for motor learning with Arduino.&nbsp;&nbsp;Whether your project requires a DC motor, a stepper motor, or a steering gear, it can be found in this kit!<\/li><li>This kit consists of<ul><li>6V DC motor(13000 rpm&nbsp;\u00b114%)&nbsp; x2<\/li><li>Small stepper motor x1<\/li><li>Standard servo&nbsp; x1(Speed: 0.17\/60\u00b0@4.8V\uff1b 0.14\/60\u00b0@6.0V\uff09\/(Torque: 3.5kg.cm@4.8V;&nbsp; 4.8kg.cm@6.0V)<\/li><li>Micro servo&nbsp; x1(Speed: 0.12\/60\u00b0@4.8V\uff1b 0.10\/60\u00b0@6.0V\uff09\/(Torque: 1.5kg.cm@4.8V;&nbsp; 1.8kg.cm@6.0V)<\/li><\/ul><\/li><li>Feel that the kit is too expensive? No worries! <\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-188.png\" alt=\"\" width=\"362\" height=\"292\"\/><\/figure><\/div>\n\n\n\n<p>Currently, we are having a big sale on this Arduino Motor Pack for a limited time only!!!  <br><\/p>\n\n\n\n<p>Use code:&nbsp;<strong>MOTOR40<\/strong>&nbsp;to get 40 percent off our&nbsp;<a href=\"https:\/\/www.seeedstudio.com\/Motor-Pack-for-Arduino-p-4000.html?utm_source=blog&amp;utm_medium=blog\">Arduino motor pack<\/a>&nbsp;now! <\/p>\n\n\n\n<p>Without further ado, let us jump right into how to run the individual motors with the Arduino! <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Motor Tutorial<\/h2>\n\n\n\n<p>Before we start, do note that you shouldn&#8217;t drive any motor directly from Arduino board pins as this may damage the board! You should use a driver circuit or motor driver to drive them! <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Arduino DC Motor Tutorial <\/h3>\n\n\n\n<p>In this tutorial, we will be using an Arduino motor shield to drive the DC motor:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/8-1.png\" alt=\"\" width=\"241\" height=\"192\"\/><figcaption><a href=\"https:\/\/www.seeedstudio.com\/Motor-Shield-V2-0.html?utm_source=blog&amp;utm_medium=blog\">Motor Shield V2.0<\/a> <\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>The Motor Shield is a driver module for motors that allows you to use Arduino to control the working speed and direction of the motor.<\/li><li>It is Based on the Dual Full-Bridge Drive Chip L298, it is able to drive two DC motors or a step motor. If you do not know what is L298, you can check out <a href=\"https:\/\/www.seeedstudio.com\/blog\/2019\/10\/08\/l298-all-about-l298-motor-driver\/\">our other blog on L298 motor driver&nbsp;here<\/a>!<\/li><li>So how do you drive a DC motor with an Arduino motor shield?<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">What do you need?<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"http:\/\/www.seeedstudio.com\/Seeeduino-V4.2-p-2517.html?utm_source=blog&amp;utm_medium=blog\">Seeeduino V4.2<\/a> (Arduino UNO Compatible Board) <\/li><li><a href=\"https:\/\/www.seeedstudio.com\/130-DC-Motor-p-2023.html?utm_source=blog&amp;utm_medium=blog\">130 DC Motor<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Motor-Shield-V2-0.html?utm_source=blog&amp;utm_medium=blog\">Motor Shield V2.0<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/1-Pin-Female-Male-Jumper-Wire-125mm-50pcs-pac-p-1319.html?utm_source=blog&amp;utm_medium=blog\">Jumper Cables<\/a><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Step by step instructions on how to drive DC motor with Motor Shield<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 1<\/strong><ul><li>Set&nbsp;<strong>SEN_A<\/strong>&nbsp;and&nbsp;<strong>SEN_B<\/strong>&nbsp;and connect the left 2 pins together with a jumper.<\/li><\/ul><\/li><li><strong>Step 2<\/strong><ul><li>Connect&nbsp;<strong>MB_EN<\/strong>&nbsp;together with a jumper, as we are not going use an external power.<\/li><\/ul><\/li><li><strong>Step 3<\/strong><ul><li>Connect DC motor to Chanel 0 (OUT1 and OUT2) and plug Motor Shield into Arduino.<\/li><li>Connect Arduino to PC via a USB cable.<\/li><li>Your connection should look like this:<\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/2-2.png\" alt=\"\" width=\"399\" height=\"204\"\/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 4<\/strong><ul><li>Download Motor shield library&nbsp;<a href=\"https:\/\/github.com\/Seeed-Studio\/SeeedMotorShieldV2\/archive\/master.zip\">here<\/a>&nbsp;and install the library<\/li><li>For users who do not know how to install an Arduino library, you can follow our guide on&nbsp;<a href=\"http:\/\/wiki.seeed.cc\/How_to_install_Arduino_Library\/\">how to install and Arduino library<\/a>.<\/li><\/ul><\/li><li><strong>Step 5<\/strong><ul><li>Upload the following code to Seeeduino:<\/li><\/ul><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/  Demo function:The application method to drive the DC motor.\n\/\/  Author:Loovee (luweicong@seeed.cc)\n\/\/  2016-3-11\n\n#include \"MotorDriver.h\"\n\nMotorDriver motor;\n\nvoid setup()\n{\n    \/\/ initialize\n    motor.begin();\n}\n\nvoid loop()\n{\n    motor.speed(0, 100);            \/\/ set motor0 to speed 100\n    delay(1000);\n    motor.brake(0);                 \/\/ brake\n    delay(1000);\n    motor.speed(0, -100);           \/\/ set motor0 to speed -100\n    delay(1000);\n    motor.stop(0);                  \/\/ stop\n    delay(1000);\n}\n\/\/ END FILE<\/code><\/pre>\n\n\n\n<p>Your motor should move for 1 second, stop for another second, move back for 1 second, stop for a second and loop. If nothing happens, please make sure:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The code has been uploaded successfully<\/li><li>The motor is connected properly<\/li><li>The LED indicators blink right<\/li><\/ul>\n\n\n\n<p>That\u2019s all! You have managed to run a DC motor with an Arduino Motor shield in 5 steps!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"mce_80\">Arduino Servo Motor Tutorial <\/h3>\n\n\n\n<p>Through this tutorial, you will learn how to control a Servo Motor with your Arduino in 3 simple steps.<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">What do you need? <\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.seeedstudio.com\/Seeeduino-V4-2-p-2517.html?utm_source=blog&amp;utm_medium=blog\">Seeeduino V4.2<\/a>&nbsp;(Arduino UNO Compatible Board)<\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Grove-Servo.html?utm_source=blog&amp;utm_medium=blog\">Grove \u2013 Servo<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Base-Shield-V2.html?utm_source=blog&amp;utm_medium=blog\">Base Shield V2<\/a>&nbsp;(For easy connection)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Step by step instructions on how to drive a Servo Motor with the Arduino<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 1: Connect Servo to the Seeeduino<\/strong><ul><li>The Servo has three wires: power, ground, and signal.<\/li><li>The power wire is typically red, and should be connected to the 5V pin on the Arduino\/Seeeduino board.<\/li><li>The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board.<\/li><li>The signal pin is typically yellow, orange or white and should be connected to&nbsp;<strong>D5<\/strong>&nbsp;on the Arduino board.<\/li><li>You can change to the digital port as you like, but don\u2019t forget to change the port number in the definition of the demo code!<\/li><\/ul><\/li><li><strong>Step 2: Connect the Module to&nbsp;the&nbsp;PC<\/strong><ul><li>Connect the module to D5 port of Base Shield<\/li><li>Plug Grove-Base Shield into Arduino<\/li><li>Connect Arduino to PC via a USB cable.<\/li><\/ul><\/li><li><strong>Step 3: Software<\/strong><ul><li>We will be sweeping the shaft of a servo back and forth across 180 degrees by using the&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Reference\/Servo\">Arduino Servo Library<\/a>.<\/li><li>Open the code directly by the path:&nbsp;<strong>File -&gt; Examples -&gt;Servo-&gt;Sweep<\/strong>.<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"223\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-172.png\" alt=\"\" class=\"wp-image-27482\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-172.png 753w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-172-300x89.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-172-750x223.png 750w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Sweep\n by BARRAGAN &lt;http:\/\/barraganstudio.com>\n This example code is in the public domain.\n\n modified 8 Nov 2013\n by Scott Fitzgerald\n http:\/\/www.arduino.cc\/en\/Tutorial\/Sweep\n*\/\n\n#include &lt;Servo.h>\n\nServo myservo;  \/\/ create servo object to control a servo\n\/\/ twelve servo objects can be created on most boards\n\nint pos = 0;    \/\/ variable to store the servo position\n\nvoid setup() {\n  myservo.attach(5);  \/\/ attaches the servo on pin 5 to the servo object\n}\n\nvoid loop() {\n  for (pos = 0; pos &lt;= 180; pos += 1) { \/\/ goes from 0 degrees to 180 degrees\n    \/\/ in steps of 1 degree\n    myservo.write(pos);              \/\/ tell servo to go to position in variable 'pos'\n    delay(15);                       \/\/ waits 15ms for the servo to reach the position\n  }\n  for (pos = 180; pos >= 0; pos -= 1) { \/\/ goes from 180 degrees to 0 degrees\n    myservo.write(pos);              \/\/ tell servo to go to position in variable 'pos'\n    delay(15);                       \/\/ waits 15ms for the servo to reach the position\n  }\n}<\/code><\/pre>\n\n\n\n<p>And you are done! After uploading the sketch, you should see the Servo sweep. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"mce_106\">Arduino Stepper Motor Tutorial <\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-173.png\" alt=\"\" class=\"wp-image-27483\" width=\"346\" height=\"241\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-173.png 580w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-173-300x209.png 300w\" sizes=\"(max-width: 346px) 100vw, 346px\" \/><\/figure><\/div>\n\n\n\n<p>In this tutorial, we will be using the <a href=\"https:\/\/www.seeedstudio.com\/Gear-Stepper-Motor-Driver-Pack-p-3200.html\">Gear Stepper Motor Driver Pack <\/a>which includes a stepper motor and a motor driver board. It&#8217;s a four-phase eight-stepping stepper motor, and you can easily control this stepper motor via the drive board. You can also use this pack for position control. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"mce_137\">What do you need?<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"http:\/\/www.seeedstudio.com\/Seeeduino-V4.2-p-2517.html?utm_source=blog&amp;utm_medium=blog\">Seeeduino V4.2<\/a> (Arduino UNO Compatible Board) <\/li><li><a href=\"https:\/\/www.seeedstudio.com\/Gear-Stepper-Motor-Driver-Pack-p-3200.html\">Gear Stepper Motor Driver Pack<\/a><\/li><li><a href=\"https:\/\/www.seeedstudio.com\/1-Pin-Female-Male-Jumper-Wire-125mm-50pcs-pac-p-1319.html?utm_source=blog&amp;utm_medium=blog\">Jumper Cables<\/a> <\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"mce_116\">Step by step instructions on how to drive a Stepper Motor with the Arduino<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 1<\/strong><ul><li>Connect the Gear Stepper Motor Driver Board to your Seeeduino via the jumper cables<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"\"><tbody><tr><td><strong>Seeeduino V4.2<\/strong><\/td><td><strong>Gear Stepper Motor Driver board<\/strong><\/td><\/tr><tr><td>Digital Pin 8<br><\/td><td>IN1<\/td><\/tr><tr><td>Digital Pin 9<\/td><td>IN2<\/td><\/tr><tr><td>Digital Pin 10 <\/td><td>IN3<\/td><\/tr><tr><td>Digital Pin 11<\/td><td>IN4<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>VCC_5V<\/td><td>VCC<\/td><\/tr><tr><td>VCC_5V<\/td><td>VM<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You can connect the VM pin to VCC_5V or you can just do not use it as long as you choose the VCC in the switch.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 2<\/strong><ul><li>Plug the stepper motor into the Gear Stepper Motor Driver Board.<\/li><\/ul><\/li><li><strong>Step 3<\/strong><ul><li>Connect Seeeduino to PC via a USB cable.<\/li><li>Your connection should look like this now: <\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/11\/image-175.png\" alt=\"\" class=\"wp-image-27485\" width=\"303\" height=\"269\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-175.png 597w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-175-300x267.png 300w\" sizes=\"(max-width: 303px) 100vw, 303px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 4<\/strong> <ul><li>Copy the following code into a new sketch in the Arduino IDE.<\/li><\/ul><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>int pwm1=9;\nint pwm2=10;\nint ctr_a =9;\nint ctr_b =8;\nint ctr_c =11;\nint ctr_d =10;\nint sd =6;\nint i=0;\nint t=1500;\n\nvoid setup()\n{\n    \/\/pinMode(sd,OUTPUT);\n    \/\/pinMode(pwm1,OUTPUT);\n    \/\/pinMode(pwm2,OUTPUT);\n    pinMode(ctr_a,OUTPUT);\n    pinMode(ctr_b,OUTPUT);\n    pinMode(ctr_c,OUTPUT);\n    pinMode(ctr_d,OUTPUT); \n    delay(1);\n    \/\/digitalWrite(sd,HIGH);\n    \/\/digitalWrite(pwm1,HIGH);\n    \/\/digitalWrite(pwm2,HIGH);\n\/\/    digitalWrite(ctr_a,LOW);\n\/\/    digitalWrite(ctr_b,LOW);\n\/\/    digitalWrite(ctr_c,LOW);\n\/\/    digitalWrite(ctr_d,LOW);\n\n}\n\n\nvoid loop ()\n{\n\/\/   for(i=1500;i>=1;i--)\n\/\/   {\n\/\/       digitalWrite(ctr_a,HIGH);\/\/A\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,HIGH);\n\/\/       digitalWrite(ctr_b,HIGH);\/\/AB\n\/\/       digitalWrite(ctr_c,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,HIGH);\/\/B\n\/\/       digitalWrite(ctr_c,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,HIGH);\n\/\/       digitalWrite(ctr_c,HIGH);\/\/BC\n\/\/        digitalWrite(ctr_d,LOW);\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,HIGH);\/\/C\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,HIGH);\/\/CD\n\/\/       digitalWrite(ctr_d,HIGH);\n\/\/       delay(t);\n\/\/        digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,LOW);\/\/D\n\/\/       digitalWrite(ctr_d,HIGH);\n\/\/       delay(t);\n\/\/        digitalWrite(ctr_a,HIGH);\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,LOW);\/\/DA\n\/\/       digitalWrite(ctr_d,HIGH);\n\/\/       delay(t);\n\/\/       \n\/\/   }\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_b,LOW);\n\/\/       digitalWrite(ctr_c,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/   \n\/\/   \n\/\/   \n\/\/     for(i=1500;i>=1;i--)\n\/\/   {\n\/\/     \n\/\/       digitalWrite(ctr_d,HIGH);\/\/D\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_c,HIGH);\/\/DC\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_d,LOW);\/\/C\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_b,HIGH);\/\/CB\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_c,LOW);\/\/B\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,HIGH);\/\/BA\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_b,LOW);\/\/A\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_d,HIGH);\/\/AD\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/   }\n\n   for(i=1500;i>=1;i--)\n   {\n       digitalWrite(ctr_a,LOW);\/\/A\n       digitalWrite(ctr_b,HIGH);\n       digitalWrite(ctr_c,HIGH);\n       digitalWrite(ctr_d,HIGH);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,LOW);\n       digitalWrite(ctr_b,LOW);\/\/AB\n       digitalWrite(ctr_c,HIGH);\n       digitalWrite(ctr_d,HIGH);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,HIGH);\n       digitalWrite(ctr_b,LOW);\/\/B\n       digitalWrite(ctr_c,HIGH);\n       digitalWrite(ctr_d,HIGH);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,HIGH);\n       digitalWrite(ctr_b,LOW);\n       digitalWrite(ctr_c,LOW);\/\/BC\n        digitalWrite(ctr_d,HIGH);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,HIGH);\n       digitalWrite(ctr_b,HIGH);\n       digitalWrite(ctr_c,LOW);\/\/C\n       digitalWrite(ctr_d,HIGH);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,HIGH);\n       digitalWrite(ctr_b,HIGH);\n       digitalWrite(ctr_c,LOW);\/\/CD\n       digitalWrite(ctr_d,LOW);\n       delayMicroseconds(t);\n        digitalWrite(ctr_a,HIGH);\n       digitalWrite(ctr_b,HIGH);\n       digitalWrite(ctr_c,HIGH);\/\/D\n       digitalWrite(ctr_d,LOW);\n       delayMicroseconds(t);\n       digitalWrite(ctr_a,LOW);\n       digitalWrite(ctr_b,HIGH);\n       digitalWrite(ctr_c,HIGH);\/\/DA\n       digitalWrite(ctr_d,LOW);\n       delayMicroseconds(t);\n\n   }\n\/\/       digitalWrite(ctr_a,HIGH);\n\/\/       digitalWrite(ctr_b,HIGH);\n\/\/       digitalWrite(ctr_c,HIGH);\n\/\/       digitalWrite(ctr_d,HIGH);\n\/\/   \n\n\n\/\/     for(i=1500;i>=1;i--)\n\/\/   {\n\/\/     \n\/\/       digitalWrite(ctr_d,HIGH);\/\/D\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_c,HIGH);\/\/DC\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_d,LOW);\/\/C\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_b,HIGH);\/\/CB\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_c,LOW);\/\/B\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,HIGH);\/\/BA\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_b,LOW);\/\/A\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_d,HIGH);\/\/AD\n\/\/       delay(t);\n\/\/       digitalWrite(ctr_a,LOW);\n\/\/       digitalWrite(ctr_d,LOW);\n\/\/   }\n\n\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Step 5<\/strong><ul><li>Upload the demo. If you do not know how to upload the code, please check our tutorial here on&nbsp;<a href=\"http:\/\/wiki.seeedstudio.com\/Upload_Code\/\">How to upload code<\/a>.<\/li><li>If everything is uploaded properly, the motor should run like this: <\/li><\/ul><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/github.com\/SeeedDocument\/Gear-Stepper-Motor-Driver-Pack\/raw\/master\/img\/_DAS7726.MOV_20181115_134717.gif\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>That&#8217;s all on how to get started with Arduino motors &#8211; DC, Stepper, Servo Motor! The Arduino has always been popular when it comes to running motors and today we have just covered 3 of them! If you have any questions on how to drive a DC, Servo or stepper motor using the Arduino, please feel free to leave them down in the comments below!<\/p>\n\n\n\n<p>Interested in our actuators and motor products? You can check out all of our motor products&nbsp;<a href=\"https:\/\/www.seeedstudio.com\/motors-servos-c-819.html\">here!<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using the Arduino, there are many projects and things that you can do with<\/p>\n","protected":false},"author":2781,"featured_media":27487,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[6,1882,1878,2175,2033,2174,1332,1667,1672,1879,2032,2030,1334,2183,1276],"class_list":["post-27471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-arduino","tag-arduino-dc-motor","tag-arduino-motor","tag-arduino-motor-control","tag-arduino-servo","tag-arduino-stepper-motor","tag-dc-motor","tag-l298n-motor-driver","tag-l298n-motor-driver-arduino","tag-motor-shield","tag-servo-motor-arduino","tag-servo-motor-tutorial","tag-servo-motors","tag-stepper-motor-tutorial","tag-stepper-motors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"When using the Arduino, there are many projects and things that you can do with\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-28T09:51:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-13T06:01:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1084\" \/>\n\t<meta property=\"og:image:height\" content=\"522\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"yida\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"yida\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/\",\"name\":\"Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png\",\"datePublished\":\"2019-11-28T09:51:42+00:00\",\"dateModified\":\"2020-08-13T06:01:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/6457c21fb5499f36fcf657d48dc4380e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png\",\"width\":1084,\"height\":522,\"caption\":\"Getting Started with Arduino Motors - DC, Stepper, Servo Motor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Started with Arduino Motors &#8211; DC, Stepper, Servo Motor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/6457c21fb5499f36fcf657d48dc4380e\",\"name\":\"yida\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/91a6af461a3a3af5aa79654f77822c7f?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/91a6af461a3a3af5aa79654f77822c7f?s=96&r=g\",\"caption\":\"yida\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/yida\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio","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:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio","og_description":"When using the Arduino, there are many projects and things that you can do with","og_url":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2019-11-28T09:51:42+00:00","article_modified_time":"2020-08-13T06:01:26+00:00","og_image":[{"width":1084,"height":522,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png","type":"image\/png"}],"author":"yida","twitter_card":"summary_large_image","twitter_misc":{"Written by":"yida","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/","url":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/","name":"Getting Started with Arduino Motors - DC, Stepper, Servo Motor - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png","datePublished":"2019-11-28T09:51:42+00:00","dateModified":"2020-08-13T06:01:26+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/6457c21fb5499f36fcf657d48dc4380e"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png","width":1084,"height":522,"caption":"Getting Started with Arduino Motors - DC, Stepper, Servo Motor"},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/11\/28\/getting-started-with-arduino-motors-dc-stepper-servo-motor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Getting Started with Arduino Motors &#8211; DC, Stepper, Servo Motor"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/6457c21fb5499f36fcf657d48dc4380e","name":"yida","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/91a6af461a3a3af5aa79654f77822c7f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/91a6af461a3a3af5aa79654f77822c7f?s=96&r=g","caption":"yida"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/yida\/"}]}},"modified_by":"Elaine Wu","views":22514,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",1084,522,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-80x80.png",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-300x144.png",300,144,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-768x370.png",640,308,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177-1030x496.png",640,308,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",1084,522,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",1084,522,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",32,15,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",1084,522,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",936,451,false],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",1024,493,false],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",720,347,false],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/11\/image-177.png",675,325,false]},"author_info":{"display_name":"yida","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/yida\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/27471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/2781"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=27471"}],"version-history":[{"count":7,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/27471\/revisions"}],"predecessor-version":[{"id":35036,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/27471\/revisions\/35036"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/27487"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=27471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=27471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=27471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}