{"id":14265,"date":"2025-05-31T21:16:55","date_gmt":"2025-05-31T15:46:55","guid":{"rendered":"https:\/\/johnsonfrancis.org\/techworld\/?p=14265"},"modified":"2025-05-31T21:37:14","modified_gmt":"2025-05-31T16:07:14","slug":"controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico","status":"publish","type":"post","link":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/","title":{"rendered":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico"},"content":{"rendered":"<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/0NXXDsM4HLc?si=BinN-tRCgCW_nfIx\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\n<p class=\"wp-block-paragraph\">Raspberry Pi Pico is a powerful microcontroller from the Raspberry Pi Foundation. NEMA 17 stepper motor is widely used in robotics and 3D printing projects. Unlike the usual direct current motors, it moves in small steps depending on the the signals given to it. Hence it is possible to know its position without an additional sensor. A driver unit like <a href=\"https:\/\/how2electronics.com\/control-stepper-motor-with-a4988-raspberry-pi-pico\/\">A4988<\/a> is needed to drive the NEMA 17 stepper motor with a microcontroller. A more powerful driver is the\u00a0<a href=\"https:\/\/how2electronics.com\/control-stepper-motor-with-drv8825-raspberry-pi-pico\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>DRV8825 driver<\/strong><\/a>, which I have not purchased yet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico-1-1024x571.jpg\" alt=\"\" class=\"wp-image-14270\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico-1-1024x571.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico-1-300x167.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico-1-768x428.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico-1.jpg 1210w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A4988 driver has features like adjustable current limiting, protection against over current and over temperature and the facility to choose among five microstep resolutions. It can operate with a wide range of supply voltages from 8V to 35V. About 1A current can be delivered without a heat sink or forced airflow cooling. With heat sink and good cooling, A4988 driver can take up to 2A current per coil. The driver supports full, half, quarter, eighth, and sixteenth step modes of operation. Though there is a thermal shutdown circuitry, there is no reverse voltage protection for A4988 driver.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"573\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/A4988-with-Heat-sink-1024x573.jpg\" alt=\"\" class=\"wp-image-14271\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/A4988-with-Heat-sink-1024x573.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/A4988-with-Heat-sink-300x168.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/A4988-with-Heat-sink-768x430.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/A4988-with-Heat-sink.jpg 1206w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>A4988 with Heat sink<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A4988 has been photographed with the heat sink so that the processor is not visible. Here is the photograph taken before the heat sink was fixed. Image has been inverted so that the processor name can be read. The preset potentiometer is seen at the top in the second image while it is at the bottom in the first image. Both these are magnified images. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"579\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Preset-and-processor-of-A4988-stepper-motor-driver-1024x579.jpg\" alt=\"\" class=\"wp-image-14272\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Preset-and-processor-of-A4988-stepper-motor-driver-1024x579.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Preset-and-processor-of-A4988-stepper-motor-driver-300x170.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Preset-and-processor-of-A4988-stepper-motor-driver-768x435.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Preset-and-processor-of-A4988-stepper-motor-driver.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Preset and processor of A4988 stepper motor driver<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">VMOT pin at the top can be used to supply power for the stepper motor which may range from 8V to 35 V. Pin adjacent to that is a GND pin. Lowermost pins on the same side are the VDD which drives the internal logic circuitry running on 3V to 5V. There is a GND pin near that as well. MS1, MS2 and MS3 pins on the opposite side are the Microstep Select pins. If all the three are set at &#8216;low&#8217; or zero voltage, the stepper motor works in full step mode. If all of them are set at &#8216;high&#8217; then the stepper motor functions in the sixteenth step mode. Other permutations and combinations permit use in the other step modes of the stepper motor. Below that there are STEP and DIR pins. STEP controls the micro-steps of the motor while DIR controls the spinning direction of the motor.  Remaining pins on that side are the ENABLE, RESET and SLEEP pins. Low input to the ENABLE pin enables the driver. Low input to the SLEEP pin puts the driver in sleep mode with minimal power consumption. Low input to the RESET pin causes it to ignore STEP inputs. It can also reset the internal translator to the initial stage of the motor. Remaining pins on the other side are the four output pins as 2B, 2A, 1B and 1A. They can be connected to any bipolar stepper motor with voltages between 8V to 35 V.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Pinout-diagram-of-A4988-motor-driver-1024x575.jpg\" alt=\"\" class=\"wp-image-14274\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Pinout-diagram-of-A4988-motor-driver-1024x575.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Pinout-diagram-of-A4988-motor-driver-300x168.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Pinout-diagram-of-A4988-motor-driver-768x431.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Pinout-diagram-of-A4988-motor-driver.jpg 1202w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Pinout diagram of A4988 motor driver<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The number 17 in the name of NEMA 17 stepper motor refers to the dimensions of the faceplate, measuring 1.7 inches on each side. This motor moves in steps of 1.8 degrees, with 200 steps for a full revolution. NEMA stands for National Electrical Manufacturers Association which brought out the specifications for stepper motors. Larger stepper motors will have a larger number. Though there are six leads coming out of the NEMA 17 stepper motor from two coils, two of them are center taps and I have not connected them here. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Other than checking continuity, integrity of the coils can be checked by connecting an LED across them and rotating the shaft manually which causes the LED to light up. This particular motor has a gear fitted on the shaft.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Checking-integrity-of-stepper-motor-coil-with-LED-1024x576.jpg\" alt=\"\" class=\"wp-image-14276\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Checking-integrity-of-stepper-motor-coil-with-LED-1024x576.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Checking-integrity-of-stepper-motor-coil-with-LED-300x169.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Checking-integrity-of-stepper-motor-coil-with-LED-768x432.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Checking-integrity-of-stepper-motor-coil-with-LED.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Checking integrity of stepper motor coil with LED<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I used the circuit diagram given at <a href=\"https:\/\/how2electronics.com\/control-stepper-motor-with-a4988-raspberry-pi-pico\/\">how2electronics.com<\/a>. First the 2B, 2A, 1B and 1A pins of the A4988 driver were connected to the four wires from the stepper motor. They are the pins for driving the two coils in the stepper motor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"690\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Driver-output-pins-connected-to-stepper-motor-1024x690.jpg\" alt=\"\" class=\"wp-image-14281\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Driver-output-pins-connected-to-stepper-motor-1024x690.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Driver-output-pins-connected-to-stepper-motor-300x202.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Driver-output-pins-connected-to-stepper-motor-768x518.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Driver-output-pins-connected-to-stepper-motor.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Driver output pins connected to stepper motor<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">100\u03bcF decoupling capacitor was then connected across the stepper motor power supply. That was across the VMOT and GND pins of the A4988 driver.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/100\u03bcF-decoupling-capacitor-across-stepper-motor-power-supply-1024x493.jpg\" alt=\"\" class=\"wp-image-14285\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/100\u03bcF-decoupling-capacitor-across-stepper-motor-power-supply-1024x493.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/100\u03bcF-decoupling-capacitor-across-stepper-motor-power-supply-300x144.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/100\u03bcF-decoupling-capacitor-across-stepper-motor-power-supply-768x370.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/100\u03bcF-decoupling-capacitor-across-stepper-motor-power-supply.jpg 1402w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">100\u03bcF decoupling capacitor across stepper motor power supply<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next those two pins were connected to a 12V battery using a couple of jumper wires.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"579\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Connected-to-a-12V-battery-using-a-couple-of-jumper-wires-1024x579.jpg\" alt=\"\" class=\"wp-image-14287\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Connected-to-a-12V-battery-using-a-couple-of-jumper-wires-1024x579.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Connected-to-a-12V-battery-using-a-couple-of-jumper-wires-300x170.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Connected-to-a-12V-battery-using-a-couple-of-jumper-wires-768x435.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Connected-to-a-12V-battery-using-a-couple-of-jumper-wires.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>Connected to a 12V battery using a couple of jumper wires<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/how2electronics.com\/wp-content\/uploads\/2023\/05\/NEMA17-Stepper-Motor.jpg\"><\/a>GP16 pin of Raspberry Pi Pico was connected to DIR pin of the driver and GP17 pin to STEP pin of the driver unit. They are the pins for controlling the direction of stepper motor rotation and the step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/GP16-pin-to-DIR-and-GP17-Pin-to-STEP-1024x575.jpg\" alt=\"\" class=\"wp-image-14289\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/GP16-pin-to-DIR-and-GP17-Pin-to-STEP-1024x575.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/GP16-pin-to-DIR-and-GP17-Pin-to-STEP-300x168.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/GP16-pin-to-DIR-and-GP17-Pin-to-STEP-768x431.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/GP16-pin-to-DIR-and-GP17-Pin-to-STEP.jpg 1202w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>GP16 pin to DIR and GP17 Pin to STEP<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">20\u03bcF decoupling capacitor was connected across VDD and GND of the driver unit. That is the connection for the 5V power for internal logic circuitry. These were in turn connected to the VBUS and GND pins of Raspberry Pi Pico. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/20\u03bcF-decoupling-capacitor-was-connected-across-VDD-and-GND-1024x576.jpg\" alt=\"\" class=\"wp-image-14291\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/20\u03bcF-decoupling-capacitor-was-connected-across-VDD-and-GND-1024x576.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/20\u03bcF-decoupling-capacitor-was-connected-across-VDD-and-GND-300x169.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/20\u03bcF-decoupling-capacitor-was-connected-across-VDD-and-GND-768x432.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/20\u03bcF-decoupling-capacitor-was-connected-across-VDD-and-GND.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>20\u03bcF decoupling capacitor was connected across VDD and GND<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The 5V power was obtained by using a 7805 voltage regulator IC which would step down the 12V battery power supply.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/5V-power-was-obtained-by-using-a-7805-voltage-regulator-IC-1024x576.jpg\" alt=\"\" class=\"wp-image-14293\" srcset=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/5V-power-was-obtained-by-using-a-7805-voltage-regulator-IC-1024x576.jpg 1024w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/5V-power-was-obtained-by-using-a-7805-voltage-regulator-IC-300x169.jpg 300w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/5V-power-was-obtained-by-using-a-7805-voltage-regulator-IC-768x432.jpg 768w, https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/5V-power-was-obtained-by-using-a-7805-voltage-regulator-IC.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>5V power was obtained by using a 7805-voltage regulator IC<\/strong><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">MicroPython Code for Basic Stepper Motor Control was obtained from the <a href=\"https:\/\/how2electronics.com\/control-stepper-motor-with-a4988-raspberry-pi-pico\/\">how2electronics.com<\/a> page and pasted into a Thonny window just as I had done for the previous <strong><a href=\"https:\/\/johnsonfrancis.org\/techworld\/running-first-micropython-script-in-raspberry-pi-pico\/\">blinking example LED code<\/a><\/strong>. Then I clicked on the &#8216;Run current script&#8217; in the Run menu of Thonny and the stepper motor started moving in tiny steps! This is the first step in my future project of getting an antenna rotate according to computer code. I know it it is a long way off, but I do dream of getting my Moxon Yagi for satellite operations controlled by a stepper motor and Gpredict software in the long run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi Pico is a powerful microcontroller from the Raspberry Pi Foundation. NEMA 17 stepper motor is widely used in robotics and 3D printing projects. Unlike the usual direct current motors, it moves in small steps depending on the the signals given to it. Hence it is possible to know its position without an additional [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14269,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-14265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amateur-radio-ham-radio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld<\/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:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld\" \/>\n<meta property=\"og:description\" content=\"Raspberry Pi Pico is a powerful microcontroller from the Raspberry Pi Foundation. NEMA 17 stepper motor is widely used in robotics and 3D printing projects. Unlike the usual direct current motors, it moves in small steps depending on the the signals given to it. Hence it is possible to know its position without an additional [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/\" \/>\n<meta property=\"og:site_name\" content=\"Johnson&#039;s Techworld\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-31T15:46:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-31T16:07:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1210\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Johnson Francis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Johnson Francis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/\"},\"author\":{\"name\":\"Johnson Francis\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#\\\/schema\\\/person\\\/6201c843e80ccd3578e6196b1d007027\"},\"headline\":\"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico\",\"datePublished\":\"2025-05-31T15:46:55+00:00\",\"dateModified\":\"2025-05-31T16:07:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/\"},\"wordCount\":1008,\"publisher\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#\\\/schema\\\/person\\\/6201c843e80ccd3578e6196b1d007027\"},\"image\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg\",\"articleSection\":[\"Amateur Radio (Ham Radio)\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/\",\"url\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/\",\"name\":\"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg\",\"datePublished\":\"2025-05-31T15:46:55+00:00\",\"dateModified\":\"2025-05-31T16:07:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#primaryimage\",\"url\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg\",\"contentUrl\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg\",\"width\":1210,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#website\",\"url\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/\",\"name\":\"Johnson's Techworld\",\"description\":\"Johnson&#039;s Techworld\",\"publisher\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#\\\/schema\\\/person\\\/6201c843e80ccd3578e6196b1d007027\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/#\\\/schema\\\/person\\\/6201c843e80ccd3578e6196b1d007027\",\"name\":\"Johnson Francis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/channels4_profile.jpg\",\"url\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/channels4_profile.jpg\",\"contentUrl\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/channels4_profile.jpg\",\"width\":600,\"height\":600,\"caption\":\"Johnson Francis\"},\"logo\":{\"@id\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/channels4_profile.jpg\"},\"description\":\"Amateur Radio Operator VU2JO. Originally licensed as VU2JFP with Grade 1 license in 1985. Upgraded to Advanced Grade in 1988 and was allotted new callsign to VU2JO\",\"sameAs\":[\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\",\"https:\\\/\\\/www.youtube.com\\\/@johnsonstechworld\\\/\"],\"url\":\"https:\\\/\\\/johnsonfrancis.org\\\/techworld\\\/author\\\/jf\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld","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:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/","og_locale":"en_US","og_type":"article","og_title":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld","og_description":"Raspberry Pi Pico is a powerful microcontroller from the Raspberry Pi Foundation. NEMA 17 stepper motor is widely used in robotics and 3D printing projects. Unlike the usual direct current motors, it moves in small steps depending on the the signals given to it. Hence it is possible to know its position without an additional [&hellip;]","og_url":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/","og_site_name":"Johnson&#039;s Techworld","article_published_time":"2025-05-31T15:46:55+00:00","article_modified_time":"2025-05-31T16:07:14+00:00","og_image":[{"width":1210,"height":675,"url":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg","type":"image\/jpeg"}],"author":"Johnson Francis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Johnson Francis","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#article","isPartOf":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/"},"author":{"name":"Johnson Francis","@id":"https:\/\/johnsonfrancis.org\/techworld\/#\/schema\/person\/6201c843e80ccd3578e6196b1d007027"},"headline":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico","datePublished":"2025-05-31T15:46:55+00:00","dateModified":"2025-05-31T16:07:14+00:00","mainEntityOfPage":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/"},"wordCount":1008,"publisher":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/#\/schema\/person\/6201c843e80ccd3578e6196b1d007027"},"image":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg","articleSection":["Amateur Radio (Ham Radio)"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/","url":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/","name":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico - Johnson&#039;s Techworld","isPartOf":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/#website"},"primaryImageOfPage":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#primaryimage"},"image":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg","datePublished":"2025-05-31T15:46:55+00:00","dateModified":"2025-05-31T16:07:14+00:00","breadcrumb":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#primaryimage","url":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg","contentUrl":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/05\/Controlling-NEMA-17-stepper-motor-with-driver-A4988-and-Raspberry-Pi-Pico.jpg","width":1210,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/johnsonfrancis.org\/techworld\/controlling-nema-17-stepper-motor-with-driver-a4988-and-raspberry-pi-pico\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/johnsonfrancis.org\/techworld\/"},{"@type":"ListItem","position":2,"name":"Controlling NEMA 17 stepper motor with driver A4988 and Raspberry Pi Pico"}]},{"@type":"WebSite","@id":"https:\/\/johnsonfrancis.org\/techworld\/#website","url":"https:\/\/johnsonfrancis.org\/techworld\/","name":"Johnson's Techworld","description":"Johnson&#039;s Techworld","publisher":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/#\/schema\/person\/6201c843e80ccd3578e6196b1d007027"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/johnsonfrancis.org\/techworld\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/johnsonfrancis.org\/techworld\/#\/schema\/person\/6201c843e80ccd3578e6196b1d007027","name":"Johnson Francis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/01\/channels4_profile.jpg","url":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/01\/channels4_profile.jpg","contentUrl":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/01\/channels4_profile.jpg","width":600,"height":600,"caption":"Johnson Francis"},"logo":{"@id":"https:\/\/johnsonfrancis.org\/techworld\/wp-content\/uploads\/2025\/01\/channels4_profile.jpg"},"description":"Amateur Radio Operator VU2JO. Originally licensed as VU2JFP with Grade 1 license in 1985. Upgraded to Advanced Grade in 1988 and was allotted new callsign to VU2JO","sameAs":["https:\/\/johnsonfrancis.org\/techworld","https:\/\/www.youtube.com\/@johnsonstechworld\/"],"url":"https:\/\/johnsonfrancis.org\/techworld\/author\/jf\/"}]}},"_links":{"self":[{"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/posts\/14265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/comments?post=14265"}],"version-history":[{"count":19,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/posts\/14265\/revisions"}],"predecessor-version":[{"id":14296,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/posts\/14265\/revisions\/14296"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/media\/14269"}],"wp:attachment":[{"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/media?parent=14265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/categories?post=14265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnsonfrancis.org\/techworld\/wp-json\/wp\/v2\/tags?post=14265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}