hey, guys am new to the forum and am having some issues. the code is working fine no code error but I want to add delay b/n the motors when one of the limit switches is pressed and wait for the delay and start the motor when I am trying to do this the motor step per revolution is decreased and how can I fix this issues thanks.
// Declare Stepper Motor used pins #define dirPin1 12 #define stepPin1 13 #define stepPin2 11 #define dirPin2 10
const int limit1 = 23;// limit switch of cover open clik
const int limit2 = 24;// limit switch of cover close click
void setup() {
// Set up stepper motor
pinMode(stepPin1, OUTPUT);
pinMode(dirPin1, OUTPUT);
Now, we know that is based on the physical configuration of the motor armature and is physically impossible. Since you do not count the steps in your program, how did you conclude the motor is loosing steps?