Help with StepperDriver

Hello everyone,

I had a quick question regarding this library. I've gone through the examples and documentations, but some things are still confusing to me. In sample code to control acceleration they state

// Motor steps per revolution. Most steppers are 200 steps or 1.8 degrees/step
#define MOTOR_STEPS 200
// Target RPM for cruise speed
#define RPM 120
// Acceleration and deceleration values are always in FULL steps / s^2
#define MOTOR_ACCEL 2000
#define MOTOR_DECEL 1000

I don't understand what FULL steps / s^2 means. I assume in this case Full steps is 200 taken from MOTOR_STEPS, but I'm not sure what the s refers to. I didn't find the documentation for this library to be very good. Thank you for any assistance.

FB

s is an abbreviation for seconds.

Ahh well perfect. Thanks pert. I thought it might be steps and that was confusing.

I'm not sure if you are familiar with this library, but do you know if this is compatible with micro stepping?

fishbulb:
I'm not sure if you are familiar with this library, but do you know if this is compatible with micro stepping?

I can't see where you have told us the name of the library.

If you are referring to the AccelStepper library then, yes, it can work with microsteps or full steps - in fact the library will neither know nor care.

...R
Stepper Motor Basics
Simple Stepper Code

My apologies,

I found the library here GitHub - laurb9/StepperDriver: Arduino library for A4988, DRV8825, DRV8834, DRV8880 and generic two-pin (DIR/STEP) stepper motor drivers . It is just called stepperDriver and is designed to work with a stepper being driven by a driver (so just two pins, step and direction). It looks like the acceleration function does work with micro stepping.

Thanks for the help everyone!
FB

Hi,

I don't understand what FULL steps / s^2 means.

what type of stepper driver did you use?

there is two types of fullstep excitation modes.
in one phase - full step means the motor is operated with only one phase energized at a time. This mode requires the least amount of power from the driver of any of the excitation modes.

In two-phase on - full step, Fig2, the motor is operated with both phases energized at the same time. This mode provides improved torque and speed performance. Two-phase on provides about 30% to 40% more torque than one phase on, however it requires twice as much power from the driver.

Check > https://www.rs-online.com/designspark/stepper-motors-and-drives-what-is-full-step-half-step-and-microstepping

but do you know if this is compatible with micro stepping?

yes it is.