How Do I

How to change the tracking rate of your Star Traveler

 

*Before watching the Video make sure to copy the code below!

 

 

 

 

#include <AccelStepper.h>


#define HALFSTEP 8


#define motorPin1  8 // IN1 on the ULN2003 driver 1

#define motorPin2  9 // IN2 on the ULN2003 driver 1

#define motorPin3  10 // IN3 on the ULN2003 driver 1

#define motorPin4  11 // IN4 on the ULN2003 driver 1


double speeds = 268.1356;

int maxspeed = 1245;


AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4);


void setup() {

 stepper1.setMaxSpeed(maxspeed);

 stepper1.setSpeed(speeds);

}


void loop() {

   stepper1.runSpeed();

}