←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Diagrams

Diagrams

Visual representations for Unit 5

The 8-Step IoT Design Methodology Flow

The 8-Step IoT Design Methodology Flow
Step 1
Purpose & Requirements
→
Step 2
Process Specification
→
Step 3
Domain Model
→
Step 4
Information Model
Step 5
Service Specifications
→
Step 6
IoT Level Specification
→
Step 7
Functional & Operational Views
→
Step 8
Integration & Application
Explanation
  • Begin with purpose and requirements before modelling the domain, data and services.
  • The later choices connect those models to devices and a working application.
Detailed Notes →Quick Revision →

Low-Power IoT Sensor Wake-and-Sleep Execution Cycle

Low-Power IoT Sensor Wake-and-Sleep Execution Cycle
01
Deep Sleep
MCU sleeps drawing minimal microamps; RTC timer wakes device every 15 mins
➔
02
Sample Sensor
Powers up probe, takes moisture reading, evaluates threshold
➔
03
Actuate Relay
If moisture < 30%, activates pump relay for designated duration
➔
04
Cloud Sync & Sleep
Transmits telemetry packet via Wi-Fi/LoRa and re-enters sleep mode
Explanation
  • A sleeping node wakes for a measurement, processes it and transmits when necessary.
  • Returning to sleep between readings reduces average energy use.
Detailed Notes →Quick Revision →

Architecture Perspectives

Architecture Perspectives
Functional View Specification
Answers "WHAT does the system do?" Organizes the system into logical functional blocks (Sensing, Control, Security, Application).
Operational View Specification
Answers "WHERE and ON WHAT hardware does it run?" Selects the exact physical chips, cloud servers, and communication protocols.
Explanation
  • A functional view describes what the system must do.
  • A deployment view assigns those jobs to actual devices, gateways and services.
Detailed Notes →Quick Revision →

Threat Landscape Across IoT Architectural Layers

Threat Landscape Across IoT Architectural Layers
1. Perception Layer Attacks
Physical hardware theft, wire tampering, radio jamming of wireless signals, and eavesdropping on unencrypted sensor data.
2. Network Layer Attacks
Man-in-the-Middle (MITM) snooping, Denial of Service (DoS/DDoS) floods, and Sybil attacks (faking multiple device identities).
3. Application Layer Attacks
Weak/default passwords (like 'admin/admin'), SQL injection on cloud databases, and malicious firmware uploads.
Explanation
  • Device, network and application layers face different kinds of failure or misuse.
  • Protection must cover the whole route from sensor to stored data.
Detailed Notes →Quick Revision →

Secure IoT Communication Stack

Secure IoT Communication Stack
Application Layer
CoAP / MQTT / HTTP
↓ Protected by
Security Layer
DTLS (for UDP) / TLS (for TCP)
↓ Carried over
Transport Layer
UDP / TCP
Explanation
  • Authenticate devices and protect messages while they travel.
  • The application and stored readings need access controls after transmission ends.
Detailed Notes →Quick Revision →

Privacy Preservation Strategies

Privacy Preservation Strategies
Data Anonymization
Removing personal names, phone numbers, and exact home GPS coordinates before saving to cloud databases.
Differential Privacy
Adding small, controlled statistical noise to data so individual people cannot be identified from overall group trends.
Edge / Local Processing
Smart cameras process facial AI directly on the camera hardware and upload only a text count ("3 people"), never streaming private video.
Role-Based Access Control
Strict login rights: users can only see their own smart plug data, while technicians only see combined city averages.
Explanation
  • Collect only the readings needed and avoid identifying individuals unnecessarily.
  • Retention limits and access controls reduce exposure after collection.
Detailed Notes →Quick Revision →

Arduino Uno R3 Key Hardware Specifications

Arduino Uno R3 Key Hardware Specifications
Microcontroller Chip
ATmega328P (8-bit AVR RISC architecture)
Clock Speed
16 MHz crystal oscillator (runs 16 million instructions/sec)
Operating Voltage
5V DC (Can take 7V to 12V through the black DC power jack)
Memory Breakdown
32 KB Flash (stores your code), 2 KB SRAM (variables), 1 KB EEPROM (permanent storage)
Explanation
  • The microcontroller's memory limits program size and working data.
  • Its clock, pins and voltage levels constrain which peripherals it can serve.
Detailed Notes →Quick Revision →

Arduino Uno Pinout and Microcontroller Layout

Arduino Uno Pinout and Microcontroller Layout
ATmega328P Core MCU 8-bit AVR RISC microcontroller running at 16 MHz with 32 KB flash memory.
Digital I/O Pins (0 to 13) 14 digital pins (including 6 PWM pins ~3, 5, 6, 9, 10, 11 for analog-like output).
Analog Input Pins (A0 to A5) 6 channels of 10-bit ADC measuring voltages from 0V to 5V (1024 resolution steps).
Power & Programming USB-B programming port, DC barrel jack (7-12V), 5V, 3.3V, and ground rails.
Explanation
  • Analogue inputs read varying sensor voltages and digital pins use logic levels.
  • Power, ground and communication pins must match the connected circuit.
Detailed Notes →Quick Revision →

