user65486: Using Audrino Nano and MKS SERVO42 42 Stepper Motor With Driver Board Closed Loop with the LCD. I have got the motor going by using the menu on board. Now able to run Code1 https://github.com/makertut/Arduino-Closed-loop.git out of GitHub and it runs as it is designed. Line 5 int numstep = 1030; cc runs the number of steps indicated and changing this number will determine the movement.
I can do the math to calculate the degrees for number of step for a particular stepper. I would like to use degrees instead of steps for my program. Does anybody know how to code this?
Thanks Greg

user2967: This is basic algebra 1.
Say steps / degree = 5
So write that as 2 fractions:
steps   5
----- = -
degree  1

Then take the reciprocal of both sides:
degrees   1
------- = -
step      5


65486: <p>Using Audrino Nano and MKS SERVO42 42 Stepper Motor With Driver Board Closed Loop with the LCD. I have got the motor going by using the menu on board. Now able to run Code1 <a href="https://github.com/makertut/Arduino-Closed-loop.git" rel="nofollow noreferrer">https://github.com/makertut/Arduino-Closed-loop.git</a> out of GitHub and it runs as it is designed. Line 5 int numstep = 1030; cc runs the number of steps indicated and changing this number will determine the movement.
I can do the math to calculate the degrees for number of step for a particular stepper. I would like to use degrees instead of steps for my program. Does anybody know how to code this?
Thanks Greg</p>
 2967: <p>This is basic algebra 1.</p>
<p>Say <code>steps / degree = 5</code></p>
<p>So write that as 2 fractions:</p>
<pre><code>steps   5
----- = -
degree  1
</code></pre>
<p>Then take the reciprocal of both sides:</p>
<pre><code>degrees   1
------- = -
step      5
</code></pre>
