PadhaikoAll subjects

Connectivity Technology in Instrumentation System

Instrumentation (ENEX 252)

Open in the Padhaiko app

5.1 Wired and Wireless Communication System

Modern instrumentation systems rely on communication links to transport sensor measurements, actuator commands, and diagnostic status between field transducers, microcontrollers, data loggers, and supervisory computers. Based on the transmission medium, communication systems are classified into wired (guided) and wireless (unguided) systems.

Definition

Wired (Guided) vs. Wireless (Unguided) Media

Wired (Guided) Transmission Media

1. Twisted-Pair Cable

A twisted-pair cable consists of two insulated copper conductors twisted around each other in a helix (pages="notes"). One conductor carries the data signal while the other serves as the signal return or ground reference.

Twisted-pair cabling is divided into two types:

  1. Unshielded Twisted Pair (UTP): The least expensive and most widely deployed copper medium, with a characteristic impedance of . The EIA/TIA-568 standard grades UTP cables by data capacity:
    • Category 3 (Cat 3): Up to
    • Category 4 (Cat 4): Up to
    • Category 5 (Cat 5): Up to
  2. Shielded Twisted Pair (STP): Surrounds the twisted pairs with a metallic foil or braided shield that blocks external EMI from entering the cable and prevents internal signals from radiating outward (commonly used in IBM Token Ring and noisy industrial instrumentation environments).
AspectShielded Twisted Pair (STP)Unshielded Twisted Pair (UTP)
Metallic ShieldingPresent (foil/braid shield; requires ground drain wire)Absent (relies solely on wire twisting)
Noise ImmunityHigh immunity to external EMI and crosstalkMore susceptible to electromagnetic noise
Data Rate CapabilityFaster and more stable in electrically noisy plantsSlower over noisy industrial paths (up to for Cat 5)
Cost & MaintenanceCostlier cable and connectors; higher maintenance costCheaper cable; low installation and maintenance cost

2. Coaxial Cable

A coaxial cable consists of a central solid or stranded copper core surrounded concentrically by a dielectric insulator, an outer metallic foil/braided shield, and a protective plastic jacket (pages="notes"). Maintaining a fixed concentric spacing between the center conductor and the outer shield gives the cable a well-controlled characteristic impedance and shields high-frequency signals from external noise.

Concentric Structure of a Coaxial CableText
  +-------------------------------------------------------------------+
  | Outer Plastic Jacket (mechanical & environmental protection)      |
  |   +-----------------------------------------------------------+   |
  |   | Braided / Foil Metallic Shield (blocks EMI, ground return)|   |
  |   |   +---------------------------------------------------+   |   |
  |   |   | Dielectric Insulator (maintains constant spacing) |   |   |
  |   |   |   +-------------------------------------------+   |   |   |
  |   |   |   | Inner Copper Core (high-frequency signal) |   |   |   |
  |   |   |   +-------------------------------------------+   |   |   |
  |   |   +---------------------------------------------------+   |   |
  |   +-----------------------------------------------------------+   |
  +-------------------------------------------------------------------+

3. Optical Fiber

An optical fiber is a thin cylindrical dielectric waveguide (glass or plastic) that transmits information as pulses of light (pages="notes"). A typical multimode telecommunications strand is designated fiber ( light-conducting core inside a cladding).

Theorem

Total Internal Reflection (TIR) in Optical Fiber

Light propagates down an optical fiber by Total Internal Reflection (TIR) when two conditions are simultaneously satisfied:

  1. The light ray travels inside the optically denser medium (core, ) toward the less dense medium (cladding, ).
  2. The angle of incidence at the core–cladding boundary is strictly greater than the critical angle :
Classification of Optical Fibers
Fiber TypeCore / Cladding SizeLight SourcePropagation & Index ProfileApplications & Range
Single-Mode Fiber (SMF)Narrow core (, comparable to ) / claddingLaser diode (infrared)Single axial path; zero modal dispersionLong-distance, ultra-high-speed telecom and CATV backbones
Multi-Mode Step-IndexLarger core () / claddingLED (infrared)Uniform in core; light bounces as meridional rays; high modal dispersionShort-distance computer LANs; lower fabrication cost
Multi-Mode Graded-Index core / claddingLED or laserCore index decreases gradually from center to interface; skew/helical rays reduce dispersionIntermediate-distance LANs and campus instrumentation links

Wireless (Unguided) Communication Systems

1. Radio Wave Communication

Radio waves occupy the frequency spectrum from to , with wave speed , wavelength , and frequency related by (pages="notes"). They have the longest wavelengths in the electromagnetic spectrum (from millimeters to kilometers) and are widely used in broadcasting, cellular networks, radar, navigation, air-traffic control, and wireless telemetry.

Modes of Radio Wave Propagation
Propagation ModeFrequency RangeTypical RangePhysical Mechanism
Ground Wave PropagationWaves travel along the contour of the Earth's surface between transmitting and receiving antennas.
Sky Wave PropagationLong-haul / continentalWaves radiated upward by the transmitting antenna are refracted/reflected back to Earth by the ionized ionosphere layer.
Space Wave (Line-of-Sight)Around (VHF/UHF)Direct wave propagation from transmitter to receiver without atmospheric reflection or ground following.
Tropospheric ScatterOver-the-horizon linksForward scattering of radio waves off irregularities in the Earth's troposphere to reach distant stations.

2. Microwave Communication System

