1. Executive Summary & Syllabus Blueprint
1. Executive Summary & Syllabus Blueprint
The Internet of Things (IoT) represents the paradigm where physical objects ('things') embedded with sensors, processing ability, software, and other technologies connect and exchange data with other devices and systems over the Internet. This unit provides the foundational architecture of IoT, delineating physical vs logical designs, communication models and APIs, the 6 standard IoT deployment deployment levels, transducer physics (sensors & actuators), signal conditioning, and modern embedded hardware development platforms.
2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition
2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition
2.1 Definition, Core Characteristics, and Evolution of IoT
- Core Definition: A dynamic global network infrastructure with self-configuring capabilities based on standard and interoperable communication protocols where physical and virtual 'things' have identities, physical attributes, and virtual personalities, use intelligent interfaces, and are seamlessly integrated into the information network.
- Key Characteristics:
- Dynamic & Self-Adapting: Nodes dynamically adapt to changing contexts (e.g., sleep modes, changing transmission power, waking up on interrupt).
- Self-Configuring: Automated network discovery, IP allocation, and protocol negotiation (e.g., mesh joining).
- Interoperable Communication Protocols: Common data serialization (JSON, CBOR, Protobuf) over heterogeneous transport media (cellular, 802.15.4, BLE).
- Unique Identity: Every device possesses a unique URI, IP address, or cryptographic MAC identifier.
- Integrated into Information Network: Direct ingestion into analytics pipelines, cloud storage, and actuator feedback loops.
2.2 Physical vs Logical Design of IoT
+-----------------------------------------------------------+
| PHYSICAL DESIGN OF IoT |
| +--------------------+ +-----------------------------+ |
| | Things / Nodes | | IoT Protocols | |
| | Sensors/Actuators | | Link: 802.11, 802.15.4, BLE | |
| | MCU / SoC / PMIC | | Network: IPv4/IPv6, 6LoWPAN | |
| +--------------------+ | Transport: TCP, UDP | |
| | Application: MQTT, CoAP | |
| +-----------------------------+ |
+-----------------------------------------------------------+
|
v
+-----------------------------------------------------------+
| LOGICAL DESIGN OF IoT |
| +-----------------------------------------------------+ |
| | Functional Blocks: Device, Comm, Services, Mgmt, UI | |
| +-----------------------------------------------------+ |
| | Communication Models: Req-Resp, Pub-Sub, Push-Pull | |
| +-----------------------------------------------------+ |
| | Communication APIs: REST (HTTP) vs WebSocket | |
| +-----------------------------------------------------+ |
+-----------------------------------------------------------+- Physical Design:
- Things: Embedded hardware containing microcontroller units (MCUs), input/output interfaces (GPIO, ADC, I2C, SPI, UART), power management units, and RF radios.
- Protocols: Layered stack running from physical/link layers (IEEE 802.15.4, Bluetooth Low Energy, LoRa) to application protocols.
- Logical Design:
- Functional Blocks: Device (sensing/actuation), Communication (data exchange), Services (device discovery, telemetry), Management (firmware updates, diagnostics), Application (user dashboards).
- Communication Models:
- Request-Response: Client requests data, server processes and responds (stateless, e.g., HTTP).
- Publish-Subscribe: Decoupled architecture involving Publisher, Broker, and Subscriber (event-driven, e.g., MQTT).
- Push-Pull: Queued data model where publishers push to a FIFO queue and consumers pull messages asynchronously (e.g., RabbitMQ, Kafka).
- Exclusive Pair: Bi-directional, full-duplex persistent connection between client and server (e.g., WebSockets).
- Communication APIs:
- REST-based APIs: Follow architectural constraints (Client-Server, Stateless, Cacheable, Layered System, Uniform Interface). High HTTP overhead.
- WebSocket-based APIs: Single TCP handshake upgraded to full-duplex framing, minimal 2-byte header overhead, optimal for real-time sensor streams.
2.3 IoT Levels and Deployment Templates (Levels 1 to 6)
IoT system architectures are formally categorized into 6 levels based on where sensing, local analysis, database storage, cloud analysis, and application rendering occur:
- Level 1: Single device, local sensing, local analysis, and local storage (e.g., standalone smart home thermostat with onboard logging). Low complexity, low cost.
- Level 2: Local device senses and performs preliminary analysis, but pushes data to cloud storage; cloud application hosts user visualization.
- Level 3: Single node senses, raw data is pushed directly to cloud database, all data analysis and visualization run in cloud services.
- Level 4: Multiple nodes send data to cloud storage through local gateway; cloud runs big data analytics and coordination.
- Level 5: Multiple edge nodes, multiple local coordinator nodes/gateways, distributed data collection with cloud-based big data pipelines and machine learning models.
- Level 6: Multi-node, distributed edge sensing, distributed cloud computing across multiple server clusters, centralized machine learning with closed-loop automated actuator feedback control across wide geographical regions.
2.4 Transducers, Sensors, Actuators, and Signal Conditioning
- Transducer: Device that converts physical energy of one form into another (umbrella term for sensors and actuators).
- Sensors:
- Temperature/Humidity: DHT11/DHT22 (capacitive humidity + thermistor), DS18B20 (1-Wire digital temperature), BME280 (temperature, humidity, barometric pressure over I2C).
- Motion & Inertial: Ultrasonic HC-SR04 (time-of-flight acoustic pulse, distance = (v * t) / 2), Passive Infrared PIR (pyroelectric detection of infrared body heat changes), MPU-6050 (6-axis accelerometer + gyroscope with DMP).
- Environmental: MQ-series gas sensors (MQ-2 for flammable gas/smoke, MQ-135 for air quality, operating via heated SnO2 semiconductor resistance change).
- Actuators:
- Electromechanical Relays: Coil energized by transistor switch to mechanically connect high-voltage AC circuits; optocoupler isolation prevents inductive back-EMF spikes.
- Servomotors: Closed-loop DC motor with potentiometer feedback driven by 50 Hz PWM (1ms = 0 deg, 1.5ms = 90 deg, 2ms = 180 deg).
- Stepper Motors: Brushless DC motor dividing full rotation into equal discrete steps (e.g., 28BYJ-48 with ULN2003 driver).
- Signal Conditioning:
- Operational Amplifiers (Op-Amps): Signal amplification for millivolt sensor signals (e.g., thermocouples, strain gauges).
- Filters: Active Low-Pass Filters (RC network) to eliminate high-frequency electronic noise and prevent aliasing.
- Analog-to-Digital Conversion (ADC): Quantization and sampling.
2.5 Embedded Development Hardware Platforms
| Feature | Arduino Uno (ATmega328P) | Raspberry Pi 4 Model B | NodeMCU ESP8266 | ESP32 (WROOM-32) |
|---|---|---|---|---|
| Architecture | 8-bit AVR RISC | 64-bit Quad ARM Cortex-A72 | 32-bit Tensilica L106 | 32-bit Dual-Core Xtensa LX6 |
| Clock Speed | 16 MHz | 1.5 GHz | 80 - 160 MHz | 160 - 240 MHz |
| SRAM / RAM | 2 KB SRAM | 2 GB / 4 GB / 8 GB LPDDR4 | ~50 KB usable SRAM | 520 KB SRAM |
| Flash Memory | 32 KB Flash | MicroSD card boot (OS) | 4 MB SPI Flash | 4 MB - 16 MB Flash |
| Connectivity | None (Requires shields) | Gigabit Ethernet, Wi-Fi 5, BT 5.0 | Wi-Fi 802.11 b/g/n | Wi-Fi 802.11 b/g/n + BT 4.2 / BLE |
| Operating System | Bare Metal (C/C++ firmware) | Full Linux (Raspberry Pi OS) | FreeRTOS / Bare Metal | FreeRTOS / Bare Metal |
| Typical Use | Real-time sensor I/O, control | Edge gateway, CV, AI inference | Low-cost Wi-Fi IoT telemetry | Dual-core IoT, cryptography, BLE |
3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)
3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)
The Internet of Things (IoT) according to ITU-T
Ans. The International Telecommunication Union (ITU-T Y.2060) defines IoT as a global infrastructure for the information society, enabling advanced services by interconnecting (physical and virtual) things based on existing and evolving interoperable information and communication technologies.
A Sensor and an Actuator
Ans. A Sensor is an input transducer that detects physical parameters (temperature, light, pressure) and converts them into measurable electrical signals. An Actuator is an output transducer that receives an electrical control signal and converts it into physical motion, heat, or mechanical force (e.g., motors, solenoid valves, relays).
The Publish-Subscribe communication model with an example
Ans. In the Pub-Sub model, publishers generate data and push it tagged with a specific topic to a centralized message broker. Subscribers register interest in specific topics. Publishers and subscribers never communicate directly and are decoupled in time, space, and synchronization (e.g., MQTT broker like Eclipse Mosquitto managing temperature sensors).
REST and WebSocket APIs in IoT
Ans.
- REST: Request-response model over stateless HTTP; requires establishing TCP connections and transmitting heavy HTTP header metadata (often 500+ bytes) for every sensor reading.
- WebSocket: Establishes a single persistent full-duplex TCP connection via HTTP handshake; subsequent sensor payloads travel with minimal 2 to 10 byte framing overhead, making it optimal for high-frequency telemetry.
What is the fundamental characteristic of IoT Level 1 deployment
Ans. IoT Level 1 systems consist of a single physical device that monitors the environment, performs data sensing, runs local data analysis, stores data in local flash/memory, and exposes a local user interface or host without relying on external cloud infrastructure.
How does an HC-SR04 ultrasonic sensor calculate physical distance
Ans. It emits a 40 kHz ultrasonic burst from a transmitter transducer. The burst travels through air, strikes an obstacle, and reflects back to the receiver transducer. The distance is computed using the round-trip echo pulse travel time: Distance = (Time elapsed * Speed of sound in air (340 m/s)) / 2
The function of a Flyback Diode in relay driver circuits
Ans. When an inductive coil in an electromechanical relay is de-energized, the collapsing magnetic field produces a high-voltage reverse electromotive force (back-EMF) spike (V = -L * di/dt). A flyback diode placed in reverse bias across the coil safely dissipates this stored inductive current, protecting the switching transistor or microcontroller pin from breakdown.
What is the role of an ADC in an embedded IoT sensor node
Ans. An Analog-to-Digital Converter (ADC) samples continuous real-world voltage signals produced by analog sensors (e.g., potentiometers, thermistors, photoresistors) and quantizes them into discrete binary integer values (e.g., a 10-bit ADC quantizes 0-5V into 1024 levels, from 0 to 1023).
Compare the operational characteristics of ESP8266 and ESP32
Ans. The ESP8266 has a single 32-bit Tensilica core at 80/160 MHz, ~50 KB usable RAM, only Wi-Fi, and 1 ADC channel. The ESP32 features a dual-core Xtensa LX6 at 240 MHz, 520 KB SRAM, both Wi-Fi and Bluetooth Low Energy (BLE), 18 ADC channels, cryptographic hardware acceleration (AES, SHA-2, RSA), and integrated capacitive touch sensors.
What is meant by Signal Conditioning in sensor interfacing
Ans. Signal conditioning is the process of manipulating a raw analog sensor signal to satisfy the input requirements of an ADC or microcontroller. This includes voltage level shifting, amplification (using Op-Amps), active filtering (eliminating high-frequency electrical noise), and galvanic isolation.
4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)
4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)
Compare and contrast the 4 fundamental IoT Communication Models (Request-Response, Publish-Subscribe, Push-Pull, Exclusive Pair)
Ans.
| Parameter | Request-Response | Publish-Subscribe | Push-Pull | Exclusive Pair |
|---|---|---|---|---|
| Architecture | Client-Server | Publisher-Broker-Subscriber | Producer-Queue-Consumer | Peer-to-Peer / Client-Server |
| Coupling | Strongly coupled in time & space | Fully decoupled (time, space, sync) | Decoupled via buffer queue | Coupled full-duplex session |
| Protocol Example | HTTP/1.1 REST, CoAP | MQTT, DDS, AMQP | RabbitMQ, Apache Kafka | WebSockets |
| Overhead | High (headers sent per request) | Extremely low (2-byte header) | Moderate (queue management) | Low (after initial handshake) |
| Ideal Use Case | On-demand device config queries | Mass sensor telemetry distribution | High-throughput batch data ingestion | Real-time bi-directional streaming |
- Analytical Breakdown: In resource-constrained IoT systems, Publish-Subscribe is superior for battery-operated nodes because nodes can publish instantaneously and return to deep sleep without waiting for end-subscriber availability. Request-Response introduces network blocking and polling latency.
The 6 IoT Deployment Levels with architectural diagrams and application examples
Ans.
Level 1: [Node + Local Storage + Local App]
Level 2: [Node + Local Analysis] ----> [Cloud Storage + Cloud App]
Level 3: [Node] --------------------> [Cloud Storage + Cloud Analytics + Cloud App]
Level 4: [Nodes] -> [Gateway] ------> [Cloud Big Data + Cloud Analytics + Cloud App]
Level 5: [Nodes] -> [Edge Gateways] -> [Cloud Ingestion + Distributed Data + Cloud App]
Level 6: [Distributed Edge Nodes/Gateways] <---> [Multi-Cloud Big Data Engine + Closed-Loop Feedback Control]- Level 1: Low-complexity local deployment (e.g., Home weather station storing readings on an SD card).
- Level 2: Node analyzes data locally and pushes condensed records to cloud storage (e.g., Smart energy meter computing daily peak kW and storing in cloud).
- Level 3: Node only collects raw data; all processing, DB operations, and UI reside in the cloud (e.g., Condition monitoring of industrial HVAC vibration).
- Level 4: Multiple edge sensors transmit to an edge coordinator or local gateway, which pushes batched data to cloud data warehouses (e.g., Smart Agriculture soil monitoring across 50 acres).
- Level 5: Multi-site deployment featuring edge processing nodes and distributed cloud ingestion pipelines (e.g., Fleet telemetry tracking thousands of refrigerated trucks).
- Level 6: Advanced enterprise cyber-physical system with cloud AI models performing real-time inference and dynamically sending control commands back to edge actuators (e.g., Automated Smart City power distribution grid).
The working principle, internal architecture, and circuit interfacing of a Passive Infrared (PIR) motion sensor
Ans.
- Physics of Operation: Human bodies emit blackbody thermal radiation with a peak wavelength in the mid-infrared spectrum (~9.4 um). A PIR sensor contains a pyroelectric crystal (lithium tantalate or zinc oxide) that generates an electric surface charge when exposed to changes in incident infrared flux.
- Fresnel Lens Array: A multi-faceted plastic dome condenses incoming infrared rays from multiple detection zones onto the dual pyroelectric elements.
[ Moving Human Body (Infrared ~9.4 um) ]
|
v
+--------------------------------------+
| Faceted Fresnel Lens Array |
+--------------------------------------+
|
+---------------+---------------+
| |
v v
[ Element A (+)] [ Element B (-)]
\ /
+--------------+--------------+
| Differential Cancellation
v
[ BISS0001 Processing IC ]
|
+----------------+----------------+
| Window Comparator & Time Delay |
+----------------+----------------+
|
v
Digital Output (3.3V / 0V)- Differential Configuration: The sensor houses two sensing elements wired in reverse series. Static ambient temperature changes strike both elements equally, producing equal and opposite charges that cancel out. When a warm human walks past, they cross Element A first, producing a positive voltage spike, and then Element B, producing a negative voltage spike.
- Interfacing: The onboard BISS0001 signal processing IC amplifies the signal, compares it against a reference window, and asserts an active-high 3.3V digital logic signal on the OUT pin, readable directly by any GPIO pin.
Detail the architectural differences between Microcontroller Units (MCU) and Microprocessor Systems (MPU) in IoT edge hardware
Ans.
- Core Differences:
- Integration Level: An MCU (e.g., ATmega328P, ESP32) integrates the CPU, RAM, Flash memory, ADC, timers, and I/O peripherals onto a single monolithic silicon die. An MPU (e.g., Broadcom BCM2711 in Raspberry Pi) contains only the processor core; RAM, Flash/eMMC, and PMIC are external.
- Execution Paradigm: MCUs run bare-metal C/C++ firmware or lightweight Real-Time Operating Systems (FreeRTOS) with microsecond deterministic interrupt response. MPUs run general-purpose multitasking Operating Systems (Linux) with complex kernel schedulers.
- Power Consumption: MCUs draw microamperes in deep sleep, running for years on a coin cell battery. MPUs consume 2W-15W, requiring heat sinks and steady power supplies.
- Boot Time: MCUs start executing instructions within milliseconds (< 10 ms). MPUs require 15-45 seconds to boot the Linux kernel and userland daemons.
- Cost & Complexity: MCUs cost 1-3 with simple PCB routing; MPUs cost 25-80 with complex high-speed multi-layer PCB design.
The operating principle of Metal Oxide Semiconductor (MOS) gas sensors (MQ Series) and their signal conditioning circuit
Ans.
- Chemical Sensing Mechanism:
- An MQ sensor (e.g., MQ-2, MQ-135) consists of a ceramic tube coated with Tin Dioxide (SnO2) and an internal nickel-chromium heating coil (5V).
- In clean air, ambient oxygen molecules adsorb onto the surface of the heated SnO2 crystal lattice, capturing conduction-band electrons to form negatively charged oxygen ions.
- This creates an electron-depleted barrier layer, resulting in high electrical resistance (R0).
- When reducing/combustible gases (CO, LPG, CH4) enter the chamber, they react with adsorbed oxygen ions, releasing captured electrons back into the conduction band.
- This decreases sensor surface resistance (Rs) proportionally to gas concentration.
- Signal Conditioning Circuit:
- A voltage divider with an adjustable load resistor (RL) converts resistance changes into a readable analog voltage: Vout = Vcc * (RL / (Rs + RL)).
- An onboard LM393 comparator provides an adjustable digital threshold output alongside the continuous analog voltage.
5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)
5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)
Provide a comprehensive architectural breakdown of the Physical Design and Logical Design of IoT. Compare all IoT protocols across the OSI stack and illustrate with complete end-to-end schemas
Ans.
1. Physical Design of IoT
The physical design encompasses the tangible hardware components ('things') and the communication protocols that enable them to physically transmit bitstreams over guided or unguided media.
+------------------------------------------------------------------------+
| IoT PROTOCOL SUITE |
+------------------------------------------------------------------------+
| Application | CoAP (RFC 7252) | MQTT (ISO/IEC 20922) | HTTP/REST | DDS |
+-------------+-----------------+----------------------+-----------+-----+
| Transport | UDP | TCP | TCP | UDP |
+-------------+-----------------+----------------------+-----------+-----+
| Network | IPv6 / 6LoWPAN (RFC 4944) | IPv4 / IPv6 |
+-------------+----------------------------------------+-----------------+
| Link / MAC | IEEE 802.15.4 MAC | Bluetooth LE MAC | IEEE 802.11 MAC |
+-------------+-------------------+--------------------+-----------------+
| Physical | 802.15.4 2.4GHz | BLE 2.4GHz GFSK | 802.11 RF |
+------------------------------------------------------------------------+##### Physical Components (The 'Things'):
- Sensing Unit: Transducers converting ambient variables into micro-currents or voltages.
- Processing Unit: Microcontroller with execution pipelines, registers, volatile memory (SRAM), and non-volatile storage (EEPROM/Flash).
- Communication Unit: Radio frequency transceiver (2.4 GHz ISM band, sub-GHz LoRa transceivers).
- Power Management Unit (PMIC): Linear low-dropout regulators (LDO) or switched-mode DC-DC buck converters with sleep-state switching circuits.
##### Physical/Link Layer Protocols:
- IEEE 802.15.4: Standard defining physical layer and MAC for Low-Rate Wireless Personal Area Networks (LR-WPANs). Operates at 2.4 GHz (250 kbps), 915 MHz, and 868 MHz. Foundation for Zigbee and 6LoWPAN.
- Bluetooth Low Energy (BLE / 802.15.1): Optimized for ultra-low duty cycle burst transmissions. Frequency hopping spread spectrum across 40 channels.
- IEEE 802.11 (Wi-Fi): High-throughput (54 Mbps to 1+ Gbps) star topology; high power draw makes it unsuitable for battery coin-cell nodes but standard for line-powered smart home devices.
2. Logical Design of IoT
Logical design models abstract information exchange, functional block decomposition, and communication paradigms without binding to specific silicon.
##### Functional Block Decomposition:
- Device Block: Implements low-level driver abstractions for hardware registers, GPIO polling, ADC reading, and PWM generation.
- Communication Block: Manages socket lifecycles, connection handshakes, QoS retries, and data serialization (JSON, CBOR).
- Services Block: Encapsulates business logic such as device state management, telemetry publishing, and discovery services (mDNS).
- Management Block: Implements Over-the-Air (OTA) firmware upgrade listeners, watchdogs, remote diagnostics, and security key rotation.
- Security Block: Provides cryptoprocessors, TLS handshakes, AES-128/256 payload encryption, and token authentication.
- Application Block: Interfaces with external consumers via web dashboards, mobile apps, or cloud event triggers.
Design an end-to-end Smart Environmental Monitoring Node using an ESP32, DHT22 sensor, and an electromechanical cooling fan relay. Provide complete circuit design, pin mapping, operational logic, and production-grade C++ (Arduino Core) firmware
Ans.
1. Hardware Specification & Circuit Blueprint
- MCU: ESP32 WROOM-32 Development Board (3.3V logic).
- Sensor: DHT22 (AM2302) digital relative humidity and temperature sensor.
- Pin 1 (VCC) -> 3.3V
- Pin 2 (DATA) -> GPIO 4 (with a 4.7 kOhm pull-up resistor to 3.3V)
- Pin 3 (NC) -> Not Connected
- Pin 4 (GND) -> GND
- Actuator: 5V Single-Channel Relay Module with Optocoupler Isolation.
- VCC -> 5V (from USB rail)
- GND -> Common System GND
- IN -> GPIO 18 (Active-High)
- Actuator Load: 12V DC High-Flow Brushless Exhaust Fan powered by an external 12V DC power brick.
+--------------------------------+
| ESP32 Board |
| |
3.3V -----------| 3.3V GPIO 4 |<----+--- DHT22 Data
| | |
GND -----------| GND | [4.7k Pull-up]
| GPIO 18 | |
5V -----------| VIN (5V) |--> [Relay Module IN]
+--------------------------------+ |
|
+-----------------------------+
|
v
+------------------------------+
| Relay Terminal Block |
| [ COM ] [ NO ] |
+------+-----------------+-----+
| |
| +----------> [ 12V DC Fan (+) ]
|
(+) [ 12V Power Adapter ] (-) -------------> [ 12V DC Fan (-) ]2. Embedded Production Firmware (C++ / Arduino IDE)
#include <WiFi.h>
#include <DHT.h>
#define DHTPIN 4
#define DHTTYPE DHT22
#define RELAY_PIN 18
const float TEMP_THRESHOLD_HIGH = 32.0;
const float TEMP_HYSTERESIS = 2.0;
const char* WIFI_SSID = "University_Campus_IoT";
const char* WIFI_PASSWORD = "SecurePassword2026";
DHT dht(DHTPIN, DHTTYPE);
bool fanState = false;
unsigned long lastTelemetryTime = 0;
const unsigned long TELEMETRY_INTERVAL = 3000;
void setup() {
Serial.begin(115200);
pinMode(RELAY_PIN, OUTPUT);
digitalWrite(RELAY_PIN, LOW);
dht.begin();
}
void loop() {
unsigned long currentMillis = millis();
if (currentMillis - lastTelemetryTime >= TELEMETRY_INTERVAL) {
lastTelemetryTime = currentMillis;
float humidity = dht.readHumidity();
float temperature = dht.readTemperature();
if (isnan(humidity) || isnan(temperature)) return;
if (!fanState && (temperature >= TEMP_THRESHOLD_HIGH)) {
fanState = true;
digitalWrite(RELAY_PIN, HIGH);
} else if (fanState && (temperature <= (TEMP_THRESHOLD_HIGH - TEMP_HYSTERESIS))) {
fanState = false;
digitalWrite(RELAY_PIN, LOW);
}
}
}Compare the hardware architecture, memory organization, I/O peripherals, and OS support of Arduino Uno, Raspberry Pi 4, and ESP32. Provide a decision matrix for selecting hardware in real-world IoT engineering
Ans.
1. In-Depth Architectural Comparison
- Arduino Uno: 8-bit AVR RISC ATmega328P, 16 MHz, 2 KB SRAM, 32 KB Flash. Bare-metal superloop. Hard real-time determinism.
- ESP32: Xtensa Dual-Core 32-bit LX6, 240 MHz, 520 KB SRAM, 4-16 MB Flash. FreeRTOS kernel. Built-in Wi-Fi & BLE. Hardware crypto accelerator.
- Raspberry Pi 4B: Quad-Core ARM Cortex-A72, 1.5 GHz, 2-8 GB LPDDR4. Full Linux OS. Gigabit Ethernet, dual-band Wi-Fi. Non-deterministic OS scheduling.
2. Engineering Selection Matrix
- Use Arduino Uno for simple 5V hard real-time sub-circuits and educational prototyping.
- Use ESP32 for production-grade connected sensors, smart appliances, and battery-friendly Wi-Fi/BLE edge devices.
- Use Raspberry Pi 4 for local Edge Gateways, on-premise computer vision inference, and heavy local database processing.
6. High-Yield Exam Revision Matrix & Architectural Cheat Sheet
6. High-Yield Exam Revision Matrix & Architectural Cheat Sheet
| Topic / Term | Core Formula / Key Standard | High-Yield Exam Takeaway |
|---|---|---|
| IoT Definition | ITU-T Y.2060 Standard | Physical & virtual things with self-configuring interoperable protocols. |
| Communication Models | Pub-Sub, Req-Resp, Push-Pull | Pub-Sub decouples publishers and subscribers via broker topics; ideal for IoT. |
| IoT Deployment Level 4 | Gateway-centric architecture | Multiple nodes -> Local Gateway -> Cloud Big Data analytics engine. |
| Ultrasonic Distance | d = (v * t) / 2 | Emits 40 kHz pulse; speed of sound v ~ 340 m/s at 20 deg C. |
| ADC Quantization | Vin = (ADC / (2^n - 1)) * Vref | A 10-bit ADC has 1024 discrete steps; 12-bit ADC has 4096 discrete steps. |
| Flyback Diode | V = -L * di/dt | Placed in reverse bias across relay coil to protect against inductive back-EMF spikes. |
| PIR Motion Sensor | Pyroelectric + Fresnel Lens | Detects differential mid-IR radiation (~9.4 um) from human movement. |
| MQ Gas Sensor | SnO2 resistance decrease | Adsorbed oxygen ions react with combustible gases, reducing surface resistance Rs. |
| ESP32 Architecture | Dual-core 240 MHz Xtensa | 520 KB SRAM, Wi-Fi + BLE, hardware crypto acceleration, FreeRTOS native. |
Ready to practice Unit 1?
You've read the core concepts. Take the balanced 10-question practice set to test your mastery!