The JST XH Socket 4-Pin (B4B-XH-AM) is a compact and reliable connector designed for connecting wires to printed circuit boards (PCBs). Manufactured by JST, this connector is known for its secure connection and ease of use. It is widely used in various electronic applications, including consumer electronics, industrial equipment, and hobbyist projects.
Parameter | Value |
---|---|
Manufacturer | JST |
Part ID | B4B-XH-AM |
Number of Pins | 4 |
Pitch | 2.5 mm |
Current Rating | 3 A |
Voltage Rating | 250 V AC/DC |
Operating Temp | -25°C to +85°C |
Contact Material | Phosphor Bronze |
Insulation Material | Nylon 66 (UL94V-0) |
Pin Number | Description | Function |
---|---|---|
1 | VCC | Power Supply (Positive) |
2 | GND | Ground |
3 | Signal/Data | Data or Signal Line |
4 | NC (No Connection) | Not Connected (Optional Use) |
Loose Connection:
Incorrect Pin Configuration:
Overheating:
Q1: Can I use the JST XH Socket 4-Pin with an Arduino UNO?
Q2: What type of wire should I use with the JST XH Socket 4-Pin?
Q3: How do I remove the connector from the socket?
// Example code to read data from a sensor connected via JST XH Socket 4-Pin
// Connect VCC to 5V, GND to GND, and Signal/Data to A0 on the Arduino UNO
const int sensorPin = A0; // Pin connected to the sensor's data line
int sensorValue = 0; // Variable to store the sensor value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(sensorPin, INPUT); // Set the sensor pin as an input
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the value from the sensor
Serial.print("Sensor Value: "); // Print the sensor value to the serial monitor
Serial.println(sensorValue);
delay(1000); // Wait for 1 second before reading again
}
This documentation provides a comprehensive overview of the JST XH Socket 4-Pin (B4B-XH-AM), including its technical specifications, usage instructions, and troubleshooting tips. Whether you are a beginner or an experienced user, this guide will help you effectively utilize this component in your electronic projects.