Microwave communication uses high-frequency electromagnetic waves from to radiated as focused, unidirectional beams between aligned parabolic antennas (pages="notes"). Because microwaves travel in straight lines and cannot penetrate hills, buildings, or dense foliage, they require a clear Line of Sight (LOS) and are susceptible to atmospheric rain fading, snow scattering, and solar proton events.

Process of Microwave Transmission and ReceptionText
  [Baseband Signal] ---> [Modulate 70/140 MHz IF Carrier] ---> [Up-Convert to Microwave Band]
                                                                             |
                                                                             v
  [Recover Baseband] <-- [Down-Convert to 70/140 MHz IF] <--- [Parabolic Tx -> Repeaters -> Rx]

Microwave links are deployed in two configurations (pages="notes"):

  1. Terrestrial Microwave Transmission: Links fixed ground towers across rivers or rugged terrain where laying fiber is impractical. Active or passive repeaters are placed every to maintain LOS and boost signal power. Terrestrial links carry thousands of voice channels at data rates up to , though installation cost is high and EMI/weather fading can degrade links.
  2. Satellite Microwave Transmission: Uses a spaceborne microwave relay station equipped with multiple transponders. Each transponder listens to an incoming uplink frequency from a ground station, amplifies the signal, and rebroadcasts it on a different downlink frequency to prevent interference between transmitted and received beams.
Satellite Orbit Classifications
Orbit TypeAltitude Above EarthVisibility / Orbital PeriodKey Characteristics
Low Earth Orbit (LEO) per passClosest to Earth; low propagation delay; moves relative to ground, requiring a constellation of satellites.
Medium Earth Orbit (MEO) per passLarger footprint than LEO; used for navigation (GPS) and regional data relay.
Geostationary Orbit (GEO) (equatorial)Stationary ( period)Orbital angular velocity matches Earth's rotation; wide coverage area, high launch cost, and noticeable propagation delay.

3. Infrared (IR) Communication System

Infrared communication uses high-frequency light waves in the to ( nominal optical bandwidth) band to transmit digital data over short, unobstructed paths (typically up to indoors) (pages="notes"). Intense ambient sunlight or incandescent light causes EMI, and IR waves cannot penetrate opaque walls.


5.2 Wired Connectivity: UART, I2C, SPI, CAN

Short-range board-level and instrument-level wired interconnects link sensors, ADCs, displays, and Electronic Control Units (ECUs) to microcontrollers using four standard serial protocols: UART, I2C, SPI, and CAN.

1. UART (Universal Asynchronous Receiver-Transmitter)

Definition

UART Protocol

UART is an asynchronous, full-duplex, point-to-point serial communication hardware interface that translates parallel bytes from a processor's data bus into a serial bit stream on a transmit pin (TX) and reconstructs parallel bytes from a receive pin (RX) without a shared clock signal.

Because there is no shared clock wire, both communicating UARTs must be configured ahead of time to the same baud rate (bits per second, commonly ) and frame format (pages="notes").

UART Cross-Connection and Asynchronous Frame FormatText
  +-----------------+                      +-----------------+
  |   UART Device 1 |  TX ------------> RX |   UART Device 2 |
  | (Microcontroller)| RX <------------ TX |  (PC / Sensor)  |
  |                 | GND ------------- GND|                 |
  +-----------------+                      +-----------------+

  Idle (HIGH)   Start      Data Byte (5 to 8 bits, LSB first)     Parity     Stop (1-2 bits)
  ------------+-------+-----+-----+-----+-----+-----+-----+-----+--------+------------------+
              |   0   | D0  | D1  | D2  | D3  | D4  | D5  | D6  | D7 | P |      1 (HIGH)    |
              +-------+-----+-----+-----+-----+-----+-----+-----+----+---+
Arduino UART Control Example (9600 Baud)C
void setup() {
    pinMode(LED_BUILTIN, OUTPUT);
    digitalWrite(LED_BUILTIN, LOW);
    Serial.begin(9600);   // USB-to-PC UART at 9600 bps
    Serial1.begin(9600);  // Hardware UART1 at 9600 bps
}

void loop() {
    int ch = Serial.read();
    if (ch == '1') {
        Serial1.println('1');
        digitalWrite(LED_BUILTIN, HIGH);
        Serial.println("LEDS ON");
    } else if (ch == '0') {
        Serial1.println('0');
        digitalWrite(LED_BUILTIN, LOW);
        Serial.print("LEDS OFF");
    }
}

2. I2C (Inter-Integrated Circuit)

Definition

I2C Protocol

I2C is a synchronous, half-duplex, multi-master / multi-slave two-wire serial bus that connects multiple peripheral ICs to one or more controllers using a bidirectional SDA (Serial Data) line and a SCL (Serial Clock) line.

I2C Bus Topology and 9-Bit Packet SequenceText
  +--------+          SDA (Serial Data)          +---------+     +---------+
  | Master | <=================================> | Slave 1 | ... | Slave N |
  |  MCU   | =======> SCL (Serial Clock) ======> | (BMP280)|     | (EEPROM)|
  +--------+                                     +---------+     +---------+

   Frame: [Start (1b)] -> [Slave Address + R/W (8b)] -> [ACK (1b)] -> [Data (8b)] -> [ACK (1b)] -> [Stop]
Reading Temperature from a BMP280 Sensor over I2C (Wire.h)C
#include <Wire.h>
#include <Adafruit_BMP280.h>

Adafruit_BMP280 bmp;

