1599  Energy-Aware Design: Introduction and Fundamentals

1599.1 Learning Objectives

By the end of this chapter, you will be able to:

  • Explain why energy is the fundamental limiting resource in IoT design
  • Define power and energy in the context of IoT devices
  • Identify the key tradeoffs in energy-aware IoT system design
  • Understand the gap between battery technology improvement and computing demands
  • Apply basic power and energy concepts to estimate device lifetime

1599.2 For Beginners: Why Energy Matters in IoT

Imagine you have a tiny sensor that monitors the temperature in your garden. It needs to:

  • Wake up every hour
  • Read the temperature
  • Send the data to your phone
  • Go back to sleep

Each of these steps uses energy from a small battery. If the battery dies, your sensor stops working. That’s why every IoT designer obsesses over every microamp of current - it’s the difference between a device that lasts weeks versus years!

Key concepts:

  • Power = how fast you use energy (like water flow from a tap)
  • Energy = total amount used over time (like total water in a bucket)
  • Battery Life = Energy stored / Average power consumption

Sammy the Sensor says: “I’m like a night owl - I only wake up when something interesting happens! The rest of the time, I’m snoozing in deep sleep mode, using almost no battery. That’s how I can stay awake for YEARS on a tiny coin battery!”

Lila the LED explains: “I use 20 milliamps when I’m on - that’s like drinking through a straw. But if I stay on all day, I’ll drain the battery super fast! That’s why smart devices only light me up for a second.”

Max the Microcontroller shares: “I have different ‘sleep modes’ like you have different levels of napping! Light sleep is like dozing on the couch. Deep sleep is like being in bed with the covers over my head - I use almost zero energy but take longer to wake up!”

Think about it like this: Imagine your phone’s battery is a juice box. If you play games ALL day, the juice runs out fast. But if you only check your phone sometimes and let it sleep the rest of the time, the juice lasts much longer! That’s exactly how IoT devices work - they sleep most of the time to save their battery “juice”!

1599.3 Prerequisites

This chapter builds on:

If you’re new to IoT energy concepts, follow this recommended learning path:

  1. Start here: Read through the beginner sections (marked with “For Beginners” or “For Kids”)
  2. Understand the basics: Focus on the Introduction and Energy Sources sections first
  3. Try the calculators: Use the interactive Power Budget Calculator to experiment
  4. Study real examples: The Smart Agriculture case study shows real-world optimization
  5. Practice: Work through the Hands-On Lab with Wokwi simulation

Don’t worry if you don’t understand every formula on the first pass - the conceptual understanding is more important than memorizing equations!

1599.4 Video Resources

This video explains IoT gateway architecture and how power management plays a crucial role in edge devices.

Key Learning Points:

  • Understanding ESP32 sleep modes and current consumption
  • Configuring wake-up sources (timer, external interrupt, touch, ULP)
  • Measuring actual power consumption
  • Achieving multi-year battery life

Estimated Watch Time: 15 minutes

This tutorial demonstrates practical deep sleep implementation on ESP32, showing how to achieve under 10 microamps sleep current for extended battery operation.

Coverage:

  • Battery selection criteria for IoT applications
  • Duty cycling fundamentals and calculation
  • Low-power communication protocols comparison
  • Energy harvesting integration basics

Estimated Watch Time: 20 minutes

1599.5 Introduction

Energy is the fundamental limiting resource in IoT design. While processing power, memory, and communication bandwidth have improved exponentially following Moore’s Law, battery technology has progressed at a much slower pace—approximately 5-8% per year. This disparity creates the central challenge of IoT system design: how to maximize device functionality while operating within strict energy constraints.

The consequences of poor energy management are significant. A device that requires frequent battery replacement creates maintenance costs that may exceed the device’s value. For deployments in remote locations—agricultural fields, wildlife habitats, industrial facilities—battery replacement may be impractical or impossible. The dream of “deploy and forget” IoT sensors lasting 5-10 years requires exceptional energy discipline.

1599.6 Definition

Energy-aware IoT design encompasses the systematic consideration of energy consumption at every level of the system—from component selection through circuit design, firmware implementation, and communication protocols. The goal is to maximize useful work performed per unit of energy consumed, extending battery life while meeting application requirements.

