<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>
<blockquote>
<p>This pinout information will help you to use our 1 meter stepper
cables correctly. Cable was made to be compatible with 6-pin JST
connectors on NEMA 17 stepper on one side and 4-pin JST connector on
other side. These cables are compatible with MKS BASE and MKS Gen
boards that we sell in our store.</p>
<p><a href="https://i.sstatic.net/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.sstatic.net/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>
<p>For compatibility with Anet board you will need to swap 2 wires - RED
and BLUE on the 4 pin board side connector.</p>
<p><a href="https://i.sstatic.net/rF57Q.jpg" rel="nofollow noreferrer" title="Reconfiguration for Anet board"><img src="https://i.sstatic.net/rF57Q.jpg" alt="Reconfiguration for Anet board" title="Reconfiguration for Anet board" /></a></p>
</blockquote>
<p>Whilst they aren't labeled <em>PH</em> and <em>XH</em>, it is pretty safe to assume that:</p>
<ul>
<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>
<li>For the stepper motor, the <em><strong>6 pin</strong> female connector</em> on the <strong>right</strong> is <strong>PH</strong>.</li>
</ul>
<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>
<hr />
<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>
<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>
<blockquote>
<p>This pinout information will help you to use our 1 meter stepper
cables correctly. Cable was made to be compatible with 6-pin JST
connectors on NEMA 17 stepper on one side and RAMPS board connector
(also called dupont connector) on other side. Main feature of RAMPS
stepper header and this cable is that you can reverse stepper
direction by turning connector on RAMPS 180 degree.</p>
<p>This cable is aslo compatible with CNC V3 shields for Arduino UNO and
other electronic boards for 3D Printers and CNC control. Please
observe the following piut diagram to make sure that your particular
electronic board is compatible.</p>
<p><a href="https://i.sstatic.net/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.sstatic.net/HQsxu.jpg" alt="Female DuPont connectors for the control board (4 pin) and JST for
the 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>
</blockquote>
<p><strong>Note</strong>: I'm not promoting this particular website, it just so happens that they have the best comparison photos.</p>
<hr />
<p><strike>Maybe</strike> It is most likely <em><strong>not</strong></em>... JST XH 2.54 6 pin female</p>
<p><a href="https://i.sstatic.net/ECbqm.png" rel="nofollow noreferrer" title="JST XH 2.54 6 pin female"><img src="https://i.sstatic.net/ECbqm.png" alt="JST XH 2.54 6 pin female" title="JST XH 2.54 6 pin female" /></a></p>
<p>and the reverse side, showing the locking, with the male PCB connector</p>
<p><a href="https://i.sstatic.net/vSZYE.jpg" rel="nofollow noreferrer" title="JST XH 2.54 6 pin female - reverse side with locking mechanism"><img src="https://i.sstatic.net/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>

CC BY-SA 4.0
2021-11-18T10:40:12.960Z
Stepper motor cables normally use JST-PH connectors at the motor end, and JST-XH connectors at the board end, so the connector in the OP's image is a JST-PH-6P.  Anttix's answer is correct.
Mick
CC BY-SA 4.0
2021-11-18T13:30:12.047Z
Yep, I was close but not close *enough* - I've updated my answer... :-) The *connector code*, no one has actually mentioned that yet. You should put it in a (short) answer.
Greenonline
CC BY-SA 4.0
2021-11-18T15:14:29.847Z
@Mick The board end depends on the board you use, see e.g. https://ae01.alicdn.com/kf/He07d3704b22f4b429538c9d7e7d6a040r.jpg, some boards use DuPont (left magnification) others use JST-XH, (right magnification). Of the 10 controller boards I have, only one uses the XH at the board end, so I wouldn't say that that is the most common ;-)   (I guess you already imply that with `normally`... ).
0scar
CC BY-SA 4.0
2021-11-18T15:36:28.973Z
Funnily enough I *was* going to add that DuPont is often used on the board end, like on RAMPS boards, but I'd got bored of typing at that point... updated answer again. However, we are veering off-topic a bit (mission creep) as the OP was only asking about the stepper motor end.
Greenonline
CC BY-SA 4.0
2021-11-17T07:15:44.303Z
2021-11-18T15:36:02.137Z
2021-11-18T15:36:02.137Z
Greenonline
<p>Short answer: It's probably 6 pin JST PH</p>
<p>Long answer:</p>
<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>
<p>Looking at the sockets there is a clear visual difference: PH has a wide cutout while XH has two slots.</p>
<p><a href="https://i.sstatic.net/Rrxs3.png" rel="noreferrer"><img src="https://i.sstatic.net/Rrxs3.png" alt="PH 6 pin socket" /></a>
PH vs XH
<a href="https://i.sstatic.net/szUJt.png" rel="noreferrer"><img src="https://i.sstatic.net/szUJt.png" alt="XJ 6 pin socket" /></a></p>
<p>The difference on the plug side is more subtle. XH has small hooks that grab onto the slots while PH has not.</p>
<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>
<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>
<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>

