Arduino Forum

Using Arduino => Motors, Mechanics, and Power => Topic started by: hikke on May 14, 2012, 02:35 pm

Title: Arduino stepper library for EasyDriver module
Post by: hikke on May 14, 2012, 02:35 pm
Hi,

i've created an arduino library for EasyDriver module (like this one http://schmalzhaus.com/EasyDriver/ (http://schmalzhaus.com/EasyDriver/)).

Download Library AH_EasyDriver (http://www.alhin.de/arduino/downloads/AH_EasyDriver_20120512.zip)
Library description (http://www.alhin.de/arduino/index.php?n=44)

Quote

  // 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()
Title: Re: Arduino stepper library for EasyDriver module
Post by: dagorald on Mar 16, 2017, 12:20 am
Thank you! It works great!
Title: Re: Arduino stepper library for EasyDriver module
Post by: kaidnl on Oct 19, 2018, 09:20 pm
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?