CodeNFacts
CodeHub
Home

All Categories


Sign In
IoT

IoT Notes

Complete guide & cheat sheet

Study Notes · IoT

Internet of Things

A complete, exam-ready guide to IoT - definitions, architecture, types, protocols, formulas, security, applications, cheat sheets and diagrams, all in one place.

DefinitionsBlock DiagramsFormulasCheat SheetIMP PointsDownloadable Notes

01 · Basics

What is IoT?

The Internet of Things (IoT) refers to a network of physical objects — "things" — such as sensors, appliances, vehicles and machines that are embedded with electronics, software and network connectivity. This lets them collect and exchange data, and often take action, over the internet largely without needing constant human involvement.

In short: IoT connects the physical world to the digital world, turning everyday objects into data sources and remote-controllable endpoints. The phrase was popularised by Kevin Ashton in 1999 while describing RFID-based supply-chain tracking.

Simple definition to remember: "IoT = Sensors + Connectivity + Data Processing + Action, applied to everyday physical objects."

02 · Motivation

Why is IoT used? Why is it needed?

Automates manual, repetitive monitoring and control tasks
Gives real-time visibility into remote assets and environments
Cuts operating costs via predictive maintenance and efficiency gains
Improves safety with early hazard detection and alerts
Produces rich data that fuels analytics, AI and better decisions
Improves convenience, health outcomes and quality of life

03 · History

How IoT Evolved: The Journey of an Era

1982

A modified Coke vending machine at Carnegie Mellon University is connected to the internet so students could check stock and temperature remotely — one of the earliest 'connected things'.

1990

John Romkey builds an internet-connected toaster, controllable over the network — an early proof that everyday appliances could be networked.

1999

Kevin Ashton uses the term 'Internet of Things' while working on RFID supply-chain tracking at Procter & Gamble / MIT Auto-ID Center.

2008-09

The number of connected devices exceeds the number of people on Earth — widely treated as the symbolic 'birth' of the real IoT era.

2011

IPv6 is launched publicly, providing the enormous address space needed to give every physical object a unique identity.

2014-16

Smart-home hubs, voice assistants and wearables go mainstream; low-power wide-area networks such as LoRaWAN and NB-IoT emerge.

2018-20

Industry 4.0 and Industrial IoT (IIoT) mature; 5G rollout begins, promising massive low-latency device density.

2021-25

Edge computing + AI merge with IoT to create AIoT (Artificial Intelligence of Things); digital twins become common in manufacturing.

2026 →

6G research, ambient intelligence, self-healing sensor networks and ultra-low-power energy-harvesting devices push IoT toward a truly invisible, always-on fabric of computing.

04 · System Design

IoT Architecture & Block Diagram

Data flows from the physical world up through processing layers and back down again as control commands — a closed loop between sensing and acting.

Sensors /ActuatorsPERCEPTIONGateway /RouterNETWORKEdge / CloudProcessingMIDDLEWAREDashboard /ApplicationAPPLICATIONEndUserfeedback / control commands to actuators
LayerFunctionExamples
Perception Layer
(Sensing Layer)
Physical layer that senses and gathers data from the environment using sensors and actuators.Temperature sensor, GPS module, RFID tag, camera, accelerometer
Network Layer
(Transmission Layer)
Transmits sensed data from devices to processing systems using wired or wireless media.Wi-Fi, Bluetooth, Zigbee, LoRaWAN, cellular (4G/5G), gateways, routers
Middleware / Processing Layer
(Edge & Cloud Layer)
Stores, analyzes and processes the massive incoming data; performs filtering and decision-making.Edge servers, cloud platforms (AWS IoT, Azure IoT Hub), databases, ML models
Application Layer
(User Layer)
Delivers application-specific services and the interface through which the user interacts with the system.Smart-home app, industrial dashboard, health-monitoring app

05 · Categories

Types of IoT

Consumer IoT (CIoT)

Devices built for everyday personal use.

Smart speakers, smart bulbs, fitness bands, smart TVs, smart locks

Commercial IoT

Devices used in business and public-facing environments.

Smart POS systems, inventory trackers, connected medical equipment

Industrial IoT (IIoT)

Devices used in manufacturing, energy and heavy industry for automation and monitoring.

