JST Connector Variants Explained: PH, XH, SH, and GH for Battery and Sensor Wiring
"JST connector" shows up constantly in maker parts lists and BOMs, but JST is a manufacturer, not a single connector — it makes dozens of distinct series with different pin pitches, that are visually similar enough at a glance to cause real mistakes. Ordering the wrong variant (a JST-XH header when your battery has a JST-PH plug) is one of the most common small frustrations in electronics builds, and the fix is simply knowing which series is which before you order.
The Variants You'll Actually Encounter
| Series | Pin Pitch | Where You'll See It | Current Rating (typical) |
|---|---|---|---|
| JST-PH | 2.0mm | Single-cell LiPo battery connectors, small sensor boards, many hobby battery packs | ~2A per pin |
| JST-XH | 2.5mm | LiPo/Li-ion balance connectors on multi-cell packs, some sensor headers | ~3A per pin |
| JST-SH | 1.0mm | Qwiic/STEMMA QT I2C boards (SparkFun/Adafruit), internal debug headers, compact sensor wiring | ~1A per pin |
| JST-GH | 1.25mm | FPV drone flight controllers, some camera/gimbal wiring | ~1A per pin |
| JST-PA | 2.0mm | Less common; similar pitch to PH but different keying/latch | ~2A per pin |
| JST-RCY | 2.5mm | Common on battery packs sold without strict JST branding (often unofficial clones) | ~3A per pin |
Note that PH and RCY share the same 2.0mm-adjacent family footprint closely enough to cause confusion, and a huge fraction of "JST connectors" sold on battery packs from hobby/drone vendors are actually unbranded clones that match the physical dimensions without being genuine JST parts — functionally compatible almost always, but worth knowing if you're trying to source an exact mating connector from JST's own catalog.
Why Qwiic/STEMMA QT Uses SH, Not PH or XH
The 1.0mm pitch JST-SH connector was chosen specifically for SparkFun's Qwiic and Adafruit's STEMMA QT I2C connector ecosystems because its small size fits on compact sensor breakouts without eating excessive board edge space, and its 4-pin variant maps cleanly to I2C's four signals (power, ground, SDA, SCL). If you're buying cables for Qwiic/STEMMA boards, you specifically want 4-pin JST-SH — a JST-PH or XH cable will not fit the header at all, since the pitch is physically different.
Identifying an Unknown Connector
If you've got a connector with no markings and no datasheet, measure pin pitch with calipers — center-to-center spacing between adjacent pins — and match against the table above:
- 1.0mm pitch, very small: almost certainly SH.
- 1.25mm pitch: GH, or occasionally the visually similar (but mechanically different) Molex PicoBlade — check for a locking tab shape to distinguish; GH typically has a side latch, PicoBlade does not.
- 2.0mm pitch: most likely PH; check whether it's keyed with a small plastic tab on one side (genuine JST-PH is) versus an unkeyed clone.
- 2.5mm pitch: XH or RCY — XH typically has a friction-lock lip molded into the housing; many RCY/clone connectors do not and rely on pin friction alone.
Crimping Your Own
Pre-made cables are fine until you need a custom length or pin count. Crimping JST connectors by hand requires a connector-specific crimp tool — a generic crimper will not properly form the insulation and conductor crimps on wire this small, and a bad crimp is one of the most common sources of intermittent connection failures in battery wiring.
- Strip wire to the length specified for your connector series (typically 2–3mm of exposed conductor) — too much exposed wire risks shorting against the housing; too little leaves an unreliable crimp.
- Seat the wire in the terminal's conductor crimp wings and insulation crimp wings separately, then crimp each in the matching die of a proper JST crimp tool.
- Tug-test every crimped pin before inserting it into the housing — a loose crimp should pull free easily now, not fail intermittently after assembly.
- Insert pins into the housing in the correct orientation (check the latch tab direction) until each clicks and locks — pushing a reversed pin into a housing is a common way to damage the tiny retention tabs.
Polarity and Orientation Pitfalls
- Many JST series are available in both "top entry" and "side entry" housing variants with the same pitch — a cable that physically fits a header can still have wires routed the wrong direction if you mix these without checking.
- Battery balance connectors in particular are not standardized on pinout across different battery brands even within the same JST series — always verify pin 1 (ground/B0) alignment with a multimeter before plugging an unfamiliar pack's balance connector into a charger, rather than assuming compatibility from the connector shape alone.
- Reversed-polarity JST-PH connectors on single-cell LiPo packs are a known hazard with certain off-brand batteries — verify polarity with a meter the first time you use any new battery source, especially from a vendor you haven't used before.
Once you can identify pitch and check for a keyed housing at a glance, "JST connector" stops being a vague catch-all and becomes a quick, confident call — which saves a surprising number of wrong-part orders over time.