My stepper driver won't light up

So my stepper driver won't light up even do I already put up all the pins,what should i do?

// Include the Stepper library
#include <Stepper.h>

// Define the number of steps per revolution
const int stepsPerRevolution = 2000; // Adjust this based on your stepper motor specifications

// Create a Stepper object
Stepper myStepper(stepsPerRevolution, 8, 10, 9, 11); // Adjust pin numbers based on your wiring

void setup() {
// Set the speed of the motor (adjust as needed)
myStepper.setSpeed(500);
}

void loop() {
// Step the motor one step at a time
myStepper.step(1);

delay(5); // Adjust delay as needed for your application
}

I moved your topic to an appropriate forum category @jp24yt.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

If you have a stepper driver (DIR+STEP) then your initialisation is wron (COIL1,COIL2,COIL3,COIL4)

I'm sorry I didn't get it😅... I change my code though but it isn't working at all..... Here my new code
#include <Stepper.h>

int motorSpeed =10;
Stepper myStepper (2048, 8,10,9,11);

void setup() {
// put your setup code here, to run once:
myStepper.setSpeed(motorSpeed);
myStepper.step(1024);
delay(100);
myStepper.step(-1024);
delay(100);
}

void loop() {
// put your main code here, to run repeatedly:
myStepper.step(1024);
delay(1000);
}

Actually my problem here just started yesterday.... The driver lights up but when I connect the stepper motor it won't light up and don't even move even a little bit🤦

To complete the details my connection looks like this:

Photo not mine.. but the wiring are same

The battery also?

See @Railroader comment.

Get a battery pack that can hold 5 or 6 AA batteries (not the 9v square battery). Your code works. Your power does not.

The battery that I used is a Eveready

It doesn't matter what brand of that battery You use. That type is of the wrong kind. It's suitable for fire alarms or remotes, nothing more. It doesn't deliver enough current. Look at datasheets for that kind of battery!

If your motor is 5volt, you need a 5 volt source that can supply a solid 500mA (1/2 Amp) or better, if 12 volt, 250mA. You cannot run a 28BYJ-48 from the Arduino's 5 volt pin.

Hello, I am having the exact same issue following this tutorial with a 5000mAh charging pack instead of a battery. Same exact wire setup. I still have not found the answer, have you?

@vinson_grace - Start your own topic to get help for your problem. Keep issues separate. Seldom are two problems exactly the same.