DevTools Logo

IoT Pil Ömrü Tahminleyici

IoT Pil Ömrü Tahminleyici

Mikrodenetleyici uyku çevrimini ve pil ömrünü tarayıcınızda hesaplayın

Pil ve tüketim

Sensör örnekleme senaryosu

Hakkında

AA, 18650 ve CR2032 pil seçenekleriyle aktif/sleep akım ağırlıklı ortalama tüketimi, kapasiteyi, kullanım ömrünü, verimli çevrim sayısını ve tüketim dağılımını hesaplayın.

Examples

Weighted average current

Input
estimateBatteryLife({ capacityMah: 1000, activeCurrentMa: 50, sleepCurrentMa: 0.5, activeSeconds: 2, sleepSeconds: 8 })
Output
{ averageCurrentMa: 10.4 }

(50×2 + 0.5×8) / 10 seconds gives the 10.4 mA duty-weighted mean.

Self-discharge ceiling

Input
estimateBatteryLife({ ..., activeCurrentMa: 0, sleepCurrentMa: 0, selfDischargeAnnualPercent: 10 })
Output
{ runtimeHours: 87600, selfDischargeLimited: true }

With no load draw, the 10%/year shelf loss alone caps life at ten years.

About this tool

IoT Battery Life Estimator projects sensor-node runtime with estimateBatteryLife({ capacityMah, activeCurrentMa, sleepCurrentMa, activeSeconds, sleepSeconds, peukertExponent, selfDischargeAnnualPercent }): average current is the duty-weighted mean, effective capacity applies an optional Peukert derating, and the final runtime is the minimum of the capacity budget and the self-discharge ceiling.

Duty math is explicit: activeShare/sleepShare split the period, active/sleepConsumptionPercent split the charge, and estimatedCycles counts full wake/sleep periods inside the runtime. BATTERY_PRESETS ships AA (2000 mAh), 18650 (3000 mAh), and CR2032 (220 mAh); SAMPLE_SCENARIOS covers 1-minute, 5-minute, and hourly sampling.

Edge behavior is well-defined: zero average current yields infinite capacity runtime (bounded only by self-discharge), Peukert exponents clamp at ≥1, and identical inputs always return identical results.

How to use this tool

  1. Describe the battery

    Set capacityMah directly or copy a BATTERY_PRESETS entry (CR2032 = 220 mAh).

  2. Describe the duty cycle

    Enter active/sleep currents plus activeSeconds/sleepSeconds per period — e.g. 1 s awake, 59 s asleep.

  3. Add aging knobs

    Optionally set peukertExponent above 1 for high-drain derating and selfDischargeAnnualPercent for shelf-loss ceilings.

  4. Read the limiting factor

    Check runtimeHours/Days/Years plus selfDischargeLimited to see whether capacity or shelf life dominates.

Use cases

Sizing sampling intervals

Compare 1-minute versus hourly wakeups to trade data freshness against years of life.

Choosing a cell

Contrast CR2032 coin cells against AA or 18650 packs for the same duty cycle.

Spotting sleep-current leaks

See when sleepConsumptionPercent dominates and justify a lower-quiescent regulator.

Common mistakes

Mistake:Averaging currents without duty weighting.

Fix:Mean current is (active×tActive + sleep×tSleep) / period — a 50 mA burst at 20% duty is only ~10 mA average.

Mistake:Expecting infinite life at zero load.

Fix:Zero draw still hits the self-discharge ceiling — set selfDischargeAnnualPercent to bound shelf life realistically.

Mistake:Applying Peukert to coin cells by default.

Fix:Leave peukertExponent at 1 for low-rate IoT loads; raise it only when high pulse currents actually sag capacity.

Frequently asked questions

What does this tool do?

It projects sensor-node life with estimateBatteryLife: duty-weighted average current, optional Peukert derating, self-discharge ceiling, runtime in hours/days/years, cycle count, and consumption splits, with BATTERY_PRESETS and SAMPLE_SCENARIOS built in.

How long does a CR2032 last sampling once a minute?

With 8 mA active / 5 µA sleep at 1 s per 60 s on a 220 mAh CR2032, average draw is ~0.14 mA — on the order of two months, bounded further by self-discharge settings.

Is my deployment data uploaded or stored?

No. Duty-cycle math and aging projections run entirely in your browser.

Why is my runtime infinite, or self-discharge limited?

Zero average current gives infinite capacity runtime, so the self-discharge ceiling takes over (selfDischargeLimited true). Set selfDischargeAnnualPercent for a realistic shelf-life bound.

References & standards