That diagram shows the motor controller is not given a logic supply. It surely needs 5V on its logic supply to work?