(Solved)Steppermotor and serial.print and read combined

Hi Robin,

Sorry I confused you with the steps.
I reframe.....
200 stepper steps is 360 degree = 2 mm pitch/compression
100 stepper steps is 180 degree = 1 mm pitch/compression
1mm over 1 second is 10 samples = 1 sample per 0,1 mm
I have no objection to step slower but then measuring takes a longer time.
Lets say the average compression is 35 mm that would take 35 seconds to go down.
If you measure 5 times in a row that would be 10 times 35 seconds as we also have to return the motor to its original position.
For this debugging I have no problem stay with this timeframe.
In a later stage I can always enhance.

then all you need to do is decouple the reading of the scale from the individual steps of the motor.

You mean controlling the stepper with its own controller?