←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
Revision

Internet of Things · Unit 4 Revision

Quick summary and key points for Unit 4

Sensor Technology and Actuators in IoT

Overview: A tank sensor measures water level and a pump changes it.

What is a Sensor? (The “Senses” of IoT)

  • In an IoT system, sensors act just like human sense organs (eyes, ears, skin, and nose).
  • When you touch a hot cup of tea, sensory nerves in your fingers feel the heat and send an electrical signal to your brain.

Transducer vs. Sensor vs. Actuator

  • Students often get confused between these three terms in digital electronics and IoT.
  • Physical Stimulus Heat, Light, Force, Sound
  • Sensor (Input) Converts physical change to electrical signal
  • Microcontroller / Cloud Processes logic & makes decisions
  • Actuator (Output) Converts electrical signal into physical action
  • Basic Job: Any device that converts one form of energy into another
  • Signal Direction: Two-way (Input or Output)
  • Examples: Thermocouple, Microphone, Speaker

View diagram · Physical World Interaction Pipeline

Classification of Sensors

  • In DAVV BCA exams, sensors are classified in two main ways:
  • A. Based on Power / Energy (Active vs. Passive): Active Sensors: Require their own external power to operate.
  • Example: HC-SR04 Ultrasonic Sensor sends out sound waves and measures the echo time; Radar emits radio waves.
  • Passive Sensors: Do not emit any energy of their own.
  • Example: PIR (Passive Infrared) Sensor detects body heat naturally emitted by humans; LDR (Light Dependent Resistor) absorbs…
  • B. Based on Output Signal (Analog vs. Digital): Analog Sensors: Produce a continuous voltage signal proportional to the physical measurement.
  • Example: LM35 temperature sensor (gives 10 mV for every 1°C increase).
  • Digital Sensors: Produce digital 1s and 0s directly (HIGH/LOW logic levels or serial data over I2C/SPI buses).
  • DHT11 / DHT22: Temperature & Humidity
  • HC-SR04: Distance via ultrasonic sound waves
  • PIR (HC-SR501): Human or animal movement via body heat
  • LDR Sensor: Light intensity (Lux)
  • MQ-2 / MQ-135: Smoke, LPG cooking gas, air quality
  • BMP280: Air pressure, altitude, and temperature

What is an Actuator? (The “Muscles” of IoT)

  • If sensors are the eyes and ears of an IoT system, actuators are its hands and legs.
  • Common Types of IoT Actuators: A motor produces movement and a valve changes the flow of a liquid or gas.
  • 1. Electromagnetic Relays Electrically controlled switches that let a low-power 5V microcontroller safely turn ON/OFF heavy 230V AC home appliances…
  • 2. DC Motors & Steppers Continuous rotation motors used in smart robot vacuum cleaners, automatic conveyor belts, and motorized curtains.
  • 3. Servo Motors (SG90) Provide precise angular rotation (from 0° to 180°) for smart door locks, robot arms, and camera pan-tilt heads.
  • 4. Solenoid Valves Electromagnetic water valves that open or shut pipes instantly in automated farm drip irrigation systems.

View diagram · Common Actuators in IoT Applications

How Sensors and Actuators Work Together: A Smart Farm Example

  • A moisture reading reaches the controller, which applies the watering rule.
  • Soil Probe Measures physical soil moisture level drops below threshold
  • ESP32 MCU Processes logic: triggers digital GPIO pin HIGH when moisture < 30%
  • 5V Relay Actuator Closes the high-voltage 230V AC electrical contact

View diagram · Automated Sensor-to-Actuator Irrigation Loop

Sensor Data Communication Protocols: UART, I2C & SPI

Overview: For a board with several slow sensors, I²C can select each device by address on shared lines.

