Stepper motor doesn't work

So that means I started with correct wiring and then changed it to wrong :slight_smile: I'm adding here current diagram:

I have. To 100ms. This made no difference. Measurements of coils:

Coil 2:
2.79
2.79

Coil 1:
11.75
11.75

I have no idea. Where should I look? Or what should I measure? Below link to this module.

I measured voltage on VDD pin on a4988 itself and it's 3.25, so it should be fine, I guess?

One motor coil should be connected to 1A & 1B, the other to 2A & 2B, do you have a jumper from RESET to SLEEP?

That is not what documentation says.

What document? Post a link to it.

@TomGeorge posted screenshot from pololu website.

@anon95813201 mentioned pololu website.

@MicroBahner linked to the pololu website.

@JCA34F this is the link to the pololu website: Pololu - A4988 Stepper Motor Driver Carrier

This is something I do not have, but only because I assumed it's been dealt with by this module board I have. It doesn't give me any option to do that.

Sorry, my bad on the terminal numbers, A4988 may not work without that jumper.

I have just measured and it is not shorted indeed!

Can I short it while it's all powered on?

How do you plan to do that? Sounds risky.

Sorry - false alarm. I have measured wrong pins. It is shorted, yes.

This is so annoying! What is wrong here?!

Is it possible stepper itself is broken somehow?

Current (most up to date) diagram below:

Hope you haven't been switching wires with power on, those drivers are easy to kill by breaking motor connections when powered.

My plan was to short RESET and SLEEP with just piece of wire from the top while it's all up and running, but then I decided to measure continuity with my multi-meter.

I can't say if I tried to switch cables with something on before - I didn't know those drivers are so fragile.

Thanks for this! I will keep it in mind (or at least I'll try) :wink:

I have another driver somewhere so I will replace to check.

It's very late here, I'll better go to sleep now :slight_smile:

I have swapped whole driver for new one and it made no difference. Help! I'm going crazy!

@TomGeorge I have measured voltage on the coils. What does this help with?

I didn't have the opportunity to read all the comments. but the codes are wrong. you only energize 1 pin and leave it. you need to do this. you need to energize each pin and cut it off after 10ms. I don't know the engine exactly, but I've dealt with similar before. usually the black cable gnd stays fixed and the other 3 cables need to have an operating sequence. You can best understand this by seeing it physically rotate by energizing the pins in turn with a 12v cable in your hand. for example, energize and pull gnd and green. energize and pull gnd and red. energize and pull gnd and blue. when it rotates a full turn, you can run the sequence of operations as 1 turn. it rotates to the other side with the opposite cycle. if there is no step counter on the servo card, you may need to do this in software.

ı say Example kod

// Define pin connections for the 4-pin motor
const int pin1 = 21;  // Motor's pin 1
const int pin2 = 22;  // Motor's pin 2
const int pin3 = 23;  // Motor's pin 3


void setup()
{
  Serial.begin(9600);  // Start serial communication
  // Declare all 4 motor pins as Outputs
  pinMode(pin1, OUTPUT);
  pinMode(pin2, OUTPUT);
  pinMode(pin3, OUTPUT);
}

void loop()
{
  Serial.println("loop start");
  
  // Pin sequence for opening and closing the motor
  // First open pin1, pin2, pin3 one by one
  
  digitalWrite(pin1, HIGH);  // Turn on pin 1
  delay(10);                  // Wait for 10ms
  digitalWrite(pin1, LOW);   // Turn off pin 1
  delay(10);                  // Wait for 10ms
  
  digitalWrite(pin2, HIGH);  // Turn on pin 2
  delay(10);                  // Wait for 10ms
  digitalWrite(pin2, LOW);   // Turn off pin 2
  delay(10);                  // Wait for 10ms
  
  digitalWrite(pin3, HIGH);  // Turn on pin 3
  delay(10);                  // Wait for 10ms
  digitalWrite(pin3, LOW);   // Turn off pin 3
  delay(10);                  // Wait for 10ms
  
  delay(1000);  // Wait a second before repeating the sequence
}

Thank you, but it seems like you're trying to run this stepper without driver?

You better should have done. You are talking about a completely different HW. You cannot drive a bipolar stepper that way.