SensorCatalog
IEC 60947-5-2IEC 60947-5-6 (NAMUR)IEC 60751IEC 60584-1NAMUR NE 43TIA/EIA-485-A

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)

Live Interactive Circuit Workbenches (28)

LIVE SIMULATORIEC 60947-5-2IEC 61131-2

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.

3-wire (BN +Vcc, BU 0V, BK Out)10–30 V DC (24 V nom)
LIVE SIMULATORIEC 60947-5-2IEC 61131-2

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.

3-wire (BN +Vcc, BU 0V, BK Sink)5–30 V DC (24 V / 5 V)
LIVE SIMULATORIEC 60947-5-6IEC 60079-11

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 (BN +, BU −, Blue IS cable)8.2 V DC nom via 1000 Ω barrier
LIVE SIMULATORIEC 60381-1NAMUR NE 43

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.

2-wire twisted shielded pair12–36 V DC (24 V nom)
LIVE SIMULATORIEC 60947-5-2IEC 61131-2

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.

3-wire (BN +Vcc, BU 0V, BK Out)5 V TTL / 10–30 V HTL
LIVE SIMULATORIEC 60747-5IEC 61131-2

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.

2.5–5 kVrms Galvanic BarrierField 5–30 V → Isolated 3.3/5 V
LIVE SIMULATORIEC 60381-1IEC 60381-2

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.

3-wire Shared 0V vs 4-wire Isolated24 V DC active (5–150 mA draw)
LIVE SIMULATORIEC 60381-1NAMUR NE 43

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.

3-wire Active / Sink V-to-I Stage12–36 V Loop + 0.4–2.0 V DAC
LIVE SIMULATORIEC 60539-1

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Ω.

2-wire probe → Ratiometric ADC1.8–5.0 V ADC Vref
LIVE SIMULATOROIML R60

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.

4-wire / 6-wire Kelvin Bridge2.5–10 V Excitation
LIVE SIMULATORIEC 60751

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).

2-wire / 3-wire / 4-wire Kelvin0.1–2.0 mA Ratiometric IDAC
LIVE SIMULATORIEC 60584-1IEC 60584-3

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.

2-wire Alloy Pair + Isothermal CJCSelf-Powered (~41 µV/°C Type K)
LIVE SIMULATORIEC 60747-5

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.

2-wire Photodiode → FET Op-Amp3.3–12 V Single / Dual Rail
LIVE SIMULATORIEC 60051

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.

4-Terminal Kelvin Shunt → CSA5–48 V Bus · 3.3/5 V Amp
LIVE SIMULATORISO 5348ISO 20816

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.

2-wire Coax (DC Power + AC Vib)18–30 V Compliance · 2–10 mA
LIVE SIMULATORIEC 60748

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.

Analog Sensor → Positive-FB Comp3.3–5.0 V (LM393 / TLV3201)
LIVE SIMULATORUM10204

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.

2-wire Open-Drain (SDA / SCL)3.3 V LV ↔ 5.0 V HV Shifted
LIVE SIMULATORTIA/EIA-485-A

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.

2-wire Twisted Pair + Ref GND3.3 V / 5.0 V Transceiver
LIVE SIMULATORIEC 61131-2

±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.

2-wire Voltage → Divider + Clamp3.3 V / 5.0 V Single-Supply ADC
LIVE SIMULATORIEC 61869-2

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.

2-wire Isolated CT Secondary3.3 V / 5.0 V Single-Supply ADC
LIVE SIMULATORIEC 61000-4-5

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.

2-wire 24 V Industrial Power Entry10–36 V DC Industrial Rail
LIVE SIMULATORISO 11898-2

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.

2-wire Twisted Pair (CANH / CANL)3.3 V / 5.0 V Transceiver
LIVE SIMULATORIEEE 1241

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.

Op-Amp Buffer → RC Charge Bucket → SAR ADC3.3 V / 5.0 V Analog Rail
LIVE SIMULATORIEC 61131-2

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.

2-wire Dry Contact → RC + Schmitt3.3–24 V DC Wetting Rail
LIVE SIMULATORIEC 60079-29-1

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.

3-Electrode Cell (WE / RE / CE)3.3 V Ultra-Low-Power Single Rail
LIVE SIMULATORASTM D1293

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!

Coaxial BNC + Driven Guard Shield3.3 V Single Rail + Mid-Rail Vref
LIVE SIMULATORISO 5348

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.

Low-Noise Coax → JFET Charge Amp±12 V / ±15 V Dual Rail
LIVE SIMULATORTIA/EIA-422-B

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.

Twisted Pair (A/A− or VR+/VR−)3.3 V / 5.0 V Receiver

Quick-Reference Sensor Circuit Comparison Matrix

