DGBK wrote:One note about the algorithm used to calibrate the end stop offset. It seems odd that it always adds to the offset and never subtracts. At some point I would have expected it to compensate in the other direction.
Yes, this may seem as if it is an error, however, is not. If the height map values for the X, Y or Z towers are negative, the two opposite towers are changed as opposed to the tower that is off. This prevents the steps per millimeter from going to a negative value, which is an illegal value.
After looking back at my diagram, I do however see that the code can be corrected to have better accuracy. I am going to check if the value is greater than zero, and if it is then if the amount of change that the program wants to change by is less than the amount it is currently set to. then it can decrease the value. For instance, if the X is set to 400 steps, and it wants to decrease this amount by 200, then it can. As long as it does not go below zero.
The code works as is, although, this will be more efficient.
Also, DGBK, since I corrected the XYZ offset to calibrate bed height, the central Z-height WILL change through each iteration of the program. I forgot to mention that.
New post just came in when I clicked submit, when I calibrate the Z-height, I always use a folded over piece of paper and if you can feel it grip the paper but you can still move it easily, then you are fine. This does depend on the layer height that you print at, I always use low resolution - 0.3mm.
I am assuming, I don't know for sure, that the printer starts laying plastic AT zero. I haven't tested this, nor have I looked into it, so if this is wrong then someone correct me.