I want the stepper motor to rotate at constant speed. It must be clocked. For example, 5 rpm. I have the rtc module. But the steps are too hard. Do you have a fixed 5 rpm that can help with the code?
Post a link to the data sheet or product page for the motor. “NEMA 17” just tells us the size of the mounting plate.
If the motor is 200 steps/revolution, at 5 RPM the motor will make 1000 full steps in 60 seconds, or 60 milliseconds per step.