Documentation sections
Battery Charge Time Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug battery-charge-time. Calculate Li-ion battery charge time using CC/CV method, including CC phase duration, total charge time, energy input, and charging efficiency
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| capacitynumber | mAh | at least 1 | 3000 | Rated battery capacity in mAh |
| chargeCurrentCnumber | C | 0.1 … 4 | 1 | Charge current as a multiple of battery capacity (1C = full capacity in 1 hour) |
| initialSocnumber | % | 0 … 99 | 20 | Initial State of Charge |
| targetSocnumber | % | 1 … 100 | 80 | Target State of Charge |
| chargingVoltagenumber | V | at least 0.1 | 4.2 | Terminal voltage during charging |
| battVoltagenumber | V | at least 0.1 | 3.7 | Nominal battery voltage for energy calculation |
| requiredTimenumber | hr | at least 0.01 | 3 | The time the charge must finish in. 3 h is the upper end of a full Li-ion charge at 0.5C to 1C (Battery University BU-409: about 2–3 hours) |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| chargeTimeheadline | hr | Total Charge Time |
| ccTime | hr | CC Phase Time |
| chargeCurrent | mA | Charge Current |
| energyIn | mWh | Energy Input |
| chargingEfficiency | % | Charging Efficiency |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.