Buying guide · Intermediate · 3 min read
JST and Compatible Board-to-Wire Connectors
XH, PH, ZH, SH, 1.25 mm and 2.54 mm Pitch Headers, Housings and Pre-Wired Leads
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
A board-to-wire connector set has three parts: a header (wafer) soldered to the board, a housing that plugs into it, and crimp contacts on the wires. The key choice is the pitch, the spacing between pins: 2.5 mm (XH), 2 mm (PH), 1.5 mm (ZH), 1.25 mm or 1 mm (SH). Pitch, pin count and series must match on both sides.
Key specs at a glance
- JST series
- XH 2.5 mm, PH 2.0 mm, PA and PHD 2 mm, XA, ZH 1.5 mm, SH 1.0 mm
- Compatible makers
- CJT, DLL, XUNPU, HANBO in 1.0, 1.25, 1.5, 2.0, 2.5 and 2.54 mm pitch
- Parts
- Wafer headers, female housings with 300 mm wires, crimp contacts
- Pin counts
- 2 to 24 pins, single and double row
Identify the pitch first
Pitch is the centre-to-centre distance of the pins, and connectors of different pitch do not fit each other. Measure a known connector with a ruler over several pins, or read the series code: XH is 2.5 mm, PH is 2.0 mm, ZH is 1.5 mm, SH is 1.0 mm, and a 1.25 mm series is also common for small devices. Choose the pitch for the space and the current; smaller pitch means a smaller connector, thinner wire and lower current.
| Series | Pitch | Typical use |
|---|---|---|
| XH | 2.5 mm | LiPo balance leads, fans, general wiring |
| PH | 2.0 mm | Small LiPo cells, sensors, dev board batteries |
| ZH | 1.5 mm | Compact modules and small boards |
| 1.25 mm | 1.25 mm | Small robots, drones, cameras |
| SH | 1.0 mm | Very small boards, Qwiic-style cables |
- XH
- Pitch:
- 2.5 mm
- Typical use:
- LiPo balance leads, fans, general wiring
- PH
- Pitch:
- 2.0 mm
- Typical use:
- Small LiPo cells, sensors, dev board batteries
- ZH
- Pitch:
- 1.5 mm
- Typical use:
- Compact modules and small boards
- 1.25 mm
- Pitch:
- 1.25 mm
- Typical use:
- Small robots, drones, cameras
- SH
- Pitch:
- 1.0 mm
- Typical use:
- Very small boards, Qwiic-style cables
Header, housing and contacts
The board side is the header (wafer), straight or right angle. The cable side is a housing with a crimp contact in each cavity. You can buy a pre-wired housing (a female housing with 300 mm wires) to skip crimping, or buy loose housings and contacts and crimp them yourself with the right crimp tool. A kit of matched pieces from one maker is safest; compatible makers fit the same series, but check the drawing.
Polarity and wiring
The housings are usually keyed so they only plug in one way, but the pin order is not standard between devices. For a battery connector, check the red and black wires against your board with a multimeter before connecting, because a reversed JST can destroy a module. Use wire thick enough for the current: thin 28 to 26 AWG leads are fine for signals and about an amp, but not for high power.
Where to use which
Use XH for balance leads and general internal wiring, PH for small LiPo cells and dev boards, ZH and 1.25 mm for compact devices, and SH where space is tight. See connectors and jumper wires and Dupont for the 2.54 mm family.
Common mistakes to avoid
- Mixing pitches or series.
- Assuming battery polarity is standard.
- Using thin leads for high current.
- Crimping with the wrong tool.
- Ordering a header without checking straight or right-angle.
Frequently asked questions
What does pitch mean?
The distance between pin centres. Connectors only mate when the pitch and series match.
Which JST for a LiPo battery?
Many small cells use PH 2.0 mm, balance leads use XH 2.5 mm, but check the board and cell.
Do I need a crimp tool?
Yes for loose housings and contacts. Pre-wired housings avoid this.
Are compatible parts the same as JST?
They are made to the same dimensions, but check the drawing and test fit.
Is the polarity standard?
No. Always check with a multimeter before connecting a battery.
Parts for this guide
Keep learning on Electrolark
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.









