Exam Study Notes Mod 2
Exam Study Notes Mod 2
A sensor detects (senses) changes in the ambient conditions or in the state of another device
or a system, and forwards or processes this information in a certain manner.
A device which detects or measures a physical property and records, indicates, or otherwise
responds to it.
They perform some input functions by sensing or feeling the physical changes in
characteristics of a system in response to a stimulus.
For example, heat is converted to electrical signals in a temperature sensor, or atmospheric
pressure is converted to electrical signals in a barometer.
Transducers convert or transduce energy of one kind into another.
For example, in a sound system, a microphone converts sound waves into electrical signals
and a loudspeaker converts these electrical signals back into sound waves.
Sensor Features
It is only sensitive to the measured property.
It is insensitive to any other property likely to be encountered in its application.
It does not influence the measured property.
Sensor Resolution
The resolution of a sensor is the smallest change it can detect in the quantity that it is
measuring.
The more is the resolution of a sensor, the more accurate is its precision.A sensor’s accuracy
does not depend upon its resolution.
Analog Sensors
Analog Sensors produce a continuous output signal or voltage which is
generally proportional to the quantity being measured.
Digital Sensors
Digital Sensors produce discrete digital output signals that are a digital
representation of the quantity being measured.
Scalar Sensors
Scalar Sensors produce output signal proportional to the magnitude of the
quantity being measured.
Vector Sensors
Vector Sensors produce output signal proportional to the magnitude, direction,
as well as the orientation of the quantity being measured.
Fig:2.2 sensors used for IoT-based applications
Operating voltage
This feature signifies the range of operating voltages, within which the sensor can operate
without damaging its associated circuitry. It is to be noted that this feature is typically present
in sensors which require an external source of power to operate/ function. Generally,
commercial sensors available for hobbyists have an operating voltage range of 3.3 to 5 V.
Operating this sensor below the minimum value may not be enough to activate the sensor at
all. Figure shows a typical sensor output graph, plotted against varying input conditions.
Additionally, operating this sensor to supply greater than the maximum rated 5V increases
the chance of damaging the sensor.
Classification of sensors
I)Based on Power Requirements: The way sensors operate decides the power that must be
provided. Some sensors are provided with separate power sources for them to function,
whereas some sensors do not require any power sources. Depending on the requirements of
power, sensors can be of two types.
(i) Active: Active sensors can be classified based on: (1) power requirements, (2) sensor
output and (3) property to be measured. The active sensor requires power to operate and
provide it with power. It directly responds to the external environment and converts it into an
output signal. For example, a photodiode converts light into electrical impulse.
(ii) Passive: Passive sensors do not require an external circuitry or mechanism to power them
or respond to external stimuli from its environment, and converts it into an output signal. For
example, a thermistor's resistance can be detected by applying a current through it.
II)Based on Output:
(i) Analog: Analog sensors generate an output signal or voltage, which is proportional
(linearly or non-linearly) to the quantity being measured and is continuous in time and
amplitude. Physical quantities such as temperature, speed, pressure, displacement, strain, and
others are all continuous and categorized as analog quantities. For example, a thermometer or
a thermocouple can be used for measuring the temperature of a liquid (e.g., in household
water heaters). These sensors continuously respond to changes in the temperature of the
liquid.
(ii) Digital: These sensors generate the output of discrete time digital representation (time, or
amplitude, or both) of a quantity being measured, in the form of output signals or voltages.
Typically, binary output signals in the form of a logic 1 or logic 0 for ON or OFF,
respectively are associated with digital sensors. The generated discrete (non-continuous)
values may be output as a single “bit” (serial transmission), eight of which combine to
produce a single “byte” output (parallel transmission) in digital sensors.
III)Measured Property: The property of the environment being measured by the sensors can
be crucial in deciding the number of sensors in an IoT implementation. Some properties to be
measured do not show high spatial variations and can be quantified only based on temporal
variations in the measured property, such as ambient temperature, atmospheric pressure, and
others. Whereas some properties to be measured show high spatial as well as temporal
variations such as sound, image, and others. Depending on the properties to be measured,
sensors can be of two types:
(i) Scalar: Scalar sensors produce an output proportional to the magnitude of the quantity
being measured. The output is in the form of a signal or voltage. Scalar physical quantities
are those where only the magnitude of the signal is sufficient for describing or characterizing
the phenomenon and information generation. Examples of such measurable physical
quantities include color, pressure, temperature, strain, and others. A thermometer or
thermocouple is an example of a scalar sensor that has the ability to detect changes in
ambient or object temperatures (depending on the sensor's configuration). Factors such as
changes in sensor orientation or direction do not affect these sensors (typically).
(ii) Vector: Vector sensors are affected by the magnitude as well as the direction and/or
orientation of the property they are measuring. Physical quantities such as velocity and
images that require additional information besides their magnitude for completely
categorizing a physical phenomenon are categorized as vector quantities. Measuring such
quantities are undertaken using vector sensors. For example, an electronic gyroscope, which
is commonly found in all modern aircraft, is used for detecting the changes in orientation of
the gyroscope with respect to the Earth's orientation along all three axes
1. Thermal Sensors
Thermal sensors are used to measure temperature or thermal energy in industrial and
engineering applications. Depending on the design and application, these sensors may
provide output readings in units such as Celsius (°C), Fahrenheit (°F), Kelvin (K), or Joules
(J). It is important to clearly distinguish between heat and temperature. Heat refers to the
transfer of energy between molecules, particularly during chemical or physical processes,
whereas temperature represents the average kinetic energy of molecules in a substance and
can be directly measured.
1.2 Thermistors
Thermistors are temperature-sensitive resistors that detect temperature changes by monitoring
variations in their electrical resistance. The material used in thermistors exhibits a significant
change in resistance with temperature, making them highly sensitive over a limited
temperature range. Like RTDs, thermistors are passive devices and require an external power
supply for operation.
1.3 Thermocouples
Thermocouples are among the most widely used temperature sensors in industrial
applications due to their simple construction, robustness, and wide operating temperature
range. A thermocouple consists of two dissimilar metals joined together to form a hot
junction and a cold junction. When a temperature difference exists between these junctions, a
voltage is generated, which is proportional to the temperature difference. This voltage is
measured and converted into a temperature reading.
2. Mechanical Sensors
Mechanical sensors are designed to detect changes in mechanical properties such as pressure,
force, motion, and acceleration. These sensors translate mechanical variations into electrical
signals that can be measured and analyzed. Mechanical sensors are extensively used in
industrial automation, safety systems, and monitoring applications.
2.2 Barometer
A barometer is a type of pressure sensor specifically designed to measure atmospheric
pressure. It is typically stationary and is widely used in meteorology, weather forecasting, and
altitude estimation.
2.3 Altimeter
An altimeter operates on principles similar to a barometer but is used to measure altitude
changes relative to a fixed reference level, usually sea level. Altimeters are commonly
employed in aviation, aerospace, and navigation systems.
2.4 Liquid Flow Sensor
Liquid flow sensors measure the flow rate of liquids within a confined or bounded channel.
These sensors are crucial in industries such as chemical processing, water treatment, and oil
refining to ensure proper flow control and system efficiency.
2.5 Gas Flow Sensor
Gas flow sensors are used to measure the velocity or flow rate of gases moving through a
closed channel or pipe. They play an important role in applications such as HVAC systems,
industrial gas distribution, and environmental monitoring.
2.6 Accelerometer
An accelerometer is an electromechanical sensor used to measure the acceleration of a body.
Accelerometers are commonly based on piezoelectric or capacitive sensing techniques. They
are widely used in vibration analysis, motion detection, condition monitoring, and inertial
navigation systems.
Proximity sensor
A proximity sensor is a device used to detect the presence, absence, or distance of an object
without making physical contact with it.
How it works?
A proximity sensor emits some form of energy (such as electromagnetic fields, infrared light,
sound waves, or capacitive fields) and then detects changes in that energy when an object
comes close. Based on this change, the sensor determines whether an object is nearby.
Types of proximity sensors
Inductive proximity sensor – Detects metal objects using electromagnetic fields.
Capacitive proximity sensor – Detects metal and non-metal objects (plastic, wood,
liquids) by sensing changes in capacitance.
Infrared (IR) proximity sensor – Uses reflected infrared light to detect objects.
Ultrasonic proximity sensor – Uses sound waves and measures the echo to
determine distance.
Magnetic proximity sensor – Detects objects with a magnetic field (e.g., reed
switches).
Applications
Industrial automation (object detection on conveyor belts)
Smartphones (turning off the screen during calls)
Robotics (obstacle detection)
Automotive systems (parking sensors)
Security systems
Advantages
No physical contact - less wear and tear
Fast response time
Reliable in harsh environments
Limitation
Detection range is limited and depends on sensor type and object material
In short, a proximity sensor enables automatic, contactless detection of objects, making it
essential in modern industrial and electronic systems.
Flow sensor
A flow sensor is a device used to measure the rate or quantity of a fluid (liquid or gas)
flowing through a channel, pipe, or system.
Working principle:
A flow sensor detects the movement of fluid and converts it into an electrical signal
proportional to the flow rate or total flow. Different sensors use different physical principles
such as pressure difference, heat transfer, or mechanical motion.
Types of flow sensors
Liquid flow sensor – Measures the flow rate of liquids in a bounded channel.
Gas flow sensor – Measures the velocity or flow rate of gases.
Mechanical (turbine/paddle) flow sensor – Uses rotating parts; rotation speed
indicates flow rate.
Thermal (mass) flow sensor – Measures flow based on heat loss caused by moving
fluid.
Differential pressure flow sensor – Calculates flow by measuring pressure drop
across an obstruction.
Ultrasonic flow sensor – Uses sound waves to determine fluid velocity.
Applications
Industrial process control
Water and gas distribution systems
Chemical and pharmaceutical industries
HVAC systems
Fuel and oil flow monitoring
Medical devices (e.g., oxygen flow monitoring)
Advantages
Accurate measurement of flow rate
Helps in process optimization and safety
Available for both liquids and gases
Limitations
Accuracy can be affected by temperature, pressure, and fluid properties
Some types require regular maintenance
A flow sensor monitors and measures the movement of fluids, ensuring efficient control,
safety, and performance in industrial and everyday applications.
A vibration sensor is a device used to detect, measure, and monitor vibrations or oscillatory
motion of an object, machine, or structure.
How it works:
A vibration sensor senses changes in acceleration, velocity, or displacement caused by
vibration. These mechanical movements are converted into electrical signals, which are then
analysed to assess the condition of the system.
Types of vibration sensors
Accelerometer – Measures acceleration; the most commonly used vibration sensor.
Velocity sensor – Measures vibration velocity, often used in rotating machinery.
Displacement sensor – Measures displacement or position changes.
Piezoelectric vibration sensor – Uses piezoelectric materials that generate voltage
when subjected to vibration.
MEMS vibration sensor – Compact, low-power sensors widely used in IoT and
consumer electronics.
Applications
Condition monitoring of industrial machines
Predictive maintenance (detecting bearing faults, imbalance, misalignment)
Structural health monitoring (bridges, buildings)
Automotive systems
Consumer electronics (smartphones, wearables)
Earthquake and seismic monitoring
Advantages
Enables early fault detection
Reduces downtime and maintenance cost
Improves safety and reliability
Non-intrusive measurement
Limitations
Sensitive to noise and environmental factors
Requires proper mounting for accurate readings
A vibration sensor monitors mechanical vibrations to detect abnormalities, making it essential
for machine health monitoring, safety, and predictive maintenance in industrial and smart
systems.
Actuation
An actuator is a component of a machine or system that moves or controls the mechanism or
the system.
An actuator requires a control signal and a source of energy.
Pneumatic Actuators
Overview of Pneumatic Actuators
Pneumatic actuators generate linear or rotary motion by utilizing the compression and
expansion of air.
These actuators are widely used in industrial environments, especially in systems that
require reliable and fast mechanical motion.
A common application of pneumatic actuators is in valves, where they regulate the
flow of liquids or gases in pipelines and processing units.
Figure 2.11 Pneumatic actuators
Pneumatic actuators are mainly classified based on how the piston returns to its
original position.
Single-Acting Pneumatic Actuators
Single-acting actuators use one air inlet/outlet port.
Pressurized air enters the chamber through this port to move the piston.
The piston movement can occur in two ways:
o Forward movement by pushing the piston using compressed air
o Backward movement by removing air from the chamber, creating suction
After the pressurized air is removed:
o A spring mechanism forces the piston back to its default position
These actuators are commonly used where motion is required in only one direction
Illustrates a typical single-acting pneumatic actuator:
o Compressed air pushes the piston forward
o The spring retracts the piston once pressure is released
Double-Acting Pneumatic Actuators
Double-acting actuators do not use a spring for piston repositioning.
They are equipped with two air inlet ports, one on each side of the piston.
The direction of piston movement depends on which port receives pressurized air:
o Supplying air to the lower port moves the piston upward
o Supplying air to the upper port moves the piston downward
These actuators allow precise and controlled motion in both directions
They are preferred in applications requiring:
o Higher force
o Better control
o Continuous bidirectional operation
Advantages and Limitations of Pneumatic Actuators
Key Advantages:
Pneumatic actuators have a simple design, making them easy to operate and maintain.
They are considered safe for use in hazardous environments, particularly where fire or
explosion risks are high.
Since air is used as the working medium:
o There is no risk of fluid leakage
o Maintenance efforts are reduced
o Surrounding machinery remains clean
Key Limitations:
Air is highly compressible compared to liquids, which reduces the efficiency and
accuracy of pneumatic actuators.
Continuous operation requires a constant supply of compressed air.
The cost associated with air compressors and energy consumption makes pneumatic
actuators more expensive over long-term use.
Summary Points
Pneumatic actuators convert air pressure into mechanical motion.
They are widely used for valve control and industrial automation.
Single-acting actuators use a spring for piston return, while double-acting actuators
rely on air pressure in both directions.
Their simplicity and safety make them attractive, but efficiency and operating cost are key
concerns
Hydraulic Actuators
Hydraulic actuators are devices that convert energy stored in pressurized fluids into useful
mechanical motion. In industrial systems, these actuators make use of liquids that are almost
incompressible, such as hydraulic oil. Because the fluid does not compress significantly, any
pressure applied to it is transmitted quickly and efficiently to mechanical components like
pistons or shafts, resulting in motion.
The working principle of hydraulic actuators is based on Pascal’s law. Pascal’s law states that
when pressure is applied to a confined fluid, it is distributed equally in all directions. This
means that a small input force applied over a small area can generate a much larger output
force over a larger area. This property allows hydraulic systems to produce very high forces
using relatively small input power, making them ideal for heavy-duty industrial applications.
In practical operation, hydraulic energy supplied by a pump pressurizes the fluid inside a
sealed chamber. This pressurized fluid then acts on a piston or vane, converting fluid pressure
into linear or rotational mechanical motion. Since energy losses due to compression are
minimal, hydraulic actuators are highly efficient in force transmission.
Hydraulic actuators are broadly classified into two main categories based on the type of
motion they generate:
2. High-Speed Operation:
These actuators can operate at high speeds and can easily adapt to rapid changes in operating
speed, which is essential in many industrial automation processes.
4. Maintenance Requirements:
Despite their advantages, hydraulic actuators require careful maintenance. Regular inspection
is necessary to detect and prevent fluid leaks, as loss of hydraulic fluid reduces pressure and
system efficiency. Maintaining clean fluid and proper seals is critical for reliable operation
Electric actuators
Typically, electric motors are used to power an electric actuator by generating mechanical
torque. This generated torque is translated into the motion of a motor’s shaft or for switching
(as in relays). For example, actuating equipment such as solenoid valves control the flow of
water in pipes in response to electrical signals. This class of actuators is considered one of the
cheapest, cleanest, and speedy actuator types available. Below figure show some of the
commonly used electrical actuators.
MICROCONTROLLERS
Processor & memory: Uses ARM-based SoCs (e.g., Cortex-A series) with integrated CPU,
GPU, RAM, and multimedia; newer boards offer multi-core CPUs and up to several GB of
RAM.
Interfaces: Provides USB, HDMI, audio, Ethernet/Wi-Fi, camera/display connectors, and
40-pin GPIO header with UART, SPI, I²C, and PWM for hardware interfacing.
Ecosystem:
STM32CubeMX and STM32CubeIDE for code generation and configuration
Nucleo and Discovery boards with Arduino-style headers for rapid prototyping
STM32 is a professional-grade MCU family, giving a path from simple lab boards to
industrial products with the same architecture
ARM
Full Linux Ethernet/Wi-Fi Linux, Python,
Raspberr Single-boar Cortex-A
(e.g. RPi (model-dependen IoT gateway,
y Pi d computer SoC
OS) t) vision
(various)
Embedded
8-bit No OS
Arduino MCU None onboard basics,
ATmega328 (bare-meta
Uno board (shields needed) sensors/actuato
P (16 MHz) l)
rs
Dual-core
FreeRTOS Wireless IoT
MCU with Tensilica Wi-Fi +
ESP32 / nodes, edge
wireless LX6 (up to Bluetooth/BLE
bare-metal devices
240 MHz)
What is latency
Latency is the central reason fog computing and edge devices exist. In simple terms, they
move computation closer to where data is created so decisions happen fast enough to matter.
2. Fog nodes
o Aggregate and analyze locally processed edge data
3. Cloud
o Receives only filtered or summarized data
Local processing is fundamental to both edge and fog computing. In edge computing, data is
processed directly on edge devices to enable ultra-low-latency responses. Fog computing
extends local processing to nearby network nodes, allowing aggregation and fast analysis of
data from multiple edge devices. Together, they reduce dependence on the cloud while
supporting real-time and near-real-time applications
Latency and local processing are core to fog computing and edge devices, enabling real-time
decisions by minimizing data travel time and bandwidth needs compared to cloud-only
systems.
Role of Latency
In Edge Devices: Processing happens directly on the device (e.g., STM32/ESP32
sensors), achieving ultra-low latency (milliseconds or less) for time-critical apps like
autonomous robotics or industrial control, where even 10-50 ms delays can fail tasks.
In Fog Computing: Acts as an intermediate layer (e.g., Raspberry Pi gateways)
between edge devices and cloud; latency is low (tens of ms) but slightly higher than
pure edge due to local network hops, yet far better than cloud WAN delays (seconds).
Key Benefit: Both reduce latency by 90%+ vs. cloud, supporting apps needing <100
ms responses (e.g., AR/VR, vehicle-to-vehicle comms).
Role of Local Processing
Data Filtering and Analytics: Edge/fog nodes perform initial processing (aggregation,
filtering, ML inference), sending only summaries/alerts to cloud—cutting bandwidth
by 70-90% and enabling offline operation.
Real-Time Enablement: Local compute (e.g., on SBCs like Pi or MCUs like STM32)
handles deterministic tasks (e.g., anomaly detection in sensors), bridging IoT scale
with cloud scalability.
Resilience and Efficiency: Reduces cloud overload, costs, and failure risks; fog adds
geo-awareness and interoperability for distributed systems.
Edge vs Fog Comparison
Aspect Edge Devices (Local Fog Computing (Intermediate Layer)
Processing)
Latency Lowest (on-device, <10 ms) Low (local net, 10-100 ms)
Use Example ESP32 robot sensor fusion Pi gateway for factory sensors
This fits your microcontroller/robotics focus—e.g., STM32 on edge for low-latency control,
fog nodes for fleet coordination
Analog sensors output continuous voltage/current signals proportional to the measured
quantity, while digital sensors provide discrete binary data after internal processing.
Analog vs Digital Sensors
Aspect Analog Sensors Digital Sensors
strain gauges
Sensor Calibration
Purpose: Corrects offset, slope, and nonlinearity errors for accuracy; essential for both
analog/digital to match known references.
Methods:
One-point: Fixes offset (e.g., zero temp); simple for linear sensors.
Two-point: Adjusts offset + gain using low/high references.
Multi-point/curve fitting: For nonlinear responses (e.g., thermocouples).
Implement on MCUs like STM32 via ADC readings or lookup tables; automate with
known standards.
Noise Reduction Techniques
Hardware: Low-pass filters, shielding, differential signaling for analog; high-QE
sensors, low-noise amps for both.
Software/Firmware: Averaging/oversampling (e.g., 16x on ADC), Kalman filters,
moving averages; projection methods (e.g., PCA on sensor arrays).
MCU-Specific: STM32 DMA for burst sampling + filtering; digital sensors inherently
less noisy.
Real-Time Data Acquisition
Process: Use MCU timers/interrupts/DMA to sample at fixed rates (e.g., 1 kHz for
vibration), process locally (filter/calibrate), and act/store/transmit.
MCU Fit: ESP32/STM32 ADCs (up to 5 MSPS) + RTOS for deterministic timing;
FIFO buffers on smart sensors reduce CPU load.
Edge Benefits: Local processing cuts latency (e.g., <1 ms decisions) for
robotics/control; pair with STM32 for high-speed acquisition.
These techniques are key for reliable sensor data in your robotics/IoT projects—e.g., calibrate
analog IMU on STM32, use digital for noise-prone environments.
Analog vs Digital Sensors
Analog sensors
Output is a continuous signal (voltage/current)
Simple hardware
Cons
Noise-prone
Needs extra processing
Digital sensors
Output is discrete digital data (0s and 1s)
Built-in ADC
Communicates via I²C, SPI, UART
Examples: digital temperature sensor, IMU, digital humidity sensor
Pros
Less noise
Easier integration
Better accuracy
Cons
Slight processing delay
Higher cost
Quick comparison
Feature Analog Sensor Digital Sensor
Output Continuous Digital
Noise High Low
ADC required Yes No
Accuracy Lower Higher
Real-time use Moderate Excellent
2. Sensor Calibration
Temperature drift
Aging of sensors
Environmental effects
Calibration process
1. Apply known reference input
2. Measure sensor output
3. Calculate correction factor
4. Store calibration values
5. Apply correction during measurement
Example:
Adjusting a temperature sensor to match a standard thermometer.
Environmental vibration
Power supply fluctuations
Quantization error (ADC)
Proper grounding
Low-pass filters
Stable power supply
Software methods
Moving average filter
Kalman filter
Median filter
Oversampling
Key idea:
Noise reduction improves signal quality before real-time decisions are made.
Processed
Acted upon
within strict time limits.
RTDAQ components
1. Sensor (analog/digital)
2. Signal conditioning
3. ADC (if analog)
4. Processor / controller
5. Storage or actuator
Why it matters
Missed deadlines = system failure
Medical monitoring
Robotics
Autonomous vehicles
Analog sensors produce continuous signals and require ADCs, while digital sensors provide
discrete outputs with built-in conversion and lower noise. Sensor calibration corrects
measurement errors by matching outputs to known standards. Noise reduction techniques
improve signal quality using hardware and software filtering. Real-time data acquisition
ensures timely collection and processing of sensor data for immediate system response.
Device drivers
RTOS (optional)
Interrupt handlers
Bit manipulation
Memory-mapped I/O
Resource constraints
Limited RAM and Flash
Schedule tasks
Measure time intervals
Real-Time Operating System (RTOS)
Task scheduling
Priority management
Inter-task communication
Used in complex industrial systems
Sensor interfacing
Analog sensors
Output: voltage or current (0–10V, 4–20mA)
Requires:
o Signal conditioning
o ADC
o Isolation (optocouplers)
Digital sensors
Output: digital data
Interfaces:
o I²C
o SPI
o UART
Industrial concern:
Noise immunity and accuracy.
Actuator interfacing
Types of actuators
DC motors
Stepper motors
Servo motors
Solenoid valves
Interfacing requirements
Driver circuits (H-bridge, relays)
Power amplification
Electrical isolation
Feedback (encoders, limit switches)
Key rule:
Embedded controller never drives high-power loads directly.
Intelligent sensors
Communication gateways
Common PLC communication methods
Digital I/O
Analog I/O
Fieldbus communication
CAN bus
Profibus
Ethernet/IP
Embedded programming role:
Packet framing
Error detection
Timing control
Protocol stack implementation
Isolation amplifiers
Watchdog timers
Reset system on software failure
Fault handling
Sensor failure detection
Embedded programming involves developing firmware that directly controls hardware under
strict timing and resource constraints. In industrial systems, embedded controllers interface
with sensors, actuators, PLCs, and communication networks using analog, digital, and
industrial protocols. Real-time execution, reliability, electrical isolation, and safety
mechanisms are critical to ensure accurate control, fault tolerance, and continuous operation
of industrial equipment.
Embedded programming involves writing efficient C/C++ code for microcontrollers (MCUs)
to control hardware in resource-constrained environments, with industrial interfacing using
robust protocols like RS-485, CAN, and ASi for sensors/actuators/PLCs.
Motors/Valves: PWM for speed, H-bridge drivers (e.g., L298N); PID loops in
firmware for control.
VFDs/Servos: Modbus/CAN commands from MCU to drive.
Analysis: Feedback loops (encoder + PID) for precision; safety interlocks via
watchdogs/emergency stops.
PLC Integration
MCUs as IO expanders/gateways: Modbus RTU/TCP over RS-485/Ethernet to PLC
(e.g., Siemens S7); ASi for simple fieldbus.
Hybrid Setup: STM32 for real-time control + ESP32 for cloud (MQTT); CAN for
vehicle/robotics fleets.
Challenges/Solutions:
Challenge Solution
MODULE 3
2. Real-Time Capability
Definition
Real-time capability is the ability of an IIoT network to transmit data and control messages
within strict, predictable time limits.
In IIoT, late data is as bad as lost data.
Types of real-time requirements
1. Hard real-time
o Missing a deadline causes system failure.
o Example: Emergency shutdown systems, robotic motion control.
2. Firm real-time
o Occasional deadline misses are tolerable but degrade system performance.
o Example: Assembly line synchronization.
3. Soft real-time
o Delays reduce quality but do not cause failure.
o Example: Monitoring dashboards.
Why real-time communication is essential
Industrial control loops operate in milliseconds or microseconds.
Actuators must respond immediately to sensor readings.
Delays can destabilize control systems.
Real-time performance requires deterministic latency, often in microseconds, for
synchronized control in robotics and motion systems. Time-Sensitive Networking (TSN,
IEEE 802.1 standards) enables this via time synchronization, traffic scheduling with gate
controls, and priority queues isolating critical data. Protocols like Ether CAT or
PROFINET IRT complement TSN for bounded delays, allowing IT/OT convergence
without jitter.
Key parameters
1. Deterministic latency
o Fixed and predictable end-to-end delay.
o Achieved using Time-Sensitive Networking (TSN) and industrial Ethernet.
2. Low jitter
o Variation in delay must be minimal.
o High jitter can cause oscillations in control loops.
3. Prioritized traffic
o Critical control messages are given higher priority than monitoring or logging
data.
Example
In a robotic welding system, even a few milliseconds of delay in control commands can
misalign the welding path, leading to defective products.
3. Fault Tolerance
Definition
Fault tolerance is the ability of an IIoT network to continue operating correctly even when
components fail.
Importance in industrial environments
Hardware failures are unavoidable due to long operating hours.
Maintenance shutdowns are costly.
Systems must remain operational despite partial failures.
Types of faults
Node failures (sensor/actuator malfunction)
Link failures (broken cable, wireless interference)
Power failures
Software or firmware crashes
Fault tolerance ensures continuous operation despite node/link failures via detection,
rerouting, and recovery. Mechanisms include redundant paths, dynamic SDN-based
rerouting, self-healing reconfiguration, and ML-driven anomaly prediction. Adaptive
protocols like AFRR maintain >85% delivery at high fault rates, reducing latency by 30%
through proactive management. Clustering and replication distribute backups across nodes.
Fault tolerance mechanisms
1. Redundancy
o Multiple sensors measuring the same parameter.
o Duplicate communication paths and backup controllers.
2. Network reconfiguration
o Automatic rerouting of data when a link or node fails.
o Common in mesh and ring topologies.
3. Failover mechanisms
o Immediate switching to backup devices or networks.
4. Health monitoring and diagnostics
o Continuous monitoring of network and device status.
o Faults detected early and isolated before escalation.
5. Graceful degradation
o System continues to operate with reduced performance instead of total failure.
Example
In a power substation, if one communication link fails, the network reroutes traffic through
alternate paths, ensuring uninterrupted monitoring and control.