How to use A4988 corectly?

Hello Guo,

You have to use also the DIR input to set the step’s direction prior to making a pulse on the STEP input. For more info have a look at here.