How to estimate cycle time?

As a potential project I want to read one analog input and rotate a stepper motor correspondingly. The success of the the project is dependent on cycle time. How can I estimate this?

Cycle time of what?

“The success of the the project is dependent on cycle time.”

What time does the project demand?

How far does the stepper have to move and how fast can it move? You may have to try it to find out.

The program would run in a continuous loop. Read the analog input...compare the input to a fixed range...move the stepper “X” steps. The stepper would need to rotate 90-degrees in 500ms.

Tentatively, I’ve chosen the following stepper and driver:

https://www.digikey.com/product-detail/en/sparkfun-electronics/ROB-13656/1568-1376-ND/5995079

Clarification, “X” will be a fixed number, the smallest number possible in managing the required movement of 90-degrees in 500ms.

200 steps/revolution -> 1 step every 10 milliseconds -> 90 degrees in 500 milliseconds.

These links may help. A step every 10 millisecs will be no problem.

Stepper Motor Basics
Simple Stepper Code

...R

Correct but that is only the time for the stepper to rotate 90 steps. The input has to be read, compared, and output signal sent to the stepper 90 times. Plus, is there any lag in the system for the stepper to start and stop 90 times? The speed of the stepper is dependent on the output frequency of the Arduino. Will that be a problem?

The Arduino takes a small fraction of a millisecond to read the analog input and tell the motor to take a step, so no problem at all.

Is there a Arduino board you would recommend?

Tool_man:
Is there a Arduino board you would recommend?

The one that is suitable for the project that you have told us nothing about.

OR

"You first, I'm shy"

...R

I suggested a stepper and a driver. I didn’t include a board.

Tool_man:
I suggested a stepper and a driver. I didn’t include a board.

If you are not prepared to describe the project you are trying to create then I don't know how to help.

...R

Any Arduino.

Tool_man:
Is there a Arduino board you would recommend?

Yes. The Arduino UNO. Unless there is need for more I/O pins or more serial ports, the UNO is often the best choice because it has the longest history and best overall support.

Robin2:
If you are not prepared to describe the project you are trying to create then I don't know how to help.

...R

An analog signal is input to an Arduino board. The input is compared to a fixed range. If the input is outside the range an output signal is sent to a stepper driver to rotate one step. The driver causes the stepper to rotate one step. This process loops until there is parity. Potentially, parity could require 50 steps (90 degrees rotation). What would be the estimated time required to rotate 50 steps?

What would be the estimated time required to rotate 50 steps?

As long as you want it to be, but no shorter than permitted by the motor.

Tool_man:
An analog signal is input to an Arduino board. ....

That is not a description of your project.

...R

That is not a description of your project.

We are just wasting our time with this thread.

OP: good luck with your project.