Predictive maintenance sensors, robotic arms, SCADA systems

Infrastructure IoT

Devices that monitor and manage public infrastructure.

Smart grids, smart streetlights, water-quality sensors, bridge-stress sensors

Military IoT (IoMT / IoBT)

'Internet of Battlefield Things' — devices for defense and surveillance.

Reconnaissance drones, wearable soldier sensors, smart weapons tracking

Internet of Medical Things (IoMT)

Connected healthcare and medical devices.

Remote patient monitors, smart insulin pumps, connected MRI machines

06 · Building Blocks

Core Components of an IoT System

Sensors

Detect physical/chemical quantities (temperature, motion, light, gas, etc.) and convert them into data.

Actuators

Act on the environment based on decisions — motors, relays, valves, servos.

Connectivity

Communication hardware/protocols moving data between devices, gateways and the cloud.

Gateway

Bridges local device protocols to internet protocols; often does local pre-processing.

Data Processing

Edge or cloud compute that filters, analyses and derives insight from raw sensor data.

User Interface

Dashboards, apps or voice interfaces through which people monitor/control the system.

07 · Networking

IoT Communication Models

Device-to-Device (D2D)

Two or more devices connect and communicate directly without an intermediary server, usually over Bluetooth, Zigbee or Z-Wave.

e.g. A smart bulb pairing directly with a smart switch.

Device-to-Cloud (D2C)

A device connects directly to an internet cloud service, typically over Wi-Fi or cellular, to send data and receive commands.

e.g. A smart thermostat pushing readings straight to a cloud dashboard.

Device-to-Gateway (D2G)

A device sends data to an intermediary gateway/hub, which performs protocol translation before forwarding it to the cloud.

e.g. A Zigbee sensor talking to a smart-home hub that relays data over Wi-Fi.

Back-End Data Sharing

Cloud data collected from many devices is exported and shared with authorised third-party systems for analytics.

e.g. A fleet-tracking platform sharing anonymised traffic data with a city planning system.

08 · Reference

Protocols Cheat Sheet

ProtocolTypeRangePowerData RateTypical Use
MQTTApplicationInternet-wideVery lowLowLightweight publish/subscribe messaging for constrained devices
CoAPApplicationInternet-wideVery lowLowREST-like protocol for constrained devices over UDP
HTTP/HTTPSApplicationInternet-wideHighHighStandard web protocol; heavier, used where power isn't constrained
Bluetooth / BLENetwork (short range)~10-100 mLowMediumWearables, personal area networks
ZigbeeNetwork (short range)~10-100 m (mesh)Very lowLow-MediumMesh networks for smart-home/industrial sensors
Z-WaveNetwork (short range)~30-100 m (mesh)Very lowLowHome-automation mesh networking
Wi-FiNetwork (LAN)~50 m indoorHighVery highHigh-bandwidth home/office connectivity
LoRaWANNetwork (LPWAN)2-15 kmExtremely lowVery lowLong-range, low-power sensor networks (agriculture, utilities)
NB-IoTNetwork (LPWAN, cellular)1-10 kmExtremely lowLowCellular-based low-power wide-area IoT
5GNetwork (cellular)Cell coverageMedium-HighExtremely highMassive device density, ultra-low latency IIoT & autonomous systems
RFIDIdentificationFew cm - few mPassive/lowLowAsset tagging, supply-chain tracking
NFCIdentification< 10 cmVery lowLowContactless payments, pairing, access cards

09 · Math

Important Formulas

Battery / Node Life

Battery Life (hrs) = Battery Capacity (mAh) ÷ Average Current Draw (mA)

Estimates how long a sensor node will run before recharge/replacement — critical for LPWAN sensor planning.

Duty Cycle

Duty Cycle (%) = (Active Time ÷ Total Cycle Time) × 100

Fraction of time a device is actively transmitting/awake; lowering it extends battery life.

Free Space Path Loss (FSPL)

FSPL (dB) = 20·log₁₀(d) + 20·log₁₀(f) + 32.44

d = distance in km, f = frequency in MHz. Estimates signal loss between a sensor and gateway over open air.

Shannon-Hartley Capacity

C = B · log₂(1 + S/N)

C = max channel data rate (bps), B = bandwidth (Hz), S/N = signal-to-noise ratio. Bounds the achievable data rate of a wireless IoT link.

