#include <AccelStepper.h>
AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
void setup(){ //stepper.setMaxSpeed(1000); stepper.setMaxSpeed(10000); //stepper.setSpeed(400); stepper.setSpeed(8000); stepper.setMinPulseWidth(20); //stepper.setMinPulseWidth(200);}
void loop(){ stepper.runSpeed(); delay(5); //delay(2); //delay(50);}
The 28byj-48 are equipped with an internal reduction gear. If i remember correctly the gear ratios can range from 1/16 to 1/64, but the model designation does not contain information on the internal reduction gear ratio.
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
More info on gear ratios: https://grahamwideman.wikispaces.com/Motors-+28BYJ-48+Stepper+motor+notes
Don't put a delay in your loop() - it will ibterfere with AccelStepper. AccelStepper will only step when a step is due.
In my experience the 28byj-48 maxes out at about 100steps/second @ 5V.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper+unsubscribe@googlegroups.com.