The present disclosure is directed to calibrating position detection for a tool. The tool can use a sensor to detect a first value of a parameter. The tool can use a motor to extend the working member of the tool towards a working surface. The tool can include a base. The tool can detect, with the working member in contact with the working service, a second value of the parameter. The tool can determine a z-axis position of the working member relative to the working surface.