StepMotorDriver Step Motor Driver for 4 phase Motors. Just have a look at main function in MotorDriver.cpp . It is very easy to use.