Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Energy management

Energy management in wireless sensor networks explains how to measure, model and reduce node energy use so networks last long enough for their tasks.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Energy management controls how nodes use their limited power so a wireless sensor network (WSN) can operate for months or years without human battery replacement. Engineers design radios, MACs, routing and sensing schedules using these ideas to meet lifetime and application requirements.

Key ideas

  • Duty cycling: alternating a radio or processor between active (awake) and sleep states to save energy. Define duty cycle = fraction of time the component is active. If the node is active for t_on seconds every period T, duty cycle = t_on / T.

  • First-order radio energy model (commonly used in exam problems). Define: when a node transmits k bits over distance d, the transmitter consumes energy for electronics and for the amplifier. When receiving k bits, a node consumes only electronics energy. Typical structure (assumptions): transmission distance determines which path-loss model (free-space ∝ d^2 or multipath ∝ d^4) applies; electronics cost per bit is constant.

    Exact model statements (exam-style):

    • For transmission of k bits over distance d, if d < d0 (free-space), then E_tx(k,d) = k·E_elec + k·E_fs·d^2.
    • If d ≥ d0 (multipath), then E_tx(k,d) = k·E_elec + k·E_mp·d^4.
    • For reception of k bits, E_rx(k) = k·E_elec.

    Here E_elec is energy per bit used by the radio electronics (encoding, modulation, filtering), E_fs and E_mp are amplifier constants for free-space and multipath channels, and d0 is the threshold distance where the two amplifier models are equal. Assumptions: isotropic antennas, single-hop transmission of given distance d, no retransmissions, no MAC overheads (these are added separately in full designs).

  • Threshold distance d0 (derive in exam): set k·E_fs·d0^2 = k·E_mp·d0^4 → d0 = sqrt(E_fs / E_mp). Show steps: cancel k, divide both sides by E_mp·d0^2.

  • Energy per sensing/processing: sensing and CPU processing also cost energy. Model as E_sense per sample and E_proc per bit. These add to the radio costs for a full node energy per reporting cycle.

  • Energy balancing and load distribution: to avoid early death of a single node, protocols rotate expensive roles (cluster heads, routers). Define energy neutrality: average harvested energy ≥ average consumed energy over long term.

  • Topology control: adjust node transmit power and link selection so required connectivity is maintained with minimum transmit energy.

  • In-network aggregation: combine data inside the network to reduce bits sent to the sink; reduces total radio energy at the cost of extra processing.

  • Diagram to draw for exams: draw a single sensor node as a rectangle labeled "Battery" (value in J), "Microcontroller", and "Radio". Draw arrows showing states of the radio: Transmit (label E_tx), Receive (E_rx), Idle (power P_idle), Sleep (P_sleep). Next to radio, draw a timeline showing periodic wake-ups: show T period, t_on active, t_sleep = T - t_on, and label duty cycle = t_on/T.

Formulas

E_tx(k,d) = k·E_elec + k·E_fs·d^2 (for d < d0) — E_tx: energy to transmit k bits, J; k: bits, unit bit; E_elec: electronics energy per bit, J/bit; E_fs: free-space amplifier constant, J/bit/m^2; d: distance, m. Applies when free-space loss (path-loss exponent 2) dominates.

E_tx(k,d) = k·E_elec + k·E_mp·d^4 (for d ≥ d0) — E_mp: multipath amplifier constant, J/bit/m^4; applies when multipath loss (exponent 4) dominates.

E_rx(k) = k·E_elec — energy to receive k bits, J; same E_elec as above.

d0 = sqrt(E_fs / E_mp) — threshold distance between free-space and multipath models, m.

Energy per reporting cycle = E_sense + k·E_proc + E_tx(k,d) + E_rx(ack) — sum of energies used in one sensing and reporting event (E_proc is energy per bit; multiply by the number of bits k). Units J.

Node lifetime (seconds) = Battery energy (J) / Average power consumption (W) — where average power = energy per cycle / period (J/s = W).

Battery energy (J) = Capacity (Ah) × Voltage (V) × 3600 — convert ampere-hours to joules.

Duty cycle = t_on / T — dimensionless (fraction). If radio active current is I_on at V volts and sleep current I_sleep, average power ≈ V·(I_on·(t_on/T) + I_sleep·(1 - t_on/T)).

Worked examples

