{"id":1614,"date":"2022-07-01T04:40:40","date_gmt":"2022-07-01T04:40:40","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=1614"},"modified":"2023-07-17T04:27:30","modified_gmt":"2023-07-17T04:27:30","slug":"stepper-motor-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/stepper-motor-with-aries-v2-0-board\/","title":{"rendered":"Stepper Motor with Aries v2.0 Board"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface Stepper Motor with Aries v2.0 Board by using A4988 Stepper Motor Driver.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stepper Motor<\/h2>\n\n\n\n<p>A <strong>stepper motor<\/strong>, also known as a step motor or stepping motor, is an electromechanical device that converts electrical power into mechanical power and it is also called as a brushless DC electric motor that divides a full rotation into a number of equal steps. The motor&#8217;s position can be commanded to move and hold at one of these steps without any position sensor for feedback (an open-loop controller), as long as the motor is correctly sized to the application with respect to torque and speed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-37.png\" alt=\"\" class=\"wp-image-1714\" width=\"186\" height=\"189\"\/><figcaption class=\"wp-element-caption\"><em><strong>Stepper Motor<\/strong><\/em><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">A4988 Stepper Motor Driver<\/h2>\n\n\n\n<p>The A4988 is&nbsp;<strong>a complete microstepping motor driver with a built-in translator for easy operation<\/strong>. It is a microstepping driver for controlling bipolar stepper motors which have a built-in translator for easy operation. This means that we can control the stepper motor with just 2 pins from our controller, or one for controlling the rotation direction and the other for controlling the steps. It is designed to operate bipolar stepper motors in full-, half-, quarter-, eighth-, and sixteenth-step modes, with an output drive capacity of up to 35 V and \u00b12 A.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-38.png\" alt=\"\" class=\"wp-image-1717\" width=\"292\" height=\"296\"\/><figcaption class=\"wp-element-caption\"><em><strong>A4988 Stepper Motor Driver<\/strong><\/em><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3-1024x768.jpg\" alt=\"\" class=\"wp-image-2276\" height=\"576\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3-1024x768.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3-300x225.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3-768x576.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3-1536x1152.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/aries-3.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<p><strong><em>Note<\/em><\/strong>: We have to connect A4988 driver with external power supply i.e. <strong>VMOT<\/strong> pin of driver to +10V of external power supply with the ground connection followed by RST &amp; SLP pins short as shown in circuit diagram.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Stepper Motor<\/strong><\/td><td><strong>A4988 Stepper Motor Driver<\/strong><\/td><td><strong>Aries V2 Board<\/strong><\/td><\/tr><tr><td>Wire 1<\/td><td>2B<\/td><td>       &#8212;<\/td><\/tr><tr><td>Wire 2<\/td><td>2A<\/td><td>       &#8212;<\/td><\/tr><tr><td>Wire 3<\/td><td>1A<\/td><td>       &#8212;<\/td><\/tr><tr><td>Wire 4<\/td><td>1B<\/td><td>       &#8212;<\/td><\/tr><tr><td>   &#8212;<\/td><td>STEP<\/td><td>   GPIO1<\/td><\/tr><tr><td>   &#8212;<\/td><td>DIR<\/td><td>   GPIO0<\/td><\/tr><tr><td>   &#8212;<\/td><td>VDD<\/td><td>   +5V<\/td><\/tr><tr><td>   &#8212;<\/td><td>GND<\/td><td>   GND<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of Stepper Motor &amp; ARIES v2.0 Board with A4988 Stepper Motor Driver<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v2 board via USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro-USB type B to USB type A cable. The cable should be connected to <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, clean the executable using <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd examples\/gpio\/stepper_motor_pgm\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>Build the example program for <strong>Stepper Motor<\/strong> by using <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make <\/code><\/pre>\n\n\n\n<p>Before transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, execute the following command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-39.png\" alt=\"\" class=\"wp-image-1725\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-39.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-39-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-39-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Press Reset Button to set the Aries Board.<br>Press&nbsp;<strong>CTRL+A <\/strong> and then press <strong>S<\/strong>&nbsp;to enter the file sending menu and select&nbsp;<strong>xmodem<\/strong>&nbsp;by pressing&nbsp;<strong>Enter<\/strong> as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"420\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-24.png\" alt=\"\" class=\"wp-image-1536\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-24.png 850w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-24-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-24-768x379.png 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<p>In the next window, with&nbsp;the space bar&nbsp;select the&nbsp;&nbsp;file <strong><em>stepper_demo_pgm.bin<\/em><\/strong> to be transferred, by pressing&nbsp;<strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing the transfer the Program will start to execute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p>The Motor shaft will start to rotate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1178\" height=\"583\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-24-16-58-28-edited.png\" alt=\"\" class=\"wp-image-1728\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-24-16-58-28-edited.png 1178w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-24-16-58-28-edited-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-24-16-58-28-edited-1024x507.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/Screenshot-from-2022-06-24-16-58-28-edited-768x380.png 768w\" sizes=\"auto, (max-width: 1178px) 100vw, 1178px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface Stepper Motor with Aries v2.0 Board by using A4988 Stepper Motor Driver. Stepper Motor A stepper motor, also known as a step motor or stepping motor, is an electromechanical device that converts electrical power into mechanical power and it is also called as a brushless [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1614","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=1614"}],"version-history":[{"count":28,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1614\/revisions"}],"predecessor-version":[{"id":2281,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1614\/revisions\/2281"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=1614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=1614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=1614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}