How to Determine Compatibility of JST PCB Header with Connector

connectorheaderpcb

I'm trying to find suitable connectors for a PCB I'm designing and it's been rather difficult. I usually use Molex because their website makes it easy to find matching male female connectors. However, I'm looking to get some JST connectors this time since they're much cheaper than Molex.

However, I'm having trouble confidently picking two connectors which I know are going to be compatible. I'm looking to get the following 4 pin JST header to go on the PCB (Part No S4B-PH-K-S).

enter image description here

This connector has a pitch of 2mm so I looked for 2mm wire assemblies on Digikey (Since I don't have the tools to make them myself) and I found the following which I think might fit (Part No A04KR04KR26E51A)?
enter image description here

However, I'd be lying if I said I was confident they are compatible. Is it enough to say since they have the same pitch that they'll fit? Where does JST document which connector mates with certain header or where can I find out?

Best Answer

You would first look at the datasheet for the connector. It would list the mating part numbers. Then you can look for a harness that has that mating part.

Digikey makes it easier. On the product page it has various things broken down. First is the series. It's a PH series. The assembly you pulled up is a KR series. It won't mate properly. Except... it does. The PH datasheet doesn't say it but the KR datasheet explicitly says that it's interchangeable. PHR uses crimped connections while the KR uses displacement (stab in wire) connectors.

The second is that they cross reference to the mating parts at the bottom of the page. Which includes the KR.