If your new motor "Step Angle" is 1.8 degrees, you don't need to do anything. It should work right up.
Since you state it doesn't work correctly, my assumption is that the "step angle" in your new motor is different than the step angle of the stock Lorei motor.
I took all formulas from the MatterHacker link Jeremy posted above. As always, please don't be shy to point out mistakes (I'm learning as I go).
Solving for the stock Lorei X-Axis motor:
| Circle |
360 |
degrees |
|
| Motor Step Angle |
1.8 |
degrees |
|
| Steps |
200 |
|
Circle / Motor Step Angle |
| Microstepping |
0.03125 |
1/32” |
|
| Microsteps |
6400 |
|
Steps / Microstepping |
| Belt Pitch |
2 |
mm |
|
| Gear (teeth) |
20 |
|
|
|
|
|
|
| Steps per mm |
160 |
|
Microsteps / Belt Pitch / Gear (teeth) |
I calculated the the Lorei's X-Axis motors should be set to 160 steps per mm.
Looking at the Lorei's "Configuration.h":
#define DEFAULT_AXIS_STEPS_PER_UNIT {160,160,3200,300} // steps per unit X,Y,Z,E
You need to take the "step angle" for your new motor, plug it into the formulas above, and you get the "steps per mm".
Find the "Stepper Motors" calculator (second from the top). Plug in your motor step angle, the driver micro stepping (1/32), belt pitch (2 mm), and the pulley tooth count (20).
The result will be the value to plug in with a GCode or into the "configuration.h" (to do a firmware update).
Let me know how it goes.
Regards,
Al