Introduction to Embedded Systems in IoT
Introduction to Embedded Systems in IoT
to perform dedicated functions within an IoT device. These systems integrate hardware
These systems must meet strict deadlines; failure to respond on time leads to system failure.
Examples:
Timely response is important but not critical; occasional delays are acceptable.
Performance degrades if deadlines are missed, but the system continues to function.
Examples:
Online gaming.
Deadlines are strict, but missing one does not cause total system failure?only data loss.
Used where real-time processing is necessary, but occasional failures are tolerable.
Examples:
Weather monitoring.
A System on Chip (SoC) in IoT is a compact integrated circuit that combines a CPU, memory,
communication modules (Wi-Fi, Bluetooth), and sensors on a single chip. It is designed for
low power consumption, high efficiency, and small size, making it ideal for IoT devices.
SoCs like ESP32, Nordic nRF52840, and Raspberry Pi RP2040 are commonly used in IoT applications.
They enable fast processing, real-time communication, and energy efficiency for smart devices.
SoCs are widely used in smart homes, wearables, industrial automation, and medical IoT systems.
Smart Home Automation ? IoT-enabled smart lights, thermostats, security cameras, and voice
Wearable Devices ? Smartwatches, fitness bands, and health monitors tracking heart rate,
Smart Agriculture ? IoT-based irrigation, soil monitoring, and weather prediction for precision
farming.
Healthcare & Medical Devices ? Remote patient monitoring, smart insulin pumps, and ECG sensors.
Automotive & Transportation ? Self-driving cars, GPS tracking, and vehicle diagnostics using IoT.
Smart Cities ? Traffic management, smart streetlights, waste management, and pollution monitoring.
Smart Home Devices ? SoCs power smart speakers, security cameras, and IoT-enabled lighting systems.
Wearable Technology ? Used in smartwatches, fitness trackers, and medical monitoring devices.
Industrial IoT (IIoT) ? Enables machine automation, predictive maintenance, and real-time monitoring.
Smart Agriculture ? SoCs help in soil moisture sensors, smart irrigation, and livestock tracking.
Automotive IoT ? Used in ADAS (Advanced Driver Assistance Systems), GPS tracking, and vehicle
diagnostics.
Healthcare & Medical IoT ? Power smart insulin pumps, remote ECG monitors, and biosensors.
Smart Cities ? Supports smart traffic lights, waste management, and air pollution monitoring.
Real-Time Operation ? IoT-embedded systems process data and respond quickly to real-time events,
making them suitable for applications like industrial automation and healthcare monitoring.
Low Power Consumption ? Optimized for energy efficiency, allowing battery-operated devices like
Connectivity & Communication ? Supports various wireless and wired communication protocols like Wi-Fi,
Bluetooth, Zigbee, LoRa, and MQTT for seamless IoT data transfer.
Autonomous Operation ? Runs with minimal human intervention, using pre-programmed logic or AI to proc
data and take actions, such as smart thermostats adjusting temperature automatically.
embedded systems, including IoT applications. Here are its key properties:
Central Processing Unit (CPU) ? Acts as the brain of the microcontroller, executing instructions and
managing operations.
Memory (RAM, ROM, Flash) ? Stores program code (ROM/Flash) and temporary data (RAM) required for e
Input/Output (I/O) Ports ? Allows communication with sensors, actuators, displays, and other peripherals.
Timers & Counters ? Used for real-time operations, measuring time intervals, and generating delays.
Low Power Consumption ? Optimized for energy efficiency, making it ideal for battery-powered IoT devices
Microcontroller / Microprocessor ? The brain of the system, executing programmed instructions (e.g.,
Memory (RAM, ROM, Flash) ? Stores program code, temporary data, and system firmware.
Input/Output (I/O) Interfaces ? Connects sensors, actuators, and user interfaces like buttons or displays.
Sensors & Actuators ? Sensors collect data (e.g., temperature, motion), while actuators perform actions
Communication Modules ? Enables wired or wireless connectivity using protocols like Wi-Fi, Bluetooth, Zig
[Link]-Time System:
A system that processes data and responds within a strict time limit.
Used in applications where delays can cause system failure or performance issues.
Can be hard real-time (strict deadlines) or soft real-time (occasional delays allowed).
A single chip integrating a CPU, memory, I/O interfaces, and communication modules.
Reduces system size, power consumption, and cost for IoT devices.
Commonly used in smartphones, wearables, smart home devices, and automotive systems.
Supports wireless connectivity like Wi-Fi, Bluetooth, and Zigbee for IoT applications.
[Link] (MPU):
A CPU on a single chip that executes instructions but requires external memory and I/O.
Examples include Intel Core, AMD Ryzen, and ARM Cortex-A series.
[Link] (MCU):
An integrated chip containing a CPU, memory (RAM, ROM), and I/O ports.
Designed for specific tasks in embedded systems like IoT, automation, and robotics.
[Link] Processor:
Used in IoT devices, automotive control units (ECUs), and smart sensors.
Examples include ARM Cortex-M, RISC-V, and Digital Signal Processors (DSPs).
Ensures quick response times for automation, healthcare, and smart city applications.
2. INTERNET OF THINGS.
IoT (Internet of Things) devices are physical objects embedded with sensors, software,
and communication technologies that enable them to collect, exchange, and process data
over the internet or other networks. These devices can include smart home appliances,
wearable gadgets, industrial sensors, healthcare monitors, and more. They are used to
automate processes, improve efficiency, and provide real-time insights across various
industries.
Connectivity ? IoT devices are connected to the internet or other networks, enabling
Automation ? IoT systems can operate with minimal human intervention by collecting,
Sensors/Devices ? Collect data from the environment (e.g., temperature, motion, humidity).
Connectivity ? Transmits data via Wi-Fi, Bluetooth, cellular networks, or other communication
protocols.
Data Processing ? Processes and analyzes collected data using edge computing or cloud computing.
User Interface ? Displays data and allows user interaction through apps, dashboards, or alerts.
Digital Processing ? IoT devices use microcontrollers and cloud computing, which require
Noise Reduction ? Digital signals are less susceptible to noise and interference compared to analog
Integration with IoT Systems ? Most IoT components, such as microprocessors and communication module
work with digital signals, making ADC essential for seamless integration.
Sensors & Actuators ? Sensors collect data (e.g., temperature, motion, humidity), while actuators
Connectivity ? Enables communication between devices using Wi-Fi, Bluetooth, Zigbee, cellular networks,
or LoRaWAN.
Edge Devices & Gateways ? Process data locally before sending it to the cloud, reducing latency and
bandwidth usage.
Cloud Computing & Storage ? Stores and processes large amounts of IoT data for analysis and decision-m
User Interface & Applications ? Dashboards, mobile apps, or web applications allow users to monitor
Security & Privacy ? Encryption, authentication, and access control ensure data security and device
Interoperability of IoT Devices refers to the ability of different IoT devices and systems to work together
seamlessly. It ensures smooth communication between devices from different manufacturers. Standard pro
like MQTT, HTTP, and CoAP enable data exchange. Data format compatibility (JSON, XML) allows easy in
Cross-platform functionality ensures devices connect to cloud services and mobile apps. Security measure
encryption and authentication protect data. Interoperability enhances scalability, automation, and efficiency
in IoT ecosystems.
Smart Homes ? IoT enables automation in homes with smart devices like thermostats, lighting, security cam
Healthcare Monitoring ? Wearable devices and smart medical sensors track vital signs, alert doctors in eme
and enable remote patient monitoring, enhancing healthcare services.
Industrial IoT (IIoT) ? IoT is used in manufacturing for predictive maintenance, real-time monitoring of mach
Smart Agriculture ? IoT-powered sensors monitor soil moisture, weather conditions, and crop health, helpin
Edge Computing ? IoT devices are increasingly processing data locally (on the edge) rather than relying on
AI & Machine Learning Integration ? IoT systems use AI and ML for predictive analytics, automation, and s
5G Connectivity ? Faster and more reliable internet with 5G enables seamless communication between IoT
Enhanced Security Measures ? With the rise in IoT cyber threats, stronger encryption, authentication proto
Sustainability & Smart Energy Management ? IoT is being used in smart grids, smart meters, and energy-e
A network of connected devices that communicate and share data over the internet.
2. Big Data
Refers to massive amounts of structured and unstructured data generated from multiple sources.
IoT devices contribute significantly to big data by continuously collecting real-time information.
Requires advanced analytics, AI, and machine learning for meaningful insights.
3. Sensors
Electronic devices that detect and measure physical changes like temperature, motion, or light.
Convert physical data into digital signals for processing in IoT systems.
4. Actuators
Convert electrical signals into mechanical movements, like opening a valve or starting a motor.
Work alongside sensors to complete IoT functions like smart lighting or automated doors.
5. Smart City
A city that uses IoT technology to enhance infrastructure and public services.
Uses sensors and data analytics to optimize urban planning and sustainability.
Improves citizen safety, reduces energy consumption, and enhances quality of life.
Examples include smart street lighting, automated public transport, and pollution monitoring.
[Link] TO IOT DESIGN METHODOLAGY.
Define the Problem and Requirements ? Identify the use case, objectives, and system
constraints.
Choose the IoT Hardware ? Select sensors, actuators, and communication modules.
Select the IoT Network Protocol ? Determine the best communication protocol (Wi-Fi,
Develop the IoT Middleware ? Implement software to process and manage data between
Implement Data Analytics and Storage ? Design a database and analytics pipeline to
Develop the User Interface (UI/UX) ? Create dashboards, mobile apps, or web applications
compliance.
and remote patient monitoring systems help track patient health in real time and send alerts
to doctors.
Smart Agriculture ? IoT sensors monitor soil moisture, temperature, and humidity to
Sensors ? Temperature sensors, humidity sensors, motion detectors, gas sensors, etc.
Smart Appliances ? Smart refrigerators, thermostats, washing machines, and air conditioners.
Industrial IoT (IIoT) Devices ? Connected machinery, predictive maintenance systems, and
Smart Home Devices ? Security cameras, smart bulbs, smart doorbells, and voice assistants
Connected Vehicles ? GPS trackers, vehicle diagnostics systems, and autonomous car sensors.
Communication Protocols ? Enable data transfer (e.g., MQTT, HTTP, CoAP, Bluetooth, LoRa).
Cloud & Edge Computing ? Store, process, and analyze IoT data.
User Interface (UI/UX) ? Web apps, mobile apps, and dashboards for interaction.
Wireless Sensor Networks (WSNs) use various technologies to enable communication, data
Communication Protocols ? Zigbee, Bluetooth Low Energy (BLE), LoRa, Wi-Fi, and 6LoWPAN.
Network Topologies ? Star, Mesh, Tree, and Hybrid networks for efficient data routing.
Energy-Efficient Computing ? Low-power microcontrollers (MCUs) like ARM Cortex-M and RISC-V.
Embedded Operating Systems ? TinyOS, Contiki, and RIOT for lightweight and efficient sensor operation.
Security Mechanisms ? AES encryption, authentication protocols, and secure key management.
Cloud & Edge Computing ? AWS IoT, Microsoft Azure IoT, and edge devices for real-time processing.
7. What is M2M?
M2M (Machine-to-Machine) enables direct communication between devices without human intervention.
Connectivity is established via Wi-Fi, Bluetooth, LoRa, or cellular networks (3G, 4G, 5G).
M2M is widely used in smart homes, healthcare, industrial automation, and connected vehicles.
The full form of SCADA in IoT is Supervisory Control and Data Acquisition.
SCADA is a system used for monitoring, controlling, and automating industrial processes in sectors
like manufacturing, energy, and water management. It integrates IoT by collecting real-time data
Smart Agriculture ? Sensors monitor soil moisture, temperature, and crop health to optimize
Actuator Nodes ? Perform actions based on sensor data (e.g., turning on irrigation systems).
Gateways ? Connect sensor nodes to cloud or central servers for data processing.
Communication Modules ? Enable data transmission using protocols like Zigbee, LoRa, or Wi-Fi.
Power Source ? Batteries or energy harvesting solutions (solar, kinetic) to power nodes.
Cloud & Data Storage ? Stores and processes sensor data for further analysis and decision-making.
APs do not process data; they only relay communication between devices and routers.
Gateway
A Gateway acts as a bridge between IoT devices and external networks (e.g., the cloud).
It processes, filters, and transmits data using protocols like MQTT, HTTP, or LoRaWAN.
Gateways enable communication between different network types (e.g., Zigbee to the internet).
RFID is a wireless technology used for identifying and tracking objects using radio waves.
It consists of RFID tags, readers, and a database to store information, commonly used in inventory
Sensing ? IoT devices use sensors to collect real-world data (e.g., temperature, motion, humidity).
Networking ? Enables communication between devices using protocols like Wi-Fi, Bluetooth, LoRa, and MQ
Data Processing ? Collected data is processed locally (edge computing) or in the cloud for insights.
Application ? The user interface (mobile apps, dashboards) that provides real-time monitoring and control.
1.
4. introduction to iot protocol
1. MQTT Full Form:
MQTT stands for Message Queuing Telemetry Transport.
It is a lightweight messaging protocol used in IoT.
It operates over TCP/IP for reliable communication.
It follows a publish-subscribe model.
MQTT is efficient in low-bandwidth networks.
It is commonly used in home automation and IIoT.
It ensures minimal power consumption.
Security can be enhanced using TLS/SSL encryption.
2. Protocol Used to Connect IoT Devices:
Several protocols connect IoT devices, such as:
o MQTT (Message Queuing Telemetry Transport)
o CoAP (Constrained Application Protocol)
o HTTP/HTTPS for web-based communication
o AMQP (Advanced Message Queuing Protocol)
o Bluetooth for short-range communication
o Zigbee and Z-Wave for low-power devices
o LoRaWAN for long-range IoT networks
o Wi-Fi and Cellular (4G/5G) for high-speed data
3. What is M2M?
M2M stands for Machine-to-Machine communication.
It enables direct communication between devices.
IoT is an advanced form of M2M.
M2M uses cellular, Wi-Fi, or wired networks.
It reduces human intervention in processes.
Used in smart meters, industrial automation, etc.
Protocols like MQTT and CoAP are used in M2M.
M2M improves efficiency and automation.
4. Protocol Used in WSNs:
Wireless Sensor Networks (WSNs) use:
o Zigbee for low-power communication
o 6LoWPAN (IPv6 over Low-power Wireless PAN)
o Bluetooth Low Energy (BLE) for short-range use
o CoAP (Constrained Application Protocol)
o LoRaWAN for long-range communication
o Z-Wave for smart home applications
o RPL (Routing Protocol for Low-power Networks)
o Designed for energy-efficient and scalable networks
5. Protocol Used in RFID:
Radio Frequency Identification (RFID) uses:
o EPCglobal Class 1 Gen 2 for passive RFID
o ISO 18000-6C for UHF RFID
o ISO 14443 for NFC-based RFID
o ISO 15693 for vicinity RFID
o Uses radio waves for data transmission
o Works in LF, HF, and UHF frequency ranges
o Used in asset tracking, access control, etc.
o Allows automatic identification without line of sight
6. What is Modbus Protocol?
Modbus is a serial communication protocol.
It was developed by Modicon in 1979.
Used for industrial automation and control.
Supports RS-232, RS-485, and TCP/IP.
Works on Master-Slave architecture.
Common in SCADA systems and PLCs.
Provides simple, reliable communication.
Uses function codes for data exchange.
7. What is Zigbee?
Zigbee is a low-power wireless protocol.
It is based on the IEEE 802.15.4 standard.
Used in smart homes, automation, etc.
Supports mesh networking for better coverage.
Operates on 2.4 GHz, 868 MHz, and 915 MHz.
Consumes very little power, extending battery life.
Competes with Bluetooth and Z-Wave.
Secure communication with AES-128 encryption.
8. Zigbee Architecture Layers:
Zigbee has four layers:
o Physical Layer (Handles transmission & reception)
o MAC Layer (Manages access to the channel)
o Network Layer (Handles routing & addressing)
o Application Layer (Processes application data)
It supports mesh, star, and tree topologies.
Enables low-power, energy-efficient communication.
Used in home automation and IoT networks.
9. Applications of MQTT:
o Smart Home Automation (Alexa, Google Home)
o Industrial IoT (IIoT) for factory automation
o Healthcare Monitoring Systems (Wearable devices)
o Energy Monitoring (Smart meters, grids)
o Logistics & Fleet Tracking (GPS & vehicle telemetry)
o Remote Sensor Monitoring (Weather stations)
o Agriculture IoT (Soil moisture sensors)
o Connected Vehicles (Vehicle-to-cloud communication)
10. Full Form of 6LoWPAN:
6LoWPAN stands for IPv6 over Low-power Wireless Personal Area Networks.
It enables IPv6 communication in low-power IoT devices.
Works over IEEE 802.15.4 standard.
Designed for resource-constrained networks.
Allows direct internet connectivity for IoT sensors.
Used in smart homes, industrial IoT, etc.
Supports both star and mesh topologies.
Efficient in low-bandwidth, high-latency networks.
Q.2 Answer the following questions.
1. What is RFID Protocol?
• RFID (Radio Frequency Identification) is a wireless technology.
• It uses radio waves to transfer data for identification and tracking.
• RFID consists of tags, readers, and antennas.
• Works on Low Frequency (LF), High Frequency (HF), and Ultra High Frequency (UHF).
• Protocols include ISO 14443, ISO 15693, and EPCglobal Class 1 Gen 2.
• Used in inventory management, access control, and asset tracking.
• Can be passive, active, or semi-passive.
• Supports short to long-range communication depending on frequency.
• Enables fast, automated, and contactless identification.
2. Explain WSN Protocol
• Wireless Sensor Network (WSN) is a collection of interconnected sensors.
• These sensors collect, transmit, and process environmental data.
• WSN operates on protocols like Zigbee, 6LoWPAN, Bluetooth, and LoRaWAN.
• Uses multi-hop communication to extend network coverage.
• Common in smart cities, industrial monitoring, and agriculture.
• Focuses on low power consumption and efficient data transfer.
• Uses star, mesh, and tree topology for communication.
• Can operate in harsh environments with self-healing capabilities.
• Secure data transmission is ensured through AES encryption.
3. Explain M2M and WSN Protocol with Examples
• M2M (Machine-to-Machine) allows direct communication between devices.
• Uses cellular, Wi-Fi, MQTT, and CoAP for connectivity.
• Example: Smart meters sending usage data to utility companies.
• WSN (Wireless Sensor Network) consists of sensor nodes collecting data.
• WSN uses Zigbee, LoRaWAN, and 6LoWPAN for data exchange.
• Example: Weather stations monitoring temperature and humidity.
• M2M typically involves structured communication between machines.
• WSN involves distributed sensing and data aggregation.
• Both are widely used in IoT, automation, and industrial control.
4. Explain Zigbee Architecture with Modbus Protocol
• Zigbee is a low-power wireless protocol based on IEEE 802.15.4.
• It has four layers: Physical, MAC, Network, and Application.
• Supports mesh, star, and tree network topologies.
• Used in smart homes, industrial automation, and healthcare.
• Modbus is a communication protocol for industrial automation.
• It follows a Master-Slave model for data exchange.
• Works over RS-232, RS-485, and TCP/IP for reliability.
• Zigbee and Modbus can be integrated for IoT-based industrial automation.
• Example: Zigbee-enabled sensors transmitting data to a Modbus-controlled PLC.
5. Mention IP-Based Protocols & Explain One in Detail
• IoT uses IP-based protocols for reliable communication, such as:
1. MQTT (Message Queuing Telemetry Transport)
2. CoAP (Constrained Application Protocol)
3. HTTP/HTTPS (Hypertext Transfer Protocol)
4. 6LoWPAN (IPv6 over Low-Power Wireless Personal Area Networks)
• Explanation of CoAP:
• CoAP is a lightweight request-response protocol like HTTP.
• Uses UDP for communication, reducing power consumption.
• Designed for low-power, resource-constrained IoT devices.
• Supports RESTful architecture for easy integration.
6. Explain MQTT Protocol in Detail
• MQTT (Message Queuing Telemetry Transport) is a lightweight IoT protocol.
• Operates on publish-subscribe messaging model.
• Works over TCP/IP, ensuring reliable delivery.
• Efficient for low-bandwidth and high-latency networks.
• Uses three Quality of Service (QoS) levels for message delivery.
• Secure communication is achieved using TLS/SSL encryption.
• Used in smart homes, industrial IoT, and healthcare.
• Supports millions of connected devices with minimal overhead.
• Example: A smart thermostat sending temperature updates via MQTT.
7. Explain LoRa in Detail
• LoRa (Long Range) is a wireless communication technology for IoT.
• Operates on sub-GHz ISM bands (e.g., 868 MHz, 915 MHz).
• Supports long-range communication up to 15 km in rural areas.
• Designed for low-power, battery-operated devices.
• Uses LoRaWAN as its network protocol for IoT connectivity.
• Supports star topology with gateways relaying data to the cloud.
• Common in smart agriculture, environmental monitoring, and logistics.
• Offers strong security with AES encryption.
• Example: A LoRa sensor monitoring soil moisture in a farm.
Q.3 Define the terms.
1. LoRa (Long Range)
• LoRa is a wireless communication technology for long-range data transmission.
• It operates on sub-GHz ISM bands (e.g., 868 MHz in Europe, 915 MHz in the US).
• LoRa uses chirp spread spectrum (CSS) modulation for robust communication.
• It enables low-power, battery-operated IoT devices to communicate over long distances.
• LoRa networks follow a star topology where devices communicate via gateways.
• The LoRaWAN protocol manages network connectivity and data transmission.
• It is commonly used in smart agriculture, logistics, and environmental monitoring.
• LoRa supports bidirectional communication, making it useful for remote control applications.
• Security is ensured through AES-128 encryption for data protection.
• Its low data rate makes it ideal for IoT but unsuitable for real-time applications.
2. Zigbee
• Zigbee is a low-power wireless communication protocol based on IEEE 802.15.4.
• It is designed for short-range communication, typically 10–100 meters.
• Zigbee operates on 2.4 GHz, 868 MHz, and 915 MHz frequency bands.
• It supports mesh, star, and tree network topologies for flexible deployment.
• Zigbee is used in smart homes, industrial automation, and healthcare applications.
• It allows devices to operate in low-power modes, extending battery life.
• Security is provided through AES-128 encryption for secure data transmission.
• Zigbee devices communicate using small data packets, making it energy efficient.
• It competes with Bluetooth and Z-Wave for IoT and home automation use cases.
• Zigbee is widely adopted in smart lighting, security systems, and HVAC control.
4o
5. cloud platforms of iot
Q.1 Answer the following questions.
1. What is cloud storage?
Cloud storage is a service that allows data to be stored remotely and accessed via the internet.
It provides scalable, on-demand storage solutions for businesses and individuals.
Data is stored on remote servers managed by cloud providers.
Users can upload, download, and share files securely from any device.
Cloud storage ensures data redundancy, reducing the risk of data loss.
It supports different storage types like block, file, and object storage.
Common use cases include backups, data sharing, and remote work.
It enhances collaboration by allowing multiple users to access shared files.
Popular providers include Google Drive, Dropbox, AWS S3, and OneDrive.
2. Skynet
Skynet is a decentralized storage and computing platform based on blockchain.
It allows censorship-resistant, permanent, and secure data storage.
Skynet is part of the Sia blockchain ecosystem, offering Web3 solutions.
Users can host decentralized applications (dApps) and websites on Skynet.
Unlike traditional cloud storage, it does not rely on central servers.
It ensures data ownership and privacy, preventing unauthorized control.
Skynet is used for NFTs, Web3 apps, and decentralized content delivery.
It operates with a peer-to-peer network, ensuring high availability and security.
The term “Skynet” is also used in fiction for AI in The Terminator movies.