Stepper driver steps not accurate

The standard stepper library is not intended for stepper drivers that take step and direction signals. Try the AccelStepper library and use its DRIVER option.

Or just write your own code.

...R
Stepper Motor Basics
Simple Stepper Code