The real trick is how to connect the coils, which depends on how the stepper is wired. If you have a stepper motor of unknown ... Of course, an Arduino reads the pulses. We love using things ...