Deterministic engineering tool
Power Consumption & Battery Runtime Estimator.
Plain arithmetic, with no model call, turns a datasheet's currents, or yours, into typical and worst-case battery runtimes. When a current is missing, a voltage cannot work or the battery cannot supply the peak, you get the reason instead of a number.
Phase-based duty cycle
How the model computes average drain.
The estimator models one repeating cycle in four phases. The average current is each phase's battery current weighted by its share of the cycle, plus the regulator's own current and self-discharge. Typical and maximum are worked out separately.
1. Active
The mode you pick or the current you type, plus your peripherals for their share of active time and any other board load.
2. Sleep
The mode you pick or the current you type, plus board leakage. On an extracted datasheet no mode is chosen for you, because row order says nothing about your firmware. Rows measured on VBAT or VBUS are marked.
3. Radio / high-current burst (optional)
A short high-current phase, such as a radio transmission. Say whether the processor runs during it, and its current is added.
4. Wake-up
The wake-up time of the selected sleep mode, or yours, drawn at active current. When none is known it is not counted, and the page says so.
Before any runtime
Regulator, battery and peak-current checks.
LDO vs. Buck DC/DC
An LDO draws the load current from the battery plus its own current, which you enter. A buck draws load x Vout / (Vbattery x efficiency); the starting efficiencies of 88 % and 65 % are assumptions to replace with your converter's figures.
Usable capacity & self-discharge
Runtime is the usable share of the rated capacity over the average current. Only the CR2032 capacity, cutoff, rated drain and self-discharge come from a maker's datasheet (Energizer); the other preset figures are assumptions you can edit. Temperature, peaks and age are not modelled.
Voltage and peak checks
The chip's supply range, the regulator's headroom and the peak draw are checked first. A small average does not help a cell that cannot supply a radio burst.
Sources
Calculation ledger, reasons and warnings.
Each ledger line shows its share of time, typical and maximum battery current, share of the average, and where the figure came from: a datasheet page, or you.
MISSING_CURRENTNo runtime: a phase has time but no current. A typed 0 counts as a current; a blank does not.SUPPLY_OUT_OF_RANGENo runtime: the voltage reaching the chip is outside its supply range, for example a fully charged 4.2 V cell on a 3.6 V part.REGULATOR_CANNOT_MAKE_VOLTAGENo runtime: an LDO lacks headroom, or a buck is asked for more than the battery gives. Boost converters are not modelled.BATTERY_PULSE_EXCEEDEDNo runtime: the peak draw is above the battery's peak limit and you have not declared a capacitor that supplies it.MISSING_MAXIMUMNo worst case: a selected row or one of your own figures has no maximum. A typical value is never used in its place.MAXIMUM_AT_ROOM_TEMPERATUREThe worst case uses room-temperature maximums. A warmer board draws more.CAPACITY_PARTLY_UNREACHABLEThe chip or regulator stops before the battery counts as empty, so the runtime is an upper estimate.BATTERY_CONTINUOUS_EXCEEDEDThe average draw is above the drain the capacity is rated at, so a real cell gives less.OTHER_SUPPLY_RAILA selected row is current on VBAT or VBUS, not on the main supply.REGULATOR_IQ_DOMINATES_SLEEPThe regulator's own current is more than the sleep load takes from the battery.
Cross-datasheet comparison
Reusable Device Profiles.
Save your workload, supply and battery as a named Device Profile. On the same datasheet it reproduces the estimate exactly. On another one it keeps the workload and leaves any mode that datasheet does not have for you to pick.
Agent access
Free MCP tool: datasheetvend_estimate_power_runtime
Available at https://datasheetvend.com/api/mcp in FREE_MCP_TOOLS (read-only, idempotent, no API key required, no model call). Returns structuredContent and the same JSON as text. When there is no runtime it is null, with the reasons in blockers or max_blockers. An argument it does not know is refused.
{
"tool": "datasheetvend_estimate_power_runtime",
"arguments": {
"sample_part_id": "stm32g031k8",
"active_ms": 500,
"sleep_ms": 59500,
"regulator_topology": "ldo",
"mcu_vdd_v": 1.8,
"regulator_iq_ua": 2,
"battery_preset": "cr2032"
}
}