Skip to content
Tactiverge

Battery sensor node: sample, sleep, send: experiment bench

Simulation OS · electronicsEducational model, not a digital twin

Battery sensor node: sample, sleep, send

A battery-powered sensor wakes, measures, sleeps and now and then radios its readings. Spend the battery wisely: how often to measure, how often to send, and how long it lasts.

Your level (shows more controls and deeper equations)
  1. 1. Ask
  2. 2. Hypothesise
  3. 3. Set up
  4. 4. Run
  5. 5. Record
  6. 6. Change one variable
  7. 7. Compare
  8. 8. Interpret
  9. 9. Limitations & save

If I change …, then … will …, because …

3 · Set up the parameters

100–3000 mAh

A bigger battery lasts longer but costs mass, space and money.

1–600 s

Sampling less often saves energy but misses fast changes.

1–60

Batching readings saves radio energy but delays the data.

5–500 ms

Warm-up and measurement time.

1–30 mA
1–200 µA

Flows all the time, so small numbers matter over months.

10–1000 ms
5–150 mA

The seed fixes any random noise. Same parameters + same seed = exactly the same result, every time, on every computer.

6 · Change one variable

Your first run is the baseline. After it, change one thing at a time.

7 · Compare on a graph

Run the model to draw your first curve here.

5 · Run log

No runs yet.

Equations

Battery life (hours) = usable capacity / average current, with 80 % of the rated mAh usable. Days = hours / 24.

Assumptions (always true in this model)

  • Sleep current flows all the time (also while awake): a small, deliberate overestimate.
  • 80 % of the rated capacity is usable; no self-discharge, temperature or ageing effects.
  • Constant 3 V supply; currents are illustrative values for a small microcontroller and low-power radio.
  • Every radio packet succeeds first time (no retries).
Text description of what the chart shows

A line chart of battery charge over a year, falling in a straight line from 100 % at a rate set by the average current. Sampling less often or batching more readings per radio packet makes the line shallower, so the battery lasts longer.

Did the result support your hypothesis? Use the numbers from the comparison table and link them to an equation.

Which assumptions could change your answer in the real world? For example: Real batteries deliver less at high pulse currents and in the cold; real radios retry lost packets.

Export and save

Exports use the ticked runs (or every run if none are ticked). Your draft saves automatically in this browser only. The Journal is private to you.

Valid parameter ranges

ParameterRangeDefault
Battery capacity100 to 3000 mAh1000
Time between samples1 to 600 s60
Samples per radio packet1 to 6010
Awake time per sample5 to 500 ms50
Current while awake1 to 30 mA8
Sleep current1 to 200 µA20
Radio time per packet10 to 1000 ms100
Radio current5 to 150 mA40

Independent reference checks

  • Default node

    Hand calculation: 0.02 + 50·8/60 000 + 100·40/600 000 = 0.02 + 0.006667 + 0.006667 = 0.033333 mA; 800 mAh / 0.033333 mA = 24 000 h = 1000 days; 0.033333 mA × 3 V × 60 s = 6 mJ.

  • Sampling every second, sending every reading

    Hand calculation: 0.02 + 50·8/1000 + 100·40/1000 = 0.02 + 0.4 + 4 = 4.42 mA; 800/4.42 = 180.995 h = 7.54148 days.

Checked automatically on every change to the code. Educational model, not engineering-grade.

Where this model stops being right

  • Real batteries deliver less at high pulse currents and in the cold; real radios retry lost packets.