Code for tracking RA axis. Help!

Hi guys,

I have make a code for stepper motor nema 17 with this code
This will do that every 109ms take one step, Right?

const int stepPin = 3; 

 
void setup() {
  pinMode(stepPin,OUTPUT); 
 
}
void loop() {
    
        digitalWrite(stepPin,HIGH); 
      delay(109);
        digitalWrite(stepPin,LOW);
      delay (109);
}

Its fine?

Most stepper drivers send a step on one of the transitions (LOW to HIGH or HIGH to LOW). Assuming the driver send a step on the HIGH to LOW transition, that transition will happen every 218 milliseconds.

Robin2's simple stepper code post may be of interest.

As stated by groundFungus, I believe that would result in a 218ms step.

Have a look at another helpful link by Mr. Robin2 as well as the one above

Stepper Motor Basics

thanks, I have understood

I´m using driver TB6600 set up in 1/16 steps, and input 1A

The stteper motor is Nema 17 1`8º step angle

I think that its enough for my tracking RA axis in my telescope, but i feel that have a vibration , so i cant do photos without trail stars

Will I need set up the amperage input in driver at value more down?

Srry for my english

Is your driver capable of microstepping? Microstepping the motor can smooth the movement.

groundFungus:
Is your driver capable of microstepping? Microstepping the motor can smooth the movement.

Yes, Its can 1/32, but just now Its set up in 1/16

Steppers step. There is no way around that. If 1/16 or 1/32 is still too jerky, you may have to consider a geared motor. There are geared steppers or a geared DC motor that is speed controlled. That means that the DC motor would have to have some sort of speed feedback like an encoder. Best if the encoder is on the motor before the gear reduction.