A4988 Stepper Motor Driver Microstepping

Hello,

I'm using the Pololu A4988 Stepper Motor Driver Carrier Black Edition and an Arduino Nano Every to control a Nema 17 stepper motor.

Controlling the motor in Full Step Mode worked just fine!

Now I wanted to set up microstepping. I connected the MS1, MS2 and MS3 pins of the driver to three pins of the Arduino Nano and I adjusted the code (see picture of the code, now the motor should run in 1/16 step mode). But the motor just runs in full step mode just like before.

I checked if the pins and cables are defect but they are working properly. I also triple checked if I defined the pin numbers in the Code correcty. I also tried to set different current limits via the potentiometer on the driver, but that also didn't solve the problem. Unfortunately I have no multimeter at the time, so I changed different current levels "blind" and by the motor sounds, I was very carefull so that I didn't destroy the driver or motor, the motor is working after all, just the microstepping doesn't work. Maybe microstepping requires a specific current and I didn't hit that by trying different currents?

The motor still runs in full step mode, showing no signs of microstepping or any changes in the rotation.

I have the code from a Youtube video. In this video the code is working properly. So maybe I'm lacking of basic understandig. Is there something else to do than just connecting the three wires and adjusting the code to enable microstepping?

I would be very grateful if you could help me.

Please read and follow this link: How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum

Schematics need to be posted. Post code according to the link.

Please do not post photos of code. Please fix your original post by posting the code properly. Read the forum guidelines to see how to properly post code and some information on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Post some clear photos of your wiring.

No, but it is important that the current limit be set properly. To set the current limit you will need to know the value of the sense resistor on the A4988 driver board. Then enter the value of the resistor and the required coil current into the formula Vref = Imot x 8 x Rsen where Imot = the coil current and Rsen = the value of the sense resistor. The Pololu A4988 page covers how to set the Vref but you must use the sense resistor value on YOUR board. This page shows how to locate the sense resistor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.