Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 36 ยท Getting Started

IoT Challenges and Design Thinking

Learn the main IoT challenges: constrained devices, power, connectivity, security, interoperability and scale, and a method for planning a project.

Building one working prototype on a desk is easy. Keeping ten thousand devices working in the wild for five years is hard. Most IoT failures come not from a lack of clever code but from ignored constraints: a battery that dies in a month, a Wi-Fi password that changed, a device nobody can update. This lesson lists the recurring challenges and then gives you a planning method to meet them early.

The main challenges

Six recurring IoT challenges

Power Batteries must last years
Connectivity Networks drop and change
Security Millions of attack surfaces
Interoperability Many standards, few agree

Plus two more on the next slide.

1 / 2

Constrained devices

A typical microcontroller has between 2 KB and a few MB of RAM and runs at tens or hundreds of MHz. Heavy cryptography, large JSON documents and general-purpose operating systems may not fit. You will often choose compact binary formats and efficient protocols for this reason.

Power

A device on a coin cell has perhaps 225 mAh to spend. Radios are the biggest consumers, so good designs sleep most of the time and transmit rarely. The low-power lesson goes deeper; here is a first taste.

Python Battery life estimate for a duty-cycled sensor

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Reporting every minute drains the batteries in weeks; hourly reporting reaches years. Because the average current is dominated by active time, how often you transmit matters more than anything else.

Connectivity

Wi-Fi access points reboot, cellular coverage has holes and LoRa gateways go offline. Devices must retry with backoff, buffer data and recover gracefully. The next example shows exponential backoff with jitter, the standard way to reconnect without causing a storm of simultaneous retries.

Python Reconnect with exponential backoff and jitter

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Without jitter, ten thousand devices that lost power together would all retry at the same instant when it returns.

Security

Every device is a computer on a network that nobody watches. Known failures include default passwords, unencrypted traffic and devices that cannot be patched. Security must be designed in from the first prototype; the course has a whole chapter on it.

Interoperability

Zigbee, Z-Wave, Thread, Matter, Bluetooth and proprietary clouds all coexist. Choosing open standards reduces lock-in and lets gateways bridge differences.

Scale and maintenance

Managing a fleet means provisioning (giving each device an identity), monitoring, grouping, staged firmware rollouts and decommissioning. If you cannot update devices remotely, every bug becomes a recall.

Privacy and regulation

A motion sensor reveals when people are home. Collect only what you need, tell users, secure it, and respect rules such as GDPR and sector regulations. Radio devices also need certification (for example FCC or CE marking).

A design-thinking method for IoT projects

Before buying a board, answer these questions in order:

  1. Problem and user: who benefits and what decision will the data support?
  2. Measurements: what must be measured, how accurately and how often?
  3. Environment: indoors or outdoors, temperature extremes, water, vibration, radio interference?
  4. Power: mains, battery or harvesting? Required lifetime?
  5. Connectivity: range, data volume, existing networks, coverage?
  6. Compute placement: what must run on the device, at the edge, in the cloud?
  7. Security and update plan: identity, encryption, how updates arrive.
  8. Cost and scale: cost per device at 1, 1,000 and 100,000 units, plus running costs per month.

The last point is easy to miss: cloud and connectivity charges recur every month for every device.

Python Total cost of ownership per device

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The cheapest hardware is not always the cheapest solution.

Common beginner mistakes

  • Choosing a protocol or board before defining the problem.
  • Ignoring power until the battery dies in the field.
  • Hard-coding Wi-Fi credentials and cloud secrets in firmware.
  • No plan for over-the-air updates.
  • Sending raw data at high frequency when summaries would do.
  • Testing only on the bench, never in the real environment.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What mostly determines the battery life of a duty-cycled sensor?

    Radios draw far more current than sleeping chips, so reporting less often saves the most energy.
  2. 2. Why add random jitter to reconnect delays?

    Synchronized retries create load spikes; jitter spreads them out.
  3. 3. Which question belongs at the very start of IoT design?

    Starting from the problem avoids building technology nobody needs.
  4. 4. Why is an update plan part of the initial design?

    Without remote updates, every flaw found after shipping becomes a costly recall.

Summary

  • Major challenges: power, connectivity, security, interoperability, scale, maintenance and privacy.
  • Battery life depends mainly on how often and how long the radio runs.
  • Use retries with exponential backoff and jitter; buffer data while offline.
  • Plan from the problem outward, and include recurring costs and updates from day one.

Next: Sensor Basics