You will have to change the variable called “TableRatio”. It is currently set for a 36:1 rotary table.Hello, thanks a lot for the very detailed and easy to follow guide... i tried it and worked, the only issue i have is that i do not use a reducer. How should i edit the sketch to avoid it and have 0 reduction?
I am sorry for my bad english.
Thank you very much.
With no reduction (1:1) the original code will not work.I have to directly connect the stepper motor to the rotation support... i have no rotation reduction
Ok, i was able to find a previeus version of the code, the version 5.5 (2018) and worked well for me.With no reduction (1:1) the original code will not work.
On the line after where Table Ratio is defined another variable is defined
const int Multiplier = (StepsPerRotation * TableRatio)/360
since it is defined as an integer, StepsPerRotation * TableRatio, must be evenly divisible by 360 to work.
I believe the quick fix was to change it to
const float Multiplier = (StepsPerRotation * TableRatio)/360
i never used this method so I don’t know if there were any other changes required.
a better approach would be to use the modified code posted by
Kquiggle in message 303.