void setup() {
    Serial.begin(9600);
    if (!bmp.begin()) {
        Serial.println("Sensor not found");
        while (1) {}
    }
}

void loop() {
    float temperature = bmp.readTemperature();
    Serial.print("Temperature: ");
    Serial.print(temperature);
    Serial.println(" C");
    delay(2000);
}

3. SPI (Serial Peripheral Interface)

Definition

SPI Protocol

SPI is a high-speed, synchronous, full-duplex, master–slave 4-wire serial communication interface used to connect microcontrollers to fast peripherals such as ADCs, DACs, weather-station sensors, SD cards, and displays.

4-Wire SPI Master-Slave InterconnectText
  +---------------+                          +---------------+
  |               | ------- SCLK ----------> |               |
  |  SPI Master   | ------- MOSI ----------> |   SPI Slave   |
  |     (MCU)     | <------ MISO ----------- | (Sensor / ADC)|
  |               | ------- CS/SS (LOW) ---> |               |
  +---------------+                          +---------------+

4. CAN (Controller Area Network)

Definition

Controller Area Network (CAN Bus)

Controller Area Network (CAN) is a rugged, multi-master, message-based serial bus designed for vehicles and industrial machinery so that distributed Electronic Control Units (ECUs)—such as engine management, anti-lock braking (ABS), and industrial smart transmitters—can communicate directly with one another without a central host computer.

Key engineering principles of the CAN bus (pages="added"):

Comparison of Wired Instrumentation Protocols: UART, I2C, SPI, and CAN
ParameterUARTI2CSPICAN Bus
Signal Wires (TX, RX) (SDA, SCL) (SCLK, MOSI, MISO, CS) differential (CAN_H, CAN_L)
SynchronizationAsynchronous (no clock line)Synchronous (SCL clock)Synchronous (SCLK clock)Asynchronous bit-synchronized frames
Duplex ModeFull-duplexHalf-duplexFull-duplexHalf-duplex (shared bus)
Network TopologyPoint-to-point ()Multi-master, multi-slave Master, multiple slavesMulti-master peer-to-peer (no host)
Device AddressingNone (dedicated pair)-bit or -bit Slave AddressHardware CS wire per slave-bit / -bit Message Identifier
Typical Speed / (up to )Up to (Classical CAN at )
Error DetectionOptional -bit parity-bit ACK/NACKNone in hardware (application-defined)-bit CRC, ACK slot, bit monitoring

5.3 Wireless Sensor Network and Its Technology

Definition

Wireless Sensor Network (WSN)

A Wireless Sensor Network (WSN) is a distributed network of spatially dispersed, autonomous sensor nodes that cooperatively monitor physical or environmental conditions (temperature, pressure, vibration, humidity, pollutants) and forward the measurements wirelessly through a master/sink node to a central server or cloud platform.

Constituents of a WSN Node and Master-Slave Deployment ArchitectureText
  +-------------------------------------------------------------------+
  |                         WSN Sensor Node                           |
  |  [Sensors] --> [ADC] --> [Microcontroller / Processor]            |
  |                                   |                               |
  |  [Battery / Solar Power]     [RF Transceiver] ---> Antenna        |
  +-------------------------------------------------------------------+
                                      |
          (Slave Nodes)               v
       [Node 1] [Node 2] ---> [Master / Sink Node] ---> [Internet / Cellular] ---> [Remote Server & User]

WSN Communication Protocol Stack

A WSN communication architecture consists of five horizontal protocol layers (pages="notes"):

  1. Physical Layer: Lowest layer; handles carrier frequency generation, signal modulation/demodulation, and bit transmission over the wireless channel between sensor nodes.
  2. Data Link Layer: Performs Medium Access Control (MAC), frame detection, multiplexing/demultiplexing of data streams, and link-level error control.
  3. Network Layer: Responsible for multi-hop packet routing from source sensor nodes to the master/sink node with minimum energy expenditure.
  4. Transport Layer: Provides end-to-end reliability and congestion control when the WSN connects to external IP networks.
  5. Application Layer: Manages sensor query traffic, data aggregation, and user/software interfaces.

Domains of WSN Implementation

Depending on the operating environment and payload, WSNs are organized into four major implementation domains (pages="notes"):

Four Implementation Domains of Wireless Sensor Networks
WSN DomainOperating Medium & CharacteristicsTypical Applications
1. Wireless Multimedia Sensor Networks (WMSN)Retrieves video, audio, and still images alongside scalar readings; coverage is bounded by camera Field of View (FOV); requires high network bandwidth.Security surveillance, automated road-traffic monitoring.
2. Underwater Sensor Networks (UWSN)Deployed in oceans/rivers; because water strongly attenuates radio waves, communication relies on acoustic waves (low bandwidth, long propagation delay).Oceanographic monitoring, underwater seismic/pipeline sensing.
3. Wireless Underground Sensor Networks (WUSN)Sensor nodes are buried completely underground; signals suffer high attenuation from soil moisture, rocks, and minerals.Underground coal/mineral mines, buried plumbing and soil-moisture monitoring.
4. Wireless Mobile Sensor Networks (MSN)Sensor nodes move continuously, requiring low power and rapid dynamic network joining/leaving.Wearable health monitors, vehicular ad-hoc networks, smartphone sensing.

5.4 RF Modem, Bluetooth, Wi-Fi, NFC, Zigbee and LoRa

1. RF Modem

