← How-Tos
electronics 5 days ago ◑ 13 views ◯ 4 min read

JST Connector Variants Explained: PH, XH, SH, and GH for Battery and Sensor Wiring

JSTconnectorsPHXHSHGHbattery wiringcrimpingpitchelectronics basics

"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

SeriesPin PitchWhere You'll See ItCurrent Rating (typical)
JST-PH2.0mmSingle-cell LiPo battery connectors, small sensor boards, many hobby battery packs~2A per pin
JST-XH2.5mmLiPo/Li-ion balance connectors on multi-cell packs, some sensor headers~3A per pin
JST-SH1.0mmQwiic/STEMMA QT I2C boards (SparkFun/Adafruit), internal debug headers, compact sensor wiring~1A per pin
JST-GH1.25mmFPV drone flight controllers, some camera/gimbal wiring~1A per pin
JST-PA2.0mmLess common; similar pitch to PH but different keying/latch~2A per pin
JST-RCY2.5mmCommon 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:

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.

  1. 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.
  2. 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.
  3. Tug-test every crimped pin before inserting it into the housing — a loose crimp should pull free easily now, not fail intermittently after assembly.
  4. 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

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.