Docsity

Chapter_13_IoT_and_Embedded_Systems, Lecture notes of Computer Fundamentals

Toggle sidebar
bg1
CH APTE R 13
IoT & Embedded Systems
Applied Computing Study Notes • Microcontrollers, Sensors & Edge Protocols
1. Embedded Systems Architecture
An Embedded System is a dedicated computer built inside a larger mechanical or electrical device to perform specific real-time
control tasks under strict power, size, and cost limits.
Microcontrollers (MCUs): Single-chip computers (e.g., ESP32, STM32) combining a CPU core, flash storage, SRAM, and
hardware peripherals like GPIO (General Purpose Input/Output), ADC (Analog-to-Digital Converters), and PWM (Pulse
Width Modulation) for motor/LED control.
Real-Time Constraints: Hard real-time systems (airbag controllers, pacemakers) fail catastrophically if a deadline is missed; soft
real-time systems (smart thermostats) tolerate occasional minor delays.
2. End-to-End IoT Architecture & Edge Computing
The Internet of Things (IoT) connects physical sensors and actuators to cloud analytics platforms. Processing data locally on a
gateway before uploading—known as Edge Computing —cuts bandwidth costs, reduces latency, and keeps sensitive raw data
local.
Figure 13.1: Typical Four-Stage IoT Telemetry Pipeline
3. Lightweight IoT Communication Protocols
Protocol / Radio Range & Power Profile Best-Fit Application
MQTT Application-layer pub/sub over TCP; minimal 2-byte
header overhead.
Unreliable cellular/Wi-Fi links sending frequent
sensor telemetry.
BLE (Bluetooth Low
Energy)
Short range (10–50 m); ultra-low battery draw via sleep
duty cycles.
Wearables, medical monitors, smart locks paired to
phones.
LoRaWAN Long range (2–15 km); very low bit rate; multi-year
coin/AA battery life.
Agricultural soil probes, smart utility meters, remote
asset tracking.
Security Warning: IoT Device Hardening
Constrained IoT nodes are frequent targets for botnets. Always disable default factory passwords, sign firmware images
cryptographically for Over-the-Air (OTA) updates, and isolate IoT devices onto a dedicated network VLAN.
•
•
Sensors / MCU
I2C / SPI / UART
Edge Gateway
Filter & Aggregate
MQTT Broker
Pub / Sub Topics
Cloud
Storage

Partial preview of the text

Download Chapter_13_IoT_and_Embedded_Systems and more Lecture notes Computer Fundamentals in PDF only on Docsity!

CHAPTER 13

IoT & Embedded Systems

Applied Computing Study Notes • Microcontrollers, Sensors & Edge Protocols

1. Embedded Systems Architecture

An Embedded System is a dedicated computer built inside a larger mechanical or electrical device to perform specific real-time control tasks under strict power, size, and cost limits.

Microcontrollers (MCUs): Single-chip computers (e.g., ESP32, STM32) combining a CPU core, flash storage, SRAM, and hardware peripherals like GPIO (General Purpose Input/Output), ADC (Analog-to-Digital Converters), and PWM (Pulse Width Modulation) for motor/LED control. Real-Time Constraints: Hard real-time systems (airbag controllers, pacemakers) fail catastrophically if a deadline is missed; soft real-time systems (smart thermostats) tolerate occasional minor delays.

2. End-to-End IoT Architecture & Edge Computing

The Internet of Things (IoT) connects physical sensors and actuators to cloud analytics platforms. Processing data locally on a gateway before uploading—known as Edge Computing —cuts bandwidth costs, reduces latency, and keeps sensitive raw data local.

Figure 13.1: Typical Four-Stage IoT Telemetry Pipeline

3. Lightweight IoT Communication Protocols

Protocol / Radio Range & Power Profile Best-Fit Application MQTT Application-layer pub/sub over TCP; minimal 2-byte header overhead.

Unreliable cellular/Wi-Fi links sending frequent sensor telemetry. BLE (Bluetooth Low Energy)

Short range (10–50 m); ultra-low battery draw via sleep duty cycles.

Wearables, medical monitors, smart locks paired to phones. LoRaWAN Long range (2–15 km); very low bit rate; multi-year coin/AA battery life.

Agricultural soil probes, smart utility meters, remote asset tracking.

Security Warning: IoT Device Hardening Constrained IoT nodes are frequent targets for botnets. Always disable default factory passwords, sign firmware images cryptographically for Over-the-Air (OTA) updates, and isolate IoT devices onto a dedicated network VLAN.

Sensors / MCU I2C / SPI / UART

Edge Gateway Filter & Aggregate

MQTT Broker Pub / Sub Topics

Cloud Storage