Example 1 — energy per packet and node lifetime (periodic sensing) Given: node sends 1000-byte packet every 60 s to a base station at d = 10 m. Use E_elec = 50 nJ/bit (50e-9 J/bit), E_fs = 100 pJ/bit/m^2 (100e-12 J/bit/m^2). Assume d < d0 so free-space model, no acknowledgement reception cost, E_sense + E_proc negligible. To justify d < d0 with a typical E_mp = 0.0013 pJ/bit/m^4, d0 = sqrt(100e-12/0.0013e-12) ≈ 277 m, so 10 m is indeed in the free-space region. Battery: two AA cells giving 2000 mAh at 3 V total (Capacity = 2 Ah, Voltage = 3 V). Compute energy per packet and lifetime. Steps:

  1. k = 1000 bytes = 8000 bits.
  2. E_elec contribution = k·E_elec = 8000 × 50e-9 = 4.0e-4 J.
  3. Amplifier contribution = k·E_fs·d^2 = 8000 × 100e-12 × (10^2) = 8000 × 100e-12 × 100 = 8000 × 1e-8 = 8.0e-5 J.
  4. E_tx = 4.0e-4 + 8.0e-5 = 4.8e-4 J per packet.
  5. Battery energy = 2 Ah × 3 V × 3600 = 21600 J.
  6. Packets per second = 1/60 = 0.0166667 s^-1. Average power = E_tx × packets/sec = 4.8e-4 × 0.0166667 = 8.0e-6 W.
  7. Lifetime = 21600 J / 8.0e-6 W = 2.7e9 s = 31,250 days ≈ 85.6 years.

Final answer: Energy per packet = 4.8 × 10^-4 J; Estimated lifetime ≈ 85.6 years. (This large lifetime shows that in practice other factors such as idle current, sensing, MAC overhead and fading dominate; check assumptions.)

Example 2 — duty-cycle energy cost (radio dominated) Given: radio active current I_on = 20 mA at V = 3 V, sleep current I_sleep = 5 μA, period T = 10 s, active time t_on = 100 ms per period. Battery energy same as example 1 (21600 J). Compute average power and lifetime. Steps:

  1. Duty cycle = t_on / T = 0.1 / 10 = 0.01.
  2. Average current ≈ I_on·duty + I_sleep·(1 - duty) = 20e-3·0.01 + 5e-6·0.99 = 2e-4 + 4.95e-6 ≈ 2.0495e-4 A.
  3. Average power = V × I_avg = 3 × 2.0495e-4 = 6.1485e-4 W.
  4. Lifetime = 21600 J / 6.1485e-4 W ≈ 35,130,520 s ≈ 407 days ≈ 1.11 years.

Final answer: Average power ≈ 6.15 × 10^-4 W; Lifetime ≈ 1.11 years.

(Explain: this example shows idle and sleep currents matter and can dominate when packet sizes are small.)

Common mistakes

  • Not checking the d < d0 vs d ≥ d0 condition before applying the correct amplifier constant.
  • Ignoring idle and sleep currents — they often dominate in low-duty networks.
  • Mixing up energy (J) and power (W) or ampere-hour (Ah) units; always convert to joules for energy budget calculations.
  • Quoting extremely large lifetimes from simple radio-only models without stating assumptions (no MAC overhead, negligible leakage, perfect channel).

For your exam

Types of questions:

  • Definitions and short notes: define duty cycle, energy neutrality, first-order radio model, d0.
  • Derivations: derive d0 = sqrt(E_fs/E_mp), derive lifetime formula from energy per cycle and duty cycle.
  • Numericals: compute E_tx, E_rx, average power and battery lifetime given E_elec, E_fs/E_mp, packet sizes, rates and battery capacity.
  • Diagrams: draw node architecture with battery, radio states and timeline for duty cycle.

What full-marks answers include:

  • Clear definitions of each bold term used without assuming prior knowledge.
  • Statement of assumptions (e.g., no retransmissions, single-hop, amplifier model used).
  • Step-by-step algebra with units carried through each step.
  • Diagrams labelled with symbols used in calculations.
  • Comment on realism: note other energy sinks (sensing, idle, leakage, MAC) and mention energy-harvesting or load balancing if relevant.

Quick check

  1. What is the duty cycle if a radio wakes 200 ms every 5 s?
  2. In the first-order radio model, what term represents the cost of modulation and filtering per bit?
  3. How do you compute battery energy in joules from mAh and voltage? Answers: 1) 0.2/5 = 0.04 (4%). 2) k·E_elec (E_elec is electronics energy per bit). 3) Energy (J) = (mAh/1000)·V·3600.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?