A Modem (Modulator–Demodulator) converts digital data (s and s) from a computer or PLC into modulated analog carrier signals for transmission over an analog or radio-frequency (RF) channel ( to ), and demodulates incoming analog waveforms back into digital bits (pages="notes").


2. Bluetooth (IEEE 802.15.1)

Bluetooth is a short-range Wireless Personal Area Network (WPAN) standard (IEEE 802.15.1) operating in the unlicensed ISM band (pages="notes").

Bluetooth Protocol StackText
  +-------------------------------------------------------------------+
  | Application Layer (User / Instrument Profiles)                    |
  +-----------------+---------------+----------------+----------------+
  |      OBEX       |      WAP      |   RFCOMM       |      SDP       |
  | (Object Exch.)  | (Web Access)  | (Serial Port)  | (Service Disc.)|
  +-----------------+---------------+-------+--------+----------------+
  |                           TCS           |                         |
  |        L2CAP (Logical Link Control & Adaptation Protocol)         |
  +-------------------------------------------------------------------+
  |        HCI (Host Controller Interface)                            |
  +-------------------------------------------------------------------+
  |        LMP (Link Manager Protocol — link setup & security)        |
  +-------------------------------------------------------------------+
  |        Baseband Layer (Link Controller, packet framing & timing)  |
  +-------------------------------------------------------------------+
  |        Radio Layer (2.4 GHz ISM Band, 79 channels, 1600 hops/s)   |
  +-------------------------------------------------------------------+

3. Wi-Fi (IEEE 802.11)

Wi-Fi is a Wireless Local Area Network (WLAN) technology governed by the IEEE 802.11 family of standards operating in the UHF and SHF ISM bands using CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) (pages="notes").

Comparison of IEEE 802.11 Wi-Fi Standards
StandardFrequency BandModulation / MultiplexingMaximum Data Rate
IEEE 802.11aOFDM
IEEE 802.11bDSSS
IEEE 802.11gOFDM
IEEE 802.11nMIMO-OFDM (and higher)

IEEE 802.11 MAC Frame Structure

