This listing is for a prewired set of XH type (aka XH-2.5, JST-XH) through hole wire-to-board connectors, choose from the following…
Wire colours and gauge (AWG) may vary (24-26AWG) from that in photos depending on what I can get, if it’s important, ask!
PLEASE NOTE! Check your polarities, don't just assume "oh, red, that must be X volts, oh black that must be ground", I don't know what voltages or signals your device puts or expects on each wire and neither does the Chinese factory that made these wires. Check twice, don't burn your house down.
XH Connectors have a 2.50mm pin pitch*. They are commonly used for power from batteries and balancing connectors of course you can also use them for data, or servos or motors or potentiometers or anything.... that's kinda how connectors work, they connect things, who knew.
Remember for balancing connectors you want 1 pin more than the number of cells, eg for a 3S pack you need a 4 Pin connector.
Each "item" you buy gets you a pack containing:
# 1 of PCB mount pin header – straight (vertical).
# 1 of Plug with wires already attached
* Often XH connectors are specified by sellers as 2.54mm because lots of people will search for that. They (XH connectors) really are 2.5mm if you are doing it properly. but that extra 0.04mm is probably in the margin of error anyway.