Estimate MCU power consumption and battery runtime
datasheetvend_estimate_power_runtimeEstimate microcontroller battery runtime and average current from active, sleep and burst phases, with plain arithmetic and no model call. Give a hand-checked example (sample_part_id: 'stm32g031k8', 'nrf52840', 'esp32') and optionally pick its modes by name, or give your own currents in uA (a typed 0 counts; a missing value does not). Typical and worst-case runtimes are decided separately: runtime_typ_days or runtime_max_days is null, with the reasons in blockers or max_blockers, when a current is missing, a voltage cannot work (chip range, LDO headroom, buck step-down) or the battery cannot supply the peak. A typical figure is never used as a maximum. Not modelled: temperature or age effects on battery capacity, boost converters, charging. Free, no API key, reads no account data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "datasheetvend_estimate_power_runtime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wake_us | No | Wake-up time per cycle, microseconds. Default: the sleep mode's own, if stated. | |
| burst_ms | No | Radio or high-current burst time per cycle, milliseconds. | |
| sleep_ms | No | Sleep time per cycle, milliseconds. | |
| active_ms | No | Active time per cycle, milliseconds. | |
| mcu_vdd_v | No | Regulator output voltage (LDO or buck). | |
| burst_mode | No | Mode name from the example part for the burst phase. | |
| chip_max_v | No | Chip's maximum supply voltage. | |
| chip_min_v | No | Chip's minimum supply voltage. | |
| sleep_mode | No | Mode name from the example part for the sleep phase. | |
| active_mode | No | Mode name from the example part for the active phase. | |
| ldo_dropout_v | No | LDO dropout voltage. Default 0.2 V (assumed). | |
| temperature_c | No | Temperature column to read, e.g. 25, 85 or 125 (STM32G031 example). | |
| battery_full_v | No | Voltage when fresh or fully charged. | |
| battery_preset | No | Battery starting point. Default: cr2032, or the example's. 'custom' needs battery_capacity_mah and battery_nominal_v. | |
| sample_part_id | No | Hand-checked example part. | |
| regulator_iq_ua | No | Regulator's own current, uA. Required for an LDO. Buck: only what its efficiency leaves out. | |
| battery_cutoff_v | No | Voltage at which the battery counts as empty. | |
| burst_current_ua | No | Your typical burst current, uA. | |
| sleep_current_ua | No | Your typical sleep current, uA. | |
| active_current_ua | No | Your typical active current, uA. Replaces the mode's figure. | |
| battery_nominal_v | No | Nominal voltage. | |
| external_burst_ua | No | Other board load during the burst, uA. | |
| external_sleep_ua | No | Other board load during sleep, uA. | |
| external_active_ua | No | Other board load during the active phase, uA. | |
| regulator_topology | No | How the battery feeds the chip. Default: direct, or the example's. | |
| battery_capacity_mah | No | Rated capacity, mAh. | |
| battery_max_pulse_ma | No | Largest peak the battery supplies, mA. 0 = not checked. | |
| battery_usable_share | No | Share of rated capacity you expect to get. | |
| burst_max_current_ua | No | Your maximum burst current, uA. | |
| sleep_max_current_ua | No | Your maximum sleep current, uA. | |
| active_max_current_ua | No | Your maximum active current, uA. | |
| buck_sleep_efficiency | No | Buck efficiency at light load. Default 0.65 (assumed). | |
| buck_active_efficiency | No | Buck efficiency under load. Default 0.88 (assumed). | |
| include_self_discharge | No | Count battery self-discharge. | |
| burst_includes_processor | No | Add the active (processor) current on top of the burst current. | |
| battery_max_continuous_ma | No | Average current the capacity is rated at, mA. 0 = not given. | |
| peaks_supplied_by_capacitor | No | Your design has a capacitor that supplies peaks above the battery's limit. | |
| battery_self_discharge_pct_per_year | No | Self-discharge, percent per year. |