Calculating steps per mm

I am trying to alter the steps per mm portion of the config file to finish setting up my corexy printer, but could use some help. I noticed that x and y axis are defaulted to 80 steps per mm but I am not sure how this is calculated.
The pulley on the x and y axis is a GT2 pully with 40 teeth. The GT2 belt has 2mm pitch and with 40 teeth this means after a complete pulley rotation the belt will move 80mm. But how many steps per rotation? The stepper has 200 steps per rotation but does the calculation consider microstepping?


You can give this one a shot too if you want to see the formulas behind the scenes.
https://docs.google.com/spreadsheets/d/1ts5fz73JQoQ4G0Z95nzfPDSS6HYEyczyZyccDZ5M6B4/edit?usp=sharing


@feynman137 said in Calculating steps per mm:
@phaedrux @fcwilt Thanks guys just checked it out looks like I'm at 40xy steps per mm and 5mm traveled per rev. A bit confused as to what these terms mean..
Assuming it means that hotend travels a 1mm diagonal line in the xy plane with 40 steps from both x and y steppers?
Not quite. It means it moves 1mm along X and 1mm along Y, resulting in (appx) 1.41mm along the diagonal.
Frederick