V4 all-in-one PCB

Overthinking it.

24V+to Pin 18
Pin 5 to motor left
Pin 6 to motor right
Ground will be obtained from Pin 23 (make sure wire is large enough to carry current of PCB and motor), so ignore the ground from the 24V converter.