A great question about the inner workings of a DIY power bank!
You're right; the power bank's charging circuitry doesn't inherently know the capacity of the batteries connected to it. However, it can still determine when to stop charging the batteries based on their voltage and other factors. Here's a simplified explanation:
Charging 18650 batteries:
When you charge 18650 Li-ion batteries, the charging process typically follows a standard profile:
- Constant Current (CC) phase: The charger supplies a constant current to the batteries until their voltage reaches a certain threshold (usually around 4.2V per cell).
- Constant Voltage (CV) phase: Once the voltage reaches the threshold, the charger switches to a constant voltage mode, where it maintains the voltage at around 4.2V per cell. The current gradually decreases as the batteries become fully charged.
How the power bank's charging circuitry works:
The charging circuitry in your power bank is likely designed to follow a similar charging profile. To determine when to stop charging, the circuitry typically monitors:
- Voltage: The voltage across the batteries is monitored. When it reaches the predetermined threshold (around 4.2V per cell), the charger switches to CV mode.
- Current: During the CV phase, the charger monitors the current flowing into the batteries. As the batteries become fully charged, the current decreases. When the current drops below a certain threshold (usually around 0.1-0.2C, where C is the battery capacity), the charger considers the batteries fully charged and stops charging.
How does it work without knowing the capacity?
The charger doesn't need to know the exact capacity of the batteries to determine when to stop charging. Instead, it relies on the voltage and current measurements. The CV phase and the current threshold (0.1-0.2C) are designed to work with a range of battery capacities.
For example, if the charger detects that the current has dropped to a very low value (e.g., 100mA) while maintaining the voltage at 4.2V, it assumes that the batteries are fully charged, regardless of their capacity.
Assumptions and limitations:
The charging circuitry assumes that the batteries are healthy and have a relatively standard discharge/charge characteristic. If the batteries are old, damaged, or have an unusual discharge profile, the charger might not be able to accurately determine when they're fully charged.
In your case, since you've assembled the power bank with 18650 batteries, the charging circuitry should still be able to charge them safely and effectively, even without knowing their exact capacity.
Keep in mind that using a generic charging circuitry and batteries from different manufacturers or with varying capacities might lead to some variations in charging performance. However, most modern charging ICs and power bank designs are designed to handle these variations and provide a reasonable charging experience.