How to make cables for 0.1 in. pitch pins

cables

I'm trying to make a cable for a 4 wire interface to a stepper.
The intention is to have a short cable attached to the stepper, a male piece on the PCB board, and a bridging cable that can be replaced for different lengths.

I was thinking of connecting the stepper cables to a female piece, then making a cable with female and male on each end. Then the PCB board will have a male piece.

So far, I've only noticed these headers fit the description. So I was wondering, is it normal to use these kinds of headers to solder wire, and make a cable for PCBs with 0.1 in. pitch?
then connect the other side with one of its mating parts?

Best Answer

Yes, that's an entirely common way to connect two boards.

However, realize that the MTA-100 connectors are rated for 5 A per contact. If you don't need that much current, you can find a more compact solution. Or you could maybe not so much space but use something like an 8-position IDC ribbon cable connector to give you a quicker (lower cost) cable assembly process.