CircuitWiringSupplySignalFault Diagnostics
PNP Sourcing Output3-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 Output3-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 Safety2-wire (BN +, BU −, Blue IS cable)8.2 V DC nom via 1000 Ω barrier4-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 & Receiver2-wire twisted shielded pair12–36 V DC (24 V nom)4–20 mA Live-Zero + NAMUR NE 430 mA flags wire-break; <3.6 / >21 mA flags NE 43 fault; clamp guards ADC on 24 V short
Push-Pull & Open-Drain3-wire (BN +Vcc, BU 0V, BK Out)5 V TTL / 10–30 V HTLActive Totem-Pole vs Passive Pull-UpHigh Rpu×Cbus rounds fast pulses; paralleling Push-Pull causes shoot-through short
Optocoupler & Flyback Relay2.5–5 kVrms Galvanic BarrierField 5–30 V → Isolated 3.3/5 VOptical Isolation + Inductive ClampAged CTR causes under-saturation; missing flyback diode creates >150 V kickback
3-Wire vs 4-Wire Analog3-wire Shared 0V vs 4-wire Isolated24 V DC active (5–150 mA draw)0–10 V Voltage Reference TopologyShared 0 V adds +Isup·R0V offset; dual-point earth injects severe ground-loop error
V-to-4–20 mA Transmitter3-wire Active / Sink V-to-I Stage12–36 V Loop + 0.4–2.0 V DACClosed-Loop Precision Current SourceExcess Rload clips current; low Rload heats pass BJT; open load rails op-amp
NTC Divider & Buffer2-wire probe → Ratiometric ADC1.8–5.0 V ADC VrefRatiometric Divider + Buffer + RCOpen probe rails ADC to 4095 counts; high Rth warns on unbuffered SAR droop
Wheatstone Bridge & INA4-wire / 6-wire Kelvin Bridge2.5–10 V ExcitationDifferential mV/V + High-CMRR INAExcess gain clips rail; open bridge arm jumps ΔVin to ±Vexc/2 immediately
2/3/4-Wire RTD Excitation2-wire / 3-wire / 4-wire Kelvin0.1–2.0 mA Ratiometric IDACIEC 60751 Constant-Current Sense2-wire flags massive +°C lead error; open RTD hits +3.3 V compliance fault
Thermocouple CJC & Burnout2-wire Alloy Pair + Isothermal CJCSelf-Powered (~41 µV/°C Type K)NIST ITS-90 Seebeck + Burnout BiasMissing CJC drops reading by ~Tcj; 10 MΩ bias pulls open-TC to rail; swap inverts EMF
Photodiode TIA2-wire Photodiode → FET Op-Amp3.3–12 V Single / Dual RailCurrent-to-Voltage TransimpedanceCf = 0 pF flags oscillation risk; bright ambient light warns on rail saturation
High/Low-Side Current Shunt4-Terminal Kelvin Shunt → CSA5–48 V Bus · 3.3/5 V AmpHigh-CMRR mV Shunt AmplificationNon-Kelvin trace adds +35% copper error; low-side lifts load GND; flags shunt heat
IEPE / ICP Vibration Stage2-wire Coax (DC Power + AC Vib)18–30 V Compliance · 2–10 mAConstant-Current Bias + AC CouplingDC bias window instantly separates Healthy (12 V), Open (>18 V) & Short (<2 V)
Schmitt Trigger ComparatorAnalog Sensor → Positive-FB Comp3.3–5.0 V (LM393 / TLV3201)Dual-Threshold Hysteresis SwitchRemoving Rf triggers live critical-point chatter warning; shows deadband latch
I²C Pull-Up & Level Shifter2-wire Open-Drain (SDA / SCL)3.3 V LV ↔ 5.0 V HV ShiftedUM10204 Open-Drain BidirectionalFlags weak pull-up rise-time violations (>300 ns) & excess >3 mA sink overload
RS-485 Termination & Bias2-wire Twisted Pair + Ref GND3.3 V / 5.0 V TransceiverBalanced Differential Half-DuplexDemonstrates 0 mV unbiased idle framing noise & live Mark/Space current flip
±10 V / 0–10 V Scaling2-wire Voltage → Divider + Clamp3.3 V / 5.0 V Single-Supply ADC0–10 V / ±10 V Scaled AnalogSimulates +24 V field miswire clamp current/wattage and open R2 ground fault
AC CT Burden & Bias2-wire Isolated CT Secondary3.3 V / 5.0 V Single-Supply ADCAC Sine on Vref/2 Mid-RailVisualizes 2.5× motor inrush ADC clipping and open-burden HV TVS clamping
24 V Power Entry Protection2-wire 24 V Industrial Power Entry10–36 V DC Industrial RailProtected DC Power BusSimulates −24 V reverse polarity, +42 V inductive surge & downstream short PTC trip
CAN Bus Split Termination2-wire Twisted Pair (CANH / CANL)3.3 V / 5.0 V TransceiverISO 11898 Differential Dominant/RecessiveFlags 120 Ω single-terminator reflection mismatch and CANH–CANL Bus-Off short
SAR ADC Charge BucketOp-Amp Buffer → RC Charge Bucket → SAR ADC3.3 V / 5.0 V Analog RailSwitched-Capacitor SAR InputComputes exact LSB settling error under fast mux scan and omitted C_flt kickback
Dry-Contact Debounce2-wire Dry Contact → RC + Schmitt3.3–24 V DC Wetting RailDebounced Digital / Pulse InputFlags <5 mA contact oxidation risk and bounce-time > RC debounce false triggers
Gas Sensor Potentiostat3-Electrode Cell (WE / RE / CE)3.3 V Ultra-Low-Power Single RailnA–µA Redox Current → VoltageSimulates 400 ppm TIA rail saturation and power-off depletion JFET cell protection
pH Electrode & Guard RingCoaxial BNC + Driven Guard Shield3.3 V Single Rail + Mid-Rail VrefNernst ±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 AmplifierLow-Noise Coax → JFET Charge Amp±12 V / ±15 V Dual RailpC Charge → Voltage (−Q / Cf)Demonstrates 0% cable-C gain loss, missing-Rf integrator rail lockup & pulse clip
RS-422 Encoder & VR PickupTwisted Pair (A/A− or VR+/VR−)3.3 V / 5.0 V ReceiverRS-422 Differential / VR Adaptive Zero-CrossFlags VFD ground-shift > ±7 V missed counts and 60 Vpp VR surge clamp current

↑ ↓ choose · Enter open · Esc close