Converting AC to DC power from a stepper motor