How to Choose the Right Jumper Wires and JST Connectors
By Official Hobby Components Online Store | Buy Electronic Kits, Components, Boards, Shields, Modules | Published: 2026-10-13
Category: Buying Guides
A practical guide to 2.54mm jumper wires and JST XH connectors, with decision rules for pitch, housing count, polarity, and current so you wire your build once.
Quick answer
For breadboard and header work, buy pre-crimped 2.54mm DuPont jumper wires in the lengths you actually use. For anything that leaves the bench, terminates at a PCB, or carries power, switch to a keyed JST XH 2.54 cable. If you need multi-wire runs, build them from loose 4P DuPont housings rather than taping single wires together.
Match the pitch before you match the colour
Pitch is the centre-to-centre spacing between pins, and it decides whether a connector physically mates. 2.54mm (0.1 inch) is the hobby standard shared by breadboards, Arduino headers, and most through-hole modules. JST XH also uses a 2.54mm pitch, but the housing is a different shape with a latch, so an XH plug will not seat on a bare header pin and a DuPont housing will not latch into an XH socket. Buy by pitch and housing family, not by how the photo looks.
If a listing does not state pitch, treat that as a decision limitation rather than guessing. Measure the distance between two adjacent pin centres on your board with calipers: 2.54mm means standard 0.1 inch, 2.0mm means JST PH, and 1.5mm or 1.25mm means a smaller family entirely. Buying the wrong family is the most common reason a connector order sits unused in a drawer.
Pre-crimped jumpers versus loose housings
Pre-crimped jumper wires are the fastest path from idea to working circuit. You pull one out, push it into a breadboard, and move on. Their weakness is that a single wire carries one signal with no keying, so a 4-wire sensor run becomes four loose leads that can be pulled out of order. Loose 4P DuPont housings solve that by grouping four positions into one block that only goes in one way.
Choose loose housings when you are repairing an existing cable assembly, when you want a specific wire colour order, or when you are making several identical harnesses. Choose pre-crimped when you are prototyping and expect to rewire tomorrow. The two are complementary, and most benches end up with both.
When a JST XH cable is the right answer
JST XH earns its place wherever vibration, polarity, or repeated plugging matters. The latch holds the connector in place, and the housing only mates one way, which removes the classic mistake of reversing power and ground. That makes XH the sensible choice for battery tails, charger leads, and any cable that leaves the desk.
The trade-off is that XH is not breadboard-friendly without an adapter, and you cannot easily re-pin a moulded cable. If you need to swap pins often during development, keep a DuPont setup for the bench and move to XH once the pinout is frozen.
Wire gauge, current, and length
Breadboard wire gauge is usually 24 to 26 AWG for pre-crimped jumpers, which is fine for signal lines and low-current module power. It is not fine for motors, heaters, or long LED strips. As a rule of thumb, keep current well below the rating of the wire and connector, and remember that crimp quality matters as much as copper thickness.
Length matters twice: longer wires add resistance and pick up more noise. Keep signal runs short, route power separately from sensitive analogue lines, and do not assume a longer cable will behave like the short one on your bench. If a run must be long, use a thicker wire and a connector rated for the current rather than daisy-chaining jumpers.
Fit guidance: which connector for which job
Use this as a quick filter before you add anything to a basket. The goal is to pick the family that matches your board, then the housing count that matches your signal count, then the termination that matches how often you will unplug it.
- Breadboard and header pins: 2.54mm DuPont jumper wires or loose 2.54mm jumper housings.
- PCB header with a latch and a fixed pinout: JST XH 2.54 cable.
- Battery or charger connection: JST XH, and verify polarity before first power-up.
- Four-wire sensor or module run: 4P DuPont housing to keep the order fixed.
- High-current or high-vibration: step up to a connector rated for the load, not a jumper wire.
Decision rules for jumper wires and JST connectors
- Rule 1: Match pitch and family first: Confirm 2.54mm pitch and identify whether the mating part is a bare header (DuPont) or a latched XH socket. Do not mix families. If pitch is unstated, measure before buying.
- Rule 2: Count positions, then buy the housing: Match the housing position count to the number of signals you are running, and use a single multi-position housing for grouped runs. A 4P housing prevents swapped leads on four-wire modules.
- Rule 3: Choose termination by unplug frequency: Pre-crimped jumpers for daily rewiring; JST XH for fixed pinouts that leave the bench or need polarity protection. Freeze the pinout before you crimp or buy XH.
- Rule 4: Check current and length before you commit: Keep signal runs short and use thicker wire and a rated connector for anything drawing real current. If the load is more than a sensor or small module, leave jumper wires behind.
Products that fit these rules
- Pack of ten (10) 4P DuPont Jumper Wire Housing 2.54mm Pitch: Pack of ten 4-position DuPont jumper wire housings with a standard 2.54mm pitch, for building or repairing custom cable assemblies. Lets you group four signals into one keyed block instead of four loose leads, and the ten-pack covers several harnesses or repairs.
- 2 Pin JST XH-2.54 cable: 2 pin JST XH-2.54 cable, approximately 9cm long, female JST XH connector at one end and bare tinned wires at the other, colour coded red and black for polarity. A ready-made polarity-marked lead for charger and battery connections where a latch and correct orientation matter more than breadboard convenience.
- 433MHz Wireless Transmitter Module MX-FS-03V: 433MHz wireless transmitter module MX-FS-03V with 3.5-12V operating voltage, 19 x 19mm dimensions, and 20-200m transmission distance depending on supply voltage. A concrete example of a module whose supply voltage changes its range, so the jumper or cable feeding it should be short and rated for the current you choose.
- Terminal Expansion Adapter for Arduino Nano: Terminal expansion kit for Arduino Nano comprising a 54mm x 36mm circuit board, 2x 15 pin 0.1 inch pitch sockets, and 10x 3 pin screw terminal blocks, requiring soldering. Turns loose Nano pins into screw terminals, which is the point where you should stop using jumper wires and terminate properly.
Who these choices suit
Best for
- Hobbyists wiring breadboards, Arduino headers, and low-current modules
- Builders who need a latched, polarity-safe lead for a battery or charger
- Anyone repairing or building a custom multi-wire cable assembly
Not for
- Motors, heaters, or LED runs drawing high current
- Projects that need waterproof or sealed connectors
- Boards using JST PH, SH, or other non-2.54mm pitches



