Stepper motor not turning correctly

Help !!! need some assistance on a stepper motor connection, I am using a DRV8825 driver and having trouble getting it working, have checked the connections several times and all seems OK, also checked the motor (Low profile NEMA 17) connections and have the coils paired correctly. Using some test code I found here https://www.makerguides.com/drv8825-stepper-motor-driver-arduino-tutorial/ which just turns the motor clockwise and anti, continuously. I have set the current limit on the chip to the minimum to move the motor.
The symptoms are one coil connection will drive the motor in one direction well. if I swap the connections around the direction changes. It doesn't matter which combinations of chip pins or motor coil I use it works OK in one or the other direction.
When I connect the other motor winding all I get is vibration and no movement, I have tried reversing one set of connections and increasing the current via the adjustment pot. to no avail. The motor is OK as it works with a L298N driver (which has 200 steps), but I need more than 200 steps.
Any clues as to where the problem might lie.

That description does not seem to be the way stepper motors operate. Pleas provide a link to the specification of the actual motor you are using.
Paul

Post clear photos of your wiring.

Post the actual code that you used. Read the forum guidelines.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Actual code

#define dirPin 2
#define stepPin 3
#define stepsPerRevolution 200
void setup() {
// Declare pins as output:
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
}
void loop() {
// Set the spinning direction clockwise:
digitalWrite(dirPin, HIGH);
// Spin the stepper motor 1 revolution slowly:
for (int i = 0; i < stepsPerRevolution; i++) {
// These four lines result in 1 step:
digitalWrite(stepPin, HIGH);
delayMicroseconds(2000);
digitalWrite(stepPin, LOW);
delayMicroseconds(2000);
}
delay(1000);
// Set the spinning direction counterclockwise:
digitalWrite(dirPin, LOW);
// Spin the stepper motor 1 revolution quickly:
for (int i = 0; i < stepsPerRevolution; i++) {
// These four lines result in 1 step:
digitalWrite(stepPin, HIGH);
delayMicroseconds(1000);
digitalWrite(stepPin, LOW);
delayMicroseconds(1000);
}

delay(1000);
// Set the spinning direction clockwise:
digitalWrite(dirPin, HIGH);
// Spin the stepper motor 5 revolutions fast:
for (int i = 0; i < 5 * stepsPerRevolution; i++) {
// These four lines result in 1 step:
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}
delay(1000);
// Set the spinning direction counterclockwise:
digitalWrite(dirPin, LOW);
//Spin the stepper motor 5 revolutions fast:
for (int i = 0; i < 5 * stepsPerRevolution; i++) {
// These four lines result in 1 step:
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}
delay(1000);
}

Spec of motor

17Hs08 1004S 4 Lead

I guess you did not want to take the time to read the forum guidelines to see how to properly post code. Well here is your code formatted with the IDE auto format tool and posted properly in code tags.

#define dirPin 2
#define stepPin 3
#define stepsPerRevolution 200
void setup()
{
   // Declare pins as output:
   pinMode(stepPin, OUTPUT);
   pinMode(dirPin, OUTPUT);
}
void loop()
{
   // Set the spinning direction clockwise:
   digitalWrite(dirPin, HIGH);
   // Spin the stepper motor 1 revolution slowly:
   for (int i = 0; i < stepsPerRevolution; i++)
   {
      // These four lines result in 1 step:
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(2000);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(2000);
   }
   delay(1000);
   // Set the spinning direction counterclockwise:
   digitalWrite(dirPin, LOW);
   // Spin the stepper motor 1 revolution quickly:
   for (int i = 0; i < stepsPerRevolution; i++)
   {
      // These four lines result in 1 step:
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(1000);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(1000);
   }

   delay(1000);
   // Set the spinning direction clockwise:
   digitalWrite(dirPin, HIGH);
   // Spin the stepper motor 5 revolutions fast:
   for (int i = 0; i < 5 * stepsPerRevolution; i++)
   {
      // These four lines result in 1 step:
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(500);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(500);
   }
   delay(1000);
   // Set the spinning direction counterclockwise:
   digitalWrite(dirPin, LOW);
   //Spin the stepper motor 5 revolutions fast:
   for (int i = 0; i < 5 * stepsPerRevolution; i++)
   {
      // These four lines result in 1 step:
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(500);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(500);
   }
   delay(1000);
}

Sorry, this is the first time, will do better next time!

What is the stepper motor power supply?

Post clear photos of your wiring.

@mikem1 your duplicate topic on the same subject has been deleted

Why did you create a second topic ?

Motor power supply is a 9V 1A mains power brick - no wiring diagram as its just pluged straight into the VMOT and GND terminals (my meter shows 15.1V but that may be a dodgy meter). The Arduino Uno supplies the GND and 5V for the SLP and RST pins

Wasn't sure the first topic was created correctly

I have a computer power supply at 12V could try that?

Is that with no load or when the motor is trying to operate?

If the motor supply voltage drops below 7.8Vdc the DRV8825 chip will go into UndervoltageLockout(UVLO) mode, disabling the output drivers and resetting the chip.
See 8.3.7.3 of the data sheet.

#define dirPin 2
#define stepPin 3
#define stepsPerRevolution 200
void setup()
{
// Declare pins as output:
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
}
void loop()
{
digitalWrite(dirPin, LOW);

// Spin the stepper motor 1 revolution quickly:
for (int i = 0; i < stepsPerRevolution; i++)
{
// These four lines result in 1 step:
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}
delay(2000);
}

Sorry again, I fortmatted the code but my spacing was takrn out.
15V was with no load. I have changed to a 12V supply (chip gets hot). The new code works fine with all motor connections made. Many thanks for your help, it was an under voltage problem.
PROMISE I WILL FIND OUT HOW TO FORMAT CODE CORRECTLY

In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.

Your code may try to make the motor disobey the laws of physics, but the motor isn't going to comply.

Speed ramping is necessary for all but the tiniest stepper motors to allow for inertia - there is a limit to the angular acceleration the motor can sustain. For instance the AccelStepper library makes this easy to do.

My main code has between a 5 and 10 microsecond delay between steps, the motor is a small NEMA17, which can achieve 60rpm so I don't think it is having problems with inertia - but my expertise is software not hardware.

Having another problem though, the L298N driver gets very hot very quickly, as does the stepper motor, Have tried a 8825 driver and 2049 both at 12 Volts, both of which I may have damaged with overheating. so deciding to go with TB6600 from Makers Hut, shouldn't be this difficult to spin a motor. Any thoughts anyone?

100kHz to 200kHz step rate?

You don't understand inertia then - the only stepper I've seen thats able to accelerate to full speed without ramping was 6mm by 6mm in size.

Inertia of a motor's rotor goes approximately as the 5th power of motor size, you
can't ignore the inertia of a NEMA17 unless you only want to go slowly. I've had a NEMA 17 reach 2400rpm if driven suitably.

Clearly I don't understand stepper motor inertia! The maximum I will be running at is 1 rev in 4 sec, or 15 rpm, I don't seem to have a problem at the moment with this, but I will be building a cnc router where I suspect this may be an issue - I may use Mach3 so this may be takem care of.
The problem I do have is with heat, re my previous post - if you could comment on that it would be very helpful.
Many thanks for your comments.