Actuation problems with my motor controller.

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

For the logic supply I used the 5 V from the Leonardo.