The wiring of the A4 robot arm takes place in the reverse order of the assembly. This way, the cables are bundles together at each joint until there is one cable bundle to plug in to the PCBA.
One end of the cable is soldered to the motor terminals. The other end is a 2 position TE connector.
The gripper open switch goes from a 2 position JST connector to a 2 position TE connector.
The gripper motor cable and open switch cable are both zip tied to the gripper motor bracket