UNIT 4: Biomedical Instrumentation and Embedded Systems
1.0 Physiological Fundamentals
1.1 Definition of Physiology and Basic Cell Structure
-
Physiology: Study of the normal functions of living organisms and their parts.
-
Basic Cell Structure:
-
Cell Membrane: Selectively permeable barrier; controls entry/exit of substances.
-
Cytoplasm: Gel-like substance containing organelles (mitochondria, ribosomes).
-
Nucleus: Contains genetic material (DNA); controls cell activities.
-
1.2 Resting Potential and Action Potential
-
Resting Membrane Potential: Voltage across membrane at rest (~ -70 mV for neuron). Established by Na⁺/K⁺ pump and differential ion permeability.
-
Action Potential: Rapid, temporary change in membrane potential during excitation.
- Phases: Depolarization (Na⁺ influx), Repolarization (K⁺ efflux), Hyperpolarization.
-
Nernst Equation: Calculates equilibrium potential for a single ion.
$$E_{ion} = \frac{RT}{zF} \ln\left(\frac{[ion]_{out}}{[ion]_{in}}\right)$$
Where R=gas constant, T=temp, z=ion charge, F=Faraday's constant.
-
[!TIP] Common in exams: Calculate Nernst potential for K⁺ given concentrations.
1.3 Bio-potential Origins
-
ECG (Electrocardiography): Electrical activity of the heart. Results from depolarization/repolarization of cardiac muscle.
-
EEG (Electroencephalography): Electrical activity of the brain. From postsynaptic potentials of cortical neurons.
-
EMG (Electromyography): Electrical activity of skeletal muscles. From motor unit action potentials.
1.4 Cardiovascular and Respiratory Physiology Basics
-
Heart Cycle: Systole (contraction) and Diastole (relaxation). Heart sounds (S1, S2) from valve closures.
-
Lung Function: Tidal volume, vital capacity. Gas exchange (O₂/CO₂) in alveoli.
2.0 Embedded Systems Fundamentals
2.1 Definition & Comparison
-
Embedded System: Specialized computing system performing dedicated tasks within larger system.
-
vs General-Purpose Computing:
-
Embedded: Task-specific, real-time, resource-constrained.
-
General-Purpose: Versatile (PCs, servers), user-programmable, high resources.
-
2.2 Characteristics
-
Real-time Operation: Must meet deadlines (hard/soft real-time).
-
Reliability & Safety: Critical in medical/automotive (fail-safe designs).
-
Power Efficiency: Battery-operated devices require low power.
-
Size/Cost Constraints: Often miniaturized and cost-sensitive.
2.3 Quality Attributes
| Attribute | Description |
|---|---|
| Performance | Execution speed, throughput |
| Cost | Unit cost, development cost |
| Power Consumption | Average, peak, battery life |
| Maintainability | Ease of upgrade/repair |
2.4 Classification Based on Performance
| Class | Complexity | Examples |
|---|---|---|
| Small-scale | 4-bit/8-bit MCU, simple tasks | Thermostat, remote control |
| Medium-scale | 16-bit/32-bit MCU, RTOS | Medical monitor, router |
| High-scale | Application-specific processors | MRI controller, smartphone |
2.5 Design Metrics
-
Time-to-market: Critical for commercial success.
-
Scalability: Ability to handle increased load.
-
Interoperability: Compatibility with other systems.
2.6 Processor Types
| Type | Description | Example |
|---|---|---|
| GPP | General-purpose, flexible | ARM Cortex-M |
| ASP | Optimized for specific application | DSP for audio processing |
| Single-purpose | Hardwired logic, fastest | ASIC for encryption |
2.7 Architecture: Von Neumann vs Harvard
| Feature | Von Neumann | Harvard |
|---|---|---|
| Memory | Single memory for data/instructions | Separate memories |
| Bus | Single bus | Separate buses |
| Speed | Slower (bottleneck) | Faster (parallel access) |
| Example | x86, 8051 | ARM Cortex-M, PIC |
2.8 ISA: RISC vs CISC
| Feature | RISC | CISC |
|---|---|---|
| Instruction Length | Fixed | Variable |
| Instructions | Simple, single-cycle | Complex, multi-cycle |
| Addressing | Load-store architecture | Memory-to-memory |
| Registers | Many (16-32) | Few (8-16) |
| Example | ARM, MIPS | x86, 8051 |
2.9 Advanced Processors
-
ARM: RISC, load-store, Thumb instruction set (16-bit). Dominant in mobile/embedded due to power efficiency.
-
DSP (Digital Signal Processor):
-
Features: MAC (Multiply-Accumulate) unit, zero-overhead looping, barrel shifter.
-
Applications: Audio/video processing, biomedical signal analysis (ECG/EEG filtering).
-
2.10 Interrupts
-
Concept: Event that suspends normal execution, transfers control to ISR.
-
Types:
-
Hardware: External pin (INT0, INT1).
-
Software:
TRAP,RST. -
Exception: Divide-by-zero, invalid opcode.
-
-
Priority & Nesting: Higher priority interrupts can preempt lower. Nesting allows ISR of high-priority to interrupt low-priority ISR.
-
Latency: Time from interrupt request to ISR start. Critical for real-time systems.
3.0 Microcontroller Architectures and Programming
3.1 8051 Microcontroller
3.1.1 Architecture
-
ALU: 8-bit, performs arithmetic/logic.
-
Registers:
-
ACC (A): Accumulator for ALU operations.
-
B: Used for multiplication/division.
-
PSW: Program Status Word (carry, auxiliary carry, overflow flags).
-
-
Memory:
-
RAM: 128 bytes (8051) or 256 bytes (8052). Low 128 bytes directly/indirectly addressable; high 128 (SFRs) only direct.
-
ROM: 4KB (mask ROM/EPROM).
-
3.1.2 Timer/Counters
| Mode | Bits | Description | Application |
|---|---|---|---|
| 0 | 13-bit | THx (8 bits) + TLx (5 bits) | Legacy compatibility |
| 1 | 16-bit | THx + TLx (full 16-bit) | Measurement, precise timing |
| 2 | 8-bit auto-reload | TLx reloads from THx | Baud rate generation, PWM |
| 3 | Split (two 8-bit timers) | Timer0: TL0/TH0; Timer1: stopped | Independent 8-bit timers |
3.1.3 Serial Communication
| Mode | Description | Baud Rate Source |
|---|---|---|
| 0 | Shift register (external) | Fixed (fosc/12) |
| 1 | 8-bit UART | Timer1 overflow or fosc/32/64 |
| 2 | 9-bit UART | fosc/64 or fosc/32 |
| 3 | 9-bit UART | Timer1 overflow or fosc/32 |
Baud Rate Calculation (Mode 1/3):
$$\text{Baud Rate} = \frac{2^{SMOD}}{32} \times \frac{\text{Timer1 Overflow Rate}}{1}$$
Where Timer1 Overflow Rate = $$\displaystyle \frac{f_{osc}}{12 \times (256 - TH1)} $$ for 8-bit auto-reload.
Example C Code (Transmit "HELLO" in Mode 1):
#include <reg51.h>
void serial_init() {
SCON = 0x50; // Mode 1, 8-bit UART, enable receiver
TMOD &= 0x0F; // Clear Timer1 bits
TMOD |= 0x20; // Timer1, Mode 2 (auto-reload)
TH1 = 0xFD; // 9600 baud @ 11.0592 MHz
TR1 = 1; // Start Timer1
TI = 1; // Ready to transmit
}
void serial_tx(char c) {
SBUF = c;
while(!TI); // Wait for transmission complete
TI = 0;
}
void main() {
serial_init();
serial_tx('H');
serial_tx('E');
serial_tx('L');
serial_tx('L');
serial_tx('O');
while(1);
}
3.1.4 Interfacing
-
ADC (0809): 8-channel, 8-bit. Connect
START,ALE,EOC,OEto 8051 ports. UseMOVXto read data. -
DAC (0808): 8-bit current output. Convert to voltage with op-amp. Write data via
MOVX. -
Stepper Motor: Use port pins to drive ULN2003 driver. Sequence: 4-step (half-step) or 8-step.
-
LED/LCD: LCD in 4-bit/8-bit mode; use
E,RS,RWpins.
3.1.5 Interrupt Structure
| Source | Vector Address | Enable Bit (IE) |
|---|---|---|
| External INT0 | 0003H | EX0 |
| Timer0 Overflow | 000BH | ET0 |
| External INT1 | 0013H | EX1 |
| Timer1 Overflow | 001BH | ET1 |
| Serial | 0023H | ES |
IE Register (Interrupt Enable):
-
EA: Global enable (1=enable all).
-
EX0/EX1: External INT0/INT1 enable.
-
ET0/ET1: Timer0/1 enable.
-
ES: Serial interrupt enable.
3.2 8096 Microcontroller
3.2.1 Architecture & Superiority over 8051
-
16-bit CPU: 16-bit data bus, 16-bit ALU.
-
Integrated Peripherals:
- 10-bit ADC (8 channels), PWM, HSI (High-Speed Input), HSO (High-Speed Output), serial port.
-
Superiority:
-
Higher performance (16-bit vs 8-bit).
-
More integrated peripherals (ADC, PWM, timers).
-
Better for real-time control (motor drives, data acquisition).
-
3.2.2 I/O Ports
-
Ports 0-4: 8-bit each. Can be configured as:
-
Push-pull: Active high/low drive.
-
Open-collector: Wired-AND, needs pull-up.
-
-
Alternate Functions: Port 0/2 for address/data bus (external memory); Port 4 for control signals.
3.2.3 Addressing Modes (with Examples)
| Mode | Syntax | Example | Description |
|---|---|---|---|
| Immediate | LD R1, #05H |
Load 05H into R1 | Operand in instruction |
| Direct | LD R1, 0200H |
Load from memory 0200H | 16-bit address |
| Indirect | LD R1, @R2 |
Load from address in R2 | Register indirect |
| Register | ADD R1, R2 |
R1 = R1 + R2 | Register to register |
| Register Indirect | LD R1, @R2[I] |
Indexed addressing | R2 + index register |
| Immediate to Reg | LD R1, #05H |
Same as immediate |
3.2.4 Instruction Set (Examples)
-
Data Transfer:
MOV,LD,ST. -
Arithmetic:
ADD,SUB,MUL(unsigned),DIV(unsigned). -
Logical:
AND,OR,XOR,NOT. -
Control:
JMP,CALL,RET,DJNZ(decrement and jump if not zero).
3.2.5 Control/Status Registers
-
PSW: Program Status Word (carry, zero, overflow, sign flags).
-
SP: Stack Pointer (initialized to 06EFH on reset).
-
Timer Control Registers:
T1CON,T2CONfor mode, gating, etc.
3.2.6 Memory Organization
-
64KB Linear: 0000H–FFFFH.
-
Mapping:
-
Internal RAM: 0000H–00FFH (256 bytes).
-
Register Space: 0000H–001FH (control registers).
-
External Memory: >0100H (if used).
-
-
Memory-Mapped I/O: Peripherals (ADC, PWM) mapped to specific addresses (e.g., ADC at 1FF8H–1FFFH).
3.3 Other Microcontrollers
-
PIC24/dsPIC33:
-
16-bit data path, 24-bit instruction word.
-
Peripherals: ADC, DAC, PWM, UART, SPI, I²C.
-
dsPIC33: Adds DSP engine (MAC, barrel shifter) for motor control, power conversion.
-
3.4 Peripherals and Interface Controllers
3.4.1 Watchdog Timer
-
Operation: Independent timer; must be periodically "kicked" (reset). On timeout, resets system.
-
Timing Diagram:
Kick ---Wait--- Kick ---Wait--- (Timeout) ---> Reset -
Reliability: Recovers from software hangs (infinite loops).
3.4.2 Keyboard Controller (8279)
-
Scanning:
-
2-key lockout: Only one key per row/column detected.
-
N-key rollover: Multiple keys detected simultaneously.
-
-
Debouncing: Hardware/software filter (typically 10-20 ms).
-
Modes:
-
Interrupt: Key press generates interrupt.
-
Polled: CPU reads FIFO.
-
-
Display Interface: Drives 7-segment/LED displays (scan multiplexing).
3.4.3 Interrupt Controller (8259A)
-
Priority Resolution: Fixed (IR0 highest) or rotating (fair share).
-
Cascading: Multiple 8259A chips to expand beyond 8 interrupts.
-
Initialization: Write ICW (Initialization Command Words) to set edge/level, vector address.
3.4.4 RS-232 Serial Communication
-
Signals:
-
TXD (Transmit Data), RXD (Receive Data).
-
Handshaking: RTS (Request to Send), CTS (Clear to Send), DTR (Data Terminal Ready), DSR (Data Set Ready).
-
-
Voltage Levels: ±3 to ±15V (logic 1 = negative, 0 = positive).
-
Handshaking:
-
Hardware: RTS/CTS for flow control.
-
Software: XON/XOFF characters.
-
3.4.5 Real-Time Clock (RTC) Chips (DS1307)
-
Interfacing: I²C bus (SDA, SCL).
-
Functions: Time (HH:MM:SS), date (DD/MM/YY), alarm, square wave output.
-
Timekeeping: Backup battery (3V) maintains time when main power off.
4.0 Power Electronics for Biomedical Devices
4.1 Power Semiconductor Devices
4.1.1 Power Diodes
| Type | Recovery Time | Vf (Forward Drop) | Application |
|---|---|---|---|
| Standard | µs | ~1V | Low-frequency rectifiers |
| Fast Recovery | µs (shorter) | ~1V | Switch-mode PSUs, inverters |
| Schottky | ns | 0.2–0.5V | Low-voltage, high-frequency |
4.1.2 Power MOSFET
-
Structure: n-channel enhancement (most common).
-
V-I Characteristic:
-
Cutoff: VGS < Vth.
-
Ohmic: VGS > Vth, VDS small (linear region).
-
Saturation: VGS > Vth, VDS large (constant current).
-
-
Switching:
-
Turn-on: Gate charge (Qg) must be supplied; switching loss = ∫ VDS·IDS dt.
-
Turn-off: Remove gate drive; Miller plateau effect.
-
-
Applications: Switch-mode power supplies (SMPS), motor drives (low voltage).
4.1.3 IGBT (Insulated-Gate Bipolar Transistor)
-
Structure: MOSFET gate + BJT output (PNP).
-
V-I Characteristic: Similar to BJT but voltage-controlled.
-
Advantages: High voltage (600V–6.5kV), low conduction loss (vs MOSFET), fast switching (vs BJT).
-
Applications: Inverters, motor drives (medium-high power).
4.1.4 Thyristor (SCR)
-
Structure: Four-layer PNPN, three terminals (Anode, Cathode, Gate).
-
Latching: Once on, stays on until current < Holding current (IH).
-
Turning On:
-
Gate Trigger (positive current to gate).
-
dv/dt (rate of voltage rise) – false triggering.
-
Thermal (high temperature).
-
-
Static Characteristics: Forward blocking (off), forward conducting (on), reverse blocking.
-
Dynamic:
-
Turn-on time (tON): Delay + rise.
-
Turn-off time (tOFF): Reverse recovery + gate recovery.
-
4.1.5 DIAC and TRIAC
-
DIAC: Bidirectional trigger diode. Conducts when |V| > Breakover voltage (VBO). Used to trigger TRIAC.
-
TRIAC: Bidirectional thyristor. Controls AC power (light dimmers, motor speed).
4.2 AC-DC Converters (Rectifiers)
4.2.1 Single-Phase Half-Wave
-
R Load:
-
Vdc = Vm/π, Idc = Vm/(πR).
-
PIV = Vm.
-
-
RL Load (Continuous Conduction):
-
Vdc = (Vm/π)(1+cosα) for α > 0? Actually for RL with inductance large, Vdc = Vm/π (α=0) or 0 for α>0? Wait, need correct formula.
-
For RL load with freewheeling diode: Vdc = Vm/π (continuous conduction).
-
Without diode: Vdc = (Vm/π)(1+cosα) for α ≤ 180°? Actually for RL load, conduction continues beyond 180° if inductance large. Formula depends on load angle β.
-
[!TIP] Exam Focus: Distinguish R vs RL load waveforms; PIV calculation.
4.2.2 Single-Phase Full-Wave
-
Uncontrolled (Bridge): Vdc = 2Vm/π.
-
Half-Controlled (Semi-converter): Two SCRs, two diodes. Vdc = (2Vm/π)cosα.
-
Full-Controlled (Full-converter): Four SCRs. Vdc = (2Vm/π)cosα (α ≤ 90° for output positive; α > 90° output negative).
4.2.3 Three-Phase Full-Wave Fully Controlled Bridge
- Average Output Voltage:
$$V_{dc} = \frac{3\sqrt{6}}{\pi} V_{L} \cos\alpha = 1.35 V_{L} \cos\alpha$$
Where VL = line voltage RMS.
- Waveform: 6 pulses per cycle.
4.2.4 Effect of Source Inductance
-
Overlap Angle (µ): Due to source inductance, commutation takes time; two SCRs conduct simultaneously.
-
Output Voltage Reduction:
$$V_{dc} = \frac{3\sqrt{6}}{\pi} V_{L} \cos(\alpha + \mu)$$
- Waveform Distortion: Commutation notches.
4.2.5 RMS and Average Output Voltage Formulas
-
Single-phase half-wave (R load): Vrms = Vm/2, Vdc = Vm/π.
-
Single-phase full-wave (bridge): Vrms = Vm, Vdc = 2Vm/π.
-
Three-phase bridge: Vrms = √3 VL, Vdc = 1.35 VL cosα.
4.3 DC-AC Converters (Inverters)
4.3.1 Single-Phase Bridge Inverters
-
180° Conduction: Each switch conducts 180°.
-
Resistive Load: Output voltage = ±Vs; current in phase.
-
Inductive Load: Current continuous; voltage = ±Vs, but current lags.
-
-
120° Conduction: Each switch conducts 120°. Less switching loss but more harmonics.
4.3.2 Three-Phase Bridge Inverters
-
120° Conduction: Each switch conducts 120°; six switches.
-
Output Voltages:
-
Line Voltage (Vab): 6-step waveform, amplitude = √3 Vs.
-
Phase Voltage (Van): 3-step waveform, amplitude = Vs.
-
-
Fourier Series: Contains 5th, 7th, 11th, 13th harmonics (odd, not multiples of 3).
4.3.3 Pulse Width Modulation (PWM)
-
Sinusoidal PWM: Compare sinusoidal reference (fr) with triangular carrier (fc). Switching frequency = fc.
-
Harmonic Spectrum: Fundamental at fr; sidebands at fc ± n·fr; high-frequency harmonics attenuated by load filter.
-
Switching Frequency Impact: Higher fc → smaller filter, but higher switching loss.
4.3.4 Resonant Inverters
-
Series Resonant: LC in series with load. At resonance, current high, voltage across load = I·R. Zero Voltage Switching (ZVS) possible.
-
Parallel Resonant: LC parallel with load. At resonance, voltage high, current limited by load.
4.3.5 Harmonic Reduction Techniques
-
Multi-level Inverters: More voltage levels → staircase waveform → lower THD.
-
Selective Harmonic Elimination (SHE): Choose switching angles to eliminate specific harmonics (e.g., 5th, 7th).
-
Filters: LC filters to attenuate high-frequency harmonics.
4.4 DC-DC Converters (Choppers)
4.4.1 Step-Down (Buck) Chopper
-
Circuit: Switch (MOSFET), diode, inductor, capacitor.
-
Operation:
-
Switch ON: Vin → L → load; L stores energy.
-
Switch OFF: L releases energy via diode to load.
-
-
Output Voltage:
$$V_o = D \cdot V_{in}$$
where D = duty cycle (TON/T).
- Continuous Conduction Mode (CCM): Inductor current never zero.
4.4.2 Step-Up (Boost) Chopper
-
Circuit: Switch, inductor, diode, capacitor.
-
Operation:
-
Switch ON: Vin → L → switch; L stores energy.
-
Switch OFF: L + Vin → diode → load; L releases energy.
-
-
Output Voltage:
$$V_o = \frac{V_{in}}{1-D}$$
- D < 1: Vo > Vin.
4.4.3 Buck-Boost Converter
-
Circuit: Switch, inductor, diode, capacitor (output inverted).
-
Output Voltage:
$$V_o = -\frac{D}{1-D} V_{in}$$
- Applications: Negative supply (e.g., op-amp rails).
4.5 AC Voltage Controllers and Cycloconverters
4.5.1 On-Off Control (Integral Cycle Control)
-
Method: Switch on/off for integer number of cycles.
-
Output RMS Voltage:
$$V_{o,rms} = V_s \sqrt{\frac{n}{m}}$$
Where n = on cycles, m = total cycles (on+off).
- Applications: Heater control, lighting.
4.5.2 Phase Control
-
Method: Delay firing angle α each half-cycle.
-
RL Load: Output voltage depends on load angle φ (displacement factor).
$$V_{o,rms} = V_s \sqrt{\frac{1}{2\pi} \int_{\alpha}^{\pi+\alpha} \sin^2(\omega t) d\omega t} \text{ (simplified)}$$
Actually for RL load with phase control, Vrms = Vs * [1/2π * (π - α + sinαcosα/2?)]. Better to state: Vrms decreases as α increases; for RL load, current lags voltage, so conduction extends beyond 180°.
4.5.3 Cycloconverters
-
Single-Phase to Single-Phase:
-
Mid-point: Two antiparallel SCRs per leg, center-tapped transformer.
-
Bridge: Four SCRs per leg, no center tap.
-
-
Three-Phase to Single-Phase: Often used for low-speed high-torque motor drives (cement mills, ship propulsion).
-
Operation: Cyclically connect input phases to output; output frequency f_o < f_in (typically 1/3 to 1/2).
4.5.4 Transformer Tap Changers
-
On-Load Tap Changer (OLTC): Switches taps under load using diverter switches and resistors/inductors to limit circulating current during transition.
-
Application: Voltage regulation in power distribution transformers.
4.6 Switched-Mode Power Supplies (SMPS)
4.6.1 Principle
-
High-Frequency Switching (20 kHz–1 MHz) → smaller transformer/inductors.
-
Advantages over Linear:
-
Efficiency: 70–90% vs 30–50%.
-
Size/Weight: Smaller magnetics.
-
No heat sink required for same power.
-
4.6.2 Topologies Comparison
| Topology | Isolation | Energy Storage | Typical Use |
|---|---|---|---|
| Fly-back | Yes | Transformer (during ON) | Low power (<150W) |
| Forward | Yes | Transformer (during ON) | Medium power |
| Buck | No | Inductor | Step-down, non-isolated |
| Boost | No | Inductor | Step-up, non-isolated |
| Buck-Boost | No | Inductor | Inverting output |
4.6.3 Fly-back Converter
-
Switch ON: Vin → primary winding; energy stored in core (magnetizing current ramps up). Output from output diode (reverse-biased).
-
Switch OFF: Core flux collapses; primary voltage reverses → secondary diode forward-biased; energy released to load.
-
Waveforms:
-
Primary current: Ramp up during ON, zero during OFF.
-
Secondary voltage: Positive during OFF, zero during ON.
-
Switch voltage: Vin + (Np/Ns)Vo during OFF.
-
4.7 Series and Parallel Operation of Thyristors
4.7.1 Series Operation
-
Challenge: Unequal voltage sharing due to different leakage currents (static) and different turn-on/off times (dynamic).
-
Solutions:
-
Static Equalization: Connect resistor across each SCR (shunts current).
-
Dynamic Equalization: RC snubber across each SCR (equalizes dv/dt, voltage during switching).
-
4.7.2 Parallel Operation
-
Challenge: Unequal current sharing due to different on-state voltages.
-
Solution: Connect small inductor (ballast) in series with each SCR (forces current sharing).
4.7.3 Derating Factor and String Efficiency
-
Derating Factor: $$\displaystyle 1 - \frac{\text{Actual Rating}}{\text{Required Rating}} $$ (e.g., 14% means use 86% of rating).
-
String Efficiency: $$\displaystyle \eta = \frac{\text{Total device rating}}{\text{String rating}} \times 100\% $$.
-
Example: For 7.5kV, 1kA with 500V/75A SCRs, derating 14% → usable rating per SCR = 500×0.86 = 430V, 75×0.86 = 64.5A.
-
Series string: Number for voltage = 7500/430 ≈ 18 SCRs.
-
Parallel string: Number for current = 1000/64.5 ≈ 16 SCRs.
-
Total SCRs = 18×16 = 288.
-
String Efficiency = (18×430)/(7500) × 100% = 102.8%? Actually string efficiency = (sum of individual ratings)/(string rating). For series: (18×500)/7500 = 120%? That seems off. Usually string efficiency ≤ 100% due to derating. Let's recalc: With derating, each SCR rated 430V, so 18×430=7740V > 7500V, so efficiency = 7740/7500 = 103.2%? That's >100% which indicates overdesign. Typically, we calculate based on actual ratings: String efficiency = (n × V_rated) / V_string. If V_string = 7500V, n=18, V_rated=500V → 18×500=9000V → efficiency = 9000/7500=120%. But with derating, we use V_usable=430V, so efficiency = 18×430/7500=103.2%. Still >100%? Actually derating means we use only part of rating, so efficiency based on usable rating should be ≤100%. Let's set: Required voltage 7500V, each SCR usable 430V → n = ceil(7500/430)=18 → total usable = 18×430=7740V → efficiency = 7740/7500=103.2% >100% means we have margin. But string efficiency is usually defined as (sum of individual ratings)/(rating of string). If string rating is 7500V, and each SCR rated 500V, then sum=9000V → efficiency=120%. That's common because we overrate. For exam, show calculation: n_series = ceil(V_req/(V_rated × (1 - derating))). Then string efficiency = (n_series × V_rated) / V_req × 100%.
-
5.0 Biomedical Sensors and Transducers
5.1 Transducer Fundamentals
-
Definition: Device that converts one form of energy to another (e.g., physiological → electrical).
-
Classification:
-
Active: Generate own signal (piezoelectric, thermocouple).
-
Passive: Need external power (strain gauge, RTD).
-
-
Characteristics:
-
Sensitivity: Output change per input change.
-
Linearity: Max deviation from straight line.
-
Hysteresis: Difference in output for increasing vs decreasing input.
-
Frequency Response: Bandwidth.
-
Noise: Unwanted output.
-
Stability: Drift over time/temperature.
-
-
Selection Criteria: Biocompatibility, size, stability, calibration, cost.
5.2 Electrodes and Bio-potential Transducers
5.2.1 Electrode Theory
-
Half-Cell Potential: Voltage at electrode-electrolyte interface due to ion exchange.
-
Polarization: Build-up of charge layer; increases impedance.
-
Charge Transfer: Faradaic (redox reaction) or capacitive (double layer).
-
Electrode-Electrolyte Impedance: Complex; consists of double-layer capacitance and faradaic resistance.
5.2.2 Electrode Types
| Type | Material | Application | Features |
|---|---|---|---|
| Surface (Ag/AgCl) | Silver/Silver Chloride | ECG, EEG | Low polarization, stable |
| Needle | Stainless steel | EMG, deep tissue | Invasive, low impedance |
| Microelectrode | Tungsten, glass pipette | Single-cell recording | Very small tip (µm) |
| Floating | Ag/AgCl | ECG (ambulatory) | Low motion artifact |
5.2.3 Skin Preparation
-
Clean with alcohol to remove oils.
-
Abrade lightly to reduce stratum corneum impedance.
-
Use electrolyte gel (KCl) to improve contact and reduce motion artifacts.
5.3 Cardiovascular Transducers
5.3.1 Blood Pressure Transducers
-
Auscultatory: Stethoscope + sphygmomanometer; Korotkoff sounds.
-
Oscillometric: Cuff pressure oscillations; algorithm determines systolic/diastolic.
-
Invasive:
-
Catheter-tip: Strain gauge or capacitive sensor at tip.
-
Fluid-filled: External transducer via fluid column.
-
5.3.2 Heart Sound Transducers
-
Microphones: Air-coupled; placed on chest.
-
Piezoelectric: Contact transducer; sensitive to vibrations (S1-S4).
5.3.3 Pulse Oximetry Sensors
-
Principle: Beer-Lambert Law: $$\displaystyle A = \varepsilon c l $$.
-
Wavelengths:
-
660 nm: Hb absorbs more.
-
940 nm: HbO₂ absorbs more.
-
-
Sensor: LED pair (660, 940) and photodiode.
-
PPG Signal: AC component (pulsatile blood) + DC component (venous/arterial/tissue).
-
SpO₂ Calculation:
$$SpO_2 = \frac{AC_{660}/DC_{660}}{AC_{940}/DC_{940}} \text{ (ratio-to-ratio method)}$$
Calibrated empirically.
5.3.4 Heart Rate Measurement
-
ECG R-wave Detection: Thresholding after bandpass filtering.
-
Pulse Wave Transit Time: Time between R-wave and pulse arrival at periphery.
-
Normal Range: 60–100 bpm (adults at rest).
5.4 Respiratory Transducers
5.4.1 Spirometers
-
Volume Measurement:
-
Bellows: Mechanical displacement.
-
Wedge: Water-sealed; volume change displaces water.
-
-
Flow Measurement:
-
Pneumotachograph: Fixed resistance; ΔP ∝ flow (measured by differential pressure transducer).
-
Hot-wire: Wire heated by current; flow cools wire → resistance change.
-
5.4.2 Photo Spirometer
- Optical Sensing: Vane/fan interrupts light beam; pulse frequency ∝ flow rate.
5.5 Blood Gas Transducers
5.5.1 Partial Pressure of Oxygen (PO₂)
-
Clark Electrode (Polarographic):
-
Structure: Cathode (Pt), anode (Ag/AgCl), electrolyte (KCl), O₂-permeable membrane (Teflon).
-
Reaction: $$\displaystyle O_2 + 4e^- + 4H^+ \rightarrow 2H_2O $$.
-
Output: Current ∝ PO₂.
-
Requires: Polarizing voltage (~0.6V).
-
5.5.2 pH and PCO₂
-
pH: Glass electrode (Na⁺-sensitive glass membrane); potential ∝ pH (Nernst equation: 59 mV/pH at 25°C).
-
PCO₂ (Severinghaus Electrode):
-
Structure: pH electrode with CO₂-permeable membrane (Teflon) and bicarbonate electrolyte.
-
Principle: CO₂ diffuses in → forms H₂CO₃ → pH changes → pH electrode measures.
-
Output: Voltage ∝ log(PCO₂).
-
5.6 Temperature Transducers
| Type | Principle | Characteristics | Biomedical Use |
|---|---|---|---|
| Thermocouple | Seebeck effect (two metals) | Wide range (-200 to 2000°C), needs cold-junction compensation | Surgical tools, incubators |
| RTD (Pt100) | Resistance increase with T | Linear, stable, accurate | Core temperature, blood warmer |
| Thermistor (NTC) | Resistance decrease with T | High sensitivity, non-linear | Fever patches, hypothermia treatment |
5.7 Imaging Transducers
5.7.1 MRI
-
Gradient Coils: X, Y, Z gradients for spatial encoding.
-
RF Coils: Transmit (B₁ field) and receive NMR signal.
-
Safety: Ferromagnetic objects become projectiles; SAR (Specific Absorption Rate) limits RF heating.
5.7.2 Endoscopy
-
Fiber-optic: Coherent bundle transmits image; light guide illuminates.
-
Video Endoscope: CCD/CMOS at tip; electronic signal transmission.
5.8 Piezoelectric Transducers
-
Direct Effect: Stress → charge (used in sensors: pressure, acceleration, ultrasound receiver).
-
Converse Effect: Voltage → strain (used in actuators: ultrasound transmitter, inkjet).
-
Material: PZT (Lead Zirconate Titanate).
-
Applications:
-
Ultrasound imaging/Doppler.
-
Pressure sensors (catheter-tip).
-
Accelerometers (vibration monitoring).
-
5.9 Biometric Transducers
5.9.1 Fingerprint
-
Optical: TIR (Total Internal Reflection); ridges contact glass → dark; valleys → bright.
-
Capacitive: Array of capacitors; ridge capacitance higher.
-
Ultrasonic: High-frequency sound; measures depth.
5.9.2 Iris Recognition
-
Infrared Illumination: Reduces specular reflection.
-
Pattern Recognition: Daugman's algorithm: phase code of Gabor wavelet transform.
5.9.3 Face Recognition
-
2D Cameras: Visible light; challenges with lighting/pose.
-
3D Cameras: Structured light or time-of-flight; depth map.
-
Infrared: Liveness detection (pupil dilation, blood flow).
6.0 Biomedical Instrumentation Systems
6.1 Electrocardiogram (ECG) Systems
6.1.1 ECG Leads
-
Standard 12-Lead:
-
Limb Leads (I, II, III, aVR, aVL, aVF): From electrodes on arms/legs.
-
Precordial Leads (V1–V6): Chest electrodes.
-
-
Placement:
-
V1: 4th intercostal, right sternal border.
-
V5: 5th intercostal, anterior axillary line.
-
6.1.2 ECG Signal Characteristics
-
Waves:
-
P: Atrial depolarization (0.08–0.11 s, 0.25 mV).
-
QRS: Ventricular depolarization (0.06–0.10 s, 1–2 mV).
-
T: Ventricular repolarization (0.16–0.24 s, 0.1–0.5 mV).
-
-
Frequency Range: 0.05–100 Hz (diagnostic); 0.5–40 Hz (monitoring).
-
Amplitude: 1–5 mV (QRS).
6.1.3 Amplifier Requirements
-
High CMRR (>100 dB): Rejects 50/60 Hz power line interference.
-
High Input Impedance (>10 MΩ): Prevents loading the body.
-
Protection Circuits:
-
Defibrillator Proof: Withstand high voltage (5–10 kV) pulses.
-
Current Limiting: Series resistors (≥10 kΩ) and clamping diodes.
-
6.1.4 Artifacts and Noise Reduction
-
Power Line Interference: Notch filter (50/60 Hz).
-
Motion Artifacts: High-pass filter (0.05 Hz) to reduce baseline wander; proper electrode/skin prep.
-
Baseline Wander: High-pass filter (0.05 Hz) removes respiration-induced drift.
6.1.5 Heart Rate and Rhythm Analysis
-
R-wave Detection: Bandpass filter (5–15 Hz), then threshold or derivative-based.
-
Arrhythmia Detection:
-
PVC (Premature Ventricular Contraction): Wide QRS, no preceding P-wave.
-
AFib (Atrial Fibrillation): Irregularly irregular RR intervals, no P-waves.
-
6.2 Electroencephalogram (EEG) Systems
6.2.1 EEG Frequency Bands
| Band | Frequency | State | Clinical Significance |
|---|---|---|---|
| Delta | 0.5–4 Hz | Deep sleep, coma | Brain injury, tumors |
| Theta | 4–8 Hz | Drowsiness, meditation | Emotional stress |
| Alpha | 8–13 Hz | Relaxed, eyes closed | Normal adult |
| Beta | 13–30 Hz | Active thinking, anxiety | Sedatives increase |
| Gamma | >30 Hz | Cognitive processing | Perception, memory |
6.2.2 Electrode Placement: International 10-20 System
-
Based on distances from nasion (N) to inion (I) and preauricular points.
-
Key positions: Fp1/Fp2 (frontal pole), C3/C4 (central), O1/O2 (occipital).
6.2.3 Applications
-
Epilepsy: Detect spike-and-wave discharges.
-
Sleep Studies: Stage scoring (delta in N3, REM).
-
Brain-Computer Interfaces (BCI): Mu rhythm (8–12 Hz) control.
6.3 Blood Pressure Monitoring Systems
6.3.1 Non-invasive Methods
-
Auscultatory: Korotkoff sounds (Phase I = systolic, Phase V = diastolic).
-
Oscillometric:
-
Cuff inflates > systolic.
-
Deflates slowly; oscillations peak at mean arterial pressure (MAP).
-
Algorithm estimates systolic/diastolic from oscillation envelope.
-
6.3.2 Invasive Methods
-
Arterial Catheterization:
-
Strain Gauge: Wheatstone bridge; pressure → strain → resistance.
-
Capacitive: Pressure changes capacitance.
-
Fluid-filled: External transducer; damping affects frequency response.
-
6.3.3 Automated Monitors
-
Microprocessor-based: Controls pump, measures oscillations, calculates BP.
-
Cuff Sizes: Important for accuracy (adult, pediatric, neonatal).
6.4 Respiratory Monitoring Systems
6.4.1 Spirometry
-
Measurements:
-
Tidal Volume (TV): Normal breath volume.
-
Vital Capacity (VC): Max exhale after max inhale.
-
-
Flow-Volume Loop: X-axis = flow, Y-axis = volume; shape indicates obstruction/restriction.
6.4.2 Photo Spirometer
- Optical Flow: Vane interrupts light beam; frequency ∝ flow rate.
6.4.3 Capnography (Optional)
-
Infrared Absorption: CO₂ absorbs IR at 4.3 µm.
-
Waveform: Capnogram (Phase I–IV); end-tidal CO₂ (EtCO₂) ≈ arterial PCO₂.
6.5 Blood Gas Analysis Systems
6.5.1 PO₂ Measurement
-
Clark Electrode: Polarographic; current ∝ PO₂.
-
Temperature Compensation: Built-in thermistor.
6.5.2 PCO₂ and pH
-
Severinghaus Electrode: PCO₂ → pH change → measured by glass electrode.
-
pH Electrode: Glass membrane; potential = constant + 59 mV/pH at 25°C.
6.5.3 Integrated Analyzers
-
Sample: Heparinized syringe (prevents clotting).
-
Calibration: Two-point (low/high gas mixtures).
-
Output: pH, PCO₂, PO₂, O₂ saturation (calculated), electrolytes (some models).
6.6 Pulse Oximetry Systems
6.6.1 Principle
-
Beer-Lambert Law: $$\displaystyle I = I_0 e^{-\varepsilon c l} $$.
-
Dual Wavelength:
-
Hb absorbs more at 660 nm.
-
HbO₂ absorbs more at 940 nm.
-
-
AC/DC Components:
-
AC: Pulsatile (arterial blood).
-
DC: Non-pulsatile (venous, tissue, constant absorption).
-
-
Ratio Calculation:
$$R = \frac{(AC/DC)_{660}}{(AC/DC)_{940}}$$
SpO₂ = f(R) from calibration curve.
6.6.2 Finger-Tip Oxymeter
-
Hardware: LEDs, photodiode, microcontroller, display.
-
Signal Processing: Bandpass filter (0.5–10 Hz) to extract AC; sample-and-hold for DC.
6.6.3 Limitations
-
Motion Artifacts: False readings; motion-resistant algorithms.
-
Low Perfusion: Weak signal → inaccurate.
-
Calibration: In vitro calibration; may not hold for all patients (e.g., CO poisoning).
-
Accuracy: ±2% (typical).
6.7 Biotelemetry Systems
6.7.1 Basic System
-
Transmitter: Sensor → amplifier → filter → modulator (AM/FM/PCM) → RF/IR transmitter.
-
Channel: Wireless (RF: 400 MHz–2.4 GHz; IR: line-of-sight).
-
Receiver: Antenna → demodulator → decoder → display/recorder.
6.7.2 Types
-
Wearable: Bluetooth, Zigbee (short-range, low-power).
-
Implantable: MICS band (402–405 MHz), Medical Implant Communication Service.
-
Short-range: NFC (13.56 MHz).
6.7.3 Advantages/Disadvantages
| Advantages | Disadvantages |
|---|---|
| Patient mobility | Noise (RF interference) |
| Continuous monitoring | Security (eavesdropping) |
| No wires (infection risk ↓) | Battery life (implantable) |
6.7.4 Applications
-
Holter Monitoring: 24–48 hr ECG.
-
Remote ICU: Central monitoring station.
-
Sports Medicine: Heart rate, GPS.
-
Space Research: Astronaut vital signs.
6.8 Therapeutic Equipment
6.8.1 Defibrillators
-
Manual: Monophasic (single pulse) or biphasic (two pulses, lower energy).
-
AED (Automated External Defibrillator): Voice prompts, automatic rhythm analysis.
-
Energy Delivery: 200–360 J (monophasic), 120–200 J (biphasic).
6.8.2 Pacemakers
-
Fixed-Rate: Constant rate (e.g., 70 bpm).
-
On-Demand:
-
VVI: Ventricular pacing, ventricular sensing, inhibited response.
-
DDD: Dual-chamber pacing/sensing, dual response.
-
-
Rate-Responsive: Activity sensor (accelerometer) or respiratory rate adjusts rate.
6.8.3 Heart-Lung Machine (Cardiopulmonary Bypass, CPB)
-
Components:
-
Roller Pump: Occlusive rollers; non-pulsatile flow.
-
Membrane Oxygenator: Hollow fibers; blood and gas separated; O₂/CO₂ exchange.
-
Heat Exchanger: Maintains body temperature.
-
-
Function: Diverts blood from heart/lungs; oxygenates and returns to arterial system during open-heart surgery.
6.8.4 Dialyzers (Hemodialysis)
-
Principle: Diffusion across semi-permeable membrane; ultrafiltration (pressure-driven).
-
Blood Flow: 200–500 mL/min.
-
Dialysate Flow: 500–800 mL/min (counter-current).
-
Membrane: Polysulfone, cellulose triacetate.
6.9 Imaging Systems
6.9.1 Magnetic Resonance Imaging (MRI)
-
Static Field: 1.5–3 T (superconducting magnet).
-
Gradient Fields: Spatial encoding (slice selection, phase/frequency encoding).
-
RF Pulses: Excite hydrogen protons; receive NMR signal.
-
Image Reconstruction: Fourier Transform of k-space data.
-
Safety:
-
Ferromagnetic Objects: Projectiles.
-
SAR: RF energy absorption → tissue heating; limits scan parameters.
-
6.9.2 Endoscopy
-
Fiber-optic: Coherent image bundle (6000–10000 fibers); light guide illuminates.
-
Video Endoscope: CCD/CMOS at tip; signal transmitted electrically.
-
Therapeutic Accessories: Biopsy forceps, electrocautery, laser fibers.
6.10 Other Biomedical Systems
6.10.1 Thermography
-
Infrared Imaging: Detects skin temperature patterns.
-
Applications: Inflammation (arthritis), vascular disorders (DVT), cancer (breast, skin).
6.10.2 Biometric Systems
-
Patient Identification: Fingerprint/iris/face recognition for EHR access, medication administration.
-
Security: Access control to restricted areas (ICU, pharmacy).
7.0 System Integration and Reliability
7.1 Microcontroller-Based Data Acquisition Systems
7.1.1 System Architecture
Sensor → Signal Conditioning (Amplifier, Filter, Isolation) → ADC → Microcontroller → (Display/Storage/Communication)
-
Signal Conditioning:
-
Amplifier: Instrumentation amplifier (high CMRR, high Zin).
-
Filter: Anti-aliasing (low-pass, cutoff = fs/2).
-
Isolation: Opto-isolator or transformer (patient safety).
-
7.1.2 Hardware Design
-
Component Selection: Low-noise op-amps (e.g., AD620), precision resistors.
-
PCB Layout:
-
Ground planes for noise immunity.
-
Separate analog/digital grounds.
-
Shielding for high-gain stages.
-
-
Power Supply Decoupling: 0.1 µF ceramic close to IC Vcc pins.
7.1.3 Software Design
-
Sampling Rate: >2× highest frequency (Nyquist). For ECG (100 Hz), fs ≥ 200 Hz (typically 250–500 Hz).
-
Calibration: Store offset/gain coefficients in EEPROM; apply in software.
-
Error Handling: Checksums for data integrity; watchdog reset.
-
Data Logging: Circular buffer in RAM/SD card; timestamp.
-
User Interface: LCD (16×2), buttons; menu-driven.
7.2 Real-Time Operating Considerations
7.2.1 Interrupt-Driven Design
-
ISR for Sampling: Timer interrupt triggers ADC start/read.
-
Minimizing ISR Latency:
-
Keep ISR short; set flag for main loop.
-
Disable lower-priority interrupts in critical sections.
-
7.2.2 Watchdog Timer Implementation
-
Timeout Period: Set > worst-case main loop execution time (e.g., 100 ms).
-
Service Routine:
CLR WDT(clear watchdog) in main loop. -
Fault Recovery: On timeout, system reset; blink LED to indicate error.
7.2.3 RTOS for Complex Systems
-
Task Scheduling: Priority-based preemptive (e.g., FreeRTOS).
-
Synchronization: Semaphores, mutexes for shared resources (ADC, display).
7.3 Quality Attributes and Safety
7.3.1 Safety Standards
-
IEC 60601-1: General requirements for medical electrical equipment.
-
Isolation:
-
Transformer: 1.5 kV isolation (patient-connected parts).
-
Optical: Opto-isolators (≥5 kV).
-
-
Leakage Current Limits (NFPA 99):
-
Patient: ≤100 µA (non-defibrillator proof), ≤10 µA (defibrillator proof).
-
Operator: ≤500 µA.
-
-
Protection Classes:
-
Class I: Protective earth (ground).
-
Class II: Double insulation (no ground).
-
Class III: Safety extra-low voltage (SELV, ≤24 VAC/60 VDC).
-
7.3.2 Reliability
-
MTBF (Mean Time Between Failures): Inverse of failure rate; target > 10,000 hours for critical devices.
-
FMEA (Failure Modes and Effects Analysis): Systematic identification of failure modes, effects, and mitigation.
-
Redundancy:
-
Hardware: Duplicate critical components (e.g., dual power supplies).
-
Software: Watchdog, safe state on error.
-
7.3.3 Maintainability and Testability
-
BIST (Built-in Self-Test): Power-on self-test (POST); checks memory, peripherals.
-
Diagnostic Modes: Service menu; displays sensor values, error codes.
-
Calibration Procedures: Automated (software-guided) or manual (potentiometers).
-
Service Manuals: Detailed schematics, troubleshooting flowcharts.
END OF UNIT 4 NOTES
Focus on past paper patterns: 8051/8096 programming, power electronics calculations (rectifier Vdc, inverter harmonics), biomedical sensors (ECG/EEG/pulse oximetry), and system reliability.