Welcome! Log In Create A New Profile

Advanced

[solved]STEPS_PER_UNIT calculation

Posted by evo85210 
[solved]STEPS_PER_UNIT calculation
June 20, 2019 02:15AM
@Ohmarinus, as per your request, tho I don't think there's much to learn from, as I never really figured out the "why"

so the original question was that
STEPS_PER_UNIT calculated from the 1.1.9 calculations are different from stock 1.0.0 configurations provided by my OEM

stock configuration was
DEFAULT_AXIS_STEPS_PER_UNIT { 160, 160, 160, 200 };

whereas 1.1.9 calculates
DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 80, 760*1.1 };

and I previously claimed that even tho XYZ values are halved, movement doesn't seems to be affect, while extrusion is 3 times more than it should be.
turns out I had EEPROM_SETTINGS turned on, so I must have written 160,160,160,760*1.1 into eeprom at some point and the firmware was reading those values.
After clearing the eeprom with settings from the fw, movement is indeed halved

The solution was to use the values the OEM used, I'm guessing the stepper motor pitch is 0.9 and not the more common 1.8, so I changed the steps per rotation to 400 instead of 200 (tho I searched up the model number [17pm-ka39bn03cn] of the stepper motor, and the spec sheet says it's a 1.8 degree motor.... or maybe the mks 1.3 board I have is somehow special and have 32 microsteps instead of the standard 16)

#define XYZ_FULL_STEPS_PER_ROTATION 400

the other question was why the extruder is set to 760*1.1 instead of just 836.

The TLDR:
There's no problem, just a blunder on my part.
Although I've never really figured out the reason for the discrepancy between what i think the value should be vs what the value actually needs to be, the fw seems to be working fine.

Edited 6 time(s). Last edit at 06/20/2019 10:43PM by evo85210.
Re: [solved]
June 20, 2019 08:36AM
Well that was easy
Re: [solved]
June 20, 2019 09:33AM
Would you mind sharing the solution and keeping the problem in the main post so that others can learn from it? smiling smiley


http://www.marinusdebeer.nl/
Sorry, only registered users may post in this forum.

Click here to login