Know how long the battery lasts before you build the board

For engineers building battery-powered sensors, wearables, loggers and remote monitors: model each component’s states, then check the result against real measurements.

Not for mains-powered designs, circuit simulation or PCB layout.

Start my free Personal account See paid plans

It’s Friday. The sensor board is still on the bench, and a client asks how long it runs on one cell. You dig out last year’s spreadsheet, rebuild the sums and still can’t tell whether the answer is a fact or a hope.

1. Choose the battery

Pick the cell from a lifespan range, not a guess

One average pulled from a datasheet is a guess with a decimal point. VBatPower models the cell, the components it powers and each component’s states, so every candidate cell is judged the same way. You get a best and a worst case lifespan in the unit your design needs.

  • Battery, component and state model: each component has its own states, with current, voltage or resistance.
  • Duty cycles: sleep currents run all the time, bursts run for a set time at a set interval.
  • One-off events: boot, firmware update or calibration, counted once instead of as a constant draw.
  • Best and worst case from an error margin, with many batteries per project to compare side by side.

The limit: It’s an average-current model. It doesn’t cover temperature, self-discharge or battery ageing, so keep a margin. The worst-case figure is there for exactly that.

Also in this job

  • Runtime in seconds, minutes, hours, days, months and years
  • Power use, capacity and cycles per year at a glance
VBatPower project editor showing a LoRa sensor node with an estimated lifespan of 1.5 years
Battery over its lifetime: remaining capacity falls from 100 % to 0 over about 1.94 years, marked empty around Nov 2028
Every 5 min: 1.71 years (1.37–2.06) Every 15 min: 4.96 years (3.97–5.95)
Lifespan of a LoRa soil sensor on one 2600 mAh cell (mock data)

2. Find what drains it

Find the part that empties the cell before you change the wrong one

Looking at the total tells you how long the cell lasts, not where the energy goes. VBatPower shows each part’s share of the drain and draws its pulses over time, so the biggest drain sits in plain view. Change one value and see what the saving is worth in days or years.

  • Share of the drain per part and per state, so the biggest consumer is obvious.
  • Heartbeat of every part: each real pulse drawn over time, with a dashed line at the average the estimate uses.
  • Battery over its lifetime, with the date it runs empty. Set an error margin and the best and worst case band appears.
  • Zoom, pan and reset on every chart: scroll to zoom, drag to pan, double-click to reset.

The limit: The chart is only as good as the currents you typed in. Measure the real device before you bet the product on a small saving.

The heartbeat: a lane per part with its real pulses, a total lane from the battery and a dashed line at the 166 µA average the estimate uses
Where the energy goes: LoRa radio 95.5 %, STM32 MCU 3.05 % and BME280 sensor 1.49 % of the drain
Microcontroller: 1.4% Soil sensor: 1.4% LoRa radio: 97.2%
Share of the average draw, one wake every 5 min (mock data)

3. Check it against real hardware

Put your device’s real logs next to the prediction

A prediction is only as believable as its last check against hardware. Import the current and timing logs your device writes, and VBatPower draws the measured curve beside the model. You see where they agree and where they split, run by run, before the design goes further.

  • CSV import with a preview: every parsed record is shown before anything is applied.
  • Data manager with filters by run, type and id, inline edits, and a whole run cleared in one go.
  • REST API with keys per project, so a microcontroller can push readings. Revoke a key at any time.
  • Prediction from real runs: energy per run comes from your data, and the remaining capacity is drawn as the device behaved.

The limit: Telemetry import needs your device to log current and voltage. Without those columns there is nothing to compare the model against.

CSV import dialog previewing 240 telemetry records before they are applied to the project
Data manager listing imported current and timing measurements with filters by run, type and id
API keys list with active and revoked keys and the integration guide for devices

4. Hand it over

Hand over drawings, netlists and calculators your team can open

A design is only useful once someone else can open it and check it. Schematics, calculator flows and parts lists save to your account, so a teammate on a seat picks up the same work. Your board house gets exports in the format it asks for.

  • Schematic editor with 150+ symbols. Switch IEC, ANSI or JIS for the whole drawing in one click.
  • Multi-sheet drawings with net labels and ports, so a connection that crosses sheets stays traceable.
  • Export PNG, SVG and PDF per sheet, a parts list as CSV and a SPICE netlist for the whole project.
  • Calculator flows: inputs, library formulas and expressions in one chain, with units checked at every step.

The limit: The schematic editor draws schematics. It doesn’t route PCBs or simulate circuits, so take the SPICE netlist to a simulator for that.

Also in this job

  • Align, distribute and snap to a grid, with a minimap, layers, find and replace and a measure tool
  • Your own symbols, drawn once and used in every drawing
  • MCP server so an assistant or script can draw sheets while you watch
  • Solve for any variable across 438 formulas in 32 categories
  • 12 unit converters
  • Expression language evaluated with real units
  • Public reference page for every formula and converter, free without an account
  • Cloud sync across devices, with changes kept when you go offline
  • Seats for teams: 5 on Team, 10 on Business, owner included
  • English, Spanish, French and Portuguese
  • Light, dark and system themes
  • Support tickets from the app, with replies in the app and by email
Schematic editor with a 12 V to 5 V buck converter, shunt monitor and eFuse drawn on the canvas
Calculator flow with inputs, a library formula and a custom expression, each value derived live
Ohm’s law calculator solving for any variable with unit selection

Datasheet maths vs spreadsheet vs VBatPower

Capability Datasheet mathsSpreadsheetVBatPower
Duty cycles and sleep currents Partly One average, worked out by hand Yes If you build the sums yourself Yes Built into the battery model
One-off events No Partly One row per event, if you add it Yes Costed once, not as a constant draw
Best and worst case No Partly Two extra columns, if you build them Yes From an error margin
Per-part breakdown of the drain Partly Only if you write out each part Partly One column per part, if you build it Yes Per component and per state
Change one value and see the new lifespan Partly Recalculated by hand Yes Edit a cell and the sheet recalculates Yes Edit any value, the lifespan updates
Units checked Partly Checked by eye Partly Only the labels you write Yes Checked in calculator flows
Measured data beside the prediction No Partly Charts, if you paste the logs in Yes CSV import or REST API
Shared with your team No Yes Shared as a file Yes Seats on Team and Business

Find out how long it runs before you build it

Personal use is free: sign up in under a minute, no card. Commercial work (an employer, a client or a product you sell) needs a paid plan, and every paid plan starts with a 30-day free trial. A card is asked at checkout, and you can cancel any time from your account.

Start my free Personal account See paid plans