Integrated stepper motor with built-in stepper motor driver