Battery Configuration Calculator
calculate_battery_configCalculate the number of batteries needed and their series/parallel arrangement to achieve a desired voltage and capacity, with wiring instructions.
Instructions
Determine how to arrange batteries in series and/or parallel to achieve a target voltage and capacity. Returns the number of batteries needed, the wiring configuration (e.g. 2S3P), and step-by-step wiring instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetVoltage | Yes | Desired system voltage (e.g. 12, 24, 48) | |
| targetCapacityAh | Yes | Desired total capacity in amp-hours | |
| singleBatteryVoltage | Yes | Nominal voltage of one battery (e.g. 12.8 for LiFePO4, 12 for lead-acid, 3.2 for LiFePO4 cells) | |
| singleBatteryAh | Yes | Capacity of one battery in amp-hours |