Free tech learning for everyone, from basics to pro

IoT FundamentalsIoT SecurityIntermediate

Powering IoT devices: batteries, sleep modes and energy harvesting

In short: IoT devices run from mains, Power over Ethernet, batteries or harvested energy. Battery devices last years by sleeping almost all the time and waking briefly to measure and transmit. Power budgets shape every design choice, including how much encryption and how many updates a device can afford.

Where the energy comes from

Power sourcesIoT powerMainsunlimited, fixedsitePoEpower over EthernetBatterycoin cell to Li-ionHarvestingsolar, motion, heat
Figure 1. The main ways to power an IoT device, from fixed mains supplies to energy harvested from the surroundings.

Mains power is easy where a socket exists. Power over Ethernet (PoE) sends power and data down one cable, which suits IP cameras and access points (you can size a budget with the PoE calculator). Many sensors, however, sit where there is no cable at all: in a field, on a pallet or on a wrist. These run on batteries, sometimes topped up by energy harvesting from a small solar panel, vibration or temperature differences.

Estimating battery life

Battery capacity is measured in milliamp-hours (mAh). To estimate life, work out the device's average current. Suppose a sensor draws 10 microamps asleep, and once every 10 minutes wakes for 2 seconds drawing 80 milliamps to read and transmit:

  • Awake share: 2 seconds in 600, about 0.33 percent. Average awake contribution: 80 mA x 0.0033, roughly 0.27 mA.
  • Sleep contribution: 0.01 mA.
  • Average: about 0.28 mA. A 2000 mAh battery gives roughly 2000 / 0.28, around 7100 hours, or about 10 months.

Halve the wake time or double the interval and life nearly doubles. Real batteries lose capacity in the cold and with age, so allow a safety margin.

Low-power design techniques

Duty cycleDeep sleepmicroampsWaketimer or eventMeasureread sensorTransmitradio on brieflyBack to sleepsave energy
Figure 2. Low-power devices spend almost all their time asleep and wake only briefly to measure and send.
  • Deep sleep. Turn off the CPU and radio, keeping only a timer running.
  • Short radio bursts. The radio is usually the biggest drain, so send small messages and batch readings.
  • Low-power radios. Bluetooth Low Energy, Zigbee and LoRaWAN are designed for this; Wi-Fi connects quickly but costs more energy per message.
  • Event-driven wake-up. A door sensor can sleep until the reed switch changes, rather than polling.
  • Switch off peripherals. Power sensors through a pin so they draw nothing while the MCU sleeps.

Power and security

Security costs energy. A full TLS handshake with certificate checks uses CPU time and radio air time; downloading a firmware update can use more energy than a week of readings. Designers respond by resuming sessions instead of renegotiating, using efficient elliptic-curve cryptography, and scheduling updates when the battery is healthy. Never "save power" by removing encryption or authentication; instead reduce how often the expensive steps happen.

Power is also an attack target. A battery-drain attack keeps a device awake with constant connection requests until it dies. Rate limiting, ignoring unauthenticated traffic quickly and monitoring battery level in the platform all help you spot it.

Tip: a sudden fall in reported battery level across many devices at once is worth investigating; it may be a fault, a firmware bug or deliberate interference.

Practice

Which part of a wireless sensor usually uses the most energy?
The radio, especially while transmitting, so minimising air time is the biggest saving.
A device averages 0.5 mA from a 1000 mAh battery. Roughly how long will it last?
About 2000 hours, roughly 83 days, before allowing for temperature and ageing.
How can you keep security on a battery device without draining it?
Use efficient elliptic-curve cryptography, resume sessions rather than doing full handshakes each time, and schedule updates when the battery is healthy.

Key takeaways

  • Power options: mains, PoE, batteries and energy harvesting.
  • Battery life depends on average current, dominated by awake and radio time.
  • Deep sleep, short radio bursts and event wake-ups extend life to years.
  • Reduce the frequency of costly security steps, never remove them.
  • Watch for battery-drain attacks and unusual battery trends.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.