Hello,
Indeed, the pitch of M5 screw is 0.8mm while M8 screws have 1.25mm pitch, which explain the problem. Here is a tool enabling you to calculate your new STEPS_PER_MM parameter.
[
calculator.josefprusa.cz]
In order to change your STEP_PER_MM, you have two methods:
- Using gcode : [
reprap.org]
It is simple and useful in order to check that the new configuration is fine before storing it in the firmware.
Just prompt "M92 Z2560.00" in the start.gcode of your slicer (2560 is just an assumption based on the common reprap hardware, use the calibration link to get the number right for you)
Compiling a new firmware:
Save your current firmware and compile one with the right parameter. Which firmware and electronic do you currently have in your prusa?