Finding current of stepper motor