Why Do We Need Hardware Communication Protocols?

  • When connecting sensors (like temperature probes, digital compasses, or small OLED screens) to microcontrollers (like Arduino Uno, ESP32, or…
  • UART (Universal Asynchronous Receiver-Transmitter)
  • I2C (Inter-Integrated Circuit)
  • SPI (Serial Peripheral Interface)

UART (Universal Asynchronous Receiver-Transmitter)

  • UART is a hardware circuit used for asynchronous serial communication between two devices using only two signal wires.
  • Key Characteristics of UART: Asynchronous (No Clock Wire): There is no shared clock signal wire.
  • Two Signal Wires:
  • TX (Transmit): Sends data out.
  • RX (Receive): Reads incoming data.
  • (Note: A common GND wire is also connected).
  • The TX pin of Device A connects directly to the RX pin of Device B, and RX of Device A connects to TX of Device B (cross connection).
  • Packet Format: A UART message frame has:

View diagram · UART Point-to-Point Wiring

I2C (Inter-Integrated Circuit)

  • Developed by Philips, I2C (pronounced “Eye-Squared-C”) is a synchronous, multi-device serial bus.
  • SDA (Serial Data Line) Two-way data wire carried through pull-up resistors to power (3.3V or 5V).
  • SCL (Serial Clock Line) Clock pulse wire driven by the master microcontroller to keep timing synchronized.
  • How I2C Works: Device Addresses: Every sensor has its own unique 7-bit hardware address (supporting up to 127 devices on the exact same 2 wires!).
  • Master Control: The microcontroller sends a START signal, calls out the sensor’s address (e.g.
  • Pull-Up Resistors: Because I2C pins are open-drain, two 4.7 kΩ pull-up resistors are required to pull the wires HIGH when idle.
  • Common IoT Uses: 0.96-inch OLED displays, BMP280 pressure sensors, and MPU6050 gyroscope/accelerometer modules.

View diagram · I2C Multi-Device Bus Architecture View diagram · I2C Two-Wire Bus Architecture (Master and Slaves)

SPI (Serial Peripheral Interface)

  • Invented by Motorola, SPI is a synchronous, four-wire, full-duplex protocol built for high-speed data transfer over short distances.
  • MOSI (Master Out Slave In) Sends data from the Microcontroller to the Sensor / Display.
  • MISO (Master In Slave Out) Sends data from the Sensor back to the Microcontroller.
  • SCK (Serial Clock) Clock pulse line driven by the Master to time bit transfers.
  • SS / CS (Slave Select / Chip Select) Dedicated pin pulled LOW by Master to wake up that specific device.
  • Advantages of SPI: Full-Duplex: The master can send data and receive data at the exact same clock pulse.
  • Blazing Fast: Speeds reach 10 Mbps to 50+ Mbps (much faster than I2C).
  • Simple Hardware: No pull-up resistors or software addressing needed.

View diagram · SPI 4-Wire Master-Slave Configuration

Summary Comparison: UART vs. I2C vs. SPI

  • Number of Wires: 2 wires (TX, RX)
  • Clock Line: Asynchronous (No clock; uses Baud Rate)
  • Communication Mode: Full-Duplex
  • Connection Type: Point-to-Point (1 to 1 only)
  • How Devices are Selected: No addressing
  • Data Speed: Up to 115.2 kbps (up to 1 Mbps)

Participatory Sensing & Mobile Crowdsensing in IoT

Overview: Students may choose to submit noise readings from their phones, which is participatory sensing.

What is Participatory Sensing?

  • Normally in IoT, setting up a smart city requires buying and installing thousands of expensive sensors on lamp posts, traffic signals, and roads.
    • Google Maps Traffic: When you drive with Google Maps open, your phone’s GPS automatically measures how fast your vehicle is moving.
    • Swachhata App / City 311: If you see an overflowing garbage bin in your colony, you snap a photo with your mobile.

Participatory Sensing vs. Opportunistic Sensing

  • Researchers divide mobile crowdsensing into two types based on how much manual human effort is required:
  • User Involvement: High (User must manually open app and submit)
  • Data Types: Photos of broken roads, garbage reports, noise ratings
  • Battery Impact: Very low (Runs only when user takes a photo)
  • Real-World Example: Municipal Swachhata App (uploading trash photo)

View diagram · Data Collection Paradigms

Architecture of Mobile Crowdsensing (MCS)

  • A Mobile Crowdsensing system operates across four main tiers:
  • Citizen Devices Smartphones gather GPS, accelerometer, noise & camera data
  • Ingestion Gateway Secure 4G/5G/Wi-Fi telemetry ingestion endpoints
  • Public Action Live congestion maps, air quality indices & pothole repairs
  • Sensing Layer (Mobile Phones): Everyday smartphones collecting sensory inputs:
  • GPS: Tracks speed, vehicle movement, and road routes.
  • Accelerometer: Detects sudden vertical jerks when a car hits a pothole, helping map broken roads.
  • Microphone: Measures noise pollution near hospitals and schools.

View diagram · Mobile Crowdsensing Data Ingestion Pipeline

Key Real-World Applications

  • Smart City Traffic Tracking: Shows live highway traffic jams and automatically calculates alternate faster routes.
  • Road Pothole Mapping: Accelerometers inside cars automatically flag coordinates where vehicles bounce violently, helping municipal authorities…
  • Noise & Air Pollution Heatmaps: Microphones track ambient noise levels, and low-cost pocket sensors upload air quality (PM2.5) levels across different city…
  • Civic Issue Reporting: Citizens report leaking water mains, broken streetlights, or uncleared garbage directly to municipal portals.

Major Challenges in Mobile Crowdsensing

  • User Privacy: Continuous GPS tracking can reveal sensitive personal locations (home address, daily work route).
  • Battery Drain: Running GPS and sensors in the background drains phone batteries quickly.
  • User Incentives: Why would a user burn their own mobile battery and 4G data?
  • Small rewards (mobile recharge coupons, discount vouchers).
  • Gamification (badges, leaderboard ranks).
  • Service benefits (free real-time navigation).
  • Fake or Bad Data: Malicious or careless users might upload fake photos or wrong reports.

Industrial IoT (IIoT) & Automotive IoT

Overview: A production-line motor can report vibration trends before maintenance becomes urgent.

What is Industrial IoT (IIoT)?

  • While consumer IoT focuses on personal daily convenience (such as smart bulbs, fitness bands, or smart ACs), Industrial IoT (IIoT) applies…
  • Predictive Maintenance Vibration and heat sensors detect motor wear weeks before a machine breaks down, preventing sudden factory halts.
  • Digital Twins A live, real-time 3D computer simulation of the entire factory floor fed by thousands of live sensor readings.
  • Automated Quality Inspection High-speed smart cameras scan items moving along fast conveyor belts to catch defective pieces instantly.
  • Supply Chain Tracking Tracks raw materials and finished products from warehouses to retail stores using RFID and GPS.

View diagram · Pillars of Industry 4.0 (Smart Manufacturing)

Consumer IoT vs. Industrial IoT (IIoT)

  • Main Goal: Personal lifestyle, convenience, entertainment
  • Impact of Failure: Small inconvenience (e.g.
  • Required Reliability: 99% uptime is usually fine
  • Speed / Latency: Seconds or milliseconds (soft real-time)
  • Environment: Clean, air-conditioned homes and offices
  • Common Protocols: Wi-Fi, Bluetooth, Zigbee, MQTT

Automotive IoT (Connected & Smart Cars)

  • Modern vehicles are no longer just mechanical engines with tyres — they are **computers on wheels with over 100 onboard microprocessors called…
  • Connected Vehicle Features: OBD-II Port (On-Board Diagnostics): A standard diagnostic port found under the steering wheel.
  • Fleet Telematics: Commercial truck and taxi companies monitor vehicle GPS locations, driver speed, harsh braking, and fuel levels over 4G/5G…

In-Vehicle Bus Architecture: CAN Bus (Controller Area Network)

  • Invented by Bosch, the CAN Bus is the standard communication system inside all modern vehicles that allows all ECUs to talk to each other…
  • Engine ECU RPM, Oil temperature
  • CAN Bus Line (CAN_H & CAN_L) Twisted pair wires with 120 Ω terminal resistors
  • ABS / Brakes ECU Wheel speed, brake control
  • Why CAN Bus is So Reliable: Differential Signaling (Noise Immunity): Uses two twisted wires: CAN_High and CAN_Low.
  • Message-Based Priority (Arbitration): Every message has an ID number that defines its priority.
  • High Fault Tolerance: Automatically detects errors and disconnects faulty nodes so the rest of the car continues working safely.

View diagram · CAN Bus Architecture in Automobiles

V2X (Vehicle-to-Everything) Communication

  • In smart cities and self-driving cars, V2X allows a vehicle to talk wirelessly to everything in its surroundings:

View diagram · V2X (Vehicle-to-Everything) Communication Modes

Radio Frequency Identification (RFID) Technology

Overview: A library reader energises a passive tag and receives its identifier.

What is RFID?

  • RFID (Radio Frequency Identification) is a wireless technology that uses radio waves to automatically identify and track tags attached to…
  • 💡 Real-Life Indian Example:
  • When your car passes through a toll plaza on the highway without stopping, the FASTag sticker on your windshield is a **passive UHF…

Components of an RFID System

  • An RFID system is made of four main components:
  • RFID Tag (Transponder): A small microchip holding an ID number, connected to a thin wire coil antenna.
  • RFID Reader (Interrogator): The device that emits radio signals, wakes up nearby tags, and captures their data.
  • RFID Middleware: Software that filters out duplicate scans and cleans the data before sending it to the main server.
  • Backend Database: The company’s central computer system (like the FASTag bank server or hospital records) that matches the tag ID to a vehicle…

View diagram · Four Pillars of an RFID System

Types of RFID Tags: Passive vs. Active vs. Semi-Passive

  • A passive RFID tag draws energy from the reader’s field.
  • Passive Tags No internal battery.
  • Active Tags Has an onboard battery and active transmitter.
  • Semi-Passive (BAP) Has a small battery to run internal sensors (like tracking medicine temperature in a truck), but still communicates using…
  • Internal Battery: No battery (Powered by reader’s radio waves)
  • Reading Range: Short to medium (a few cm up to 10 meters)
  • Cost: Very low (A few rupees per sticker)
  • Lifespan: Virtually infinite (15 to 20+ years)

View diagram · Tag Power Architectures

Operating Frequency Bands of RFID

  • RFID systems use different radio frequency bands depending on the required read range:
  • Low Frequency (LF): 125 kHz – 134.2 kHz
  • High Frequency (HF): 13.56 MHz
  • Ultra-High Frequency (UHF): 860 MHz – 960 MHz
  • Microwave: 2.45 GHz & 5.8 GHz

Electronic Product Code (EPC)

  • In regular shopping, a standard barcode only tells you what kind of item it is (for example, all 500 ml bottles of Sprite have the exact…

View diagram · Standard 96-Bit EPC RFID Tag Memory Layout

Comparison: RFID vs. Barcode vs. QR Code

  • Direct Line-of-Sight: Yes (Scanner must directly see lines)
  • Reading Distance: Short (up to 30 cm)
  • Scan Multiple at Once?: No (One by one only)
  • Modify Data?: No (Printed paper cannot be updated)
  • Durability: Ruined easily by dirt, oil, or tears

Wireless Sensor Networks (WSN): Architecture & Protocols

Overview: A leaf sensor can forward its reading to a cluster head, which combines readings before sending them to a sink.

What is a Wireless Sensor Network (WSN)?

  • Imagine placing hundreds of small battery-operated sensor devices across a large forest, a railway track, or a 50-acre farm in Madhya Pradesh.
  • Distributed Sensor Nodes Spread across fields, forests, or factories
  • Cluster Head / Router Collects, combines, and summarizes sensor data
  • Base Station (Sink) Internet Gateway connecting to Cloud & Dashboards

View diagram · WSN Mesh Routing to Base Station

Hardware Architecture of a WSN Sensor Node

  • Every tiny sensor node (often called a mote) has four main hardware parts:
  • 1. Sensing Subsystem Physical sensor + ADC (Analog-to-Digital Converter) to convert physical phenomena into digital numbers.
  • 2. Processing Subsystem Low-power microcontroller (MCU) with internal RAM and flash memory to run software and process data.
  • 3. Transceiver Subsystem Short-range RF radio module (such as Zigbee / IEEE 802.15.4) to transmit and receive wireless packets.
  • 4. Power Subsystem Small battery (AA or coin cell) or small solar panel that powers all components under strict energy limits.

View diagram · Hardware Subsystems of a Sensor Node

Network Topologies in WSN

  • Star Topology: Every sensor node connects directly to the Base Station
  • Mesh Topology: Nodes forward packets for each other across multiple hops
  • Cluster-Tree Topology: Nodes form local groups led by a designated Cluster Head (CH)

The LEACH Protocol (Low-Energy Adaptive Clustering Hierarchy)

  • In a WSN, the component that uses the most battery power is the wireless radio transmitter — especially when transmitting over long…
  • How LEACH Works (Two Phases per Round): Setup Phase:
  • A few nodes randomly elect themselves as Cluster Heads.
  • Normal nodes join the nearest Cluster Head based on radio signal strength.
  • The Cluster Head gives each member node a specific time slot (TDMA) to transmit its reading.
  • Steady-State Phase:
  • Member nodes wake up only during their personal time slot, send their reading to the Cluster Head, and immediately go back to sleep!
  • The Cluster Head collects all readings, averages them (removes repeated readings), and sends one single consolidated packet to the distant…

View diagram · Hierarchical Cluster-Based WSN Topology (LEACH Architecture)

Main Technical Challenges in WSN

  • Strict Battery Limits: Nodes run on tiny batteries in forests or oceans where changing batteries is physically impossible.
  • Self-Healing Networks: If a sensor node gets destroyed by weather or runs out of battery, the rest of the network must find a new path…
  • Low Memory & Slow CPU: Microcontrollers only have a few kilobytes of memory, requiring very lightweight software.
  • Wireless Collisions: When hundreds of nodes transmit at once on the same frequency, packets collide in the air and get lost.

Real-World Applications of WSN

  • Smart Agriculture: Hundreds of soil sensors measure moisture and pH across farm fields to automate drip irrigation and save water.
  • Forest Fire Detection: Temperature and smoke sensors dropped across forest areas detect rising heat and sound alerts before fires spread out of…
  • Bridge & Dam Safety: Vibration sensors placed on flyovers, railway bridges, and dams detect microscopic cracks before catastrophic collapses…
  • Flood Warning: Water level sensors along riverbanks alert disaster response teams hours before flash floods hit towns.