Running Steppers with servo
Your problem here is that you have an array of 10 bytes, which works fine, only that in your loop you don't stop or check that you are within that array.

If this is supposed to run forever, you could add a line like this at the end of your loop:

if (thisStep &gt; sizeof(orders)-1) thisStep = 0;


(-1 because you have an array of 10, which are from 0-9, sizeof will return 10)

this will make it start from the beginning again.