{"id":139,"date":"2019-11-01T08:02:16","date_gmt":"2019-11-01T08:02:16","guid":{"rendered":"http:\/\/www.stepperchina.com\/?p=139"},"modified":"2019-11-01T08:02:16","modified_gmt":"2019-11-01T08:02:16","slug":"circuit-diagram-to-control-nema17-stepper-motor-with-arduino","status":"publish","type":"post","link":"https:\/\/www.stepperchina.com\/index.php\/2019\/11\/01\/circuit-diagram-to-control-nema17-stepper-motor-with-arduino\/","title":{"rendered":"Circuit diagram to control Nema17 stepper motor with Arduino"},"content":{"rendered":"\n<p>Circuit diagram to control <a href=\"https:\/\/www.oyostepper.com\/category-6-b0-Nema-17-Stepper-Motor.html\">Nema17 stepper motor<\/a> with Arduino is given in the above image. As A4988 module has a built-in translator that means we only need to connect the Step and Direction pins to Arduino. Step pin is used for controlling the steps while the direction pin is used to control the direction. Stepper motor is powered using a 12V power source, and the A4988 module is powered via Arduino. Potentiometer is used to control the direction of the motor.<\/p>\n\n\n\n<p>If you turn the potentiometer clockwise, then stepper will rotate clockwise, and if you turn potentiometer anticlockwise, then it will rotate anticlockwise. A 47 \u00b5f capacitor is used to protect the board from voltage spikes. MS1, MS2, and MS3 pins left disconnected, that means the driver will operate in full-step mode.<\/p>\n\n\n\n<p>Complete connections for&nbsp;<strong>Arduino Nema 17&nbsp;A4988<\/strong>&nbsp;given in below table.<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td><strong>S.NO.<\/strong><\/td><td><strong>A4988 Pin<\/strong><\/td><td><strong>Connection<\/strong><\/td><\/tr><tr><td>1<\/td><td>VMOT<\/td><td>+ve Of Battery<\/td><\/tr><tr><td>2<\/td><td>GND<\/td><td>-ve of Battery<\/td><\/tr><tr><td>3<\/td><td>VDD<\/td><td>5V of Arduino<\/td><\/tr><tr><td>4<\/td><td>GND<\/td><td>GND of Arduino<\/td><\/tr><tr><td>5<\/td><td>STP<\/td><td>Pin 3 of Arduino<\/td><\/tr><tr><td>6<\/td><td>DIR<\/td><td>Pin 2 of Arduino<\/td><\/tr><tr><td>7<\/td><td>1A, 1B, 2A, 2B<\/td><td>Stepper Motor<\/td><\/tr><\/tbody><\/table>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/circuitdigest.com\/sites\/default\/files\/inlineimages\/u1\/Circuit-Hardware-for-Controlling-NEMA17-Stepper-Motor-with-Arduino.jpg\" alt=\"Circuit Hardware for Controlling NEMA 17 Stepper Motor with Arduino and Potentiometer\"\/><figcaption><br>Other stepper you may like:<a href=\"https:\/\/www.oyostepper.com\/goods-494-Stepper-Motor-for-3D-Printer-DIY-CNC-Robot-10-50-Degree-C-04-Amp-Black-17HS13-0404S1.html\">17hs13-0404s<\/a>  <a href=\"https:\/\/www.oyostepper.com\/goods-31-Nema-17-Stepper-Motor-Bipolar-18-deg-13Ncm-184ozin-1A-35V-42x42x20mm-4-Wires.html\">17hs08-1004s<\/a>  <a href=\"https:\/\/www.oyostepper.com\/goods-73-Nema-23-Stepper-Motor-Bipolar-18-deg-126Nm-1784ozin-28A-25V-57x57x56mm-4-Wires.html\">23HS22-2804S<\/a>  <a href=\"https:\/\/www.oyostepper.com\/goods-88-Nema-23-Stepper-Motor-Bipolar-3Nm-425ozin-42A-57x57x114mm-4-Wires-CNC-Stepper-Motor.html\">23hs45-4204s<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Circuit diagram to control Nema17 stepper motor with Arduino is given in the above image. As A4988 module has a built-in translator that means we only need to connect the Step and Direction pins to Arduino. Step pin is used for controlling the steps while the direction pin is used to control the direction. Stepper &hellip; <a href=\"https:\/\/www.stepperchina.com\/index.php\/2019\/11\/01\/circuit-diagram-to-control-nema17-stepper-motor-with-arduino\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Circuit diagram to control Nema17 stepper motor with Arduino&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":1,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepperchina.com\/index.php\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}