
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CHAPTER 13
Applied Computing Study Notes • Microcontrollers, Sensors & Edge Protocols
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.
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
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