CC BY-SA 4.0
2023-08-09T23:19:23.747Z
**No. They’re the Chinese knockoffs** of the genuine JST connectors, called “_XH2.54_,” “_general JST connectors_,” or something. They have different dimensions than JST’s, and the genuine JST connectors are never used for most, if not all, of the stepper motors on the market.
Константин Ван
CC BY-SA 4.0
2021-11-17T12:40:40.313Z
2021-11-17T13:01:14.360Z
2021-11-17T13:01:14.360Z
anttix
<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.sstatic.net/ejbJR.jpg" rel="nofollow noreferrer" title="Connector"><img src="https://i.sstatic.net/ejbJR.jpg" alt="Connector" title="Connector" /></a></p>

CC BY-SA 4.0
2021-11-17T06:56:51.523Z
Adding a photo from another angle would help, and a photo of the socket on the stepper motor. Is it single row (1x6)? Also the size/dimensions, pitch of pins? Is there a locking mechanism on the other side..? [Edit] your question and update. Is the plastic housing actually broken, or you just need to replace the one burnt out pin?
Greenonline
CC BY-SA 4.0
2021-11-17T08:32:11.807Z
Where is it from on your printer?  What model of printer?
Criggie
CC BY-SA 4.0
2021-11-18T13:47:53.793Z
It's essential to have both sides of a pin connector and some measurements - that way it is much easier to pin the pins down
Trish
<electronics><stepper>
What is this stepper motor connector called?
Jess
# What is this stepper motor connector called?

(Asked by: username_0 on 2021-11-17)

I'm struggling to find the name of a connector I just broke, so I can order a new one.

It's a six pin nylon terminal, that plugs into a set of header pins on a stepper motor.

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.