Power represents the instantaneous rate of energy consumption, measured in watts (W):

\[P = V \times I\]

Where V is voltage and I is current.

Energy represents total consumption over time, measured in joules (J) or watt-hours (Wh):

\[E = P \times t = V \times I \times t\]

For battery-powered devices, we typically work with milliamp-hours (mAh), where battery life is:

\[\text{Battery Life (hours)} = \frac{\text{Battery Capacity (mAh)}}{\text{Average Current (mA)}}\]

1599.7 Tradeoff: Primary Battery vs Rechargeable + Harvesting

Factor Primary Battery Rechargeable + Harvesting
Initial Cost Lower Higher (harvester + charger + battery)
Maintenance Periodic replacement None (if sized correctly)
Reliability Predictable lifetime Weather/environment dependent
Complexity Simple Complex (MPPT, BMS, sizing)
Best For Indoor, accessible locations Outdoor, remote, permanent installations

1599.8 Tradeoff: Edge Processing vs Cloud Offloading

Factor Edge Processing Cloud Offloading
Radio Energy Minimal (send results only) High (send raw data)
Processing Energy Higher (local compute) Minimal
Latency Low (local decision) High (network round-trip)
Break-even 100-1000 operations = 1 byte TX Simple filter/aggregate locally
Best For Complex analytics, privacy-sensitive Simple sensors, cloud-dependent apps

1599.9 Tradeoff: Aggressive Sleep vs Always-On Responsiveness

Factor Aggressive Sleep (99%+) Always-On
Battery Life Years Days to weeks
Response Latency 100ms - seconds Immediate
Wake-up Energy Overhead per wake None
Complexity State management, context restore Simple
Best For Periodic monitoring, thresholds Real-time control, continuous stream
WarningEnergy Harvesting is Not a Free Lunch

Energy harvesting (solar, thermal, RF, kinetic) sounds appealing—“free” energy from the environment! But there are critical pitfalls:

  1. Indoor solar is usually NOT viable: Office lighting provides only 5-10 µW/cm². A typical IoT device needs 10-100× more just for sleep current. Indoor solar only works in very bright environments (greenhouses, near windows).

  2. Outdoor solar requires careful sizing: You need enough panel area AND battery capacity to handle:

    • Cloudy days (3-7 days in many climates)
    • Winter reduced sunlight (50% of summer in temperate zones)
    • Panel degradation over time
  3. Energy storage is still required: Even with energy harvesting, you need a battery or supercapacitor to buffer between harvesting peaks and consumption needs.

  4. Thermal/kinetic/RF harvesting is niche: These sources produce microwatts. They work for specific applications (body heat, vibration) but rarely as primary power sources.

Rule of Thumb: Design your IoT device to work on battery alone first. Add energy harvesting as a battery life extender, not a replacement for good power management.

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#2C3E50', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
flowchart TB
    subgraph PowerSource["Power Sources"]
        B["Battery<br/>Capacity: mAh"]
        H["Energy Harvester<br/>Solar/Thermal/RF"]
    end

    subgraph PowerMgmt["Power Management"]
        R["Voltage Regulator<br/>LDO or Switching"]
        C["Power Controller<br/>Sleep/Wake Logic"]
    end

    subgraph Consumers["Energy Consumers"]
        M["MCU<br/>10µA - 50mA"]
        S["Sensors<br/>1µA - 10mA"]
        W["Wireless Radio<br/>10mA - 300mA"]
    end

    B --> R
    H --> R
    R --> C
    C --> M
    C --> S
    C --> W

    style PowerSource fill:#16A085,stroke:#2C3E50
    style PowerMgmt fill:#E67E22,stroke:#2C3E50
    style Consumers fill:#2C3E50,stroke:#2C3E50

Figure 1599.1: Energy flow in a typical IoT device showing power sources, management, and consumers

1599.10 The Fundamental IoT Constraint: Battery Gap is Widening, Not Closing

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#2C3E50', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph LR
    subgraph Progress["Technology Progress Rates"]
        M["Moore's Law<br/>2× every 2 years<br/>Transistor Density"]
        B["Battery Tech<br/>5-8% per year<br/>Energy Density"]
    end

    subgraph Gap["The Growing Gap"]
        G1["1990: 10× difference"]
        G2["2000: 100× difference"]
        G3["2010: 1000× difference"]
        G4["2020: 10,000× difference"]
    end

    M --> G1
    M --> G2
    M --> G3
    M --> G4
    B --> G1
    B --> G2
    B --> G3
    B --> G4

    style Progress fill:#2C3E50,stroke:#2C3E50
    style Gap fill:#E67E22,stroke:#2C3E50

