Battery sensor node: sample, sleep, send: experiment bench
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.
- 1. Ask
- 2. Hypothesise
- 3. Set up
- 4. Run
- 5. Record
- 6. Change one variable
- 7. Compare
- 8. Interpret
- 9. Limitations & save
If I change …, then … will …, because …
3 · Set up the parameters
A bigger battery lasts longer but costs mass, space and money.
Sampling less often saves energy but misses fast changes.
Batching readings saves radio energy but delays the data.
Warm-up and measurement time.
Flows all the time, so small numbers matter over months.
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
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
| Parameter | Range | Default |
|---|---|---|
| Battery capacity | 100 to 3000 mAh | 1000 |
| Time between samples | 1 to 600 s | 60 |
| Samples per radio packet | 1 to 60 | 10 |
| Awake time per sample | 5 to 500 ms | 50 |
| Current while awake | 1 to 30 mA | 8 |
| Sleep current | 1 to 200 µA | 20 |
| Radio time per packet | 10 to 1000 ms | 100 |
| Radio current | 5 to 150 mA | 40 |
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.