Raspberry Pi (Model 4B) Hardware Highlights

Raspberry Pi (Model 4B) Hardware Highlights
Processor (SoC)
Broadcom BCM2711, Quad-core Cortex-A72 64-bit ARM CPU @ 1.5 GHz
System Memory (RAM)
2 GB, 4 GB, or 8 GB LPDDR4 SDRAM
Storage Drive
MicroSD card slot used as the computer hard drive for OS and user files
Display Outputs
2 × Micro-HDMI ports supporting dual 4K monitors
Explanation
  • The processor and RAM run the operating system and applications.
  • Storage and external interfaces complete the board's role as a small computer.
Detailed Notes →Quick Revision →

Raspberry Pi 4 Hardware Interfaces & Peripherals

Raspberry Pi 4 Hardware Interfaces & Peripherals
Compute & Display Quad-core ARM Cortex-A72 CPU with Dual 4K Micro-HDMI display outputs.
Networking & I/O Ports True Gigabit Ethernet, 2x USB 3.0 (blue), 2x USB 2.0, dual-band Wi-Fi & Bluetooth 5.0.
Multimedia Ribbon Interfaces CSI Camera connector, DSI touchscreen display port, and 3.5mm audio jack.
40-Pin GPIO & Storage Standard 40-pin header (I2C, SPI, UART, PWM) and MicroSD slot for Linux OS boot.
Explanation
  • The Pi connects displays, cameras, storage and network interfaces through different ports.
  • Choose the port and software interface that match the peripheral.
Detailed Notes →Quick Revision →

40-Pin Header Capabilities (3.3V Logic)

40-Pin Header Capabilities (3.3V Logic)
Power Pins
2 × 5V power pins, 2 × 3.3V power pins, and 8 × Ground (GND) return pins.
Digital GPIO Pins
26 programmable digital input/output pins running strictly at 3.3V.
I2C Bus Pins
Pin 3 (SDA) and Pin 5 (SCL) for two-wire digital sensors and displays.
SPI & UART Pins
Hardware SPI pins (MOSI, MISO, SCLK, CS) and UART serial pins (TX, RX).
Explanation
  • The header mixes power, ground and configurable signal pins.
  • Identify the pin numbering scheme and respect the 3.3-volt GPIO logic level.
Detailed Notes →Quick Revision →

Selection Decision Matrix

Selection Decision Matrix
Choose Arduino Uno When:
• Your task is simple: read a sensor, turn on a relay.
• Exact timing is required without OS delays.
• The device runs on a small battery for months.
• Reading direct analog voltage sensors.
• Project budget is low.
Choose Raspberry Pi When:
• Complex tasks: Computer vision, face recognition, or AI.
• Running a local web server, database, or MQTT broker.
• Video camera streaming or connecting a monitor.
• Heavy internet networking and multitasking.
• Acting as an IoT Central Edge Gateway.
Explanation
  • A small controller suits simple, low-power repeated actions.
  • A single-board computer suits work needing an operating system or richer peripherals.
Detailed Notes →Quick Revision →

Smart Streetlight IoT Architecture

Smart Streetlight IoT Architecture
Sensing Layer
LDR (Sunlight) + PIR (Car/Human Motion) + ACS712 (Current Sensor)
→
Controller Layer
ESP32 / NodeMCU microcontroller with built-in Wi-Fi / LoRa
→
Actuator & Lamp
PWM Dimmer Circuit + Energy-saving LED Streetlight
Wireless Telemetry
Lightweight MQTT messages sent over Wi-Fi / 4G / LoRaWAN
→
City Control Dashboard
Live map of all street poles, power graphs, and fault tickets
Explanation
  • Local nodes control lamps and report readings through a gateway.
  • A central service collects status and helps staff locate faults.
Detailed Notes →Quick Revision →

Smart City Streetlight Automation & Fault Detection Flow

Smart City Streetlight Automation & Fault Detection Flow
01
Day/Night Check
LDR reads ambient light; turns lamp 100% OFF during daytime
➔
02
Motion Detection
PIR sensor detects traffic; surges to 100% or dims to 30% idle mode
➔
03
Current Sensing
ACS712 measures electrical draw across lamp fixtures
➔
04
Fault Dispatch
If switch ON but current = 0A, triggers MQTT alert to city repairs
Explanation
  • The controller combines light or motion input with a lighting rule.
  • Feedback from the lamp helps distinguish an issued command from a working lamp.
Detailed Notes →Quick Revision →

Quantified Impact on Smart Cities

Quantified Impact on Smart Cities
50% to 70% Energy Savings
Dimming lights when roads are quiet cuts municipal electricity bills by more than half.
Instant Repair Dispatch
Repair turnaround drops from 3-5 days down to a few hours thanks to automatic sensor alerts.
Longer Bulb Lifespan
Running LEDs at 30% brightness keeps internal heat low, doubling the working life of the bulbs.
Lower Carbon Emissions
Saving millions of units of electricity reduces the burning of coal at power stations.
Explanation
  • Adaptive lighting can save energy by reducing output where full light is unnecessary.
  • The actual savings depend on traffic, operating hours and the original lamps.
Detailed Notes →Quick Revision →