Help with stepper motor

Hi,

I got it working - awesome! No magic smoke came out or not'in :slight_smile:
Found out that the jumper is for disabling the LEDs on the board - motor moves regardless.

I feel stupid for asking all these questions, but here is more. If I could find it online I would, but none of what I searched for gave results.

Using the "stepper_oneRevolution" sample with the values I have found/tested, follows:

#include <Stepper.h>

const int stepsPerRevolution = 2038;  // change this to fit the number of steps per revolution
                                     // for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8,9,10,11);            

void setup() {
  // set the speed 
  myStepper.setSpeed(14);
  // initialize the serial port:
  Serial.begin(9600);
}

void loop() {
  // step one revolution  in one direction:
   Serial.println("clockwise");
  myStepper.step(stepsPerRevolution);
  delay(500);
  
   // step one revolution in the other direction:
  Serial.println("counterclockwise");
  myStepper.step(-stepsPerRevolution);
  delay(500); 
}

As seen, I have found that 2038 is the amount of steps per revolution. A speed of 14 appears to be the fastest with which it will move - faster than that, and it just sits still, clicking. This is fine - I assume the magnets are switching too fast for it to follow.

Now, my question is - as long as it moves, is it fine? I can feel it kinda "clicking" when holding it - is that how stepper motors are supposed to do? It also warms up - not much, so I guess it is fine...
Is 14 the maximum speed I will get out of this motor - or is there tricks to increase it (like slowly increasing speed, so it can catch up or similar)?

Thanks :slight_smile: