Notifications
Clear all

MK3S Custom Firmware DEFAULT_AXIS_STEPS_PER_UNIT  

  RSS
GadgetWusky
(@gadgetwusky)
Member
MK3S Custom Firmware DEFAULT_AXIS_STEPS_PER_UNIT

I need to change the distance per step on a MK3S Z-axis due to using aftermarket z-axis threaded rods with different thread pitch.

I'm following the steps specified in the README.md on the official GitHub Prusa Firmware repository.

I found the file ...Prusa-Firmware\firmware\variants\MK3S.h, where there is a line:

// Steps per unit {X,Y,Z,E}
#define DEFAULT_AXIS_STEPS_PER_UNIT {100,100,3200/8,280}

I have changed the default 3200/8 to the calculated value for my Z-axis threads, rebuilt the firmware with VSCode according to the steps in the repository README.md, and flashed the .HEX to the printer. Unfortunately, the printer's z-axis behavior is not changed, which means this isn't the correct way to do this.

I'm unable to find instructions on this exact mod. Can someone tell me how to incorporate the revised DEFAULT_AXIS_STEPS_PER_UNIT numbers into the .HEX build?

Thanks in advance.

Posted : 22/07/2025 3:14 pm
Paprika Salami
(@paprika-salami)
Member
RE: MK3S Custom Firmware DEFAULT_AXIS_STEPS_PER_UNIT

Hi,

I think you can use G-code to change the Steps per unit value. For example: M92 Z300 will change Steps per unit for Z axis to 300, them use M500 to store the change to EEPROM.

Posted : 23/07/2025 3:10 pm
Share: