{"id":20763,"date":"2019-03-04T09:14:42","date_gmt":"2019-03-04T01:14:42","guid":{"rendered":"\/blog\/?p=20763"},"modified":"2021-06-30T19:49:05","modified_gmt":"2021-06-30T11:49:05","slug":"driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/","title":{"rendered":"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board"},"content":{"rendered":"\n<p>The 28BYJ-48 stepper motor is widely used to control a myriad of common devices we see every day. From blinds, car side mirror tilts and DVD players to security cameras and precise control machines, stepper motors are closer to us than we actually think.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/03\/Featured-Image-1030x515.png\" alt=\"\" class=\"wp-image-20764\" width=\"646\" height=\"323\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-1030x515.png 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-300x150.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-768x384.png 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png 1200w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/><\/figure><\/div>\n\n\n\n<p>Ironically, not many people actually know how to work with them. And if you are a totally clueless beginner when it comes to electronics, we understand that reading through tons of technical jargon online can be rather daunting and off-putting at times. Hence, we have summarised a guide on how to interface a 28BYJ-48 stepper motor with an Arduino, using a ULN2003 driver board.<\/p>\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\/03\/28BYJ-48uln2003Arduino-1030x608.jpg\" alt=\"\" class=\"wp-image-20797\" width=\"515\" height=\"304\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/28BYJ-48uln2003Arduino-1030x608.jpg 1030w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/28BYJ-48uln2003Arduino-300x177.jpg 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/28BYJ-48uln2003Arduino-768x454.jpg 768w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/28BYJ-48uln2003Arduino.jpg 1475w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><figcaption>A 28BYJ-48 stepper motor connected to a ULN2003 driver board and an Arduino<br>(Source: Mschoeffler)<\/figcaption><\/figure><\/div>\n\n\n\n<p>First of all, let\u2019s start with an introduction to the 28BYJ-48 stepper motor and the ULN2003 driver board!<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The 28BYJ-48 Stepper Motor<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the 28BYJ-48 Stepper motor?<\/h3>\n\n\n\n<p>The 28BYJ-48 stepper motor is a commonly used stepper motor. which converts electrical pulses into discrete mechanical rotation. When electrical signals are applied, the stepper motor rotates in precise and fixed angle increments known as steps. The motor consists of 4 coils that make a ring around the rotor. These coils are known as the stator, as they are stationary and static. Each coil is rated at +5V, making it easy to control with any microcontroller, such as an Arduino.<\/p>\n\n\n\n<p>The GIF below illustrates how the rotation works.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"450\" height=\"450\" src=\"https:\/\/blog.seeedstudio.com\/wp-content\/uploads\/2019\/03\/StepperMotorgif.gif\" alt=\"\" class=\"wp-image-20766\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between stepper motors and standard DC motors?<\/h3>\n\n\n\n<p>Uncertain about 28BYJ-48 stepper motor being the one for you? Before deciding on which type of motor is more suitable for your project, we will have to first understand some differences between the two motors. Here are some basic differences between the two.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The rotation of stepper motors is incremental, slow and precise, while DC motors have a fast, continuous motion.<\/li><li>Stepper motors will generate some noise during operation while DC motors are quiet and relatively vibration-free.<\/li><li>The response time of the stepper motor is slower than the DC motor.<\/li><li>Stepper motors can be easily controlled with microprocessors like the Arduino. Compared to DC motors, they are more mechanically simple and easy to design and build. In contrast, DC motors are not so easily controlled with microprocessors<\/li><\/ol>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between stepper motors and servo motors?<\/h3>\n\n\n\n<p>Perhaps you may have heard of the servo motors, another motor similar to the stepper motor. Here\u2019s a brief description of how they\u2019re different.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Stepper motors can move more accurately and precisely than the servo motor and are much easier to control.<\/li><li>Stepper motors are more suitable for applications with lower speeds of less than 2000 rpm (revolutions per minute), and servos are best suited for applications with high speeds greater than 2000 rpm.<\/li><li>Stepper motors operate at lower speeds than servo motors.<\/li><li>Stepper motors are cheaper than servo motors as they are less mechanically complex.<\/li><\/ol>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">When would I choose a stepper motor over the other types?<\/h3>\n\n\n\n<p>The stepper motor does have its disadvantages as compared to the aforementioned two. However, you should still take stepper motors into consideration for its several critical advantages.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Precise Positioning<\/strong> &#8211; Stepper motors move in precise steps. As such, they do well in applications that require precise positionings, such as 3D printers and camera platforms. <\/li><li><strong>Precise Speed control<\/strong> &#8211; Precise increments in movements enable excellent control of rotational speed for process automation and robotics. <\/li><li><strong>High Torque at low speeds<\/strong> &#8211; Stepper motors are best suited for applications with low speed (less than 2000 rpm) as they have maximum torque at low speeds. In contrast, normal DC motors and servo motors do not have so much torque at low speeds. <\/li><li><strong>Easy to control<\/strong> &#8211; Stepper motors can easily be controlled using a microcontroller like an Arduino. In fact, its ease of use has also been a major reason for its continued usage by stepper motor users. <\/li><li><strong>Cheap<\/strong> &#8211; In applications where stepper motors would suffice, and using one could help you to realize better cost savings. <\/li><\/ul>\n\n\n\n<p>In addition, the stepper motor also shares some of the same advantages as the other types of motors. For example, similar to DC motors, stepper motors are&nbsp;widely available and come in many different sizes and styles, which means it can accommodate size constraints. This means that you do not have to compromise on the advantages of the other motors when you choose to use a stepper motor. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The ULN2003 Driver Board<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the ULN2003 Driver Board?<\/h3>\n\n\n\n<p>The ULN2003 is one of the most common motor driver ICs that houses an array of 7 Darlington transistor pairs, each capable of driving loads up to 500mA and 50V. A Darlington pair is a pair of transistors, where the second transistor amplifies the output current of the first transistor. <\/p>\n\n\n\n<p>You&#8217;ll need the ULN2003 to drive the stepper motor with the Arduino. They are also easily accessible at an affordable price. It\u2019s better to grab one of these rather than breadboarding the IC itself.<\/p>\n\n\n\n<p>As shown in the diagram below, a ULN2003 driver board consists of a ULN2003 soldered onto a board, together with resistors, capacitors, and other bits and bobs that help create the circuit that takes the pulse signals from the controller and converts them into stepper motor motion.<\/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\/03\/Pinout-of-ULN2003.png\" alt=\"\" class=\"wp-image-20780\" width=\"233\" height=\"225\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Pinout-of-ULN2003.png 349w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Pinout-of-ULN2003-300x290.png 300w\" sizes=\"(max-width: 233px) 100vw, 233px\" \/><figcaption>Pinout of ULN2003 <br>(Source: Component101)<\/figcaption><\/figure><\/div>\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\/03\/A-ULN2003-Driver-Board.png\" alt=\"\" class=\"wp-image-20781\" width=\"411\" height=\"271\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/A-ULN2003-Driver-Board.png 692w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/A-ULN2003-Driver-Board-300x198.png 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><figcaption>A ULN2003 driver board <br>(Source: electronicoaldas)<\/figcaption><\/figure><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Why you need the ULN2003?<\/h3>\n\n\n\n<p>The 28BYJ-48 stepper motor consumes high current and hence, we will need to use a driver IC like the ULN2003 in order to control the motor with a microcontroller like the Arduino. Known for its high current and high voltage capacity, the ULN2003 gives a higher current gain than a single transistor and enables the low voltage and low current output of a microcontroller to drive a higher current stepper motor.<\/p>\n\n\n\n<p>For example, a stepper motor that needs 9V and 300mA to operate cannot be powered by an Arduino. Hence, we connect this IC to source for enough current and voltage for the motor. If you have to power anything more than 5V and 80mA, the ULN2003 driver board should be used.<\/p>\n\n\n\n<p>I do not recommend powering the stepper motor directly from the Arduino.  I will explain more below.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Pin Arrangement<\/strong><\/h2>\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\/03\/Schematic-of-the-pin-arrangement.png\" alt=\"\" class=\"wp-image-20784\" width=\"478\" height=\"190\" srcset=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Schematic-of-the-pin-arrangement.png 955w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Schematic-of-the-pin-arrangement-300x119.png 300w, https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Schematic-of-the-pin-arrangement-768x305.png 768w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><figcaption>Schematic of the pin arrangement<br>(Source: Geeetech wiki)<\/figcaption><\/figure><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Connecting the 28BYJ-48 stepper motor to the ULN2003 driver board<\/h3>\n\n\n\n<p>Usually, the 28BYJ-48 stepper motor comes with a 5-pin connector that will fit to the ULN2003 driver board<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Connecting the ULN2003 driver board to the Arduino<\/h3>\n\n\n\n<p>Connect the ULN2003 driver lN1, lN2, lN3, lN4 to the Arduino digital pins 8, 9, 10, and 11 respectively. The driver board has two pins which are labeled GND and VCC, which are two pins for the power supply. The ULN2003 driver board\u2019s GND pin must be connected to the Arduino\u2019s GND pin. Similarly, the driver board\u2019s VCC pin should be connected to the Arduino\u2019s 5V pin.<\/p>\n\n\n\n<p><strong><span style=\"color: #f22707;\">Important note:<\/span> <\/strong>By using this setup, we are powering the stepper motor directly from the Arduino. Although this is the simplest way to provide power to the motor, it is not recommended to do so (connecting the driver board VCC pin to the 5V pin of the Arduino).<\/p>\n\n\n\n<p>This is because if the motor draws too much power, your Arduino can potentially be damaged. Do make sure that not more than 300mA is drawn out of your Arduino. If more power is needed, simply connect your driver board to an external voltage supply rather than using the Arduino\u2019s onboard power supply.<\/p>\n\n\n\n<p>But since we are at the initial learning stage of familiarizing ourselves with the setup, we will be powering the motor from the Arduino in this example to keep the connections simple. Once you have familiarized yourself with the connections, be sure to connect your motor to an external power source instead if more power is needed.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example Code for Connecting the Arduino<\/strong><\/h2>\n\n\n\n<p>The Arduino Integrated Development Environment (IDE), or Arduino software, comes pre-installed with a default stepper library. Hence, there is no need to download the library. On the first line of the code, we will first include the header file of this built-in stepper library.<\/p>\n\n\n\n<p>We define the number of steps that will be made for one revolution. Working out this number might be a little tricky, so here\u2019s how it&#8217;s done.<\/p>\n\n\n\n<p>Stepper motors can be driven in different modes and they have a specific gear ratio. Both factors have an influence on the number of steps per revolution. For this example, we shall drive the motor in a mode known as the full step mode, with each step corresponding to a rotation of 11.25 degrees according to the datasheet. That means there are 32 steps per revolution (360\/11.25 = 32). In addition, the manufacturer has specified a gear ratio of 64:1 for the 28BYJ-48 stepper motor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How it works?<\/h3>\n\n\n\n<p>To obtain the final number of steps, the gear ratio must be multiplied by the number of steps per revolution, 32. The more accurate value for the gear ratio is actually about 63.68395:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Therefore, we set the final number of steps to 2038 (32 x 63.68395 = 2037.8864).<\/li><li>Initialize the stepper. Within the brackets are the parameters. The first parameter is the number of steps. As it was already defined in the previous line, we can write STEPS to represent this number. The other parameters correspond to the Arduino pins that are used to connect the ULN2003 driver board. As stated previously, the pins are 8, 9, 10 and 11.<\/li><li>The next loop function is where we will write our code to drive the motor. For the first line of the loop, we set the speed of one revolution to one per minute. <\/li><li>Tell the stepper motor to do 2038 steps. Since one revolution corresponds to 2038 steps as we have calculated previously, that means the motor shaft should move a full revolution within about one minute.<\/li><li>We set a delay of one second. In the next two lines, we do the same thing again &#8211; setting the number of revolutions per minute and commanding the stepper to do a number of steps. However, this time, we set the speed to 6 rounds per minute and move the shaft in the other direction by setting a negative number of steps. This means that the motor will move 6 times faster, and should complete a full revolution in about 10s (60s \/ 6 = 10s).<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Here\u2019s the example code. Upload the following code into your Arduino programme and try it out yourself! <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1.\t#include &lt;Stepper.h&gt;\n2.\t\n3.\t#define STEPS 2038 \/\/ the number of steps in one revolution of your motor (28BYJ-48)\n4.\t\n5.\tStepper stepper(STEPS, 8, 10, 9, 11);\n6.\t\n7.\tvoid setup() {\n8.\t\/\/ nothing to do\n9.\t}\n10.\t\n11.\tvoid loop() {\n12.\tstepper.setSpeed(1); \/\/ 1 rpm\n13.\tstepper.step(2038); \/\/ do 2038 steps -- corresponds to one revolution in one minute\n14.\tdelay(1000); \/\/ wait for one second\n15.\tstepper.setSpeed(6); \/\/ 6 rpm\n16.\tstepper.step(-2038); \/\/ do 2038 steps in the other direction with faster speed -- corresponds to one revolution in 10 seconds\n17.\t}<\/code><\/pre>\n\n\n\n<p>Code by: Michael Schoeffler<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Moving Forward<\/h3>\n\n\n\n<p>This is merely some simple code to get you started on getting the stepper motor up and running. Starting out in the electronics arena can be pretty daunting and at times can fill you with feelings of doubt and inadequacy, especially when your code doesn\u2019t run.<\/p>\n\n\n\n<p>So start with a few simple codes. After some more practice to build up your confidence, be sure to try out more complex codes so that you can get the motor to do more things. Github, a platform with millions of open-source projects, is a good place to start looking for more example codes to play around with.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>Now that you have gotten a gist of how to operate the 28BYJ-48 stepper motor with the ULN2003 driver board and Arduino, have a browse at the Seeed Bazaar <a href=\"https:\/\/www.seeedstudio.com\/catalogsearch\/result\/?cat=&amp;q=stepper+motor\">here<\/a>, where you can find quality stepper motors, driver boards, and Arduino microcontrollers for your next project. Also, check out the <a href=\"https:\/\/www.seeedstudio.com\/Gear-Stepper-Motor-Driver-Pack-p-3200.html\">stepper motor driver pack<\/a> that comes with both the 28BYJ-48 stepper motor and a ULN2003 driver board at affordable prices.<\/p>\n\n\n\n<p>So that\u2019s all for this guide! Feel free to leave any questions in the comments section, and we\u2019ll do our best to get back to them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The 28BYJ-48 stepper motor is widely used to control a myriad of common devices we<\/p>\n","protected":false},"author":1047,"featured_media":20764,"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,1108,2174,2183,1276],"class_list":["post-20763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-arduino","tag-arduino-project","tag-arduino-stepper-motor","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>How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio<\/title>\n<meta name=\"description\" content=\"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It&#039;s easier than you think!\" \/>\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\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It&#039;s easier than you think!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-04T01:14:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-30T11:49:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Helen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Helen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 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\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/\",\"name\":\"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png\",\"datePublished\":\"2019-03-04T01:14:42+00:00\",\"dateModified\":\"2021-06-30T11:49:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/d80b80b118296b8bb943483781e32d6c\"},\"description\":\"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It's easier than you think!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png\",\"contentUrl\":\"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board\"}]},{\"@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\/d80b80b118296b8bb943483781e32d6c\",\"name\":\"Helen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/90d7f1125db8e7bc11f99cffc4e150ad?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/90d7f1125db8e7bc11f99cffc4e150ad?s=96&r=g\",\"caption\":\"Helen\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/helen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio","description":"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It's easier than you think!","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\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/","og_locale":"en_US","og_type":"article","og_title":"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio","og_description":"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It's easier than you think!","og_url":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2019-03-04T01:14:42+00:00","article_modified_time":"2021-06-30T11:49:05+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png","type":"image\/png"}],"author":"Helen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Helen","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/","url":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/","name":"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png","datePublished":"2019-03-04T01:14:42+00:00","dateModified":"2021-06-30T11:49:05+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/d80b80b118296b8bb943483781e32d6c"},"description":"We have summarised a guide on how to use a 28BYJ-48 stepper motor with an Arduino by using a ULN2003 driver board. It's easier than you think!","breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#primaryimage","url":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png","contentUrl":"https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2019\/03\/04\/driving-a-28byj-48-stepper-motor-with-a-uln2003-driver-board-and-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to use Arduino as a 28BYJ-48 Stepper Motor Controller with a ULN2004 Driver Board"}]},{"@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\/d80b80b118296b8bb943483781e32d6c","name":"Helen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/90d7f1125db8e7bc11f99cffc4e150ad?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/90d7f1125db8e7bc11f99cffc4e150ad?s=96&r=g","caption":"Helen"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/helen\/"}]}},"modified_by":"Dennis Ong","views":175997,"featured_image_urls":{"full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",1200,600,false],"thumbnail":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-80x80.png",80,80,true],"medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-300x150.png",300,150,true],"medium_large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-768x384.png",640,320,true],"large":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image-1030x515.png",640,320,true],"1536x1536":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",1200,600,false],"2048x2048":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",1200,600,false],"visody_icon":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",32,16,false],"magazine-7-slider-full":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",1200,600,false],"magazine-7-slider-center":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",936,468,false],"magazine-7-featured":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",1024,512,false],"magazine-7-medium":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",720,360,false],"magazine-7-medium-square":["https:\/\/www.seeedstudio.com\/blog\/wp-content\/uploads\/2019\/03\/Featured-Image.png",675,338,false]},"author_info":{"display_name":"Helen","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/helen\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"5","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/20763","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\/1047"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=20763"}],"version-history":[{"count":44,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/20763\/revisions"}],"predecessor-version":[{"id":47482,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/20763\/revisions\/47482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media\/20764"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=20763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=20763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=20763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}