Step motor not working! ESP8266, Curtain Project

pert:
What is the value of stepsPerRevolution when it works?

What is the value of stepsPerRevolution when it doesn't work?

200 Steps working, 400 not.