Sensor Circuits Interactive Atlas
Parametric, physics-accurate interactive sensor circuits with real-time animated current flow, LED/relay/transistor state indicators, fault simulation, live formula substitution, and hands-on wiring guides.
All 18 essential sensor circuits across 5 engineering pillars are live: Industrial Switching (PNP, NPN, NAMUR, Push-Pull, Optocoupler/Relay), Analog Loops (4–20 mA, 3/4-Wire, V-to-I), Bridge & Temperature Front-Ends (NTC, Wheatstone/INA, 2/3/4-Wire RTD, Thermocouple CJC), Weak-Signal Conditioning (Photodiode TIA, Kelvin Shunt, IEPE/ICP, Schmitt Trigger), and Digital Buses (I²C Level-Shifter, RS-485 Termination/Fail-Safe).
Diagnose by Field Failure Symptom (Jump Straight to Fault Simulation)
Open sensor wire, broken divider ground, or missing gain headroom
3-wire ground shift, 2-wire RTD lead error, missing CJC, or op-amp Ib
Missing flyback diode, 24 V miswire, reversed polarity, or open CT HV
Missing Cf, slow I²C/open-drain pull-up, ADC kickback, or contact bounce
Missing 120 Ω terminator, unbiased RS-485 idle, or VFD ground shift
Live Interactive Circuit Workbenches (28)
PNP (Sourcing) 3-Wire Sensor Output Circuit
A 3-wire PNP (sourcing) sensor switches the positive supply (+24 V, Brown) to the output (Black) via an internal high-side transistor, sourcing current into a sinking PLC input referenced to 0 V (Blue). Per IEC 61131-2, Logic 1 requires ≥ 15 V and ≥ 2 mA.
NPN (Sinking) 3-Wire Sensor Output Circuit
A 3-wire NPN (sinking) sensor pulls the Black output wire to 0 V (Blue) through an internal low-side open-collector transistor, sinking current from a +Vcc pull-up load or sourcing PLC input. It requires a pull-up load to read HIGH when OFF.
NAMUR 2-Wire Intrinsic Safety Sensor Circuit
A NAMUR sensor (IEC 60947-5-6) is a 2-wire variable-impedance proximity switch fed through an 8.2 V / 1 kΩ intrinsically safe switch amplifier. It encodes target state (>2.1 mA undamped, <1.2 mA damped) plus wire-break (<0.1 mA) and short-circuit (>6.5 mA) faults.
2-Wire 4–20 mA Current Loop & Protected Receiver Circuit
A 2-wire 4–20 mA current loop powers the transmitter and carries the process value on the same pair of wires. A precision 250 Ω (1–5 V) or 150 Ω (0.6–3.0 V) sense resistor plus RC filter and Schottky clamp converts loop current safely for PLC/MCU ADCs.
Push-Pull (HTL/TTL) & Open-Drain Sensor Output Circuit
A Push-Pull (HTL/TTL) stage uses both high-side and low-side transistors to drive cable capacitance sharply in both directions (>100 kHz) and works with sinking or sourcing PLCs, while Open-Drain trades passive RC rise speed for safe multi-sensor Wired-OR sharing.
Optocoupler & Relay Isolated Sensor Stage (Flyback Diode)
An optocoupler isolates 24 V field sensors from 3.3–5 V MCUs across a 2.5–5 kVrms optical barrier (size Rin for 5–10 mA and ≥2× CTR saturation margin), while an anti-parallel flyback diode across every DC relay coil clamps inductive turn-off spikes to Vcc + 0.7 V.
3-Wire vs 4-Wire Active Analog Transmitter Circuit (0–10 V)
In a 3-wire 0–10 V hookup, sensor power return current flows across shared 0 V wire resistance, creating a direct +Isup × R0V zero-shift error at the PLC. Separating the signal return (4-wire) or adding a galvanic isolator cuts this error to near zero.
Voltage-to-4–20 mA Transmitter Circuit (Op-Amp + Pass BJT)
An op-amp + pass transistor V-to-I transmitter locks the voltage across precision resistor Rset equal to Vin, generating exact Iout = Vin / Rset (e.g. 0.4–2.0 V / 100 Ω = 4–20 mA) regardless of external load resistance within compliance voltage headroom.
NTC / LDR Voltage Divider + Op-Amp Buffer & RC Filter
A ratiometric NTC voltage divider driven from the ADC Vref cancels supply drift completely. Match Rfixed to R_NTC at mid-range temperature, limit self-heating below 0.25 mW, and add a CMOS unity buffer whenever Rth exceeds 10 kΩ.
Wheatstone Bridge + Instrumentation Amplifier Circuit
A full-bridge load cell outputs ΔVin = Vexc × (ΔR/R0) centered at Vexc/2 common-mode. An instrumentation amplifier (INA128/INA333) rejects the common-mode (>100 dB CMRR) and amplifies ΔVin by G = 1 + 50 kΩ / Rg around a buffered Vref offset.
2/3/4-Wire RTD (PT100 / PT1000) Excitation Circuit
PT100 changes by only 0.385 Ω/°C, so 2-wire leads add severe +2·Rlead errors. 3-wire dual-IDAC excitation cancels matched leads, while 4-wire Kelvin eliminates lead resistance completely regardless of wire mismatch; keep Iexc ≤ 1 mA (PT100) or ≤ 0.25 mA (PT1000).
Thermocouple CJC, EMI Filter & Open-TC Burnout Circuit
A thermocouple measures only the Seebeck difference E(Th) − E(Tcj). Accurate front-ends add E(Tcj) in millivolts using an isothermal CJC sensor, filter RF noise symmetrically, and use 10 MΩ pull-up/down resistors for common-mode bias and fail-safe open-TC burnout detection.
Photodiode Transimpedance Amplifier (TIA) Circuit
A Photodiode Transimpedance Amplifier (TIA) holds the photodiode at constant voltage via virtual ground and converts microamp photocurrent linearly into Vout = Iph × Rf. Always parallel a C0G capacitor Cf across Rf to guarantee phase stability and set bandwidth.
Low-Side vs High-Side Current Shunt Amplifier Circuit
High-side current shunt sensing (e.g. INA240 across a 4-terminal milliohm shunt) keeps the load at true 0 V ground and detects chassis shorts, whereas low-side sensing lifts load ground by +Iload × Rs; route strict Kelvin sense traces from inner pads.
Piezoelectric / IEPE (ICP) Constant-Current Conditioning Circuit
An IEPE (ICP) accelerometer conditioner feeds 2–4 mA constant current from a 24 V rail over 2-wire coax, establishing a ~12 V DC bias (8–16 V healthy, >18 V open, <2 V short) while an AC coupling capacitor blocks DC into the vibration ADC.
Comparator with Hysteresis (Schmitt Trigger) Threshold Circuit
A Schmitt trigger comparator adds positive-feedback resistor Rf to split a single noisy threshold into two clean trip points (Vth+ and Vth−, deadband ΔVh = Vcc·R1/Rf), eliminating rapid output chatter on slow analog sensors.
I²C Bus Pull-Up & MOSFET Bidirectional Level Shifter Circuit
I²C pull-up resistors must keep 30–70% bus rise time tr = 0.8473·Rp·Cb under 1000 ns (100 kHz) or 300 ns (400 kHz) without exceeding 3 mA sink current. A single BSS138 MOSFET translates 3.3 V ↔ 5 V bidirectionally with no direction pin.
RS-485 Transceiver Termination, Fail-Safe Bias & TVS Circuit
Reliable RS-485 (TIA/EIA-485-A) wiring requires two 120 Ω end terminators (60 Ω parallel), single-point fail-safe biasing (560 Ω on 5 V) holding idle V_AB > +200 mV to stop framing errors, a 3rd signal reference ground, and asymmetric SM712 (−7 V/+12 V) TVS.
±10 V & 0–10 V Analog Scaling with 24 V Miswire Clamp
Scale 0–10 V into a 3.3 V ADC with a 22 kΩ / 10 kΩ divider, or add R3 = R1 to Vref to shift bipolar ±10 V onto a single supply; a BAT54S Schottky clamp protects the MCU on +24 V miswires.
AC Current Transformer (CT) Burden, Mid-Rail Bias & TVS Clamp
Interface an AC current transformer to a 3.3 V ADC by sizing burden R_B so peak secondary voltage stays under Vref/2, biasing the return at Vref/2 with 10 µF bypass, and adding a bidirectional TVS against open-secondary HV.
24 V Sensor Power Entry Protection (PMOS, TVS & PTC Fuse)
Protect 24 V sensor boards with a PTC fuse, SMBJ28A surge TVS after the PTC, and a high-side PMOS with a 12 V Zener across Gate-Source to keep Vgs safely below ±20 V during normal operation and surges.
CAN / CANopen Bus Split Termination & Differential Levels
Terminate both physical ends of an ISO 11898 CAN bus with 120 Ω (60 Ω measured DC) — ideally using 60 Ω + 60 Ω + 4.7 nF split termination to shunt high-frequency common-mode EMI to ground.
SAR ADC RC Charge-Bucket (Kickback) Filter & Settling Lab
Size a SAR ADC charge-bucket filter with C_flt ≥ 10×–20× C_SH (C0G/NP0 dielectric) and R_flt small enough that residual kickback settling error stays below 0.5 LSB at the end of acquisition time t_acq.
Dry-Contact Hardware Debounce & Wetting Current Circuit
Reliable mechanical dry-contact inputs require ≥ 5–10 mA wetting current through R1 to break contact oxide films, plus an RC filter (t_deb ≈ 1.1·R2·C1 > bounce time) feeding a 74HC14 Schmitt trigger.
3-Electrode Electrochemical Gas Sensor Potentiostat Circuit
A 3-electrode potentiostat holds Reference (RE) at zero current via control op-amp U1 driving Counter (CE), while TIA U2 converts Working (WE) redox current to Vout = Vzero + I_WE·R_tia; a depletion JFET shorts WE–RE when unpowered.
High-Impedance pH Glass Electrode & Driven Guard Ring Circuit
A 500 MΩ pH glass electrode requires a femtoamp-bias buffer (LMP7721, Ib = 3 fA) and an exposed-copper driven Guard Ring around the BNC pin; even a 1 nA ordinary op-amp causes a massive 500 mV (>8 pH) error!
Piezoelectric Charge Amplifier (Cable-Immune Force & Ultrasonic)
A Charge Amplifier transfers 100% of piezoelectric charge Q into feedback capacitor Cf (Vout = −Q/Cf) so coaxial cable capacitance C_cab causes 0% gain error; parallel a 100 MΩ–1 GΩ resistor Rf to stop DC drift.
Differential RS-422 Encoder & VR Speed Pickup Conditioning
Terminate RS-422 quadrature encoder pairs with 120 Ω at the receiver and bond 0 V reference to stay within AM26LS32 ±7 V common-mode limits; clamp passive VR magnetic pickups via 10 kΩ + anti-parallel diodes before zero-crossing.
Quick-Reference Sensor Circuit Comparison Matrix
| Circuit | Wiring | Supply | Signal | Fault Diagnostics |
|---|---|---|---|---|
| PNP Sourcing Output | 3-wire (BN +Vcc, BU 0V, BK Out) | 10–30 V DC (24 V nom) | High-side Sourcing (+Vcc ON) | Wire break fails safe to 0 V; short-to-0V triggers foldback protection |
| NPN Sinking Output | 3-wire (BN +Vcc, BU 0V, BK Sink) | 5–30 V DC (24 V / 5 V) | Low-side Sinking (0 V ON) | Pinched wire to chassis 0 V causes false trigger; missing pull-up floats output |
| NAMUR Intrinsic Safety | 2-wire (BN +, BU −, Blue IS cable) | 8.2 V DC nom via 1000 Ω barrier | 4-Window Analog Current (Ex ia) | Built-in LFD detects both wire-break (<0.1 mA) and short (>6.5 mA) spark-free |
| 4–20 mA Loop & Receiver | 2-wire twisted shielded pair | 12–36 V DC (24 V nom) | 4–20 mA Live-Zero + NAMUR NE 43 | 0 mA flags wire-break; <3.6 / >21 mA flags NE 43 fault; clamp guards ADC on 24 V short |
| Push-Pull & Open-Drain | 3-wire (BN +Vcc, BU 0V, BK Out) | 5 V TTL / 10–30 V HTL | Active Totem-Pole vs Passive Pull-Up | High Rpu×Cbus rounds fast pulses; paralleling Push-Pull causes shoot-through short |
| Optocoupler & Flyback Relay | 2.5–5 kVrms Galvanic Barrier | Field 5–30 V → Isolated 3.3/5 V | Optical Isolation + Inductive Clamp | Aged CTR causes under-saturation; missing flyback diode creates >150 V kickback |
| 3-Wire vs 4-Wire Analog | 3-wire Shared 0V vs 4-wire Isolated | 24 V DC active (5–150 mA draw) | 0–10 V Voltage Reference Topology | Shared 0 V adds +Isup·R0V offset; dual-point earth injects severe ground-loop error |
| V-to-4–20 mA Transmitter | 3-wire Active / Sink V-to-I Stage | 12–36 V Loop + 0.4–2.0 V DAC | Closed-Loop Precision Current Source | Excess Rload clips current; low Rload heats pass BJT; open load rails op-amp |
| NTC Divider & Buffer | 2-wire probe → Ratiometric ADC | 1.8–5.0 V ADC Vref | Ratiometric Divider + Buffer + RC | Open probe rails ADC to 4095 counts; high Rth warns on unbuffered SAR droop |
| Wheatstone Bridge & INA | 4-wire / 6-wire Kelvin Bridge | 2.5–10 V Excitation | Differential mV/V + High-CMRR INA | Excess gain clips rail; open bridge arm jumps ΔVin to ±Vexc/2 immediately |
| 2/3/4-Wire RTD Excitation | 2-wire / 3-wire / 4-wire Kelvin | 0.1–2.0 mA Ratiometric IDAC | IEC 60751 Constant-Current Sense | 2-wire flags massive +°C lead error; open RTD hits +3.3 V compliance fault |
| Thermocouple CJC & Burnout | 2-wire Alloy Pair + Isothermal CJC | Self-Powered (~41 µV/°C Type K) | NIST ITS-90 Seebeck + Burnout Bias | Missing CJC drops reading by ~Tcj; 10 MΩ bias pulls open-TC to rail; swap inverts EMF |
| Photodiode TIA | 2-wire Photodiode → FET Op-Amp | 3.3–12 V Single / Dual Rail | Current-to-Voltage Transimpedance | Cf = 0 pF flags oscillation risk; bright ambient light warns on rail saturation |
| High/Low-Side Current Shunt | 4-Terminal Kelvin Shunt → CSA | 5–48 V Bus · 3.3/5 V Amp | High-CMRR mV Shunt Amplification | Non-Kelvin trace adds +35% copper error; low-side lifts load GND; flags shunt heat |
| IEPE / ICP Vibration Stage | 2-wire Coax (DC Power + AC Vib) | 18–30 V Compliance · 2–10 mA | Constant-Current Bias + AC Coupling | DC bias window instantly separates Healthy (12 V), Open (>18 V) & Short (<2 V) |
| Schmitt Trigger Comparator | Analog Sensor → Positive-FB Comp | 3.3–5.0 V (LM393 / TLV3201) | Dual-Threshold Hysteresis Switch | Removing Rf triggers live critical-point chatter warning; shows deadband latch |
| I²C Pull-Up & Level Shifter | 2-wire Open-Drain (SDA / SCL) | 3.3 V LV ↔ 5.0 V HV Shifted | UM10204 Open-Drain Bidirectional | Flags weak pull-up rise-time violations (>300 ns) & excess >3 mA sink overload |
| RS-485 Termination & Bias | 2-wire Twisted Pair + Ref GND | 3.3 V / 5.0 V Transceiver | Balanced Differential Half-Duplex | Demonstrates 0 mV unbiased idle framing noise & live Mark/Space current flip |
| ±10 V / 0–10 V Scaling | 2-wire Voltage → Divider + Clamp | 3.3 V / 5.0 V Single-Supply ADC | 0–10 V / ±10 V Scaled Analog | Simulates +24 V field miswire clamp current/wattage and open R2 ground fault |
| AC CT Burden & Bias | 2-wire Isolated CT Secondary | 3.3 V / 5.0 V Single-Supply ADC | AC Sine on Vref/2 Mid-Rail | Visualizes 2.5× motor inrush ADC clipping and open-burden HV TVS clamping |
| 24 V Power Entry Protection | 2-wire 24 V Industrial Power Entry | 10–36 V DC Industrial Rail | Protected DC Power Bus | Simulates −24 V reverse polarity, +42 V inductive surge & downstream short PTC trip |
| CAN Bus Split Termination | 2-wire Twisted Pair (CANH / CANL) | 3.3 V / 5.0 V Transceiver | ISO 11898 Differential Dominant/Recessive | Flags 120 Ω single-terminator reflection mismatch and CANH–CANL Bus-Off short |
| SAR ADC Charge Bucket | Op-Amp Buffer → RC Charge Bucket → SAR ADC | 3.3 V / 5.0 V Analog Rail | Switched-Capacitor SAR Input | Computes exact LSB settling error under fast mux scan and omitted C_flt kickback |
| Dry-Contact Debounce | 2-wire Dry Contact → RC + Schmitt | 3.3–24 V DC Wetting Rail | Debounced Digital / Pulse Input | Flags <5 mA contact oxidation risk and bounce-time > RC debounce false triggers |
| Gas Sensor Potentiostat | 3-Electrode Cell (WE / RE / CE) | 3.3 V Ultra-Low-Power Single Rail | nA–µA Redox Current → Voltage | Simulates 400 ppm TIA rail saturation and power-off depletion JFET cell protection |
| pH Electrode & Guard Ring | Coaxial BNC + Driven Guard Shield | 3.3 V Single Rail + Mid-Rail Vref | Nernst ±414 mV (−59.16 mV/pH) | Contrasts 3 fA LMP7721 vs 1 nA op-amp 500 mV disaster and PCB flux leakage drift |
| Piezo Charge Amplifier | Low-Noise Coax → JFET Charge Amp | ±12 V / ±15 V Dual Rail | pC Charge → Voltage (−Q / Cf) | Demonstrates 0% cable-C gain loss, missing-Rf integrator rail lockup & pulse clip |
| RS-422 Encoder & VR Pickup | Twisted Pair (A/A− or VR+/VR−) | 3.3 V / 5.0 V Receiver | RS-422 Differential / VR Adaptive Zero-Cross | Flags VFD ground-shift > ±7 V missed counts and 60 Vpp VR surge clamp current |