

The JST XH 4P Female connector is a 4-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 applications such as battery connections, PCB interfaces, and small electronic devices.








The JST XH 4P 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:
The JST XH 4P Female connector has four pins, each corresponding to a specific connection. Below is the pinout description:
| Pin Number | Description | Typical Use | 
|---|---|---|
| 1 | VCC (Power Supply) | Positive voltage input | 
| 2 | GND (Ground) | Ground connection | 
| 3 | Signal/Data Line 1 | Data or control signal | 
| 4 | Signal/Data Line 2 | Data or control signal | 
Note: The pin configuration may vary depending on the specific application. Always refer to the circuit design or datasheet for proper wiring.
The JST XH 4P Female connector is straightforward to use, but proper handling and wiring are essential for optimal performance. Follow the steps below to use this connector in your circuit:
Prepare the Wires:
Crimp the Contacts:
Insert the Contacts into the Housing:
Connect to the Male Counterpart:
Verify the Connection:
The JST XH 4P Female connector can be used to connect sensors or modules to an Arduino UNO. Below is an example of how to connect a sensor with a JST XH 4P interface:
// Example code for reading data from a sensor connected via JST XH 4P
const int signalPin1 = 2; // Pin connected to Signal/Data Line 1
const int signalPin2 = 3; // Pin connected to Signal/Data Line 2
void setup() {
  pinMode(signalPin1, INPUT); // Set Signal 1 as input
  pinMode(signalPin2, INPUT); // Set Signal 2 as input
  Serial.begin(9600); // Initialize serial communication
}
void loop() {
  int data1 = digitalRead(signalPin1); // Read data from Signal 1
  int data2 = digitalRead(signalPin2); // Read data from Signal 2
  // Print the data to the Serial Monitor
  Serial.print("Signal 1: ");
  Serial.println(data1);
  Serial.print("Signal 2: ");
  Serial.println(data2);
  delay(500); // Wait for 500ms before the next reading
}
Loose Connections:
Overheating:
Signal Interference:
Incorrect Wiring:
Q: Can the JST XH 4P Female connector handle high-power applications?
A: No, this connector is designed for low-power applications with a maximum current rating of 3A.
Q: Is the connector reusable?
A: The housing is reusable, but the crimped contacts may need to be replaced if removed.
Q: Can I solder wires directly to the connector?
A: It is not recommended to solder wires directly, as this may damage the housing or compromise the connection.
Q: What tools are required for crimping?
A: A compatible crimping tool designed for JST XH series connectors is required for reliable crimps.
By following this documentation, you can effectively use the JST XH 4P Female connector in your electronic projects.