Arduino stepper library for EasyDriver module

Hi,

i've created an arduino library for EasyDriver module (like this one Easy Driver stepper motor driver).

Download Library AH_EasyDriver
Library description

// Init with 2 pins, 1/8 microstep
AH_EasyDriver(int RES, int DIR, int STEP)

// Init with 5 pins
AH_EasyDriver(int RES, int DIR, int STEP, int MS1, int MS2, int SLP)

// Init with 8 pins
AH_EasyDriver(int RES, int DIR, int STEP, int MS1, int MS2, int SLP, int ENABLE, int RST)

// Settings functions
void resetDriver()
void enableDriver()
void disableDriver()
void sleepON()
void sleepOFF()
void setMicrostepping(int MODE) // MODE 0 -> Fullstep
// MODE 1 -> 1/2 microstep
// MODE 2 -> 1/4 microstep
// MODE 3 -> 1/8 microstep
// Speed functions
void setSpeedRPM(int RPM)
void setSpeedHz(int FREQ)
void setSpeedMax()

// Motor control
void move(int NUMBER_OF_STEPS)
void move(int NUMBER_OF_STEPS, boolean DIRECTION)
void rotate(float DEGREES)
void revolve(float TIMES)

// Library version
String getVersion()

1 Like

Thank you! It works great!

Hello,

I hope you will answer at this long time, but I'm a real beginner and want to use your library.
But which ports do I use on the Arduino to hook this driver up?
Could you show me a picture of this setup perhaps?