Figure 1599.2: The growing gap between computing advancement and battery technology improvement

The chart above illustrates the fundamental challenge: while processors have become 10,000× more powerful since 1990, batteries have only improved by approximately 10×. This means:

  1. Software cannot assume abundant energy - Even as devices get more capable, energy efficiency must remain paramount
  2. Sleep modes are essential - Devices must spend most of their time in ultra-low-power states
  3. Communication is the dominant cost - Wireless transmission consumes 100-1000× more energy than local processing
  4. Every milliamp matters - Design decisions that save 100 µA can extend battery life by months

1599.11 Why Energy Efficiency Matters: Lessons from Biology

Nature has optimized for energy efficiency over billions of years. IoT designers can learn from biological systems:

%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#2C3E50', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
flowchart TB
    subgraph Bio["Biological Strategies"]
        B1["Hibernation<br/>Bears: months at minimal metabolism"]
        B2["Metabolic Scaling<br/>Cold-blooded: match environment"]
        B3["Event-Driven<br/>Predators: burst activity"]
        B4["Swarm Efficiency<br/>Ants: distributed processing"]
    end

    subgraph IoT["IoT Equivalents"]
        I1["Deep Sleep<br/>10µA for weeks/months"]
        I2["Dynamic Voltage Scaling<br/>Clock down when idle"]
        I3["Wake-on-Motion<br/>Sleep until interrupt"]
        I4["Edge Computing<br/>Process locally, transmit summaries"]
    end

    B1 --> I1
    B2 --> I2
    B3 --> I3
    B4 --> I4

    style Bio fill:#16A085,stroke:#2C3E50
    style IoT fill:#2C3E50,stroke:#2C3E50

Figure 1599.3: Biological energy efficiency strategies and their IoT equivalents

Key biological principles applied to IoT:

Biological Strategy IoT Implementation Energy Savings
Hibernation Deep sleep modes 1,000-10,000×
Torpor (short-term dormancy) Light sleep between tasks 10-100×
Cold-blooded metabolism Dynamic voltage/frequency scaling 2-8×
Event-driven response Interrupt-based wake-up Eliminates polling
Collective intelligence Edge processing + cloud aggregation Reduces communication

1599.12 Knowledge Check

Question 1: Why is energy management more critical in IoT than in traditional computing?

While computing power has increased 10,000x since 1990 following Moore’s Law, battery energy density has only improved about 10x. This creates a fundamental constraint where energy efficiency must be the primary design consideration for battery-powered IoT devices.

Question 2: A sensor uses 10mA for 2 seconds every hour, and 5µA the rest of the time. On a 500mAh battery, approximately how long will it last?

Calculate average current: Active = 10mA × 2s = 20 mAs per hour. Sleep = 5µA × 3598s = 17.99 mAs per hour. Total per hour = 37.99 mAs. Average current = 37.99/3600 = 0.0106 mA. Battery life = 500mAh / 0.0106mA = 47,170 hours, though realistic efficiency reduces this to approximately 27,600 hours (3.15 years) accounting for battery degradation and temperature effects.

1599.13 Summary

Energy-aware design is not optional in IoT—it’s fundamental. The key principles covered in this introduction:

  1. Power vs Energy: Power is instantaneous consumption (W = V × I); energy is total consumption over time (Wh = P × t)
  2. The Battery Gap: Battery technology improves slowly (5-8%/year) while computing advances rapidly, making energy efficiency increasingly critical
  3. Design Tradeoffs: Every IoT design involves balancing edge vs. cloud processing, sleep depth vs. responsiveness, and complexity vs. power savings
  4. Biological Inspiration: Nature’s energy-efficient strategies (hibernation, event-driven response, collective processing) directly inform IoT design patterns

1599.14 What’s Next

Continue to the Energy Sources chapter to learn about battery technologies, energy harvesting options, and how to select the right power source for your IoT application.