IEEE 802.11 MAC Frame FormatText
  +---------------+-------------+----------+----------+----------+---------+----------+------+---------+
  | Frame Control | Duration/ID |  Addr 1  |  Addr 2  |  Addr 3  | Seq Ctl |  Addr 4  | Data |   CRC   |
  |   (2 Bytes)   |  (2 Bytes)  | (6 Bytes)| (6 Bytes)| (6 Bytes)|(2 Bytes)| (6 Bytes)| (Var)| (4 Bytes|
  +---------------+-------------+----------+----------+----------+---------+----------+------+---------+
         |
         +--> [Version|Type(00=Mgmt,01=Ctrl,10=Data)|Subtype|To DS|From DS|More Frag|Retry|Pwr Mgmt|More Data|WEP|Order]

Each field in the IEEE 802.11 frame serves a dedicated link-layer function (pages="notes"):

IEEE 802.11 WLAN Architecture and Services


4. NFC (Near Field Communication)

Near Field Communication (NFC) is a very-short-range wireless technology ( nominal, up to maximum) based on magnetic inductive coupling between two loop antennas operating at with data rates of , , or (pages="notes").

NFC Protocol StackText
  +-------------------------------------------------------------------+
  | Application Layer (Wallet App, Smart Poster, Instrument Config)   |
  +-------------------------------------------------------------------+
  | NDEF (NFC Data Exchange Format — URLs, text, MIME records)        |
  +-------------------------------------------------------------------+
  | LLCP (Logical Link Control) / SNEP (Simple NDEF Exch.) / RTD      |
  +-------------------------------------------------------------------+
  | ISO/IEC 14443 & ISO/IEC 18092 Communication Interface             |
  +-------------------------------------------------------------------+
  | Physical Layer (13.56 MHz Inductive RF Modulation, 106-424 kbps)  |
  +-------------------------------------------------------------------+

5. Zigbee (IEEE 802.15.4)

Zigbee is an open, low-power, low-data-rate WPAN protocol built on the IEEE 802.15.4 PHY and MAC layers, designed for battery-operated sensor and control networks over a range of (pages="notes").

Zigbee Protocol StackText
  +-------------------------------------------------------------------+
  | Application Framework (Key-Value Pair & Generic Message Services) |
  +-------------------------------------------------------------------+
  | Application Support Sub-Layer (APS, ZDO, ZAO & Service Matching)  |
  +-------------------------------------------------------------------+
  | Network (NWK) Layer (Star/Mesh Routing, Device Join/Leave)        |
  +-------------------------------------------------------------------+
  | IEEE 802.15.4 MAC Layer (CSMA/CA, Beacon Synchronization)         |
  +-------------------------------------------------------------------+
  | IEEE 802.15.4 PHY Layer (868 MHz / 915 MHz / 2.4 GHz, 27 Ch.)     |
  +-------------------------------------------------------------------+

6. LoRa and LoRaWAN

LoRa (Long Range) is a sub-GHz Low-Power Wide-Area Network (LPWAN) physical-layer wireless technology using Chirp Spread Spectrum (CSS) modulation over wideband channels (pages="notes").

Summary Comparison of Wireless Instrumentation Technologies
TechnologyIEEE / StandardFrequency BandData RateTypical RangeTopology
BluetoothIEEE 802.15.1 (up to )Piconet / Scatternet
Wi-FiIEEE 802.11a/b/g/n, Star (BSS / ESS) or Ad-hoc
NFCISO 14443 / 18092 ()Point-to-point inductive
ZigbeeIEEE 802.15.4, Star, Tree, Mesh
LoRa / LoRaWANLoRa AllianceStar-of-stars

5.5 Thermal Management: Heat Dissipation Technique, Heat Sink

Power supplies, linear voltage regulators, power amplifiers, motor drivers, and high-speed processors inside an instrument convert electrical power into heat (pages="added"). Without effective thermal management, the internal semiconductor junction temperature () rises above its safe rating (, typically for silicon), causing calibration drift, accelerated component failure, or permanent thermal breakdown.

Heat Dissipation Techniques

Heat generated inside an electronic instrument is transferred to the surrounding environment through three physical mechanisms (pages="added"):

Definition

Three Modes of Heat Dissipation in Instrumentation

  1. Conduction: Direct transfer of thermal energy through solid materials from the silicon die to the IC package case, mounting pad, PCB copper plane, and heat sink base:

where is thermal conductivity (), is cross-sectional area, and is thickness.

  1. Convection: Heat transfer from solid surfaces (component packages and heat-sink fins) to a moving fluid (air or liquid coolant):

where is the convection coefficient. Natural (free) convection relies on buoyancy-driven airflow, whereas forced convection uses axial or centrifugal cooling fans to multiply heat removal by .

  1. Radiation: Emission of infrared electromagnetic waves from warm surfaces according to the Stefan–Boltzmann law:

where is surface emissivity (, maximized by black anodized heat-sink coatings) and .

Practical board-level heat dissipation techniques include:

Heat Sink and Thermal Resistance Network

Steady-state heat flow from a semiconductor junction at temperature to ambient air at temperature obeys Thermal Ohm's Law, where temperature difference () is analogous to voltage, dissipated power () is analogous to current, and thermal resistance () is analogous to electrical resistance (pages="added").

Series Thermal Resistance Model of a Device Mounted on a Heat SinkText
     T_J (Junction)         T_C (Case)            T_S (Sink)           T_A (Ambient)
  o------/\/\/\/\------o------/\/\/\/\------o------/\/\/\/\------o
         theta_JC             theta_CS             theta_SA
  |-------------------------> P_D (Watts) ----------------------->|
Theorem

Thermal Resistance Equations for Heat-Sink Design

For a device dissipating power () mounted on a heat sink in ambient temperature ():

where:

To keep the junction temperature at or below the maximum safe operating value , the required heat sink must satisfy:


5.6 Data Acquisition System (Data Loggers, Data Archiving and Storage), Cloud-Based Data Acquisition System

Data Acquisition System (DAS)

Definition

Data Acquisition System (DAS)

A Data Acquisition System (DAS) is an integrated hardware-and-software system that senses physical variables via transducers, conditions the electrical signals, converts them into digital form using an A/D converter, and processes, analyzes, stores, and displays the acquired measurements on a computer.

Block Diagram of a Computer-Based Data Acquisition SystemText
  +----------+    +------------+    +---------------------+    +--------------+    +-------------------+
  | Physical | -> | Transducer | -> | Signal Conditioning | -> | DAQ Hardware | -> | Computer & DAQ    |
  | Process  |    | (Sensor)   |    | (Amp, Filter, S/H)  |    | (MUX + ADC)  |    | Software (Storage)|
  +----------+    +------------+    +---------------------+    +--------------+    +-------------------+

The five core building blocks of a DAS are (pages="notes"):

  1. Sensors and Actuators (Transducers): Convert physical energy into electrical signals (e.g., a microphone converts acoustic pressure into voltage) or vice versa (e.g., a loudspeaker converts electrical energy into sound).
  2. Signal Conditioning Hardware: Amplifies weak sensor voltages, filters out noise, linearizes non-linear curves, and isolates high voltages so signals match the input range of the A/D board.
  3. Data Acquisition Hardware: Performs multiplexing, sample-and-hold, Analog-to-Digital Conversion (ADC), and Digital-to-Analog Conversion (DAC).
  4. Computer: Supplies the CPU, system clock, high-speed bus, RAM, and disk storage.
  5. DAQ Software: Configures sampling rates, channel scan lists, calibration equations, real-time plotting, and file logging.

Data Loggers

A data logger is an automated, self-contained microprocessor-based instrument that periodically scans, measures, and records readings from multiple transducers distributed across a power plant, petrochemical facility, or weather station (pages="notes").

Functional Block Diagram of a Multi-Channel Data LoggerText
  Input Signals                                                                   Output Recorders
  - Pressure       ---\                                                        /--> Strip / Colour Printer
  - Thermocouple   ---> [Input Scanner] -> [Signal Amplifier] -> [   A/D   ] --+--> Magnetic Tape / Disk
  - AC Signals     ---> [(150 ch/sec) ]    [ & Conditioner  ]    [Converter]   \--> Digital Display / PC
  - Relay / Pulses ---/         ^                  ^                  ^
                                |                  |                  |
                        +----------------------------------------------------+
                        |     Microprocessor Programmer & Control Unit       |
                        | (Gain ranging, Cold-junction comp., Alarm limits)  |
                        +----------------------------------------------------+

Functional Stages of a Data Logger (pages="notes")

  1. Input Signals: Accepts millivolt thermocouple outputs, pressure/flow transducer voltages, AC signals, relay contacts, and tachometer pulses.
  2. Input Scanner (Multiplexer): An automatic sequence switch (often using low-noise electromechanical reed switches with shielded twisted pairs for millivolt thermocouple lines) that selects each input channel in turn at rates up to ( in compact loggers). Required characteristics: low closed contact resistance, high open-circuit resistance, low contact potential, negligible contact bounce, and long life.
  3. Signal Amplifier & Conditioner: Amplifies low-level signals up to a full-scale range with high SNR, high CMRR, low DC drift, high input impedance, and wide bandwidth. Performs linear scaling (), thermocouple cold-junction (reference) compensation, and polynomial curve-fitting to linearize non-linear sensors.
  4. A/D Converter: Typically a dual-slope integrating ADC or voltage-to-frequency converter (VFC) chosen for superior normal-mode noise rejection at modest scan speeds.
  5. Recorder: Logs timestamped channel data onto hard drives, flash memory, magnetic tape, or two-color strip printers.
  6. Programmer (Microprocessor Controller): Sets per-channel amplifier gain, linearization factors, and high/low alarm thresholds; initiates A/D conversion; identifies channel number and timestamp; and triggers alarms when limits are exceeded.

Data Archiving, Data Storage, Compression, and RAID

1. Data Archiving vs. Data Backup

AspectData ArchivingData Backup
Primary PurposeMoves older, inactive historical data to separate long-term storage for future reference and regulatory compliance.Creates duplicate copies of active operational data to restore after corruption, accidental deletion, or hardware crash.
Access & IndexingIndexed and searchable with referential integrity maintained so specific historical records can be queried.Optimized for rapid bulk restoration of recent system state.
Source Data StateOriginal inactive records are moved off primary storage to free capacity.Original active data remains on primary operational storage.

2. Physical Storage Hierarchy and Data Compression (pages="notes")

3. RAID (Redundant Array of Independent Disks)

RAID combines multiple physical disk drives into a single logical storage unit to increase throughput via parallel striping and improve fault tolerance via mirroring or parity (pages="notes").

RAID Levels in Instrumentation Data Servers (Disk Size = D, Total Disks = N)
RAID LevelOrganization & RedundancyMin. DisksUsable CapacityFault ToleranceKey Merits, Demerits & Best Use Case
RAID 0Block-level striping; no redundancy drivesMerit: Highest speed, zero capacity overhead. Demerit: Single drive failure destroys all array data. Use: High-speed scratch/video caching.
RAID 1Mirrored disks (every block written twice) drive per pairMerit: Fast reads, simple recovery (direct copy). Demerit: capacity overhead. Use: Critical accounting/alarm logs.
RAID 2 / 3 / 4Bit-level ECC (RAID 2), bit-interleaved parity (RAID 3), dedicated parity disk (RAID 4) driveDedicated parity disk in RAID 4 creates a write bottleneck; largely superseded by RAID 5.
RAID 5Block-level striping with distributed single parity across all drives driveMerit: High read speed, hot-swappable, low parity cost. Demerit: Slow writes due to parity calculation; long rebuild; -drive failure loses data. Use: File and archive servers.
RAID 6Block-level striping with double distributed parity (two independent algorithms) simultaneous drivesMerit: Survives any concurrent disk failures; hot-swappable. Demerit: Slower writes than RAID 5 due to dual parity calculations. Use: Mission-critical enterprise archives.
RAID 10 (1+0)Nested stripe of mirrors (combines RAID 1 mirroring + RAID 0 striping) drive per mirrored pairMerit: Very fast read/write I/O and fast mirror rebuild (no parity math). Demerit: capacity overhead. Use: High-transaction telemetry databases.

Cloud-Based Data Acquisition System

Definition

Cloud-Based Data Acquisition System

A Cloud-Based Data Acquisition System extends traditional local DAQ hardware by streaming conditioned, digitized sensor measurements from edge gateways over IP networks (Wi-Fi, Ethernet, Cellular 4G/5G, or LoRaWAN) to remote cloud servers for elastic storage, real-time visualization, multi-site analytics, and automated alerting.

Four-Tier Architecture of a Cloud-Based Data Acquisition SystemText
  [1. Field Layer]         [2. Edge DAQ Gateway]         [3. Network / Broker]      [4. Cloud Platform]
  Sensors & Actuators ---> Signal Cond. + ADC + MCU ---> Wi-Fi / 4G / LoRaWAN ----> Time-Series DB, Archive,
  (Temp, Press, Flow)      (Local Buffer & Scaling)      (MQTT / HTTPS / CoAP)      Analytics & Web Dashboard

Functional Layers and Operation (pages="added")

  1. Field Sensing & Conditioning Layer: Transducers measure plant variables and feed analog/digital conditioning circuits.
  2. Edge DAQ Node / IoT Gateway: Samples channels via ADCs, timestamps readings, applies local calibration/filtering, maintains a local circular ring buffer (in non-volatile flash/SD card so zero samples are lost during internet dropouts), and encrypts packets via TLS.
  3. Communication & Ingestion Layer: Publishes telemetry using lightweight protocols such as MQTT (publish/subscribe) or HTTPS REST to a cloud message broker.
  4. Cloud Storage, Archiving & Visualization Layer: Stores live streams in a time-series database, automatically migrates older records to cold cloud object archives, runs threshold/ML anomaly detection, and serves interactive dashboards to engineers on any browser or mobile device.

Worked Out Examples

Example 1

1

A microcontroller transmits of logged temperature data to a PC over a UART serial link configured at using framing ( start bit, data bits, no parity bit, and stop bit). Calculate (a) the framing efficiency, (b) the effective payload throughput in bytes/s, and (c) the total time required to transmit the block.

Total bits per UART frame and framing efficiency: In format, each byte requires:

The protocol framing efficiency is:

Effective payload throughput and transmission time: At and , the effective byte transfer rate is:

The time to transmit () is:

Answer:

(a) Framing efficiency = , (b) effective throughput = , (c) total transmission time = .

Example 2

2

A linear voltage regulator inside an industrial data logger dissipates continuously inside an enclosure where the maximum ambient temperature is . The regulator has a maximum allowable junction temperature of , a junction-to-case thermal resistance of , and a junction-to-ambient thermal resistance without a heat sink of . If a thermal pad with is used to mount a heat sink: (a) Verify whether the regulator can operate safely without a heat sink. (b) Find the maximum allowable heat-sink-to-ambient thermal resistance required to keep .

Junction temperature without a heat sink: Using the bare package :

Since , the device will rapidly fail without a heat sink.

Maximum allowable heat-sink thermal resistance : From the series thermal resistance relation :

Answer:

(a) Without a heat sink, would reach (), so a heat sink is mandatory. (b) The heat sink must have .

Example 3

3

A -channel power-station data logger scans every channel at using a -bit (-byte) ADC. (a) Calculate the raw uncompressed data volume generated over (in , where ) and the archived size if lossless compression achieves a compression ratio. (b) The plant archive server contains hard drives of each. Determine the usable storage capacity and maximum number of simultaneous disk failures tolerated under RAID 0, RAID 5, RAID 6, and RAID 10.

Raw -day data volume and lossless-compressed archive size: Aggregate data rate across channels:

Over ():

With lossless compression:

Usable capacity and fault tolerance for drives of :

  • RAID 0 (Striping only): Usable capacity ( drive failures tolerated).
  • RAID 5 (Single distributed parity): Usable capacity ( drive failure tolerated).
  • RAID 6 (Double distributed parity): Usable capacity ( simultaneous drive failures tolerated).
  • RAID 10 (Mirrored stripes): Usable capacity ( drive failure per mirrored pair tolerated, up to drives if in distinct pairs).
Answer:

(a) Raw -day volume = , lossless compressed archive = . (b) Usable capacities: RAID 0 = ( faults), RAID 5 = ( fault), RAID 6 = ( faults), RAID 10 = ( fault per mirror pair).


Exercises

Exercises

Question 1

Explain the UART communication protocol in detail with its frame format and 5-step transmission sequence, and compare UART, I2C, and SPI protocols.

UART architecture, frame format, and 5-step operation:

  • UART is an asynchronous, full-duplex point-to-point serial interface using two cross-connected wires (TX RX and RX TX) at a pre-agreed baud rate (e.g., ).
  • Frame format: Start bit (LOW), Data bits, Parity bit, and Stop bits (HIGH).
  • 5 steps: (1) Tx UART receives parallel data from the CPU bus; (2) Tx UART adds start, parity, and stop bits; (3) Frame is shifted out serially and sampled by Rx UART at the configured baud rate; (4) Rx UART strips start, parity, and stop bits; (5) Rx UART places the reconstructed parallel byte onto the receiving data bus.

Comparison of UART, I2C, and SPI:

  • Wires: UART uses (TX, RX); I2C uses (SDA, SCL); SPI uses (SCLK, MOSI, MISO, CS).
  • Clocking: UART is asynchronous (no shared clock); I2C and SPI are synchronous.
  • Duplex & Topology: UART is full-duplex point-to-point; I2C is half-duplex multi-master/multi-slave (addressed via -bit slave addresses and -bit ACK/NACK); SPI is full-duplex single-master/multi-slave (selected via hardware CS lines) and achieves the highest data throughput.
Answer:

UART transfers framed asynchronous bytes (Start + Data + Parity + Stop) over two cross-coupled wires at a shared baud rate, whereas I2C uses two synchronous wires (SDA, SCL) with -bit addressing in half-duplex, and SPI uses four synchronous wires (SCLK, MOSI, MISO, CS) for high-speed full-duplex master–slave data exchange.

Question 2

Explain a Wireless Sensor Network (WSN) in detail with its node constituents, deployment architecture, 5-layer protocol stack, and four implementation domains.

Node constituents and master–slave deployment architecture:

  • Each WSN node integrates a sensing unit (transducer + ADC), a processing unit (microcontroller + memory), a wireless transceiver, and a power unit (battery/energy harvester).
  • Spatially distributed slave nodes sample environmental parameters and forward packets to a master (sink/gateway) node, which aggregates the data and relays it over the internet/cellular link to a remote server.

5-layer protocol stack and 4 deployment domains:

  • Protocol stack: (1) Physical layer (RF/acoustic modulation), (2) Data Link layer (MAC, framing, error control), (3) Network layer (multi-hop routing), (4) Transport layer (reliability and congestion control), and (5) Application layer (traffic management and user interfaces).
  • Four domains: (1) WMSN (video/audio/scalar surveillance limited by camera FOV, high bandwidth), (2) UWSN (underwater acoustic communication), (3) WUSN (underground soil/mine monitoring), and (4) MSN (mobile wearable/vehicular sensor networks).
Answer:

A WSN deploys autonomous battery-powered sensor nodes in a master–slave hierarchy governed by a 5-layer stack (Physical, Data Link, Network, Transport, Application) across four specialized domains: Multimedia (WMSN), Underwater acoustic (UWSN), Underground (WUSN), and Mobile (MSN).

Question 3

Describe Bluetooth and Wi-Fi in detail, covering Bluetooth topologies and protocol stack as well as the IEEE 802.11 MAC frame structure and WLAN service sets.

Bluetooth (IEEE 802.15.1) topologies and protocol stack:

  • Operates in the ISM band ( nominal range) using Frequency-Hopping Spread Spectrum (FHSS) across channels at .
  • Forms Piconets ( master + up to active slaves + up to parked slaves) and interconnected Scatternets.
  • Protocol stack: Radio Baseband LMP & HCI L2CAP RFCOMM / SDP / TCS OBEX / WAP Application.

Wi-Fi (IEEE 802.11) MAC frame structure and service sets:

  • Operates in and bands using CSMA/CA and OFDM/DSSS (802.11a/b/g/n).
  • MAC Frame fields: Frame Control (: Version, Type, Subtype, To/From DS, More Frag, Retry, Power Mgmt, More Data, WEP, Order) Duration/ID () Address 1–4 ( each) Sequence Control (: -bit sequence + -bit fragment) variable Data payload -bit CRC.
  • Service sets: Infrastructure BSS (with Access Point), Independent BSS (IBSS ad-hoc), and Extended Service Set (ESS linked via Distribution System).
Answer:

Bluetooth (IEEE 802.15.1) forms short-range FHSS piconets/scatternets using the Radio–Baseband–LMP–HCI–L2CAP–RFCOMM/SDP/OBEX stack, whereas Wi-Fi (IEEE 802.11) provides high-speed WLANs across BSS/IBSS/ESS topologies using CSMA/CA and a MAC frame protected by a -bit CRC.

Question 4

Describe NFC, Zigbee, and LoRa in detail with their operating frequencies, ranges, data rates, and protocol stacks.

NFC ( inductive coupling):

  • Operates over at with passive tags and active readers/smartphones in Read/Write, Peer-to-Peer, and Card Emulation modes.
  • Stack: Physical Layer () ISO 14443/18092 LLCP / SNEP / RTD NDEF Application.

Zigbee (IEEE 802.15.4) and LoRa (LoRaWAN):

  • Zigbee: Low-power WPAN () across channels ( at , at , at ) using Coordinator, Router, and End Device nodes in Star/Mesh topologies. Stack: PHY MAC (CSMA/CA) NWK APS/ZDO Application Framework.
  • LoRa / LoRaWAN: Sub-GHz LPWAN () using Chirp Spread Spectrum ( bandwidth) over at in a star-of-stars architecture (End Nodes Gateways Network Server Application Server).
Answer:

NFC provides inductive tap links at (, NDEF/LLCP stack); Zigbee provides mesh WPANs on IEEE 802.15.4 (); and LoRaWAN provides sub-GHz chirp-spread-spectrum LPWAN links ().

Question 5

Explain RAID systems (RAID 0, 1, 5, 6, and 10) in detail with their features, advantages, and disadvantages, and compare lossy vs. lossless data compression and data archiving vs. data backup.

RAID levels (0, 1, 5, 6, 10):

  • RAID 0: Block striping with no redundancy; capacity () and high speed, but a single disk failure destroys all data.
  • RAID 1: Disk mirroring; usable capacity, fast read and simple rebuild, tolerates drive failure per mirrored pair.
  • RAID 5: Block striping with distributed single parity (min drives, usable ); tolerates disk failure, slower writes due to parity calculation.
  • RAID 6: Block striping with dual independent distributed parity (min drives, usable ); tolerates simultaneous disk failures, slower writes than RAID 5.
  • RAID 10 (1+0): Striped mirrors (min drives, usable ); combines fast I/O and rapid mirror rebuild at capacity cost.

Lossy vs. lossless compression and archiving vs. backup:

  • Lossy compression (JPEG, MPEG, MP3) achieves high compression ratios by discarding minor details, whereas lossless compression (ZIP, PNG, TIFF) preserves exact bit-for-bit data via statistical redundancy.
  • Data archiving moves older inactive records to indexed, searchable long-term compliance storage, whereas data backup maintains duplicate copies of active operational data for disaster recovery.
Answer:

RAID 0 maximizes speed with zero fault tolerance; RAID 1 mirrors disks ( capacity); RAID 5 and RAID 6 use single and double distributed parity to survive and disk failures respectively; and RAID 10 stripes across mirrored pairs. Lossless compression preserves exact measurement fidelity (unlike lossy), while archiving retains indexed historical records (unlike operational backups).

Question 6

(a) An optical fiber used for isolated plant telemetry has a core refractive index and a cladding refractive index . Calculate the critical angle (in degrees) required for Total Internal Reflection. (b) A power amplifier transistor inside the telemetry transmitter dissipates at an ambient temperature of . If , , and the heat sink has , calculate the operating junction temperature and state whether it is safe for a silicon rating.

Critical angle of the optical fiber: By Total Internal Reflection at the core–cladding boundary:

Operating junction temperature : Using the series thermal resistance network:

Since , the thermal design operates safely with a margin.

Answer:

(a) Critical angle . (b) Junction temperature (, safe).

Past exam questions for Instrumentation

← Sensor/Actuator interfacing with Atmega328P (Arduino): Analog and…Circuit Design →