Go Down

Topic: Arduino stepper library for EasyDriver module (Read 4103 times) previous topic - next topic

hikke

Hi,

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

Download Library AH_EasyDriver
Library description

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()

dagorald


Go Up