<p>I'm struggling to find the name of a connector I just broke, so I can order a new one.</p>
<p>It's a six pin nylon terminal, that plugs into a set of header pins on a stepper motor.</p>
<p>What do I search for to find these?! Also, how would I go about finding something like this in the future? I seem to struggle to find connectors.</p>
<p><a href="https://i.stack.imgur.com/ejbJR.jpg" rel="nofollow noreferrer" title="Connector"><img src="https://i.stack.imgur.com/ejbJR.jpg" alt="Connector" title="Connector" /></a></p>

[{'answer_id': 18386, 'author': 'Greenonline', 'author_id': 4762, 'author_profile': 'https://3dprinting.stackexchange.com/users/4762', 'pm_score': 2, 'selected': False, 'text': '<p>In an attempt to salvage my (sadly) previously incorrect answer (at the bottom), <em>and</em> to add to <a href="https://3dprinting.stackexchange.com/a/18388/4762">anttix\'s superlative answer</a>, here is a quote from <a href="https://gulfcoast-robotics.com/pages/stepper-cable-for-mks-boards-pinout" rel="nofollow noreferrer">Stepper cable for MKS Boards pinout</a>, which clearly shows the difference - locking and non-locking, and pitch difference (note the thickness of the plastic between each individual pin socket) - in the two plugs:</p>\n<blockquote>\n<p>This pinout information will help you to use our 1 meter stepper\ncables correctly. Cable was made to be compatible with 6-pin JST\nconnectors on NEMA 17 stepper on one side and 4-pin JST connector on\nother side. These cables are compatible with MKS BASE and MKS Gen\nboards that we sell in our store.</p>\n<p><a href="https://i.stack.imgur.com/BozTI.jpg" rel="nofollow noreferrer" title="Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)"><img src="https://i.stack.imgur.com/BozTI.jpg" alt="Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)" title="Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)" /></a></p>\n<p>For compatibility with Anet board you will need to swap 2 wires - RED\nand BLUE on the 4 pin board side connector.</p>\n<p><a href="https://i.stack.imgur.com/rF57Q.jpg" rel="nofollow noreferrer" title="Reconfiguration for Anet board"><img src="https://i.stack.imgur.com/rF57Q.jpg" alt="Reconfiguration for Anet board" title="Reconfiguration for Anet board" /></a></p>\n</blockquote>\n<p>Whilst they aren\'t labeled <em>PH</em> and <em>XH</em>, it is pretty safe to assume that:</p>\n<ul>\n<li>For the control board, the <em><strong>4 pin</strong> female connector</em> on the <strong>left</strong> is the <strong>XH</strong>, and;</li>\n<li>For the stepper motor, the <em><strong>6 pin</strong> female connector</em> on the <strong>right</strong> is <strong>PH</strong>.</li>\n</ul>\n<p>The <a href="http://www.mattmillman.com/info/crimpconnectors/common-jst-connector-types/" rel="nofollow noreferrer">mattmillan.com</a> link in anttix\'s answer, whilst informative, unfortunately doesn\'t show both sides of the 4 or 6 pin connector.</p>\n<hr />\n<p>For the sake of completeness, but at the risk of going <em>off-topic</em>, the connector to the printer controller board is often a DuPont, and not a JST, <em>particularly in</em>, but not limited to, Arduino (Atmel/AVR based) boards.</p>\n<p>From the same website, this page <a href="https://gulfcoast-robotics.com/pages/stepper-cable-for-ramps-pinout" rel="nofollow noreferrer">Stepper cable for RAMPS pinout</a>, shows the DuPont connector to the control board and the JST-PH-6P connector to the stepper motor (I\'ve not fixed the typos in the quoted text):</p>\n<blockquote>\n<p>This pinout information will help you to use our 1 meter stepper\ncables correctly. Cable was made to be compatible with 6-pin JST\nconnectors on NEMA 17 stepper on one side and RAMPS board connector\n(also called dupont connector) on other side. Main feature of RAMPS\nstepper header and this cable is that you can reverse stepper\ndirection by turning connector on RAMPS 180 degree.</p>\n<p>This cable is aslo compatible with CNC V3 shields for Arduino UNO and\nother electronic boards for 3D Printers and CNC control. Please\nobserve the following piut diagram to make sure that your particular\nelectronic board is compatible.</p>\n<p><a href="https://i.stack.imgur.com/HQsxu.jpg" rel="nofollow noreferrer" title="Female DuPont connectors for the control board (4 pin) and JST for the stepper motors (6 pin PH)"><img src="https://i.stack.imgur.com/HQsxu.jpg" alt="Female DuPont connectors for the control board (4 pin) and JST for\nthe stepper motors (6 pin PH)" title="Female DuPont connectors for the control board (4 pin) and JST for the stepper motors (6 pin PH)" /></a></p>\n</blockquote>\n<p><strong>Note</strong>: I\'m not promoting this particular website, it just so happens that they have the best comparison photos.</p>\n<hr />\n<p><strike>Maybe</strike> It is most likely <em><strong>not</strong></em>... JST XH 2.54 6 pin female</p>\n<p><a href="https://i.stack.imgur.com/ECbqm.png" rel="nofollow noreferrer" title="JST XH 2.54 6 pin female"><img src="https://i.stack.imgur.com/ECbqm.png" alt="JST XH 2.54 6 pin female" title="JST XH 2.54 6 pin female" /></a></p>\n<p>and the reverse side, showing the locking, with the male PCB connector</p>\n<p><a href="https://i.stack.imgur.com/vSZYE.jpg" rel="nofollow noreferrer" title="JST XH 2.54 6 pin female - reverse side with locking mechanism"><img src="https://i.stack.imgur.com/vSZYE.jpg" alt="JST XH 2.54 6 pin female - reverse side with locking mechanism" title="JST XH 2.54 6 pin female - reverse side with locking mechanism" /></a></p>\n'}, {'answer_id': 18388, 'author': 'anttix', 'author_id': 14319, 'author_profile': 'https://3dprinting.stackexchange.com/users/14319', 'pm_score': 4, 'selected': True, 'text': '<p>Short answer: It\'s probably 6 pin JST PH</p>\n<p>Long answer:</p>\n<p>Without seeing the socket, it\'s hard to say for sure, however most Nema 17 stepper motors use 6 pin JST PH connectors with 2.0mm pitch on the motor side. Many control boards use JST XH connectors with 2.5mm pitch on the board side. The two are not compatible with each other due to a difference in pitch and the locking mechanism.</p>\n<p>Looking at the sockets there is a clear visual difference: PH has a wide cutout while XH has two slots.</p>\n<p><a href="https://i.stack.imgur.com/Rrxs3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Rrxs3.png" alt="PH 6 pin socket" /></a>\nPH vs XH\n<a href="https://i.stack.imgur.com/szUJt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/szUJt.png" alt="XJ 6 pin socket" /></a></p>\n<p>The difference on the plug side is more subtle. XH has small hooks that grab onto the slots while PH has not.</p>\n<p>There\'s a good reference at <a href="http://www.mattmillman.com/info/crimpconnectors/common-jst-connector-types/" rel="noreferrer">mattmillan.com</a> which helps to identify different types of JST connectors.</p>\n<p>EDIT: Usually the easiest and the cheapest option is to buy a pre-made stepper motor cable that fits your control board. However if it\'s not available in a length you need or re-wiring is hard, you will need connectors and a crimp tool with jaws specifically made for these types of connectors. The cheapest option is probably to borrow one if you can, these can cost a pretty penny.</p>\n<p>Answering the second part of your question is tricky. Searching through parts catalogs is too time consuming. Using google image search or google lens to search with images taken from multiple angles is a good start to narrow it down but does not guarantee success.</p>\n'}]
['https://3dprinting.stackexchange.com/questions/18385', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/31992/']