Nyquist Sampling Theorem

fs ≥ 2 · fmax

A sensor's sampling frequency must be at least twice the highest frequency component of the signal to avoid aliasing.

IPv6 Address Space

Total Addresses = 2¹²⁸ ≈ 3.4 × 10³⁸

Explains why IPv6 (not IPv4's 2³² ≈ 4.3 billion) is required to give every IoT device a unique global address.

Data Throughput

Throughput = Data Size ÷ Transmission Time

Effective useful data rate delivered by a device/network link, usually lower than the theoretical channel capacity.

Latency Budget

Total Latency = Propagation Delay + Transmission Delay + Processing Delay + Queuing Delay

Sum of all delay sources between a sensor event and the application receiving it — vital for real-time IIoT control loops.

Little's Law (Queueing)

L = λ · W

L = average number of messages in a queue/broker, λ = arrival rate, W = average time a message spends in the system. Used to size MQTT brokers/edge queues.

Node Density / Coverage

N = Area ÷ (π · r²)

Minimum number of sensor nodes of radio range r needed to cover a given deployment area with no gaps.

Energy Consumed

E (Joules) = V × I × t

V = voltage, I = current, t = time. Basic energy-budgeting formula for a sensor node's transmit/sleep cycle.

Link Budget

Received Power (dBm) = Tx Power − FSPL + Antenna Gains − Losses

Confirms whether a signal will be strong enough at the receiver to be decoded correctly.

10 · Protection

Security in IoT

More connected endpoints means a larger attack surface. IoT security is judged against the classic CIA triad: Confidentiality, Integrity and Availability.

Common Threats

  • Weak or default device passwords
  • Unpatched / outdated firmware
  • Botnets built from hijacked devices (e.g. Mirai)
  • Man-in-the-middle attacks on unencrypted links
  • Unauthorised data collection / privacy leakage

Best Practices

  • Strong, unique credentials per device
  • TLS/DTLS encryption for data in transit
  • Regular OTA (over-the-air) firmware updates
  • Network segmentation for IoT devices
  • Device identity via certificates; minimal open ports

11 · Real World

Where is IoT Used Mostly?

🏠

Smart Home

Automated lighting, thermostats, security cameras and voice assistants that learn routines.

🏥

Healthcare (IoMT)

Remote patient monitoring, smart wearables, connected insulin pumps and hospital asset tracking.

🌾

Smart Agriculture

Soil-moisture and weather sensors driving precision irrigation and yield prediction.

🏭

Industry 4.0 / IIoT

Predictive maintenance, digital twins and robotic automation on the factory floor.

🏙️

Smart Cities

Smart traffic lights, waste-management sensors, air-quality monitoring and smart parking.

Wearables

Fitness trackers, smartwatches and biometric monitors for continuous personal health data.

🚗

Connected Vehicles

Telematics, fleet tracking, ADAS and the sensor backbone behind autonomous driving.

🛒

Smart Retail

Automated checkout, shelf-inventory sensors and personalised in-store experiences.

Smart Energy Grids

Smart meters and grid sensors balancing load and enabling demand-response pricing.

🏢

Smart Buildings

Occupancy-based HVAC, lighting and access control that cut energy waste in offices.

12 · Is it worth it?

Is IoT Helpful? Advantages & Disadvantages

Advantages

  • Automates repetitive tasks, saving time and manual effort
  • Enables real-time monitoring and faster, data-driven decisions
  • Improves efficiency and reduces operational/energy costs
  • Enhances safety through predictive maintenance and early alerts
  • Improves quality of life via smart healthcare and smart homes
  • Generates rich data that fuels analytics, AI and better business insight

Disadvantages

  • Security & privacy risks — more connected devices mean a larger attack surface
  • Interoperability issues between vendors and communication standards
  • High initial setup cost for sensors, gateways and infrastructure
  • Heavy dependency on stable internet/network connectivity
  • Massive data volumes need significant storage and processing capacity
  • Complex device management at scale (updates, patching, monitoring)

13 · Characteristics

Features of IoT

Connectivity

Devices are always reachable over a network — wired or wireless.

Sensing

Ability to perceive real-world physical/chemical/biological quantities.

Heterogeneity

Devices differ in hardware, protocols and vendors, yet must interoperate.

Scalability

Architecture must support billions of devices joining and leaving the network.

Dynamic & Self-Adapting

Devices adjust behaviour automatically based on context (e.g. location, load).

Intelligence

Embedded/edge AI enables local decision-making without constant cloud round-trips.

Safety & Security

Protecting both the physical asset and the data it produces.

Interoperability

Common protocols/standards let unlike devices exchange data meaningfully.

14 · What's Next

Future of IoT & How It's Reshaping Generations

IoT is steadily moving from "connected gadgets" toward an ambient, intelligent fabric woven into daily life, industry and cities — shifting each generation's relationship with technology from something you operate to something that quietly assists you.

AIoT

AI models embedded directly on-device/edge, enabling local, instant decision-making without constant cloud round-trips.

5G → 6G

Massive device density and near-zero latency, unlocking real-time industrial control and autonomous systems.

Digital Twins

Live virtual replicas of physical assets, continuously synced with real-time sensor data for simulation and optimisation.

Energy Harvesting

Battery-free sensor nodes powered by ambient light, vibration or RF energy — enabling maintenance-free deployments.

Ambient Intelligence

Computing that fades into the environment — spaces that sense and respond without visible interfaces.

Sustainability

Smart grids, precision agriculture and smart buildings driving major reductions in resource waste.

15 · Exam Focus

IMP — Important Points

  • 01IoT = Internet of Things: a network of physical objects ('things') embedded with sensors, software and connectivity to exchange data over the internet without needing constant human intervention.
  • 02The term was coined by Kevin Ashton in 1999 while working on RFID-based supply-chain tracking.
  • 03The four commonly examined IoT architecture layers: Perception → Network → Middleware/Processing → Application.
  • 04IPv6 (2¹²⁸ addresses) is essential to IoT because IPv4 (2³² addresses) cannot uniquely address billions of devices.
  • 05MQTT is lightweight, publish/subscribe, and preferred for constrained, low-bandwidth IoT devices; HTTP is heavier and less power-efficient.
  • 06The 4 communication models: Device-to-Device, Device-to-Cloud, Device-to-Gateway, Back-End Data Sharing.
  • 07Edge computing processes data close to the source to cut latency; cloud computing centralises heavy storage/analytics.
  • 08Sensors sense the environment; actuators act on the environment (e.g. a motor, valve, relay) — do not confuse the two in exams.
  • 09IIoT (Industrial IoT) focuses on manufacturing/automation; IoT in general covers consumer + industrial + infrastructure use.
  • 10AIoT = Artificial Intelligence + IoT — embedding intelligence directly into connected devices/edge nodes.
  • 11LPWAN (LoRaWAN, NB-IoT) trades data rate for very long range and very low power — ideal for battery-run rural sensors.
  • 12Digital Twin: a live virtual replica of a physical asset, kept in sync using real-time IoT sensor data.

16 · At a Glance

One-Page Cheat Sheet

Definition

Physical objects + sensors + connectivity + data exchange, with minimal human intervention.

Coined By

Kevin Ashton, 1999 (RFID / supply-chain context).

4 Layers

Perception → Network → Middleware → Application.

4 Comm. Models

D2D · D2C · D2G · Back-End Data Sharing.

Lightweight Protocol

MQTT — publish/subscribe, low power, low bandwidth.

Long-Range Low-Power

LoRaWAN / NB-IoT — LPWAN class.

Addressing

IPv6 → 2¹²⁸ addresses (vs IPv4's 2³²).

Sampling Rule

Nyquist: fs ≥ 2 × fmax.

Capacity Formula

Shannon: C = B·log₂(1+S/N).

Security Triad

Confidentiality · Integrity · Availability.

IIoT

Industrial IoT — factories, predictive maintenance.

AIoT

AI + IoT — intelligence embedded at the edge.

17 · Visuals

Diagrams & Sketches

Layered Architecture Sketch

Application LayerMiddleware / Processing LayerNetwork LayerPerception Layer

Smart Home Network Sketch

HubLockSensorCamBulb

Take these notes with you

Download the complete IoT notes — definitions, formulas, cheat sheet and IMP points — as a single text file for offline revision.

IoT Notes — built for quick revision. Toggle light/dark mode from the header.