Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use JST XH 2P Female: Examples, Pinouts, and Specs

Image of JST XH 2P Female
Cirkit Designer LogoDesign with JST XH 2P Female in Cirkit Designer

Introduction

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.

Explore Projects Built with JST XH 2P Female

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing JST XH 2P Female in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
FTDI to UART Adapter with J26 Connector
Image of J26 CLOSEUP: A project utilizing JST XH 2P Female in a practical application
This circuit connects an FTDI USB-to-serial converter to a standard serial interface via a J26 connector. It facilitates serial communication by linking the ground, transmit, receive, data terminal ready, and request to send signals between the FTDI chip and the J26 connector.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Sensor Interface with Rotary Encoders and Proximity Sensing
Image of Advisory: A project utilizing JST XH 2P Female in a practical application
This circuit is designed for control and data acquisition, featuring an ESP32 microcontroller that processes signals from rotary encoders and various sensors including inductive proximity sensors and a water flow sensor. It includes power management components and multiple power input options, suggesting versatility in deployment for automation or monitoring tasks.
Cirkit Designer LogoOpen Project in Cirkit Designer
Multi-Channel Load Cell Measurement System with JYS60 Amplifiers and DAQ Integration
Image of Load Cell Circuit: A project utilizing JST XH 2P Female in a practical application
This is a multi-channel load cell measurement system with several JYS60 amplifiers connected to load cells for weight or force sensing. The amplified signals are directed to a DAQ system for data capture, and power is supplied through a barrel jack. Grounding is achieved via an AdaGator Side Black component.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with JST XH 2P Female

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Transmitter 11: A project utilizing JST XH 2P Female in a practical application
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of J26 CLOSEUP: A project utilizing JST XH 2P Female in a practical application
FTDI to UART Adapter with J26 Connector
This circuit connects an FTDI USB-to-serial converter to a standard serial interface via a J26 connector. It facilitates serial communication by linking the ground, transmit, receive, data terminal ready, and request to send signals between the FTDI chip and the J26 connector.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Advisory: A project utilizing JST XH 2P Female in a practical application
ESP32-Controlled Sensor Interface with Rotary Encoders and Proximity Sensing
This circuit is designed for control and data acquisition, featuring an ESP32 microcontroller that processes signals from rotary encoders and various sensors including inductive proximity sensors and a water flow sensor. It includes power management components and multiple power input options, suggesting versatility in deployment for automation or monitoring tasks.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Load Cell Circuit: A project utilizing JST XH 2P Female in a practical application
Multi-Channel Load Cell Measurement System with JYS60 Amplifiers and DAQ Integration
This is a multi-channel load cell measurement system with several JYS60 amplifiers connected to load cells for weight or force sensing. The amplified signals are directed to a DAQ system for data capture, and power is supplied through a barrel jack. Grounding is achieved via an AdaGator Side Black component.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Battery connections in RC models, drones, and small electronics
  • Power supply connections for PCBs
  • Signal transmission in low-power circuits
  • Interfacing sensors and modules with microcontrollers

Technical Specifications

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:

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 Configuration and Descriptions

Pin Number Description
1 Positive (+) Terminal
2 Negative (-) Terminal

Usage Instructions

How to Use the JST XH 2P Female Connector in a Circuit

  1. Wire Preparation: Strip the insulation from the ends of the wires you want to connect, exposing approximately 2-3 mm of the conductor.
  2. Crimping: Use a crimping tool to attach the crimp terminals to the exposed wire ends. Ensure a secure and firm crimp for reliable connections.
  3. Insert into Housing: Insert the crimped terminals into the JST XH 2P Female housing until they click into place. The locking mechanism ensures the terminals are securely held.
  4. Mating with Male Connector: Align the JST XH 2P Female connector with the corresponding male connector and push them together until the locking mechanism engages.

Important Considerations and Best Practices

  • Wire Gauge: Use wires with an appropriate gauge (typically 22-28 AWG) to ensure compatibility with the crimp terminals.
  • Crimping Tool: Always use a proper crimping tool designed for JST XH connectors to avoid loose or unreliable connections.
  • Polarity: Double-check the polarity of the connections to prevent damage to your circuit.
  • Insertion Force: Avoid applying excessive force when inserting or removing the connector to prevent damage to the housing or terminals.

Example: Connecting to an Arduino UNO

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:

Circuit Diagram

  • Connect the positive terminal of the JST XH 2P Female connector to the Arduino's 5V pin.
  • Connect the negative terminal to the Arduino's GND pin.

Sample Code

// 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
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Loose Connections:

    • Issue: The connector feels loose or disconnects easily.
    • Solution: Ensure the crimp terminals are properly inserted into the housing and the locking mechanism is engaged.
  2. Incorrect Polarity:

    • Issue: The circuit does not work or components are damaged.
    • Solution: Double-check the polarity of the connections before powering the circuit.
  3. Crimping Problems:

    • Issue: Wires are not securely attached to the crimp terminals.
    • Solution: Use a high-quality crimping tool and ensure the wire gauge matches the terminal specifications.
  4. Connector Damage:

    • Issue: The housing or terminals are damaged during use.
    • Solution: Avoid applying excessive force and ensure proper alignment when mating connectors.

FAQs

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.