code blocking stepper motor

Is there a way to run a stepper motor in the background while performing other calculations in a loop?

Right now whenever I run my sketch the motor moves for x steps , the motor then stops, a for loop with 10 calculations is run, and the program goes through the rest of the sketch and loops back to the motor.

I would like to have the motor run continuously while the calculations are performed in a loop but I haven't been able to figure out how to make that happen. An suggestions?

Look at the AccelStepper library. It does the stepping asynchronously.

I also wrote a library which has many additional features. You should be able to search for it here on the forum.