ey!
I am using a 28BYJ-48 stepper connected to a uln2003 stepper driver and an arduino uno.
I would like to have it turning pretty slow, if possible without seeing the steps, and I have seen in a video (28BYJ-48 stepper motor and ULN2003 Arduino (Quick tutorial for beginners) - YouTube) where it is said that it is possible to do microstepping with this stepper, reaching 2048 steps/rev, but I havent found information on how to do that. I have seen in Stepper Motor Basics that A4988 can make the motor move in 1/16th steps. Is that also possible with uln2003?
Somebody could guide me on this?
This is the code as it have it so far:
#define STEPPER_PIN_1 8
#define STEPPER_PIN_2 9
#define STEPPER_PIN_3 10
#define STEPPER_PIN_4 11
int stepdelay = 50;
void setup() {
pinMode(STEPPER_PIN_1, OUTPUT);
pinMode(STEPPER_PIN_2, OUTPUT);
pinMode(STEPPER_PIN_3, OUTPUT);
pinMode(STEPPER_PIN_4, OUTPUT);
}
void loop() {
digitalWrite(STEPPER_PIN_1, HIGH);
digitalWrite(STEPPER_PIN_2, LOW);
digitalWrite(STEPPER_PIN_3, LOW);
digitalWrite(STEPPER_PIN_4, LOW);
delay(stepdelay);
digitalWrite(STEPPER_PIN_1, LOW);
digitalWrite(STEPPER_PIN_2, HIGH);
digitalWrite(STEPPER_PIN_3, LOW);
digitalWrite(STEPPER_PIN_4, LOW);
delay(stepdelay);
digitalWrite(STEPPER_PIN_1, LOW);
digitalWrite(STEPPER_PIN_2, LOW);
digitalWrite(STEPPER_PIN_3, HIGH);
digitalWrite(STEPPER_PIN_4, LOW);
delay(stepdelay);
digitalWrite(STEPPER_PIN_1, LOW);
digitalWrite(STEPPER_PIN_2, LOW);
digitalWrite(STEPPER_PIN_3, LOW);
digitalWrite(STEPPER_PIN_4, HIGH);
delay(stepdelay);
}