{"id":827,"date":"2014-07-16T14:19:40","date_gmt":"2014-07-16T18:19:40","guid":{"rendered":"https:\/\/itp.nyu.edu\/physicalcomputing\/?page_id=827"},"modified":"2022-11-06T17:31:47","modified_gmt":"2022-11-06T22:31:47","slug":"stepper-motors","status":"publish","type":"page","link":"https:\/\/itp.nyu.edu\/physcomp\/lessons\/stepper-motors\/","title":{"rendered":"Controlling Stepper Motors"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Stepper motors are useful for when you need to rotate a full 360 degrees, but need to position your motor at a particular angle. What follows is a more detailed introduction to unipolar and bipolar stepper motors and how to control them from a microcontroller.&nbsp;&nbsp;In order to get the most out of these notes, you should know something about <a title=\"Electricity: the Basics\" rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/electricity-the-basics\/\" target=\"_blank\">how electricity works<\/a>, and you should know the basics of <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/microcontrollers-the-basics\/\" data-type=\"page\" data-id=\"821\" target=\"_blank\" rel=\"noreferrer noopener\">how a microcontroller works<\/a> as well. You should also understand <a title=\"Transistors, Relays, and Controlling High-Current Loads\" rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/transistors-relays-and-controlling-high-current-loads\/\" target=\"_blank\">how transistors are used to control high-current loads.<\/a>&nbsp;You should also understand <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/dc-motors-the-basics\/\" data-type=\"page\" data-id=\"819\" target=\"_blank\" rel=\"noreferrer noopener\">how DC motors work<\/a>.<\/p>\n\n\n\n<p>As you learned in the <a rel=\"noreferrer noopener\" href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/dc-motors-the-basics\/\" target=\"_blank\" data-type=\"page\" data-id=\"819\">introduction to motors<\/a>, &nbsp;stepper motor is a motor controlled by a pair of electromagnetic coils. The center shaft has a series of magnets mounted on it, and the coils surrounding the shaft are alternately given current or not, creating magnetic fields which repulse or attract the magnets on the shaft, causing the motor to rotate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Related_Videos\"><\/span>Related Videos<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/vimeo.com\/showcase\/6565160\/video\/380417082\" target=\"_blank\" rel=\"noreferrer noopener\">Types of Stepper Motors<br><\/a><a href=\"https:\/\/vimeo.com\/showcase\/6565160\/video\/380364519\" target=\"_blank\" rel=\"noreferrer noopener\">Unipolar Steppers and Transistor Arrays<\/a><\/li><li><a href=\"https:\/\/vimeo.com\/showcase\/6565160\/video\/380363298\" target=\"_blank\" rel=\"noreferrer noopener\">Bipolar Steppers and H-Bridges<\/a><\/li><li><a href=\"https:\/\/vimeo.com\/showcase\/6565160\/video\/380419652\" target=\"_blank\" rel=\"noreferrer noopener\">Dedicated Stepper Drives<\/a><\/li><\/ul>\n\n\n\n<p>There are two basic types of stepper motors, bipolar steppers and unipolar steppers. A bipolar is the simpler kind of stepper motor; it&#8217;s simply two coils, and has four wires. Depending on which coil you put power through, and which direction you send the power in, you step the motor one step forward or back. A unipolar stepper is slightly more complex. It also has two coils, but the centers of  the coils are joined in a single junction. This effectively creates four coils, depending on how you put electrical energy through it.  <\/p>\n\n\n\n<p>If you&#8217;re looking for sources of stepper motors and stepper motor drivers, you&#8217;ll find many <a href=\"https:\/\/www.pololu.com\/category\/87\/stepper-motors\">motors<\/a>  and <a href=\"https:\/\/www.pololu.com\/search?query=stepper+motor+drivers\">drivers<\/a> at <a href=\"https:\/\/www.pololu.com\/\">Pololu<\/a>, <a href=\"https:\/\/www.adafruit.com\/?q=stepper&amp;sort=BestMatch\">Adafruit<\/a>, <a href=\"https:\/\/www.sparkfun.com\/search\/results?term=stepper+motor\">Sparkfun<\/a>, and the other usual hobbyist electronics retailers. Octopart will also give you wide <a href=\"https:\/\/octopart.com\/search?q=stepper+motor&amp;currency=USD&amp;specs=0&amp;category_id=4880\">variety of retailers for steppers<\/a>. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Bipolar_stepper_motors\"><\/span>Bipolar stepper motors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A bipolar stepper motor usually has four wires coming out of it.  It has two independent coils. Figure 1 shows a typical bipolar stepper with four wires. In the center is the motor&#8217;s shaft, which has a cog-like rotor on it. Each tooth of the cog is magnetized, and every cog&#8217;s magnetic polarity is opposite the one next to it.When you put voltage and current through one coil, it turns the central rotor a few degrees, because the magnets on the rotor are attracted to the magnetic field generated by the coil. When you turn that coil off and the other one on, the motor moves a few degrees more. <\/p>\n\n\n\n<figure class=\"wp-block-image alignnone size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"455\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/stepper_wiring_biploar-1.png\" alt=\"Schematic drawing of a bipolar stepper motor. It has two coils facing each other. The ends of the coils are numbered 1 and 2 (coil 1) 3 and 4 coil 2). The central motor shaft and rotor appears in the middle as cog.  \" class=\"wp-image-9965\"\/><figcaption>Figure 1. Wiring for a bipolar stepper motor.<\/figcaption><\/figure>\n\n\n\n<p>To use a bipolar stepper, you need to know which wire is connected to which coil. You can determine this by measuring the resistance between pairs of wires.  When you\u2019ve got the leads of your meter connected to two wires on opposite coils, you should see infinite resistance, or no continuity.  When your meter leads are on the same coil, you&#8217;ll be able to read the coil&#8217;s resistance. The two coils should have the same resistance. <\/p>\n\n\n\n<p>Some bipolar steppers have a center connection on each coil. This allows for finer control over the motor, by treating each half coil as its own coil, as shown in Figure 2. These center connections can be joined to turn a 6-wire bipolar stepper into a unipolar stepper as well. Figure 3 shows the inside of a typical bipolar stepper motor. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1181\" height=\"768\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/stepper_wiring_biploar_6-wire.png\" alt=\"Schematic drawing of a six-wire bipolar stepper motor. It has two coils facing each other. The ends of the coils are numbered 1 and 2 (coil 1) 3 and 4 coil 2). The central motor shaft and rotor appears in the middle as cog.  The center wires of each coil are marked 5 (for coil 1) and 6 (for coil 2). \" class=\"wp-image-9966\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/stepper_wiring_biploar_6-wire.png 1181w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/stepper_wiring_biploar_6-wire-768x499.png 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Figure 2. a six-wire bipolar stepper<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"792\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/steppers-1024x792.jpg\" alt=\"Photo of three stepper motors. The center one is opened up to show the coils inside.\" class=\"wp-image-3004\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/steppers-1024x792.jpg 1024w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/steppers-300x232.jpg 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption>Figure 3. Inside a Stepper motor. In this photograph, you can see the inside of a bipolar stepper. The two coils are actually divided into eight sub-coils for finer control. You can see the cog in the center as well. Each tooth on the cog is a tiny magnet. <\/figcaption><\/figure>\n\n\n\n<p>Like other motors, stepper motors require more power than a microcontroller can give them, so you&#8217;ll need a separate power supply for them. Ideally you&#8217;ll know the voltage and load current from the manufacturer. If not, get a variable DC power supply, apply the minimum voltage (hopefully 3V or so), apply voltage across two wires of one coil (e.g. 1 to 2 or 3 to 4) and slowly raise the voltage until the motor is difficult to turn. It is possible to damage a motor this way, so don&#8217;t go too far. Typical voltages for a stepper might be 5V, 9V, 12V, 24V. Higher than 24V is less common for small steppers, and frankly, above that level it&#8217;s best not to guess.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Unipolar_Stepper_Motors\"><\/span>Unipolar Stepper Motors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Unipolar steppers motor have&nbsp;five or six wires. The five-wire version has four coils which are all connected on one pole. Six-wire motors are actually bipolar steppers with two coils divided by center connections on each coil, as described above. The center connections of the coils are tied together as shown in Figure 4 and sometimes used as the power connection. <\/p>\n\n\n\n<figure class=\"wp-block-image alignnone is-style-default\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/unipolar_stepper_wiring.png\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"372\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/unipolar_stepper_wiring.png\" alt=\"Drawing of the wiring for a unipolar stepper motor, showing two variations. In the drawing on the left side of the frame, labeled &quot;5-wire unipolar stepper&quot;, four coils of wire radiate out from a central connection labeled &quot;center wire. The other ends of the four coils are labeled &quot;coil 1&quot; through &quot;coil 4&quot;. In the drawing on the right, labeled &quot;6-wire unipolar stepper&quot; there are two coils side by side, labeled &quot;coil 1&quot; and &quot;coil 2&quot;. There is a connection in the center of each coil as well, and those center wires are joined together. \" class=\"wp-image-3026\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/unipolar_stepper_wiring.png 645w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/unipolar_stepper_wiring-300x173.png 300w\" sizes=\"(max-width: 645px) 85vw, 645px\" \/><\/a><figcaption>Figure 4. The wiring for unipolar stepper motors. The center wires for the two coils are tied together in a unipolar stepper.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Stepper_Motor_Types\"><\/span>Common Stepper Motor Types<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are two common families of stepper motor that you&#8217;ll encounter: NEMA motors and can-stack or tin-can steppers. The labs on this site can work with either. NEMA motors are designed according to a standard set by the US National Electrical Manufacturers Association. These are high-quality motors, and usually the more expensive that you&#8217;ll find. The number in a NEMA motor&#8217;s designation indicates the motor&#8217;s size. A NEMA-11 motor, for example, has a mounting face that&#8217;s 1.1 inches square; NEMA-23 is 23 step motor is 2.3 inches square and so forth. Electromate.com has a <a href=\"https:\/\/www.electromate.com\/products\/stepper-motors\/nema-stepper-motors\/\">detailed explanation of NEMA motors<\/a> if you &#8216;d like more detail. <\/p>\n\n\n\n<p>Can-stack steppers are typically smaller and more cheaply made, mounted in a simple can, often with gears on top to increase torque and steps per revolution, and decrease speed. They&#8217;re often used in disk drives, motorized lens optics, and other industrial applications. The first number in the spec for these indicates the can&#8217;s diameter in millimeters. A 28BYJ-48 motor has a 28mm diameter can. A 24BYJ-48 has a 24mm can size, and so forth. Melissa Zheng has a good <a href=\"https:\/\/www.linkedin.com\/pulse\/whats-28byj48-stepper-motor-melissa-zheng\/?trk=public_profile_article_view\">explanation of can-stack stepper motor specs<\/a>. <\/p>\n\n\n\n<p> Figure 5 shows a variety of NEMA-style steppers. Figure 6 shows a 28BYJ-48 can-stack stepper. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/a.pololu-files.com\/picture\/0J4511.600.jpg?bbe10f56dcfa8d58f2cce527dd1f1b13\" alt=\"Photo of several NEMA-style stepper motors. These motors all share s solid metal casing and mounting holes on the top by their shafts. They come in various sizes.\"\/><figcaption>Figure 5. A range of NEMA stepper motors. Image from Pololu.com<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"308\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/ID918_MED.jpg\" alt=\"Photo of a stepper motor. This motor is approximately 2 inches (5cm) on diameter, with an off-center shaft at the top, and wires protruding from the bottom. You can tell a stepper motor from a DC motor because steppers have at least four wires, while regular DC motors have two.\" class=\"wp-image-1772\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/ID918_MED.jpg 400w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/ID918_MED-300x231.jpg 300w\" sizes=\"(max-width: 400px) 85vw, 400px\" \/><figcaption>Figure 6. a can-stack stepper motor<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Control_of_Stepper_Motors\"><\/span>Control of Stepper Motors<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To control the stepper, apply voltage to each of the coils in a specific sequence.&nbsp;Both types of stepper motor can be controlled with a motor driver (<a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/showcase\/6565160\/video\/380158444\" target=\"_blank\">related video<\/a>). &nbsp;The sequence would go like this:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Step<\/th><th>Wire 1<\/th><th>Wire 2<\/th><th>Wire 3<\/th><th>Wire 4<\/th><\/tr><\/thead><tbody><tr><td>1<\/td><td>high<\/td><td>low<\/td><td>high<\/td><td>low<\/td><\/tr><tr><td>2<\/td><td>low<\/td><td>high<\/td><td>high<\/td><td>low<\/td><\/tr><tr><td>3<\/td><td>low<\/td><td>high <\/td><td>low<\/td><td>high<\/td><\/tr><tr><td>4<\/td><td>high <\/td><td>low <\/td><td>low<\/td><td>high<\/td><\/tr><\/tbody><\/table><figcaption>Table 1. Sequential states of the voltage on the four control pins of a stepper motor. <\/figcaption><\/figure>\n\n\n\n<p>To step the motor, you change the pins in the order shown in Table 1. With each step, the motor will move forward or backward one increment. Once you have the motor stepping in one direction, stepping in the other direction is a matter of doing the steps in reverse order.<\/p>\n\n\n\n<p>It&#8217;s good practice when you wire a stepper up for the first time to write a program to step it slowly, one step at a time, using the steps above. That way you can see if you got the wiring right. If you did, the stepper should turn step by step in one direction. If you didn&#8217;t, it may step in unpredictable ways.<\/p>\n\n\n\n<p>A stepper motor&#8217;s position is not absolute. You have to know where the motor started (usually measured with an external sensor) and how many degrees per step. Then you count the steps and multiply by that many degrees. So for examples, if you have a 1.8-degree stepper, and it&#8217;s turned 200 steps, then it&#8217;s turned 1.8 x 200 degrees, or 360 degrees, or one full revolution.<\/p>\n\n\n\n<p>The circuits for controlling a unipolar stepper or a bipolar stepper are very similar. In both cases, you have four ends of coils that go to the four outputs of the driver. The difference is that for the unipolar, you also have a common center wire. That wire can be attached to the same motor voltage supply that feeds the driver, or it can be left disconnected. If you do the latter, you&#8217;re treating the unipolar motor as if it had&nbsp;two separate coils &#8212; in other words, as if it were a bipolar stepper.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"H-bridge_Stepper_Drivers\"><\/span>H-bridge Stepper Drivers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>There are a couple of different types of stepper motor drivers.  The oldest use four transistors, treating each wire as if it were a motor itself. If you take wire 1 high and wire 2 low, coil turns one direction. Take wire 1 low, and wire 2 high, and the coil turns the other direction. The same principle applies to the other coil. This can be done with individual Darlington transistors or MOSFETs, or it can be done with a transistor array like the <a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/stmicroelectronics\/ULN2004A\/599602\">ULN2004<\/a>. <\/p>\n\n\n\n<p>The four-transistor approach is essentially an H-bridge, and you could use two H-bridges to control a stepper. The TB6612FNG dual motor driver that you saw in the H-bridge lab is a dual H-bridge designed for this purpose. You&#8217;ll see it in action in <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/motors-and-transistors\/lab-controlling-a-stepper-motor-with-an-h-bridge\/\" data-type=\"page\" data-id=\"1768\">the H-bridge stepper motor lab<\/a>. There is an older H-bridge that only operates on 5V, the L293D, which you will encounter from time to time. This driver does not work with the Arduino Nano 33 IoT and other 3.3V boards, but it&#8217;s common enough that it&#8217;s useful to know that it can be replaced with a TB6612FNG.<\/p>\n\n\n\n<p>With an H-bridge style driver, you know what you&#8217;re getting: take the input 1 HIGH and input 2 LOW, and you create a voltage difference between outputs 1 and 2. It&#8217;s conceptually easy, but requires more thinking and planning when you are programming the stepper. Fortunately, there is a <a href=\"https:\/\/www.arduino.cc\/reference\/en\/libraries\/stepper\/\">Stepper library for Arduino<\/a> that simplifies this somewhat. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_Direction_Stepper_Drivers\"><\/span>Step &amp; Direction Stepper Drivers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>More modern stepper drivers have just two control pins, one for step and one for direction. They also feature configuration pins that let you set the step pin to move the motor a full step, a half step, or less. This is called <strong>microstepping<\/strong>, and you can find stepper drivers that will work as low as 1\/256th of a step. This allows finer control over the stepper motor. <\/p>\n\n\n\n<p>Step &amp; direction drivers simplify control of a stepper because they only require two signals from a microcontroller: take the direction pin high or low to turn the motor&#8217;s direction one way or the other. Then pulse the step pin. With each pulse, the motor should step in the direction set by the direction pin. You can run these kinds of steppers without a library. You&#8217;ll see these drivers in the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/motors-and-transistors\/lab-controlling-a-stepper-motor-with-a-step-and-direction-driver\" data-type=\"page\">step &amp; direction stepper driver lab<\/a>.<\/p>\n\n\n\n<p><meta charset=\"utf-8\">There are a <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/stepper-motors\/#Step_Direction_Stepper_Drivers\">number of step &amp; direction motor drivers<\/a> available. For example, ther <a href=\"https:\/\/www.pololu.com\/file\/0J1624\/STSPIN220.pdf\">STSPIN220<\/a> from ST microelectronics works in the 1.8-10V range. the <a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/pololu-corporation\/2986\/10450469\">A4988<\/a> handles motors in the 8-35V range. <a href=\"https:\/\/www.trinamic.com\/products\/integrated-circuits\/\">Trinamic&#8217;s<\/a> drivers, also sold on breakout boards by Watterott as <a href=\"https:\/\/learn.watterott.com\/silentstepstick\/\">SilentStepStick<\/a> boards, control a wide range of voltages and are designed to reduce noise. Allegro&#8217;s A4988 and  Monolithic&#8217;s <a href=\"https:\/\/www.pololu.com\/file\/0J1447\/MP6500_r1.0.pdf\">MP6500<\/a> and Texas Instruments&#8217; <a href=\"https:\/\/www.ti.com\/motor-drivers\/stepper-driver\/products.html#p1077=STEP\/DIR\">DRV88xx line<\/a> are also good driver lines to look at. Here&#8217;s a <a href=\"https:\/\/www.pololu.com\/search\/compare\/156\">comparison chart<\/a> for many of these lines, on breakout boards from Pololu. Table 2 is a summary of a few other step &amp; direction drivers.<\/p>\n\n\n\n<p>In picking a step &amp; direction driver, the first questions to ask are: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Is my motor&#8217;s rated voltage in the driver&#8217;s Motor Voltage range?<\/li><li>Is my motor&#8217;s rated current less than the driver&#8217;s Max. Motor Current range?<\/li><li>Is my microcontroller&#8217;s operating voltage in the driver&#8217;s Control Voltage range?<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Driver<\/th><th>Type<\/th><th>Motor Voltage<\/th><th>Max. Motor Current<\/th><th>Control Voltage<\/th><th>Microsteps<\/th><th>Price (as of Jun. 2022)<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/pololu-corporation\/2986\/10450469\">A4988 Black Edition<\/a><\/td><td>Step &amp; direction<\/td><td>8-35V<\/td><td>1.1A<\/td><td>3-5.5V<\/td><td>1\/16<\/td><td>$13.95<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/pololu-corporation\/2877\/10450449\">STSPIN220<\/a><\/td><td>Step &amp; direction<\/td><td>1.8-10V<\/td><td>1.1A<\/td><td>1.8-5.5V<\/td><td>1\/256<\/td><td>$7.45<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/watterott-electronic-gmbh\/20160027-002\/10071145?s=N4IgTCBcDa4AwEYBsc5gOwFpUQLoF8g\">TMC2130<\/a><\/td><td>Step &amp; direction, SPI<\/td><td>5.5-45V<\/td><td>1.2A<\/td><td>3.3-5V<\/td><td>1\/256<\/td><td>$10.68<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/trinamic-motion-control-gmbh\/TMC2209SILENTSTEPSTICK\/10232488?utm_adgroup=Evaluation%20and%20Demonstration%20Boards%20and%20Kits&amp;utm_source=google&amp;utm_medium=cpc&amp;utm_campaign=Shopping_Product_Development%20Boards%2C%20Kits%2C%20Programmers_NEW&amp;utm_term=&amp;utm_content=Evaluation%20and%20Demonstration%20Boards%20and%20Kits&amp;gclid=Cj0KCQjw8O-VBhCpARIsACMvVLPlKEOSQwC-jyf7YQdXBPno22PXobViV6QqzA7369lfG1BTutM0BT8aAqn4EALw_wcB\">TMC2209<\/a><\/td><td>Step &amp; Direction, UART<\/td><td> 4.75-28V<\/td><td> 1.4A<\/td><td>3.3-5V<\/td><td>1\/256<\/td><td>$16.03<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/trinamic-motion-control-gmbh\/TMC2208SILENTSTEPSTICK\/6873626?s=N4IgTCBcDaIIwBYBsAGAtAFQLIGExhQA4BlASQBkBRAOQ2I0oAV7ScBpNagERAF0BfIA\">TMC2208<\/a><\/td><td>Step &amp; Direction, UART<\/td><td>4.75-36V<\/td><td>1.2A<\/td><td>4.6-5.25V<\/td><td>1\/256<\/td><td>$9.58<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/watterott-electronic-gmbh\/20190095-001\/10071141?s=N4IgTCBcDa4AwEYCcc5IKwFpUJAXQF8g\">TMC2100<\/a><\/td><td>Step &amp; Direction<\/td><td>5.5-45V<\/td><td>1.2A<\/td><td>3.3-5V<\/td><td>1\/256<\/td><td>$9.28<\/td><\/tr><tr><td><a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/sparkfun-electronics\/ROB-14451\/7915577?s=N4IgTCBcDaIIwFYBsAOAtHA7MtA5AIiALoC%2BQA\">TB6612FNG<\/a><\/td><td>Dual H-Bridge<\/td><td>15V<\/td><td>1.2A<\/td><td>2.7\u20135.5V<\/td><td>&#8211;<\/td><td>$5.50<\/td><\/tr><tr><td><a href=\"https:\/\/www.sparkfun.com\/products\/12779\">EasyDriver<\/a><\/td><td>Step &amp; Direction<\/td><td>6-30V <\/td><td>700mA<\/td><td>3-5.5V<\/td><td>1\/8<\/td><td>$16.95<\/td><\/tr><\/tbody><\/table><figcaption>Table 2. Step &amp; Direction drivers compared<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Stepper motors are useful for when you need to rotate a full 360 degrees, but need to position your motor at a particular angle. What follows is a more detailed introduction to unipolar and bipolar stepper motors and how to control them from a microcontroller.&nbsp;&nbsp;In order to get the most out of these notes, &hellip; <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/stepper-motors\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Controlling Stepper Motors&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":13,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[52,8,29,19,28],"tags":[],"class_list":["post-827","page","type-page","status-publish","hentry","category-lesson","category-motors","category-pwm","category-switches","category-transistor"],"_links":{"self":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/827"}],"collection":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":52,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/827\/revisions"}],"predecessor-version":[{"id":10702,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/827\/revisions\/10702"}],"up":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/13"}],"wp:attachment":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}