

The JST XH 2P Female connector is a 2-pin female connector widely used in electronic circuits for connecting wires. It features a compact design and a reliable locking mechanism, ensuring secure and stable connections. This connector is part of the JST XH series, known for its durability and ease of use. It is commonly used in battery connections, PCB interfaces, and small electronic devices.








The JST XH 2P Female connector is designed to meet the needs of compact and reliable wire-to-board or wire-to-wire connections. Below are its key technical details:
| Parameter | Specification | 
|---|---|
| Number of Pins | 2 | 
| Pitch (Pin Spacing) | 2.5 mm | 
| Rated Voltage | 250 V AC/DC | 
| Rated Current | 3 A | 
| Contact Resistance | ≤ 20 mΩ | 
| Insulation Resistance | ≥ 1000 MΩ | 
| Operating Temperature | -25°C to +85°C | 
| Housing Material | Nylon 66 (UL94V-0 flame retardant) | 
| Contact Material | Phosphor Bronze with Tin Plating | 
| Pin Number | Description | 
|---|---|
| 1 | Positive (+) Terminal | 
| 2 | Negative (-) Terminal | 
The JST XH 2P Female connector can be used to connect a 2-pin sensor or power supply to an Arduino UNO. Below is an example of connecting a 2-pin temperature sensor:
// Example code for reading a temperature sensor connected via JST XH 2P Female
// Assumes the sensor outputs an analog voltage proportional to temperature
const int sensorPin = A0; // Analog pin connected to the sensor's output
void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  pinMode(sensorPin, INPUT); // Set the sensor pin as input
}
void loop() {
  int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  float voltage = sensorValue * (5.0 / 1023.0); // Convert to voltage (5V reference)
  float temperature = (voltage - 0.5) * 100.0; // Convert voltage to temperature (example formula)
  
  // Print the temperature to the Serial Monitor
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");
  
  delay(1000); // Wait 1 second before the next reading
}
Loose Connections:
Incorrect Polarity:
Crimping Problems:
Connector Damage:
Q1: Can I solder wires directly to the JST XH 2P Female connector?
A1: It is not recommended to solder wires directly to the connector, as it may damage the housing or compromise the connection. Use crimp terminals for a secure and reliable connection.
Q2: What is the maximum current the JST XH 2P Female connector can handle?
A2: The connector is rated for a maximum current of 3 A. Exceeding this limit may cause overheating or damage.
Q3: Can I use this connector for high-frequency signals?
A3: The JST XH 2P Female connector is primarily designed for low-power and low-frequency applications. For high-frequency signals, consider using connectors specifically designed for such purposes.
Q4: Is the connector waterproof?
A4: No, the JST XH 2P Female connector is not waterproof. For outdoor or moisture-prone environments, use waterproof connectors or additional sealing methods.