[![Connector](https://i.sstatic.net/ejbJR.jpg "Connector")](https://i.sstatic.net/ejbJR.jpg "Connector")

**Tags:** electronics, stepper
> **Comments:**
> **username_1**: Adding a photo from another angle would help, and a photo of the socket on the stepper motor. Is it single row (1x6)? Also the size/dimensions, pitch of pins? Is there a locking mechanism on the other side..? [Edit] your question and update. Is the plastic housing actually broken, or you just need to replace the one burnt out pin?  
> **username_2**: Where is it from on your printer?  What model of printer?  
> **username_3**: It's essential to have both sides of a pin connector and some measurements - that way it is much easier to pin the pins down  

---

## 2 answers

### Answer by username_6 on 2021-11-17. Score: 9 | Accepted answer

Short answer: It's probably 6 pin JST PH

Long answer:

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.

Looking at the sockets there is a clear visual difference: PH has a wide cutout while XH has two slots.

[![PH 6 pin socket](https://i.sstatic.net/Rrxs3.png)](https://i.sstatic.net/Rrxs3.png)
PH vs XH
[![XJ 6 pin socket](https://i.sstatic.net/szUJt.png)](https://i.sstatic.net/szUJt.png)

The difference on the plug side is more subtle. XH has small hooks that grab onto the slots while PH has not.

There's a good reference at [mattmillan.com](http://www.mattmillman.com/info/crimpconnectors/common-jst-connector-types/) which helps to identify different types of JST connectors.

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.

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.

> **Comments:**
> **username_7**: **No. They’re the Chinese knockoffs** of the genuine JST connectors, called “_XH2.54_,” “_general JST connectors_,” or something. They have different dimensions than JST’s, and the genuine JST connectors are never used for most, if not all, of the stepper motors on the market.  

---

### Answer by username_1 on 2021-11-17. Score: 2

In an attempt to salvage my (sadly) previously incorrect answer (at the bottom), *and* to add to [anttix's superlative answer](https://3dprinting.stackexchange.com/a/18388/4762), here is a quote from [Stepper cable for MKS Boards pinout](https://gulfcoast-robotics.com/pages/stepper-cable-for-mks-boards-pinout), 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:

> This pinout information will help you to use our 1 meter stepper
> cables correctly. Cable was made to be compatible with 6-pin JST
> connectors on NEMA 17 stepper on one side and 4-pin JST connector on
> other side. These cables are compatible with MKS BASE and MKS Gen
> boards that we sell in our store.
>
> [![Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)](https://i.sstatic.net/BozTI.jpg "Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)")](https://i.sstatic.net/BozTI.jpg "Female JST connectors for the control board (4 pin XH) and stepper motors (6 pin PH)")
>
> For compatibility with Anet board you will need to swap 2 wires - RED
> and BLUE on the 4 pin board side connector.
>
> [![Reconfiguration for Anet board](https://i.sstatic.net/rF57Q.jpg "Reconfiguration for Anet board")](https://i.sstatic.net/rF57Q.jpg "Reconfiguration for Anet board")

Whilst they aren't labeled *PH* and *XH*, it is pretty safe to assume that:

* For the control board, the ***4 pin** female connector* on the **left** is the **XH**, and;
* For the stepper motor, the ***6 pin** female connector* on the **right** is **PH**.

The [mattmillan.com](http://www.mattmillman.com/info/crimpconnectors/common-jst-connector-types/) link in anttix's answer, whilst informative, unfortunately doesn't show both sides of the 4 or 6 pin connector.

---

For the sake of completeness, but at the risk of going *off-topic*, the connector to the printer controller board is often a DuPont, and not a JST, *particularly in*, but not limited to, Arduino (Atmel/AVR based) boards.

From the same website, this page [Stepper cable for RAMPS pinout](https://gulfcoast-robotics.com/pages/stepper-cable-for-ramps-pinout), 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):

> This pinout information will help you to use our 1 meter stepper
> cables correctly. Cable was made to be compatible with 6-pin JST
> connectors on NEMA 17 stepper on one side and RAMPS board connector
> (also called dupont connector) on other side. Main feature of RAMPS
> stepper header and this cable is that you can reverse stepper
> direction by turning connector on RAMPS 180 degree.
>
> This cable is aslo compatible with CNC V3 shields for Arduino UNO and
> other electronic boards for 3D Printers and CNC control. Please
> observe the following piut diagram to make sure that your particular
> electronic board is compatible.
>
> [![Female DuPont connectors for the control board (4 pin) and JST for
> the stepper motors (6 pin PH)](https://i.sstatic.net/HQsxu.jpg "Female DuPont connectors for the control board (4 pin) and JST for the stepper motors (6 pin PH)")](https://i.sstatic.net/HQsxu.jpg "Female DuPont connectors for the control board (4 pin) and JST for the stepper motors (6 pin PH)")

**Note**: I'm not promoting this particular website, it just so happens that they have the best comparison photos.

---

Maybe It is most likely ***not***... JST XH 2.54 6 pin female

[![JST XH 2.54 6 pin female](https://i.sstatic.net/ECbqm.png "JST XH 2.54 6 pin female")](https://i.sstatic.net/ECbqm.png "JST XH 2.54 6 pin female")

and the reverse side, showing the locking, with the male PCB connector

[![JST XH 2.54 6 pin female - reverse side with locking mechanism](https://i.sstatic.net/vSZYE.jpg "JST XH 2.54 6 pin female - reverse side with locking mechanism")](https://i.sstatic.net/vSZYE.jpg "JST XH 2.54 6 pin female - reverse side with locking mechanism")

> **Comments:**
> **username_4**: Stepper motor cables normally use JST-PH connectors at the motor end, and JST-XH connectors at the board end, so the connector in the OP's image is a JST-PH-6P.  Anttix's answer is correct.  
> **username_1**: Yep, I was close but not close *enough* - I've updated my answer... :-) The *connector code*, no one has actually mentioned that yet. You should put it in a (short) answer.  
> **username_5**: @Mick The board end depends on the board you use, see e.g. https://ae01.alicdn.com/kf/He07d3704b22f4b429538c9d7e7d6a040r.jpg, some boards use DuPont (left magnification) others use JST-XH, (right magnification). Of the 10 controller boards I have, only one uses the XH at the board end, so I wouldn't say that that is the most common ;-)   (I guess you already imply that with `normally`... ).  
> **username_1**: Funnily enough I *was* going to add that DuPont is often used on the board end, like on RAMPS boards, but I'd got bored of typing at that point... updated answer again. However, we are veering off-topic a bit (mission creep) as the OP was only asking about the stepper motor end.  

---

