Connecting the stepper motor