

A lithium battery with a JST PH connector is a compact, lightweight, and high-energy-density power source commonly used in small electronic devices. The JST PH connector provides a secure and reliable connection, making it ideal for portable applications. These batteries are rechargeable and are widely used in robotics, IoT devices, handheld gadgets, and prototyping projects.








Below are the general specifications for a typical lithium battery with a JST PH connector. Note that specific values may vary depending on the manufacturer and model.
| Parameter | Specification |
|---|---|
| Nominal Voltage | 3.7V |
| Capacity Range | 100mAh to 2000mAh (varies by model) |
| Charging Voltage | 4.2V (maximum) |
| Discharge Cutoff Voltage | 3.0V |
| Maximum Discharge Current | 1C to 3C (varies by model) |
| Connector Type | JST PH 2.0mm, 2-pin |
| Dimensions | Varies (e.g., 30mm x 20mm x 5mm) |
| Weight | Typically 5g to 50g |
| Chemistry | Lithium Polymer (LiPo) or Lithium-Ion |
The JST PH connector is a 2-pin connector with the following pinout:
| Pin | Name | Description |
|---|---|---|
| 1 | Positive (+) | Connects to the positive terminal of the battery |
| 2 | Negative (-) | Connects to the negative terminal of the battery |
Connecting the Battery:
Charging the Battery:
Discharging the Battery:
Connecting to an Arduino UNO:
The following code demonstrates how to monitor the battery voltage using an analog input pin on the Arduino UNO.
// Define the analog pin connected to the battery voltage divider
const int batteryPin = A0;
// Define the voltage divider ratio (adjust based on your resistor values)
const float voltageDividerRatio = 2.0;
// Reference voltage of the Arduino (5V for most boards)
const float referenceVoltage = 5.0;
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read the analog value from the battery pin
int analogValue = analogRead(batteryPin);
// Convert the analog value to a voltage
float batteryVoltage = (analogValue / 1023.0) * referenceVoltage * voltageDividerRatio;
// Print the battery voltage to the Serial Monitor
Serial.print("Battery Voltage: ");
Serial.print(batteryVoltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
Note: Use a voltage divider circuit to scale down the battery voltage to a safe range (0-5V) for the Arduino's analog input. For example, use two resistors in series (e.g., 10kΩ and 10kΩ) to divide the voltage by half.
| Issue | Possible Cause | Solution |
|---|---|---|
| Battery does not charge | Faulty charger or incorrect charging voltage | Verify charger and ensure 4.2V is applied |
| Device does not power on | Battery is discharged or connector is loose | Recharge the battery or check connections |
| Battery heats up during use | Overcurrent or short circuit | Check the circuit for shorts or reduce load |
| Voltage drops quickly | Battery is old or damaged | Replace the battery with a new one |
Can I use this battery to power a 5V device?
How do I know when the battery is fully charged?
Can I connect multiple batteries in series or parallel?
Is it safe to leave the battery connected to the charger?
By following this documentation, you can safely and effectively use a lithium battery with a JST PH connector in your projects.